979f2a8af3ea4289c81cccf39be45a1aa998b89d
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2
3         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
4         AddNew to fix some navigation for empty datasets. [Fixes #323053]
5
6 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
7
8         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
9         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
10         border and fixes some drawing issues when resize form.
11
12 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
13
14         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
15         
16         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
17         AcceptButton.
18
19 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
20
21         * TextBoxBase.cs: For standard textbox the scrollbars are always 
22         visible if Multiline is true.
23         [Fixes bug #426896]
24
25 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
26
27         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
28         patch.
29         
30 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
31
32         [Fixes most od DBNull and HeadersVisible problems]
33         
34         * DataGrid.cs:
35         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
36         returns the value that we need.
37         - Fixed FromPixelToColumn method that return zero for first     column and for
38         row header cell, now it returns -1 for row header cell.
39         - Fixed HitTest to check row header cell in column header area, it now
40         returns HitTestType.None. [Fixes #322864]
41         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
42         checks for RowHeadersVisible and other things.
43         - If an exception occurs when setting CurrentCell and user type 'yes' in
44         message dialog, invalidade current and new cell and set setting_current_cell
45         to false to prevent future errors. [Partially fixes #323050]
46
47         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
48         value (SetColumnValueAtRow), it must be done by grid to properly show 
49         messages. [Fixes #323050]
50
51         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
52         better draw column and row header. Also dont draw anything when column
53         headers is not visible.
54
55 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
56
57         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
58         logic.
59
60 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
61
62         * TreeView.cs: Don't start editing a node on right click, only
63         left click.
64
65 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
66
67         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
68         disabled over a year ago.
69         * Form.cs: Wrap calling Load in a try/catch because it can happen
70         before the catch-all one in NativeWindow.
71         [Fixes bug #425414]
72
73 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
74
75         * ToolStripDropDownMenu.cs: Calculate the connected area better
76         to take into account when the drop down is not directly under the
77         owner item.
78         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
79
80 2008-09-16  Mario Carrion <mcarrion@novell.com>
81
82         * ScrollBar.cs: New event added: UIAValueChanged, generated when
83           LargeChange, SmallChange, Maximum or Minimum values are changed.
84         [Fixes bug #426464]
85
86 2008-09-16  Mario Carrion <mcarrion@novell.com>
87
88         * ErrorProvider.cs: Component enabled to support accessibility.
89         * Application.cs: Updated to Initialize UIA in ErrorProvider.
90         [Fixes bug #426459]
91
92 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
93
94         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
95         so we don't highlight on first focus.
96         [Fixes bug #360869]
97
98 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
99
100         * TextControl.cs: Correctly calculate the height of the area we 
101         need to invalidate when we have started scrolling and viewport_y
102         is used.  [Fixes bug #387608]
103
104 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
105
106         * TextControl.cs: When getting the SelectedText, don't add in
107         NewLine characters, as they are already contained in the lines.
108         [Fixes bug #388115]
109
110 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
111
112         * TextBoxBase.cs: Replace the buggy Lines setter with one that
113         simply concats the lines and send it to the Text setter.
114         [Fixes issue #2 and #3 of 388115]
115
116 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
117
118         * Binding.cs: The default value of DataSourceNullValue should be
119         Convert.DBNull actually. Also, the NullValue should only be used *if*
120         itself is not null, and use the null/Convert.DBNull value instead.
121
122 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
123
124         * TextControl.cs: Add a method to convert a string newline to the
125         newline enum.
126         * TextBoxBase.cs: When the user hits enter, insert a native newline.
127         [Fixes part 1 of bug #388115]
128
129 2008-09-15  Mario Carrion <mcarrion@novell.com>
130
131         * ToolTip.cs: UnPopup event set to internal to match public API.
132
133 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
134
135         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
136         have to remove the Ctrl in order for the focus moving code to kick in.
137         [Fixes bug #426170]
138
139 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
140
141         * CheckedListBox.cs: Return the real item index from Add.  It may not be
142         the last item if the list is sorted.  The user can change the NewValue in
143         the ItemCheck event, we need to use that value if so.
144         * ListBox.cs: Return the real item index from a sorted Add.
145         [Fixes bug #426166]
146
147 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
148
149         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
150         happen that the icons from the theme is missing or the particular size 
151         unavailable.
152         [Fixes bug #424981]
153
154 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
155
156         * Binding.cs: When assigning null or DBNull depending on value/ref type,
157         use IsValueType instead to get the precise desired value.
158         Fixes #424276.
159
160 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
161
162         * TreeNodeCollection.cs: When adding a new node to an opened node,
163         we have to invalidate everything below the parent node because
164         every node scoots down and we have to repaint them.
165         [Fixes bug #411386]
166
167 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
168
169         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
170         property into account when drawing.
171         [Fixes bug #416064]
172
173 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
174
175         * ListBox.cs: When calling Items.Clear(), call
176         SelectedIndexCollection.ClearCore instead of normal Clear method, to
177         not fire any Selected*Changed event - this is done to match .net and
178         don't have invalid values when changing the DataSourceProperty.
179         Fixes #424273.
180
181 2008-09-12  Mario Carrion  <mcarrion@novell.com>
182
183         * HelpProvider.cs: Control enabled to support accessibility.
184         * Application.cs: Updated to Initialize UIA in HelpProvider.
185         [Fixes bug #425988]
186
187 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
188
189         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
190         make the dialog TopMost as well.
191         [Fixes bug #425984]
192
193 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
194
195         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
196         clipboard data better.
197         [Fixes bug #414446]
198
199 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
200
201         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
202         TextChanged and SelectionChanged events fire in the same order as .Net.
203         [Fixes bug #425725]
204
205 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
206
207         * DataGridView.cs: When sorting a column, if it only contains numbers,
208         do a numeric sort instead of a string sort.
209         [Fixes bug #425849]
210
211 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
212
213         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
214         against NRE's when the settings have a null panel.
215         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
216         the panel gets set.
217         [Fixes bug #425647]
218
219 2008-09-11  Mario Carrion  <mcarrion@novell.com>
220
221         * ToolTip.cs: Control enabled to support accessibility.
222         * Application.cs: Updated to Initialize UIA in ToolTip.
223         [Fixes bug #425277]
224
225 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
226
227         * Control.cs: Make the custom Enumerator internal to fix build.
228
229 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
230
231         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
232         already in edit mode, begin edit mode.  Generally edit mode isn't
233         started until the second click, but CheckBoxes are special.
234
235 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
236
237         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
238         since that can be set to anything.  Always add them to the Control's
239         parent.  [Fixes bug #416058]
240
241 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
242
243         * ListView.cs: Use a custom enumerator for ListViewItemCollection
244         so items can be deleted in a foreach.
245         [Fixes bug #425342]
246
247 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
248
249         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
250         Store the user set explicit height so that the row can be AutoSized
251         and then when AutoSize is turned off, it can get its original size back.
252         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
253         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
254         rows' heights back to their explicit values.
255         [Fixes bug #415780]
256
257 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
258
259         * DateTimePicker.cs: When getting focus, select the checkbox if we are
260         already showing it. Also, don't change its value when pressing space
261         if the checkbox is not visible (ShowCheckBox as false). Finally, the
262         checkbox should remain selected as long as Checked is false, and the
263         other parts are disabled.
264         Fixes #424267.
265         
266 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
267
268         * MessageBox.cs: Handle shortcut keys to dialog buttons.
269         [Fixes bug #425425]
270
271 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
272
273         * Binding.cs: When the value retrieved from the control property is
274         null, don't return Convert.DBNull for Nullable instances, since they
275         can *actually* get a null value.
276         Fixes #424265.
277
278 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
279
280         * Control.cs: Add an internal field to force doublebuffering regardless
281         of what the public mechanisms are set to.  This is because MS's native
282         controls are doublebuffered even though their .Net bits are set to false.
283         * ProgressBar.cs: Set force_double_buffer to true.
284         [Fixes bug #406595]
285
286 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
287
288         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
289         the cell template.
290         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
291         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
292         without EditingControls, paint background selection for types without
293         EditingControls, reset the EditingCellValueChanged flag when the
294         cell's value is committed.
295         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
296         have EditingControls, remove a double call to a cell's OnContentClickInternal,
297         don't do cell changing logic in OnMouseDown if the cell didn't change.
298         [Fixes bug #420351]
299
300 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
301
302         * DateTimePicker.cs: Fix the edition of am/pm specifier.
303
304 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
305
306         * TextControl.cs: Add "&" to the list of valid characters in a URL.
307
308 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
309
310         * DateTimePicker.cs: Before incrementing or decrementing any part in
311         the textbox, end any current edit. Also when ending the current edit
312         use the editing_part_index field instead of the current selected
313         value, since they can be out of synch, and we really need to work on
314         the *real* current edit part. Finally when PartData.Selected changes,
315         always try to end any ongoing edit.
316         This should fix some small errors handling mouse navigation and
317         increase/decrease operations.
318
319 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
320
321         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
322         respectively) should handled different, since the 12 hours format
323         needs the value typed by the user to be adjusted depending on the
324         a.m/p.m value, so it is preserved, and only changed when the value
325         reaches the 12 value (when it changes from a.m to p.m).
326         Fixes part of #416555.
327
328 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
329
330         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
331         * ToolStripDropDownItem.cs: Don't fire events and such again if
332         ShowDropDown is called on an already dropped down item.
333         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
334         subitems, the user may add some in the DropDownOpening event.
335         [Fixes bug #417877]
336
337 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
338
339         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
340         [Fixes bug #424270]
341
342 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
343
344         * MdiClient.cs: When looking for menustrips on a child form to merge,
345         look inside ToolStripContainers.
346         [Fixes bug #424264]
347
348 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
349
350         * ErrorProvider.cs: Unbreak my previous commit.
351
352 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
353
354         * ErrorProvider.cs: Icon should always be 16x16.
355         [Fixes bug #424380]
356
357 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
358
359         * GridEntry.cs: Invalidate the child items cache when the property 
360         value changes.
361
362 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
363
364         * GridEntry.cs, PropertyGridView.cs: 
365            - Update the ReadOnly detection and rendering to finally hopefully 
366            match the one of MSFT.
367            - Niceify and move the debug CWLS.
368         [Fixes bug #409028]
369
370 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
371
372         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
373         since we are already calling Invalidate for the entire control when
374         needed - and call Redraw() when size changes, since we need to paint
375         there by ourselved and not anymore from the mentioned method. 
376         This should improve the layout process. Also clean some not needed calls 
377         here and there.
378
379 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
380
381         * MenuAPI.cs: Add a null check to the Alt-F4 code.
382         [Fixes bug #420309]
383
384 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
385
386         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
387         [Fixes bug #423040]
388
389 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
390
391         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
392         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
393         on item expansion. Improves performance and fixes bug #417955.
394         [Fixes bug #417955]
395
396 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
397
398         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
399         fix the build.
400
401 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
402
403         * TextControl.cs: Add "_" to the list of valid characters in a URL.
404         [Fixes bug #423408]
405
406 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
407
408         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
409         region gets set.
410         [Fixes bug #414166]
411
412 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
413
414         * FontDialog.cs: When storing our font size from the starting font,
415         use SizeInPoints instead of Size in case Size is a different unit
416         from Points.
417         [Fixes bug #416489]
418
419 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
420
421         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
422         don't use it for anything else, check if a directory is highlighted.
423         If it is, navigate into it.
424         [Fixes bug #422087]
425
426 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
427
428         * Binding.cs: When acquiring a BindingManagerBase for the first time,
429         check that the specified property actually exists in the data source,
430         and throw an ArgumentException if that's not the case - this is only
431         done for this scenario, since for later cases (such Position changes)
432         we throw different exceptions (match .Net).
433
434 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
435
436         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
437           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
438           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
439           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
440           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
441           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
442           properties.
443           [Fixes bug #418684]
444
445 2008-09-03  Neville Gao <nevillegao@gmail.com>
446
447         * StatusBar.cs: Control enabled to support accessibility.
448         [Fixes bug #419079]
449
450 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
451
452         * Binding.cs: When connecting the event handler for the "Changed"
453         event for the property, only do it for PropertyManager, and not for
454         CurrencyManager - this is exactly what does .Net, totally ignoring any
455         change in the property of the elements of a list.
456         Fixes the tests.
457
458 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
459
460         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
461         to Windows when creating a window, as we fake MDI stuffs.
462         [Fixes bug #421858]
463
464 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
465
466         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
467         change takes effect.
468
469 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
470
471         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
472         [Fixes bug #419001]
473
474 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
475
476         * DataGridView.cs: Raise CellContentClick event.
477         [Fixes part of bug #420351]
478
479 2008-08-27  Mario Carrion  <mcarrion@novell.com>
480
481         * ScrollBar.cs: Control enabled to support accessibility.
482         [Fixes bug #416759]
483
484 2008-08-27  Mario Carrion  <mcarrion@novell.com>
485
486         * ComboBox.cs: Control enabled to support accessibility.
487         [Fixes bug #416663]
488
489 2008-08-27  Mario Carrion  <mcarrion@novell.com>
490
491         * ListBox.cs: Control enabled to support accessibility.
492         [Fixes bug #416640]
493
494 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
495
496         * ComboBox.cs: Don't suppress the TextChanged event when changing
497         the SelectedIndex.
498         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
499         and re-raise it.
500         [Fixes bug #420673]
501
502 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
503
504         * ErrorProvider.cs: Fix a regression NRE when setting properties
505         for a control before it has a parent.
506         [Fixes bug #420305]
507
508 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
509
510         * Binding.cs: Use the BindingManagerBase.Current value to obtain
511         connect the property "Changed" event, instead of using the data
512         sources - this is useful when the property specifies actually a
513         multiple objects path.
514         Fixes part of #417973.
515
516 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
517
518         * RelatedPropertyManager.cs: PropertyManager instances associated to a
519         nested properties should return not the properties of the data source
520         itself, but the properties of the type of a specific property in the
521         data source - match .net.
522
523 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
524
525         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
526         AddRange overloads into AddItems method, and added missing NULL check.
527         Added extra argument check to RemoveAt for compatibility with MS. 
528         Modified IList implementation of Add, Contains, IndexOf and Remove to
529         throw an ArgumentException if item is not an int. Modified IList.Insert
530         to throw a NotSupportException instead of an Exception. Implemented
531         ICollection.
532         (ObjectCollection): To avoid duplication, use AddItems method from
533         AddRange overloads. On 1.0 profile, first perform NULL check on items
534         in AddItems.
535
536 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
537
538         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
539          #419087.
540
541 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
542
543         * X11Keyboard.cs : comment out some Console.WriteLine().
544
545 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
546
547         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
548           even if premises are not filled. Also XLookupString() was not
549           receiving correct input, which blocked precise input handling
550           on non-XIM mode.
551
552 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
553
554         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
555         type of delegate, instead of EventHandler - this was causing a type
556         cast exception in all apps handling this event.
557         Fixes #417876.
558
559 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
560
561         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
562         ShowDropDown to give the user a chance to dynamically add
563         drop down items.  [Step 1 of fixing bug #417877]
564
565 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
566
567         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
568         had any mouse motion since the call to StartDrag, to match the dnd
569         behaviour of .net.
570         Fixes part of #381876.
571
572 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
573
574         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
575         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
576         Also, if we are actually moving into a different window after
577         grabbing, generate a LeaveNotify event for the previous window, since
578         we need to fire the leave events until the grab ends, not when
579         actually moving outside of the control.
580
581 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
582
583         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
584         events only for client windows was wrong - we need to compare the
585         client window against the window receiving the EnterNotify event, not
586         against zero (since client window is never Zero, btw).
587         This prevents having unnecessary handling of EnterNotify events for
588         non-client windows when a gran begins.
589
590 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
591
592         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
593         MouseMove/MotionNotify events at all (which should only happen after
594         MouseUp/ButtonRelease, as .Net does).
595         This avoids firing an extra and unnecessary MouseMove event just after
596         every MouseDown event.
597
598 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
599
600         * LinkLabel.cs: Always clear any previous links when LinkArea
601         is set.  [Fixes bug #410709]
602
603 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
604
605         * ToolStripProfessionalRenderer.cs: Revert last change.
606         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
607         for ToolStripDropDownBackground.
608
609 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
610
611         * ToolStripProfessionalRenderer.cs: Use Window color for the 
612         background of dropdowns to match .Net when the user is not
613         using the default white.  [Fixes bug #418108]
614
615 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
616
617         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
618           it caused timer registration twice. Fixed bug #418107.
619
620 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
621
622         [Correction: This is the actual change to X11Dnd issue, not the
623         previous one, which was actually a different issue.]
624
625         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
626         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
627         when the pointer is actually in motion, but only when the pointer
628         seems to stop (as .net does).
629         Fixes part of #381876.
630
631
632 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
633
634         * ListBox.cs: Fix CopyTo implementation.
635         [Fixes bug #409169]
636
637 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
638
639         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
640         drawing a ComboBox's background.  Fixes bad disabled rendering when
641         the control is not at 0,0.
642         [Fixes bug #416063]
643
644 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
645
646         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
647         ComponentModel layer, which will properly prioritize the attributes.
648         Avoids wrong prioritization of duplicate attributes when retrieving 
649         the converter and editor.
650         [Fixes bug #417729]
651
652 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
653
654         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
655         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
656         when the pointer is actually in motion, but only when the pointer
657         seems to stop (as .net does).
658         Fixes part of #381876.
659
660 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
661
662         * GridEntry.cs: Perform stricter check for the ParentEntry's 
663         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
664         implementation.
665         [Fixes bug #417567]
666
667 2008-08-14  Geoff Norton  <gnorton@novell.com>
668
669         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
670         Fixes #396983.  Properly fix ActiveWindow trackin and do not
671         prematurely show POPUP windows.
672
673 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
674
675         * XplatUIX11.cs: Handle the obscured regions while scrolling using
676         GraphicsExpose event, processing it just after we copy the scrolled
677         area. This ensures that the next calls to ScrollWindow will copy
678         regions already updated, and the scrolling will be smooth. Also remove
679         the code that was trying to detect the obscured regions, since we are
680         not using it anymore (too slow).
681
682 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
683
684         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
685         MultiExtended mode, by separating some logic between the ctrl/shift
686         handling. Also ignore any MouseMove events generated together with
687         MouseDown events - we are only interested in the real motion event.
688         Fixes part of #414963.
689
690 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
691
692         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
693         is selected.  [Fixes bug #414143]
694
695 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
696
697         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
698         and not the parent one (the propertyowner). Fixes the behavior of 
699         GetConverter/GetEditor.
700         [Fixes bug #415452]
701
702 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
703
704         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
705         [Fixes part of bug #415452]
706
707 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
708
709         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
710         GridEntry, not the current.
711         [Fixes bug #413896]
712
713 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
714
715         * TextBoxBase.cs: De-internalize max_length field.
716         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
717         share the same logic.
718         [Fixes bug #414454]
719
720 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
721
722         * ListBox.cs: Selection changes made in the MouseDown handler should
723         use the *Core versions of selection in SelectedIndices collection,
724         since the SelectedIndexChanged/SelectedValueChanged events are fired
725         until we get a MouseUp event, and thus we need to separate the logic
726         from the events, as done in the keyboard navigation. Also, fire those
727         selection events from keyboard navigation in SelectionMode.None, even
728         if we don't have a selection, as .Net does.
729
730 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
731
732         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
733         last change introduced when an item is clicked but isn't on a toolstrip.
734
735 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
736
737         * ListBindingHelper.cs: When looking for an object's properties, check
738         if it implements ICustomTypeDescriptor, in which case we should
739         resolve the propertu based on its GetProperties method, not in its
740         actual properties. This is what .Net seems to do.
741         Fixes a UsingWebBrowser problem during initialization.
742
743 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
744
745         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
746         sitting on a MenuStrip.
747
748 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
749
750         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
751         no children with the keyboard, we need to release the keyboard capture.
752         [Fixes bug #413567]
753
754 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
755
756         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
757         no children with the keyboard, we need to release the keyboard capture.
758         [Fixes bug #413567]
759
760 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
761
762         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
763         the GTK+-based implementation of VisualStyles.
764         * ThemeWin32Classic.cs: Exposed various layout values for use in the
765         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
766         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
767         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
768         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
769         TrackBarHorizontalTrackHeight.
770
771 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
772
773         * TabControl.cs: Added hot style handling for the scroll buttons.
774         right_slider_state, left_slider_state are now of type PushButtonState to
775         allow for a hot state. Added tracking of the mouse button being held down
776         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
777         LeftScrollButtonArea.
778         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
779         TabControlGetRightScrollRect.
780
781 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
782
783         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
784         runtime errors.
785
786 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
787
788         * Form.cs: Ensure that we reset the shown_raised flag after 
789         the form is closed, so that we raise the show events the next 
790         time the form is shown.
791         [Fixes bug #413141]
792
793 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
794
795         * Form.cs: Ensure closing events are raised only once.
796         [Fixes bug #413143]
797
798 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
799
800         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
801         so that we can successfully generate the LParam in-place instead of 
802         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
803         navigation for menus.
804
805 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
806
807         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
808         'navigating'. Fixes bug #411356.
809
810 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
811
812         [Fixed remaining issues of #406773 (#1)]
813         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
814
815         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
816         MainMenu (already done) and ContextMenu creation.
817
818         * ContextMenu.cs: Create tracker on construction. 
819
820 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
821
822         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
823         possible to instantiate MenuTracker without GrabControl.
824
825 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
826
827         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
828
829         * MainMenu.cs: Set GrabControl on SetForm using current form.
830
831 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
832
833         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
834
835 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
836
837         * MenuAPI.cs: Check if menu is activated before deactivate it in 
838         ProcessShortcut.
839
840 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
841
842         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
843         ColumnStyle.cs: 
844         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
845          - One style instance can only participate in a single style collection.
846          - Styles can request their owner to layout whenever their properties 
847          change.
848          [Fixes bugs #412583 and #412582]
849
850 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
851
852         * X11Keyboard.cs: Implement the generation of the LParam for 
853         all keyboard messages.
854         [Fixes bug #378728]
855
856 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
857
858         * ListBox.cs: Don't let the user set TopIndex so high that it
859         scrolls up far enough to show empty items.
860         [Fixes bug #412728]
861
862 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
863
864         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
865         (I'm an idiot and forgot to commit the actual changes, as well as
866         specify the right file, which is this one, not ListView.cs).
867
868 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
869
870         * ListView.cs: Don't draw ListViewSubItem instances from
871         DrawListViewItem - we need to reuse the main item's drawing for the
872         first sub item in case owner draw is true, but wants the system to
873         do the default draw for the first sub item, without incurring in a
874         recursion problem.
875         Fixes #410880.
876
877 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
878
879         * ToolStripButton.cs: Update Checked for CheckOnClick before
880         raising the Click event.  [Fixes bug #412505]
881
882 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
883
884         * Form.cs: Remove some seems leftover code for non-TopLevel's 
885         CreateParams, which is breaking ClientSize sizing, because it 
886         removes the border window styles.
887
888 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
889
890         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
891         changes.
892
893 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
894
895         * WebBrowser.cs: Removed debug output.
896
897 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
898
899         * FileDialog.cs: Apply patch from Ernesto to clean up some
900         dialog messages.
901
902 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
903
904         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
905         that the change has an immediate effect.
906
907 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
908
909         * ScrollableControl.cs: Update PerformLayout calls to include 
910         provide the name of the property that changed.
911
912 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
913
914         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
915         location. Fixes drawing of border and cell borders if scrollable.
916
917 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
918
919         * ScrollableControl.cs: Perform layouting after the AutoScroll 
920         properties have changed, so that the changes have immediate 
921         effect.
922         [Fixes bug #409090]
923
924 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
925
926         * XplatUIX11.cs: Non Client area is actually Client such in the 
927         case of NotifyIcon, so double check WholeWindow == ClientWindow 
928         when adding an expose.
929         [Fixes bugs #324237 and #357022]
930
931 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
932
933         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
934         repaint the cell borders.
935
936 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
937
938         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
939         disposal to avoid unexpected ObjectDisposedExceptions.
940
941 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
942
943         * TableLayoutPanel.cs: Layout on Row/Column count change.
944
945 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
946
947         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
948         bug #409351.
949         * PictureBox.cs: When ImageLocation is set to null or an empty string,
950         only set image to null if it was previously initialized from an url
951         (or using ImageLocation). In ImageLocation, load specified image
952         asynchronously if WaitOnLoad is false. Added support for local file
953         paths to LoadAsync, and added missing argument check.
954
955 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
956
957         * DateTimePicker.cs: 
958         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
959         order to set the value as required (which means: when selection
960         changes for a part being edited, and not before that if not needed).
961         Also use an enum to describe which part are we using, and use the
962         selection as a property in PartData, in order to notify the
963         DateTimePicker owner that we need to end the current edit.
964         Fixes #383462.
965
966 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
967
968         * PropertyGridTextBox.cs: Validation should be performed only if we 
969         are focused. We can lose focus for example if the Return key is used 
970         to set the entry and there is an error. When the message box is 
971         displayed we would have validate on click in the message box.
972
973 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
974
975         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
976         in order to determine that we are expandable is wrong. There was a bug, 
977         now fixed, in TypeDescriptor that was causing the wrong converter to be 
978         returned which caused GetPropertiesSupported == false in most cases.
979         [Fixes bug #409027]
980
981 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
982
983         * ImageList.cs: Fix ICollection.CopyTo implementation for
984         ImageListCollection.  [Fixes bug #409169]
985
986 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
987
988         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
989         WorkingArea so that menus can appear on the second monitor
990         when one has dual monitors.
991
992 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
993
994         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
995         Fixes build.
996
997 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
998
999         * TextBox.cs: Implement navigation support for auto complete in
1000         TextBox, as well as refactor the code to show the auto complete window
1001         when receiving a WM_CHAR message, instead of TextChanged, since
1002         autocomplete itself should be able to set the Text a lot of times and
1003         finally only typing should show it, not changes from code.
1004
1005 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1006
1007         * TabControl.cs: When expanding the selected tab, don't adjust the
1008         width if alignment is Right, since it has a different offset than 0,
1009         as opposed to the other alignments.
1010         Fixes the selected tab not being painted at all with alignment = Right
1011         and using FillToRight size mode.
1012
1013 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
1014
1015         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
1016
1017 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
1018
1019         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
1020         values from the textbox to the boundary values.  [Fixes bug #409026]
1021
1022 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
1023
1024         * TreeNodeCollection.cs: We were copying one too many elements when
1025         doing our array copy.  Fixes a crash when RemoveAt is called.
1026         [Fixes bug #408999]
1027
1028 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1029
1030         * TabControl.cs: When doing the layout and need to call FillRow -using
1031         FillToRight size mode-, use the overload receiving a bool param
1032         indicating whether we need to do a vertical or horizontal calculation.
1033         Fixes part of #399583.
1034
1035 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1036
1037         * TextBox.cs: When painting, use the value returned by
1038         GetLastVisibleItem instead of using the cached last_item field, since
1039         there could be a desynchronization between the layout and the
1040         painting. Fixes a AOOR exception in auto complete mode.
1041
1042 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
1043
1044         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
1045         NonClientAreaEnabled until our VisualStyles is modified to allow it.
1046
1047 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
1048
1049         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
1050
1051 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1052
1053         * TextBox.cs: When focus is lost, if the auto complete listbox is
1054         visible, hide it.
1055
1056 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
1057
1058         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
1059         tracking size for tool windows.
1060         * Theme.cs, ThemeWin32Classic.cs : Extracted
1061         ManagedWindowSpacingAfterLastTitleButton.
1062
1063 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
1064
1065         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
1066         They are bit-rotted and have always been listed as "unsupported".
1067
1068 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
1069
1070         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
1071
1072 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
1073
1074         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
1075
1076 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
1077
1078         * ListBox.cs: Make sure last_item_visible gets reset before we try
1079         to do a layout due to scrollbars appearing or disappearing.
1080         [Fixes bug #408139]
1081
1082 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
1083
1084         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
1085         for different window themes.  [Fixes bug #339140]
1086
1087 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
1088
1089         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
1090         in ManagedWindowBorderWidth.
1091
1092 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
1093
1094         * InternalWindowManager.cs: Change MouseMove to take a point, so
1095         we can use the same point later on.
1096         * MdiWindowManager.cs: Store point sent to MouseMove so we can
1097         later reset to it.  On Windows, the Cursor.Position had already
1098         changed by the time we were resetting to it.
1099         [Fixes bug #363239]
1100
1101 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
1102
1103         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
1104         are inactive.
1105         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
1106         user requested it.
1107         [Fixes bug #398686]
1108
1109 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
1110
1111         * MdiWindowManager.cs: Double-clicking on the title bar should not
1112         maximize a MDI form if MaximizeBox = false.
1113
1114 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
1115
1116         * ThemeVisualStyles.cs: Fixed a warning.
1117
1118 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
1119
1120         * ThemeVisualStyles.cs: Fixed warnings and formatted.
1121
1122 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
1123
1124         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
1125         implementation produces a better result.
1126
1127 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
1128
1129         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
1130         windows.
1131
1132 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
1133
1134         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
1135         cannot be used from the ThemeEngine constructor.
1136         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
1137         Application.VisualStylesEnabled because it does not work on X11.
1138
1139 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
1140
1141         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
1142         that we did not always check for, as well as fixes to the IList
1143         implementations.  [Fixes bug #402703]
1144
1145 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
1146
1147         * IDeviceContext.cs: Added Dispose.
1148
1149 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
1150
1151         * Control.cs: Added OnSizeInitializedOrChanged.
1152         * Form.cs: OnLoadInternal: Added a call to
1153         Control.OnSizeInitializedOrChanged.
1154         * InternalWindowManager.cs:
1155          * HandleTitleBarMouseMove: No longer invalidates the parent window.
1156          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
1157          * TitleButton: Added Entered.
1158          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
1159         * MdiWindowManager.cs:
1160          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
1161          move over the maximized title buttons causes a change.
1162          * IsActive: Can now be called before the window is added to a MDI parent.
1163         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
1164         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
1165         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
1166         * ThemeWin32Classic.cs:
1167          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
1168          * DrawTitleButton takes a new form parameter.
1169          * Added ManagedWindowTitleButtonHasHotElementStyle,
1170          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
1171
1172 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
1173
1174         * ThemeEngine.cs: ThemeVisualStyles is now selected if
1175         Application.EnableVisualStyles has been called, even if the current system
1176         configuration does not support rendering with Visual Styles.
1177         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
1178         Styles should not be used.
1179
1180 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
1181
1182         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
1183         ComboBox in FormsTest.
1184
1185 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
1186
1187         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
1188         for fixed toolwindows.
1189
1190 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
1191
1192         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
1193
1194 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
1195
1196         * Control.cs: CreateControl just returns if the Control is diposed 
1197         and doesn't throw ObjectDisposedException.
1198         [Fixes bug #406566]
1199
1200 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
1201
1202         * Control.cs: Do not create the control if the parent isn't created 
1203         yet, e.g in the case of a parented form on which .Show is called.
1204         It will be created when the parent is made visible/created.
1205         Improves #402446.
1206
1207 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
1208
1209         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
1210         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
1211         [Fixes bug #406786]
1212
1213 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
1214
1215         * Form.cs: When disposed set owner to null. Improves #402446.
1216
1217 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
1218
1219         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
1220         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
1221         if not.
1222         * Form.cs: Take the Padding into account for the PreferredSize.
1223         [Fixes bug #402849]
1224
1225 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1226
1227         * TabControl.cs: Since we don't support more than one direction in
1228         TabControl rows alignment (this is, the row becomes the
1229         bottom row when selected), make Direction return always 1. This way
1230         the layout doesn't get confused about a bad calculation.
1231         Fixes #399582.
1232
1233 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
1234
1235         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
1236         so that the wparam is properly set.
1237         Fixes form moving in the test case in bug 402446.
1238
1239 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
1240
1241         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
1242         the full tree instead of nothing.  [Improves bug #406584]
1243
1244 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
1245
1246         * ThemeWin32Classic.cs: Adjusted minimized window painting.
1247
1248 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
1249
1250         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
1251         children.
1252
1253 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
1254
1255         * TreeView.cs: Add a null check when using CollapseAll on an
1256         empty tree.  [Fixes bug #406449]
1257
1258 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
1259
1260         * Form.cs: Make OnMenuComplete internal so we can call it.
1261         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
1262         [Fixes bug #399321]
1263
1264 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
1265
1266         * TabControl.cs: Handle Up and Down keys when TabControl is in
1267         vertical alignment.
1268         [Fixes bug #399585]
1269
1270 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
1271
1272         * TabControl.cs: Invalidate when we remove a tab.  Guard against
1273         an AOORE when trying to remove a tabpage that is not owned by the
1274         parent control.
1275         [Fixes bug #399927]
1276
1277 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
1278
1279         * ScrollBar.cs: Change the LargeChange calculation to be correct.
1280         Ensure we are using LargeChange instead of large_change so we our
1281         calculations are correct.
1282         [Fixes bug #403122]
1283
1284 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
1285
1286         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
1287         we need to ensure the ColumnCount/RowCount gets set.
1288         [Fixes bug #404851]
1289
1290 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1291
1292         * ListBox.cs: When handling item navigation, if selection mode is
1293         None, call EnsureVisible, since scrolling is normally handled by
1294         selection, that we are not calling in this case.
1295         Fixes #398345.
1296
1297 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
1298
1299         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
1300         a null check to our focus walking code.  [Fixes bug #394332]
1301
1302 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
1303
1304         * ComboBox.cs: Case missed in bug 379596 "Support item
1305         navigation by entering text": On _close_ drop-down select
1306         the first item matching the text in the textbox.  [Fixes bug #397265]
1307
1308 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
1309
1310         * DataGridView.cs: Fix a crash when sorting by column headers, 
1311         mentioned in bug #404841.  Remove some dead switch cases.
1312
1313 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1314
1315         * ComboBox.cs:
1316         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
1317         uses the AutoComplete support in the internal TextBox. Also TextBox
1318         can store a reference to ComboBox, in case AutoCompleteSource is set
1319         to ListItems (this is, ComboBox's items, and we don't want to pass an
1320         additional collection).
1321
1322 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1323
1324         * ListViewItem.cs: Restore the initial value of bounds rect to
1325         Rectangle.Empty, and is this value for Layout detection in virtual
1326         mode. Fixes the tests.
1327
1328 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
1329
1330         * XPlatUI.cs: Remove references to "new" X11 backend.
1331
1332 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
1333
1334         * Control.cs: Add an internal virtual OnDragDropEnd method 
1335         to allow controls such as ListBox, which depend on a sequence 
1336         of MouseDown+Move+End events, to handle the lack of a MouseUp 
1337         when a DnD operation is started in MouseDown.
1338         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
1339         get a MouseUp, so reset our state whenever a DnD operation ends.
1340
1341 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
1342
1343         * PropertyGrid.cs: Clear the root griditem first thing when 
1344         new object/s is/are selected. Fixes some rare cases where 
1345         the View will get a paint request and won't know that the 
1346         grid is in the process of repopulating.
1347
1348 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
1349
1350         * XplatUIX11.cs, InternalWindowManager.cs: 
1351         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
1352         doesn't automagically update the FormBorderStyle, so we must 
1353         double check the CreateParams explicitly to determine if the 
1354         window is a toolwindow.
1355         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
1356         instead of doing custom checks.
1357
1358         Fixes toolwindows for the test case in bug #402446
1359
1360 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
1361
1362         * Control.cs: Visibility of the control should be false 
1363         when the handle is destroyed in WmDestroy and not immediately 
1364         in Dispose(). This is effectively where the disposing process 
1365         ends even though the control is marked as Disposed immediately 
1366         after calling Dispose().
1367         [Fixes bug #402446]
1368
1369 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
1370
1371         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
1372         when the textbox gets focus.
1373         [Fixes bug #402704]
1374
1375 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
1376
1377         * PropertyGridTextBox.cs, PropertyGridView.cs: 
1378          - Alt + Down should show the drop down editor.
1379          - Focus the editor when showing it
1380         [Fixes bug #402710]
1381
1382 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
1383
1384         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
1385         that are not the first panel.
1386         * StatusBar.cs: Ensure that the X coordinate of panels is always
1387         stored.  Fix IList implementation of StatusBarPanelCollection to
1388         call the regular methods.
1389         [Fixes bug #403599, #402165]
1390
1391 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
1392
1393         * ThemeWin32Classic.cs: Fix position calculation for centered
1394         text on status bar panels.  [Fixes bug #402165]
1395
1396 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
1397
1398         * Splitter.cs: Fix Splitter to:
1399          - Work for arbitrary splitter size
1400          - Handle MinSize and MinExtra properly
1401          - Get rid of absolute positioning during drag and use relative
1402          - Multiple other fixes 
1403          [Fixes bug #338966]
1404
1405 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
1406
1407         * Cursor.cs: Show shouldn't hide the cursor.
1408
1409 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1410
1411         * ListViewItem.cs: When invalidating, add some extra space to bounds,
1412         since focus rectangle and selection can add some space and need to
1413         take into account those small offsets - specially in Details view.
1414         * ListView.cs: Instead of invalidate using item Bounds directly, call
1415         item.Invalidate, to have the code centralized.
1416         Fixes focused/selection garbage when selecting and deselecting items
1417         that are close.
1418
1419 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1420
1421         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
1422         mode we can check whether we have to force a Layout or not, and can
1423         cache based on this, instead of avoiding caching all the the time. Do
1424         this check in GetBounds and TextBounds.
1425         Fixes selection in Details view.
1426
1427 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1428
1429         * ListView.cs: Make HeaderControl internal, thus the theme engine can
1430         get its *real* height instead of trying to infere it.
1431         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
1432         get the position of them, since it's in general a bad idea in general,
1433         and because we can't do that in virtual mode. Instead get the first
1434         visible item as well as item height, and draw them.
1435         Fixes #400390.
1436
1437 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
1438
1439         * ToolStripSplitButton.cs: We can't add in extra width if
1440         the button is not AutoSize.  [Fixes bug #401279]
1441
1442 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
1443
1444         * PaddingConverter.cs: 
1445          - Implement conversion to InstanceDescriptor
1446          - Handle "All" in CreateInstance by using the supplied 
1447          ITypeDescriptorContext.
1448          [Fixes bugs #396076 and #396078]
1449
1450          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
1451          Code contributed under MIT/X11 license.
1452
1453 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
1454
1455         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
1456         ButtonBase.cs:
1457         Add Category attributes.
1458         Code is contributed under the MIT/X11 license.
1459
1460 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
1461
1462         * Form.cs: 
1463          - Fix a NRE when unparenting a form.
1464          - Do not recreate or destroy a parented form when 
1465         unparenting. 
1466
1467 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1468
1469         * TextBox.cs: Implement basic support for AutComplete with custom
1470         sources.
1471
1472 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
1473
1474         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
1475         DropDownButtonBounds should be from the origin of the button, not the
1476         ToolStrip.  [Fixes bug #401279]
1477
1478 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
1479
1480         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
1481           running gtk_init_check.  This prevents GAIL from loading
1482           unnecessarily, which was breaking UIA support.  Initial fix for bug
1483           #375987.
1484         * Application.cs: Add UIA support to Winforms.  New static constructor
1485           uses reflection to initialize UIAutomationWinforms assembly.  Added
1486           PreRun event so UIA can initialize before the mainloop starts, and
1487           FormAdded event so UIA can provide a11y support for new Forms in an
1488           Application.
1489
1490 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
1491
1492         * DataGridView.cs: When binding to a dataset, subscribe to table
1493         and column change events.  Unsubscribe to these when we clear bindings.
1494         [Fixes bug #399601]
1495
1496 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
1497
1498         [DataGrid drawing refactory]
1499
1500         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
1501
1502         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
1503         must be handle by Theme, now it call DataGridPaintColumnHeader.
1504
1505         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
1506         test cases must be also fixed because it checks for wrong size.
1507
1508         * ThemeWin32Classic.cs: 
1509                 - Draw the bottom line of grid caption.
1510                 - Prevent to draw caption text when it is empty.
1511                 - Use CPDrawBorder3D for 3D efects to simplify code.
1512                 - Uses 3D (when not flat) to paint corner shared between row and column
1513                 header.
1514                 - Fix header drawing issues on win32, now borders are drawing.
1515                 - Fix column header paint issues to mimic win32.
1516                 - Adjust header drawing for last column, like first one it must be draw
1517                 different.
1518                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
1519                 not an character.
1520                 - DataGridPaintColumnHeader created to draw column headers, it also
1521                 paint stuff right on Win32.
1522                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
1523                 class.
1524
1525         * Theme.cs: 
1526                 - DataGridPaintRowHeaderStar method added.
1527                 - DataGridPaintColumnHeader method added.
1528
1529 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
1530
1531         * Control.cs: Don't reset to Dock style layout if DockStyle is
1532         set to none.  [Fixes bug #399316]
1533
1534 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
1535
1536         * Win32DnD.cs: Fix the check for control not equal null.
1537         Fixes bug #341420 and #381886. 
1538
1539 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
1540
1541         * DataGridViewRowCollection.cs: Update the indexes of rows after
1542         one has been removed.
1543         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
1544         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
1545         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
1546         rows for the Rows collection, or deleting rows from the bound DataSet.
1547
1548 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
1549
1550         * DataGridView.cs: Listen to a DataSet's changed event even
1551         when autogeneratecolumns is false.  Refactor the changed event's
1552         add row code to use the same as the existing add row code.
1553         [Fixes bug #399601]
1554
1555 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
1556
1557         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
1558         much any time the caret moves and there is text, not just when
1559         the selection changes as one would think.
1560         * RichTextBox.cs: Override RaiseSelectionChanged and fire
1561         SelectionChanged.
1562         [Fixes bug #397271]
1563
1564 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
1565
1566         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
1567         instead of trying to duplicate the code.
1568         * ListBox.cs: Make method internal so we can send keyboard events.
1569         [Fixes bug #398344]
1570         
1571 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
1572
1573         * TextBoxBase.cs: When pasting and checking the max length,
1574         subtract the selected text length (the text we will be replacing) from
1575         the document length.
1576         * TextControl.cs: Ensure every character insertion is reflected in
1577         charcount, so max length will work properly.
1578         [Fixes bug #398605]
1579
1580 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
1581
1582         * ListBox.cs: Ensure scrollbars are updated when a single
1583         column listbox with an already set top-index is created.
1584         [Fixes bug #398342]
1585
1586 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
1587
1588         * FontDialog.cs: Typing in the font/style textboxes should search
1589         the list boxes case-insensitively.  [Fixes bug #398343]
1590
1591 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
1592
1593         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
1594         widths of icon and buttons instead of hard coded values.
1595
1596 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1597
1598         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
1599         as well as generating a SelectedIndexChanged event, just like .Net does
1600         -surprise-.
1601         Fixes #398345.
1602
1603 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1604
1605         * ListBox.cs: When navigating items visually, use FocusedItem as the
1606         reference point instead of SelectedIndex, since even in
1607         SelectionMode.None we need to support navigation, and in that case we
1608         just can't use SelectedIndex.
1609         Fixes part of #398345.
1610
1611 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
1612
1613         * Control.cs: Make a SetBoundsInternal that avoids the new
1614         SetBounds code.
1615         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
1616         SetBoundsInternal instead of SetBoundsCoreInternal.
1617
1618 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
1619
1620         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
1621         SetBounds for the scrollbars.
1622
1623 2008-06-10  Andreia Gaita <avidigal@novell.com> 
1624
1625         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
1626           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
1627           OnMouseMove, OnMouseOver, OnMouseUp
1628         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
1629           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
1630         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
1631           to the WebControl object to pass to new collection objects
1632         * HtmlHistory.cs: Implement support for individual window histories.
1633         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
1634           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
1635           GotFocus, LostFocus, OnLoad, OnUnload
1636         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
1637           ContextMenu
1638         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
1639           security level changes and context menu event support.
1640
1641 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1642
1643         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
1644         as happens with Esc, patch my Andy Hume.
1645         Fixes #396294.
1646
1647 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
1648
1649         * MdiWindowManager.cs: DrawMaximizedButtons now uses
1650         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
1651         * Theme.cs: Made MenuButtonSize platform dependent. Added
1652         ManagedWindowButtonSize.
1653         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
1654         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
1655
1656 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
1657
1658         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
1659         Added support for rendering with VisualStyles.
1660
1661 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
1662
1663         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
1664         support for rendering the border with VisualStyles.
1665
1666 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
1667
1668         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
1669         the icon is not shown.
1670         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
1671         its own logic.
1672
1673 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
1674
1675         * InternalWindowManager.cs: Draw minimized windows even if they don't have
1676         borders.
1677
1678 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
1679
1680         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
1681
1682 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
1683
1684         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
1685         [Fixes bug #397943]
1686
1687 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1688
1689         * ComboBox.cs: When snaping height -because of IntegralHeight set to
1690         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
1691         if the requested height leaves the listbox area with *less* than the
1692         required are to see one item. We were setting it to PreferredHeight
1693         even for values matching the height for a single item.
1694         Fixes #396297.
1695
1696 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
1697
1698         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
1699
1700 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
1701
1702         * DataGridViewCell.cs: Use property instead of field.
1703
1704 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
1705
1706         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
1707         null checks.
1708
1709 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
1710
1711         * Theme.cs: Added #region around the managed window code. Made the managed
1712         window methods abstract.
1713         * ThemeWin32Classic.cs: Added #region around the managed window code.
1714
1715 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
1716
1717         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
1718         if it has borders.
1719         * ThemeWin32Classic.cs: Removed HasBorders checks in
1720         DrawManagedWindowDecorations.
1721
1722 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
1723
1724         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
1725         Extracted ManagedWindowGetTitleBarIconArea.
1726
1727 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
1728
1729         * DataGridViewCellStyle.cs: Don't clone the font.
1730
1731 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
1732
1733         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
1734
1735 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1736
1737         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
1738         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
1739         in 64 bit machines.
1740
1741 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
1742
1743         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
1744         Use Format/FormatProvider before trying converters.
1745         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
1746         are 'set'.  Change constructor to not use ApplyStyle since it wants
1747         everything applied.  Clone the Font.
1748         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
1749         ApplyStyle the rest.
1750
1751 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1752
1753         * ListView.cs: We need to calculate the scrollbars even if the handle
1754         hasn't been created - this is needed when methods using scrollbars
1755         info, such EnsureVisible, are called before control has been created.
1756         Fixes #397272.
1757
1758 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
1759
1760         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
1761         only if the elements are defined. 
1762
1763 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1764
1765         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
1766         section. Also, when setting bounds, snap height as well as save the
1767         requested height if Dock has any value affecting the height: Left,
1768         Right and Bottom - important if using IntegralHeight as true.
1769
1770 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1771
1772         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
1773         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
1774         instead of doing that only in our SetBoundsCore override, since the 
1775         bounds cached can be the same as saved one and we could not get the
1776         new height applied.
1777         Fixes #396297.
1778
1779 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
1780
1781         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
1782         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
1783         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
1784         ToolWindowCaptionButtonSize.
1785         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
1786
1787 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
1788
1789         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
1790         hard coded values.
1791         * Theme.cs: Made DoubleClickTime plaform dependent.
1792
1793 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
1794
1795         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
1796         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
1797         ToolWindowCaptionHeight.
1798
1799 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
1800
1801         * InternalWindowManager.cs: The adjustment to ensure positive client area
1802         sizes is now platform dependent (disabled on Windows).
1803         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
1804         RequiresPositiveClientAreaSize.
1805
1806 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
1807
1808         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
1809
1810 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
1811
1812         * InternalWindowManager.cs: Changed IconicSize to use
1813         SystemInformation.MinimizedWindowSize.
1814         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
1815         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
1816
1817 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1818
1819         * ComboBox.cs: If the combobox is anchored both on top and bottom,
1820         adjust height if IntegralHeight is true when calling SetBoundsCore (as
1821         likely the height was modified even if Height wasn't specified in
1822         BoundsSpecified parameter).
1823         Fixes part of #396297.
1824
1825 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
1826
1827         * InternalWindowsManager.cs: Changed minimum window size while resizing to
1828         SystemInformation.MinWindowTrackSize.
1829         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
1830         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
1831
1832 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
1833
1834         * MenuItem.cs: Fixed Dispose.
1835
1836 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
1837
1838         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
1839         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
1840         EnteredHeaderCell, PressedHeaderCell: Added.
1841         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
1842         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
1843         theme a chance to override default painting.
1844         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
1845         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
1846         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
1847         ListView and DataGridView header rendering.
1848         
1849 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
1850
1851         * RichTextBox.cs: GetPositionFromCharIndex should return the 
1852         visual position of the character relative to the viewport.
1853         [Fixes part of bug #396664]
1854
1855 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
1856
1857         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
1858         and not just for the existance of an UITypeEditor. In some cases 
1859         there is an editor associated just to do PaintValue, but which 
1860         doesn't actually support editing.
1861         [Fixes bug #396632]
1862
1863 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1864
1865         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
1866         if needed, instead of 0 - this should help us in the corner case where
1867         we have more than one item but we are only partially showing 1 item.
1868         Fixes part of #374713.
1869
1870 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1871
1872         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
1873         control, return immediately if the any parent control's handle hasn't
1874         been created or isn't visible, as well as avoiding creating the parent
1875         Form if the handle hasn't been previously created.
1876         Fixes tests.
1877
1878 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
1879
1880         * TableLayoutPanel.cs: Use border sizes when calculating the
1881         panel's preferred size.  [Fixes part of bug #396433]
1882
1883 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
1884
1885         * SplitContainer.cs:
1886          - Fix SplitterDistance to update only if needed. 
1887          - Make it force min and max validation.
1888          - Handle properly mouse moves outside the resizeable area.
1889          [Fixes bug #396232]
1890
1891 2008-06-02  Andreia Gaita <avidigal@novell.com> 
1892
1893         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
1894           (which also suppresses all popup dialogs). Throw NotSupported
1895           exceptions for activex getters/setters.
1896         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
1897           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
1898           StatusText, Version, GoSearch
1899         * HtmlDocument.cs: Add DocType support
1900
1901 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
1902
1903         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
1904         [Fixes bug 396124]
1905
1906 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
1907
1908         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
1909
1910 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
1911
1912         * TableLayoutPanel.cs: When calculating preferred size, use the
1913         actual number of columns and rows, not what the user set them to.
1914         [Fixes bug #396141]
1915
1916 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
1917
1918         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
1919         394311.
1920
1921 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1922
1923         * XplatUIX11.cs: When detecting areas obscured in a control by other
1924         toplevel windows while scrolling, return if the control hasn't a 
1925         container form.
1926         Fixes some tests.
1927
1928 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1929
1930         * XplatUIX11.cs: Properly detect the visible area of a control being
1931         scrolled (obscured by other winforms controls and any X toplevel
1932         windows), to mark as invalid the requested area to be scrolled that
1933         isn't visible and thus can't be copied.
1934         Fixes #324513.
1935
1936 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1937
1938         * ListBox.cs: Compute the precise amount to vertically scroll when
1939         using DrawMode.OwnerDrawVariable.
1940         Patch by jkeymer (j.keymer@gmx.net).
1941
1942 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1943
1944         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
1945         to avoid setting an invalid value for the verticall scrollbar 
1946         when navigating items. And, duh, also remove my silly debug messages
1947         from previous commits.
1948         Fixes #374713.
1949
1950 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
1951
1952         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
1953         make it MS compatible.
1954
1955 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
1956
1957         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
1958          - Allow the editing of entries even if their parent is read-only.
1959          - Do not render expandable properties read-only.
1960          - Refactor expansion checks form PropertyGrid into PropertyGrid.
1961
1962 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
1963
1964         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
1965         support for the hover style.
1966
1967 2008-05-29  Andreia Gaita <avidigal@novell.com> 
1968
1969         * ContainerControl.cs: Check for null dead-end when traversing the tree
1970           of parent controls.
1971         
1972           [Fixes #394332, patch by Ernesto Carrea]
1973
1974 2008-05-29  Geoff Norton  <gnorton@novell.com>
1975
1976         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
1977         constant that it is.  Fixes #393981
1978
1979 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
1980
1981         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
1982         that the user probably doesn't want to set this.
1983
1984 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
1985
1986         * ThemeWin32Classic.cs: Don't let the text size be bigger than
1987         the control size for CheckBox/RadioBox.
1988         [Fixes part of bug #394645]
1989
1990 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
1991
1992         * PropertyGrid.cs: Update the state of the sorting buttons in 
1993         the toolbar if PropertySort is set programatically.
1994
1995 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
1996
1997         * GridItemCollection.cs: Add multiple items with conflicting names 
1998         support and also preserve name ordering.
1999         [Fixes #395345]
2000
2001 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
2002
2003         * GridItemCollection.cs: Revert my multiple items with same 
2004         name patch.
2005
2006 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2007
2008         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
2009         or middle ones.
2010         Fixes part of #393908.
2011
2012 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
2013
2014         * ToolStripDrowDown.cs: When using the Show () methods that have a
2015         Control parameter, set the menu owner to that Control.
2016         [Fixes bug #394345]
2017
2018 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
2019
2020         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
2021         [Fixes bug #362756]
2022
2023 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
2024
2025         * GridItemCollection.cs: Refactor to support multiple items with the 
2026         same name.
2027         [Fixes bug #394314]
2028
2029 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
2030
2031         * Control.cs: The 2.0 check for illegal cross thread calls in 
2032         Control.Handle were throwing an exception when we were getting
2033         the Handle in order to invoke correctly.  Created a private
2034         version that does not contain this check.
2035         [Fixes bug #394531]
2036
2037 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
2038
2039         * PropertyGrid.cs: Respect DefaultTabType.
2040
2041 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
2042
2043         * ListView.cs: SPACE selects an item.
2044         [Fixes bug #393023]
2045
2046 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
2047
2048         * ListView.cs: Reset the search string whenever the items are 
2049         modified.
2050         [Fixes bug #393020]
2051
2052 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2053
2054         * ListControl.cs: For the first added item PositionChanged is fired
2055         _before_ ItemChanged, which leave us in a temporary invalid state - so
2056         we need to set the selected index from ItemChanged handler *if* we
2057         know that the first item has just been added *and* the items have been
2058         actually added to the ListControl.
2059         Fixes #369048.
2060
2061 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2062
2063         * TabControl.cs: Only clicks with the left button should be
2064         handled.
2065         Fixes #393908.
2066
2067 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2068
2069         * ComboBox.cs: 
2070         * FIleDialog.cs:
2071         * TextBox.cs: Expose an internal method in TextBox to restore the
2072         original context menu, and call it from ComboBox to re-use it in the
2073         combobox containing the file name in FileDialog.cs.
2074         Fixes part of #393775.
2075
2076 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
2077
2078         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
2079         style.
2080
2081 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
2082
2083         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
2084         down button style.
2085
2086 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2087
2088         * ComboBox.cs: Minor correction to previous patch: PageDown should
2089         also *try* to move by one item if the computed offset is negative,
2090         just like the PageUp case.
2091
2092 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2093
2094         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
2095         should be done for at least 1 item, and not stay at the same item.
2096         Fixes part of #374713.
2097
2098 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
2099
2100         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
2101         directories.  [Fixes bug #393931]
2102
2103 2008-05-22  Andreia Gaita <avidigal@novell.com> 
2104
2105         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
2106           Don't fire events until the initial about:blank page has finished
2107           loading. Clean up events.
2108
2109 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
2110
2111         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
2112           FocusIn() too. This should fix the issue on switching
2113           scim keyboards.
2114
2115 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
2116
2117         * X11Keyboard.cs : set XIM font size to somewhat reasonable
2118           number (ideally the input textbox size, but that could be
2119           too messy).
2120
2121 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
2122
2123         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
2124         the ToolStripItem's TextChanged.  [Fixes bug #393597]
2125
2126 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2127
2128         * TabControl.cs: When invalidating in SelectedIndex and we need to
2129         inflate to take into account the border of the tabs, make sure that
2130         the invalidated rect doesn't overflow the control bounds, since that
2131         would avoid updating at all.
2132
2133 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2134
2135         * TabControl.cs: Don't substract scroller width from the row width,
2136         since we need to take into account the total width of the control when
2137         calculating the position of the tabs. This avoids showing scroller
2138         when it is actually not needed.
2139         Fixes part of #322325.
2140
2141 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2142
2143         * ThemeVisualStyles.cs: Added support for TextBoxBase.
2144
2145 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2146
2147         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
2148         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
2149
2150 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
2151
2152         * DataGridView.cs: Only paint the top left header cell if there
2153         are columns.
2154
2155 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
2156
2157         * DataGridView.cs: When binding to a BindingSource, get the underlying
2158         list to bind to.  [Fixes bug #345483]
2159
2160 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
2161
2162         * DataGridView.cs: Do not bind to collection properties.
2163         [Fixes bug #337470]
2164
2165 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2166
2167         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
2168
2169 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2170
2171         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
2172         thumb style.
2173
2174 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2175
2176         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
2177
2178 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2179
2180         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
2181         background.
2182
2183 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2184
2185         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
2186
2187 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2188
2189         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
2190         checked styles.
2191
2192 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2193
2194         * TabControl.cs: Extended to handle the hot style.
2195
2196 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2197
2198         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
2199         Extended UpDownBase code to handle hot and disabled styles.
2200
2201 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
2202
2203         * DataGridView.cs: Handle databinding to generic list type things.
2204         [Fixes bug #325239]
2205
2206 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
2207
2208         * DataGridViewCellCollection.cs: Add a method to find the cell
2209         with the given DataPropertyName.
2210         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
2211         * DataGridViewColumnCollection.cs: Add a method to clear all
2212         autogenerated columns.
2213         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
2214         columns.
2215         [Fixes bug #348082]
2216
2217 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
2218
2219         * DataGridView.cs: Don't try to update the RowTemplate with
2220         a null CellTemplate.
2221
2222 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
2223
2224         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
2225         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
2226         * DataGridView.cs: Lots of fixes/enhancements to databinding to
2227         a DataSet.
2228
2229 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
2230
2231         * Control.cs: Remove invalidating implicit child controls when
2232         control is invalidated.  It was causing too many redraws on
2233         controls with implicit scrollbars.
2234         * ListView.cs: Listen to the Invalidated event and invalidate
2235         child controls.
2236
2237 2008-05-20  Andreia Gaita <avidigal@novell.com> 
2238
2239         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
2240         * HtmlDocument.cs: Check for nulls
2241
2242 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2243
2244         * Control.cs: In ControlCollection.RemoveInternal, remove the
2245         internal control before calling PerformLayout and OnControlRemoved,
2246         which was leaving us in an invalid state and causing a X error (bad
2247         match). Observe that Remove () call has the same order.
2248         Fixes an X error changing ComboBoxStyle.DropDownStyle.
2249
2250 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2251
2252         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
2253         being fired if ControlStyles.UserPaint style is activated.
2254         Fixes #371905.
2255
2256 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
2257
2258         * GridEntry.cs: Don't be so strict when setting the value - 
2259         do not check if what we set is what we get.
2260         [Fixes bug #389245]
2261
2262 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
2263
2264         * XplatUIX11.cs: If there are no timers timeout should be 0
2265         [Fixes bug #363522]
2266
2267 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
2268
2269         * Control.cs: As a followup to invalidating implicit children when
2270         a control is invalidated, only invalidate them if they are in the
2271         clip rectangle.
2272
2273 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2274
2275         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
2276
2277 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2278
2279         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
2280
2281 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2282
2283         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
2284         * XplatUIWin32.cs: Made Win32DeleteObject public.
2285
2286 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
2287
2288         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
2289         PropertyDescriptor.ShouldSerializeValue.
2290         [Fixes bug #391924]
2291
2292 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2293
2294         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
2295         in the classic theme.
2296
2297 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2298
2299         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
2300         ThumbPressed.
2301         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
2302         ScrollBarHasPressedThumbStyle.
2303
2304 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2305
2306         * TextRenderer.cs: Included some methods in the 1.1 profile.
2307
2308 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
2309
2310         * Control.cs: When we make a control visible, it may have been
2311         previously visible and while it wasn't visible, the z-order of
2312         things may have been shuffled, so the control needs to have its
2313         z-order updated just in case.  [Fixes bug #391518]
2314
2315 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2316
2317         * ThemeVisualStyles.cs: Added support for GroupBox.
2318
2319 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2320
2321         * GroupBoxRenderer.cs: Included in the 1.1 profile.
2322
2323 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
2324
2325         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
2326           bug #389996; XSelectInput() behaved as mouse handler robber,
2327           so remove extra call to it.
2328
2329 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
2330
2331         * Control.cs: Simplify ControlCollection.Contains method.
2332
2333 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
2334
2335         * DataGridViewRow.cs: Implement GetPreferredSize.
2336
2337 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
2338
2339         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
2340
2341 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
2342
2343         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
2344         painting and edit control fixes.
2345
2346 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
2347
2348         * DataGridView.cs, DataGridViewCell.cs: Work around some external
2349         checks to make sure we are in an actual row/col for top left header cell.
2350         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
2351
2352 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
2353
2354         * Control.cs: Use long instead of int when handling WParam from
2355         mousewheel scrolling.  Int was overflowing on Win64.
2356
2357 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
2358
2359         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
2360         flow panel without scrolling first, and then calculate the 
2361         scrolling based on the new layout.  [Fixes bug #390149]
2362
2363 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
2364
2365         * ListBox.cs: Invalidate after scrolling up when selected index
2366         changes.  [Fixes bug #390151]
2367
2368 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2369
2370         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
2371         set, default height to 150. I tried first with DefaultSize, but this
2372         is not generating a SetBoundsCore call before handle creation time, so
2373         we can take it into account. This is just what .net does.
2374
2375 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
2376
2377         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
2378         as it broke some stuff.  Calberto is filing a bug for eno to
2379         work with.
2380
2381 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2382
2383         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
2384         to 0 is the current value is -1, and if style is not Simple, just
2385         return, like .net does.
2386         Fixes part of #374713.
2387
2388 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
2389
2390         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
2391         progress bar stuffs, use doubles instead of ints to prevent
2392         overflow.  [Fixes bug #389798]
2393
2394 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
2395
2396         * XplatUIX11.cs, X11Keyboard.cs :
2397           Significant refactoring on XIM support. Now IM engine UI
2398           should show up, at mostly-correct preedit position.
2399           - Eliminated use of FocusWindow, as it is never mapped
2400             and hence blocks correct preedit position. XIC is now
2401             created per window, and it must be destroyed too when
2402             the window is destroyed.
2403           - WM_QUIT messages should not be filtered even when hwnd
2404             is zombie. Filtering it could cause endless loop.
2405           - Preedit position must move only when the window is alive.
2406           - Make it IDisposable and make sure to release XIM/XICs.
2407
2408 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
2409
2410         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
2411           XplatUIX11.cs, XplatUIWin32.cs :
2412           fix for bug #325033 and #387693;
2413           - WM_QUIT should not be sent when no running application
2414             exists.
2415           - SetTimer/KillTimer (especially on win32) should be
2416             invoked for the window that the timer is/will_be attached.
2417           - There could be unattached timers to a window when it's
2418             started. For those timers, hold pending timers and when
2419             a window is mapped, attach them to it.
2420           - WaitForHwndMessage() could run into loop when
2421             WM_SHOWWINDOW is handled before this method is called.
2422             So, strictly check wm_showwindow state.
2423           - Tick handler should not be invoked while one Tick handler
2424             call is still running (introduced Busy state).
2425
2426 2008-05-13  Andreia Gaita <avidigal@novell.com> 
2427
2428         * WebBrowserBase.cs: Override Internal alternative methods for
2429           SetBoundsCore and OnResize instead of the protected ones.
2430         * Control.cs: Move SetBoundsCore and OnResize implementations to
2431           SetBoundsCoreInternal and OnResizeInternal, so they can be
2432           overriden internally (WebBrowserBase needs to catch them but can't
2433           override the protected methods without api compat problems)
2434
2435 2008-05-13  Andreia Gaita <avidigal@novell.com> 
2436
2437         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
2438
2439 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2440
2441         * Binding.cs:
2442         * ListView.cs: Remove debug messages.
2443
2444 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2445
2446         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
2447         area is empty. Also calculate scrollbars in Simple mode based in area
2448         height and total number of items, not in MaxDropDownItems.
2449         Fixes part of #371991.
2450
2451 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2452
2453         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
2454
2455 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2456
2457         * BindingSource.cs: GetListSortDescription is not public.
2458
2459 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2460
2461         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
2462
2463 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2464
2465         * HtmlElement.cs: Fix parameter names to match MS.
2466         * HtmlWindowCollection.cs: Should not be sealed.
2467
2468 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2469
2470         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
2471         button, because the thumb button will not get drawn if the scrollbar
2472         is disabled.  [Fixes bug #389262]
2473
2474 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2475
2476         * ListBox.cs: Handle End key for multi-column listboxen.
2477         [Fixes bug #389266]
2478
2479 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2480
2481         * ListBox.cs: Fix algorithm to determine which column our item is in.
2482         [Fixes bug #389265]
2483
2484 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2485
2486         * ListBox.cs: Invalidate when the listbox is resized.
2487         [Fixes bug #389256]
2488
2489 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2490
2491         * ListBox.cs: There is always at least one row in the ListBox (if
2492         we are doing these calculations.)  [Fixes bug #389253]
2493
2494 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2495
2496         * ListBox.cs: There is always at least one column in the ListBox.
2497         [Fixes bug #389250]
2498
2499 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2500
2501         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
2502         ensure in Simple mode that the height is exactly the requested one.
2503         Also add the ComboBoxListControl to the controls collection in Simple
2504         mode even if handle hasn't been created.
2505         Fixes part of #371991.
2506
2507 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2508
2509         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
2510         our ComboBox owner instead of giving it back to the previous control (
2511         as done in other controls). Also remove the empty override of Select
2512         method, since we want to be selected *and* give focus to our owner.
2513         This should let the user do keys-navigation in Simple mode. 
2514
2515 2008-05-10  Geoff Norton  <gnorton@novell.com>
2516
2517         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
2518         problems with rapid scrolling of treeviews. Fixes #381084
2519
2520 2008-05-10  Geoff Norton  <gnorton@novell.com>
2521
2522         * XplatUICarbon.cs: Deactivate the active window before
2523         activating the desired window.  Completes fixing #386504
2524
2525 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2526
2527         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
2528         SmallChange to the item size width plus the padding, to match .net.
2529
2530 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2531
2532         * FileDialog.cs: Apply the custom filter typed by the user in the file
2533         name combobox as much as possible while navigating in the file dialog.
2534         Fixes #385261.
2535
2536 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2537
2538         * Binding.cs: Actually use NullValue if the retrieved value of
2539         data source is null or DBNull. Makes a test pass.
2540
2541 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
2542
2543         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
2544         * MimeIcon.cs: Provide a way to get icons from resources.
2545
2546 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2547
2548         * Binding.cs: When the value retrieved from the control to be assigned
2549         to the data source is null, actually use the 2.0 DataSourceNullValue
2550         value. Make pass a data binding test.
2551
2552 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
2553
2554         * Control.cs: We need to invalidate implicit children even when
2555         invalidate is called with invalidatechildren = false.  (Implicit
2556         children are really part of the parent.)
2557         * ListView.cs: Double-buffer internal child controls for less
2558         flicker.
2559         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
2560         owner ListView subitems for greatly increased performance.
2561         [Fixes bug #388477]
2562
2563 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
2564
2565         * FileDialog.cs: When the user types a wildcard character in the
2566         filename combobox, update the contents of the folder using the text as
2567         a filter.
2568         Fixes part of #385261.
2569
2570 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
2571
2572         * ListBox.cs: Various fixes for MultiColumn listboxen.
2573         [Fixes bug #388114]
2574
2575 2008-05-08  Andreia Gaita <avidigal@novell.com> 
2576
2577         * HtmlElement.cs: Implement Style property
2578
2579 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
2580
2581         * ListBox.cs: Respect checkboxes when measuring item size.
2582         * ThemeWin32Classis.cs: When drawing list items, don't draw
2583         text outside of the item's bounds to prevent overlapping.
2584         (.Net actually overlaps, but that's just silly.)
2585         [Fixes bug #388117]
2586
2587 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
2588
2589         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
2590         Gert Driesen. Fixes bug #324830. 
2591
2592 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
2593
2594         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
2595         method implemented.
2596
2597 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2598
2599         * BindingSource.cs: When calling IsSynchronized, return the value of
2600         the related IList list.
2601
2602 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2603
2604         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
2605         make a test pass.
2606
2607 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
2608
2609         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
2610         navigation to scroll the grid if the current cell is not visible.
2611
2612 2008-05-07  Andreia Gaita <avidigal@novell.com> 
2613
2614         * HtmlElement.cs: Implement TabIndex
2615
2616 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
2617
2618         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
2619         properties, even when there are no items.
2620         [Fixes bug #387611]
2621
2622 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
2623
2624         * NativeWindow.cs: Add support for multiple handles per window.
2625         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
2626         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
2627         directly - use FromHandle instead.
2628         [Fixes bug #374660]
2629
2630 2008-05-07  Andreia Gaita <avidigal@novell.com> 
2631
2632         * HtmlElement.cs: Implement InnerHTML setter
2633
2634 2008-05-07  Andreia Gaita <avidigal@novell.com> 
2635
2636         * HtmlDocument.cs: Implement Focused
2637
2638 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2639
2640         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
2641         methods, as well as add messages to the exceptions.
2642
2643 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2644
2645         * BindingSource.cs: Setting DataSource should only reset DataMember if
2646         the previous value was null (make pass a not working test).
2647
2648 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2649
2650         * BindingSource.cs: When EndInit call is postponed and is called until
2651         DataSource.EndInit is called, remove the handler for data source.
2652
2653 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
2654
2655         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
2656
2657 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
2658
2659         * ToolStripManager.cs: Store references to toolstrips as
2660         weak references so they do not prevent forms from getting collected.
2661         [Fixes bug #386483]
2662
2663 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
2664
2665         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
2666         on .Net.  So do the same thing in WndProc.
2667
2668 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
2669
2670         * TrackBar.cs: Commit patch from Andy Hume that corrects
2671         the clickable areas to better match .Net.
2672         [Fixes bug #387074]
2673
2674 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
2675
2676         * TrackBar.cs: Commit patch from Andy Hume that adds the
2677         ResizeRedraw control flag so the track bar repaints itself
2678         when it is resized.  [Fixes bug #387072]
2679
2680 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
2681
2682         * TrackBar.cs: Commit patch from Andy Hume that adds better
2683         support for keyboard navigation when the TrackBar is vertical.
2684         [Fixes bug #387071]
2685
2686 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2687
2688         * BindingSource.cs: Implement ISupportInitializeNotification support.
2689
2690 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
2691
2692         * ThemeVisualStyles.cs: Added support for ToolBar.
2693
2694 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
2695
2696         * ToolBar.cs: Made the Vertical property internal.
2697
2698 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
2699
2700         * ThemeVisualStyles.cs: Added support for TrackBar.
2701
2702 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
2703
2704         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
2705         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
2706         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
2707         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
2708         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
2709         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
2710
2711 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
2712
2713         * ThemeVisualStyles.cs: Added support for UpDownBase.
2714
2715 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
2716
2717         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
2718         Extracted Theme.UpDownBaseDrawButton.
2719
2720 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
2721
2722         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
2723         removed from the static toolstrips collection in ToolStripManager
2724         when they are disposed.  Provides a workaround for bug #386483.
2725
2726 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
2727
2728         * GridEntry.cs: Read-only properties with Editor with 
2729         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
2730         [Fixes bug #384184]
2731
2732 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
2733
2734         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
2735         the menu key and there are no items on the menu.
2736         [Fixes bug #386644]
2737
2738 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
2739
2740         * Control.cs: Avoid calling ToString on a string.
2741         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
2742         * GroupBox.cs: In FlatStyle property throw, not just create, the 
2743         exception. Avoid calling ToString on a string.
2744         * ProgressBar.cs: Avoid calling ToString on a string. 
2745         * ScrollBar.cs: Avoid calling ToString on a string. 
2746         [All issues were found using Gendarme]
2747
2748 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
2749
2750         * NotifyIcon.cs: Prevent click events to be trigger after double click 
2751         events. Fixes remaining issues of bug #324832.
2752
2753 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
2754
2755         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
2756         to mimic win32 behavior. Partially fixes bug #324832.
2757
2758 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2759
2760         * BindingSource.cs: Implement Find methods.
2761
2762 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2763
2764         * BindingSource.cs: Implement Sort, ApplySort overloads, and
2765         RemoveSort methods.
2766
2767 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2768
2769         * ListBindingHelper.cs: When calling GetListItemProperties and the
2770         passed object is ITypedList, return the result of
2771         ITypedList.GetItemProperties instead.
2772
2773 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
2774
2775         * LinkLabel.cs: Set default value of name on constructor of Link class
2776         only for 2.0 profile.
2777
2778 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
2779
2780         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
2781         Fixes remaining issues of bug #346154.
2782
2783 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
2784
2785         * LinkLabel.cs: Set a default value for name on internal contructor of
2786         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
2787
2788 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
2789
2790         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
2791         and refer all instances to owner.links. Partially fixes #346154.
2792
2793 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
2794
2795         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
2796         length equal zero. Also called CreateLinkPieces in constructor. It fixes
2797         the LinkLabel test 'TestLinkArea'.
2798
2799 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
2800
2801         * Form.cs: Remove menu before close form to prevent form to be not gaced.
2802         [Fixes #386460]
2803
2804 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
2805
2806         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
2807         [Fixes #386463]
2808
2809 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
2810
2811         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
2812         [Fixed bug #357004]
2813
2814 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
2815
2816         * MenuAPI.cs: Remove unused ProcessCmdKey method.
2817
2818 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
2819
2820         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
2821         [Fixes bug #375398]
2822
2823 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
2824
2825         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
2826         of bug #367492.
2827
2828 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
2829
2830         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
2831         sometimes we open a conext menu on mouse down of some controls and the mouse
2832         up is dispatched to menu and dont need to. It fix remaining issues of 
2833         #363711 and other problems related to menu mouse click events.
2834
2835 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
2836
2837         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
2838         some var names to better fit changes, now we have month_menu and today_menu
2839         vars. Fixes bug #363711.
2840
2841 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
2842
2843         * MonthCalendar.cs: Handle every right mouse click to open context menu,
2844         right now the default month menu but it will be change to have "Go to today"
2845         menu.
2846
2847 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
2848
2849         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
2850
2851 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
2852
2853         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
2854
2855 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
2856
2857         * ThemeVisualStyles.cs: Added support for TreeView.
2858
2859 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
2860
2861         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
2862         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
2863
2864 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
2865
2866         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
2867
2868 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
2869
2870         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
2871         Implement 2.0 SP1 stuffs.
2872
2873 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
2874
2875         * FileDialog.cs: Implement 2.0 SP1 stuffs.
2876
2877 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
2878
2879         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
2880         Implement CanEnableIme property. (2.0 SP1)
2881
2882 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
2883
2884         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
2885         from the 2.0 API.
2886
2887 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
2888
2889         * Control.cs: Provide an internal way for a control to override
2890         the setting of Height.
2891         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
2892         set height using new method.
2893
2894 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
2895
2896         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
2897
2898 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
2899
2900         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
2901         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
2902
2903 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
2904
2905         * ThemeVisualStyles.cs: Added support for StatusBar.
2906
2907 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
2908
2909         * DataObject.cs: Add the other IDataObject interface.
2910
2911 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
2912
2913         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
2914         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
2915
2916 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
2917
2918         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
2919         * ListView.cs: Hide non-public API.
2920         * MaskedTextBox.cs: Remove extra attribute.
2921
2922 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
2923
2924         * DataGridViewImageCell.cs: Use formatted value instead of value
2925         to calculate preferred size.
2926
2927 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
2928
2929         * ListBox.cs: Move some initialization around so that selected_indices
2930         is not accessed before it is created.
2931
2932 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
2933
2934         * InputLanguageCollection.cs: Implement the collection better.
2935         [Fixes bug #385506]
2936
2937 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
2938
2939         * ToolStripDropDownItem.cs: Get the correct event object for
2940         DropDownItemClicked.
2941         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
2942         [Fixes bug #385475]
2943
2944 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
2945
2946         * DataGridViewRowCollection.cs: We don't currently support shared 
2947         rows.  Should fix test failures caused by previous commit.
2948
2949 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
2950
2951         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
2952         datagridview gets set.  Only paint cells in visible columns.
2953         * DataGridViewCell.cs: Draw border after cell content.
2954         * DataGridView.cs: Invalidate after setting some properties.  Only
2955         use visible columns.  Fit hit test bug with areas in the col/row header
2956         area but not in a row or col.  Implement UpdateCell/Row methods.
2957
2958 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
2959
2960         * DataGridViewElement.cs: Don't throw NIEX.
2961         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
2962         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
2963         * DataGridViewCheckBoxColumn.cs: Implement ToString.
2964         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
2965         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
2966         if the user filled in the formatting Value, use it.
2967
2968 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
2969
2970         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
2971         to a string.
2972
2973 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2974
2975         * BindingSource.cs: Some corrections to Filter property, as well as
2976         setting it for our list when resetting it.
2977
2978 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
2979
2980         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
2981         than the maximum.  Fixes reopened bug #384182.
2982
2983 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
2984
2985         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
2986         Fixes remaining issues of #367490.
2987
2988 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
2989
2990         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
2991         SystemInformation.WorkingArea to get max_screen value.
2992
2993 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2994
2995         * BindingSource.cs: Implement Filter and RemoveFilter.
2996
2997 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
2998
2999         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
3000
3001 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3002
3003         * X11Dnd.cs: When trying to convert data and we know we started the
3004         dnd loop, don't try to use the cached data if the loop is not running,
3005         which means that the data has been resetted.
3006         Fixes #378191.
3007
3008 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
3009
3010         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
3011         win32 behavior.
3012
3013 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
3014
3015         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
3016         it to drawn off screen edge. Fixes bug #367490.
3017
3018 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
3019
3020         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
3021         menu position to have only one assignment of Location var.
3022
3023 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
3024
3025         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
3026         for this patch. Fixes bug #384115.
3027
3028 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
3029
3030         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
3031         the same.  If LargeChange is zero, set a minimum size for the scroll
3032         thumb grip.  [Fixes bug #384182]
3033
3034 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
3035
3036         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
3037         [Fixes bug #384181]
3038
3039 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
3040
3041         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
3042
3043 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
3044
3045         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
3046         patch from Ernesto).
3047
3048 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
3049
3050         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
3051
3052 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
3053
3054         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
3055
3056 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
3057
3058         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
3059
3060 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
3061
3062         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
3063
3064 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
3065
3066         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
3067
3068 2008-04-27  Andreia Gaita <avidigal@novell.com> 
3069
3070         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
3071           supposed to return a reference to an mshtml interface, which we
3072           don't support).
3073         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
3074           reference to an mshtml interface, which we don't support). Code
3075           formatting cleanup.
3076         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
3077           DomDocument getter (it's supposed to return a reference to an
3078           mshtml interface, which we don't support). Code formatting cleanup.
3079
3080 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3081
3082         * ListView.cs: Ouch, forgot to commit.
3083
3084 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3085
3086         * ListView.cs: 
3087         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
3088
3089 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3090
3091         * ListView.cs: When calculating box selection for virtual mode, don't
3092         look for intersection with item's text, but item bounds, since that
3093         would mean read ListViewItem's text for _every_ item, and that's
3094         something we just can't do in virtual mode (items are only requested
3095         when drawn).
3096
3097 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
3098
3099         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
3100         partial support for managed windows (based on the patch from Ernesto).
3101
3102 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3103
3104         * ListView.cs: When doing a key search use FindItemWithText method
3105         instead of doing the search by ourselves, this way we avoid
3106         duplicating the code and also we handle the special case for virtual
3107         mode. To achieve that make our private overload of FindItemWithText
3108         internal and also have a 'roundtrip' parameter.
3109
3110 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3111
3112         * ListView.cs: When doing the layout don't request the
3113         ListViewItem instance if we are in virtual mode (since we can't request it
3114         until the item is actully drawn).
3115
3116 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
3117
3118         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
3119         from Ernesto).
3120
3121 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
3122
3123         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
3124         the patch from Ernesto).
3125
3126 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
3127
3128         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
3129         * ThemeVisualStyles.cs: Added.
3130
3131 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
3132
3133         * IDeviceContext.cs: Added a missing using.
3134
3135 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
3136
3137         * ButtonBase.cs: Made IsDefault protected internal.
3138         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
3139
3140 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
3141
3142         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
3143         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
3144         RadioButtonRenderer.cs: Included in the 1.1 profile.
3145         * IDeviceContext.cs: Added.
3146         * TextRenderer.cs: Included a member in the 1.1 profile.
3147
3148 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
3149
3150         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
3151
3152 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
3153
3154         * ErrorProvider.cs: Make the error icons come after the control
3155         they refer to.  It isn't the way the MS does it, but its better
3156         than what we were doing.  See bug #368587.
3157
3158 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
3159
3160         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
3161         from Eric Albright that lazy loads the input language as ensures
3162         everything gets properly initialized.  Fixes bug #373871.
3163
3164 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
3165
3166         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
3167         implicit mnemonics.  [Fixes bug #383000]
3168
3169 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3170
3171         * X11Dnd.cs: When canceling the operation, automatically restore the
3172         default cursor - normally the default cursor is restored when the
3173         mouse buttons are released, but we should be able to restore it even
3174         if the buttons are still pressed (for example, when pressing ESC to
3175         cancel).
3176         Fixes #381894.
3177
3178 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3179
3180         * X11Dnd.cs: When starting a new drad and drop operation, set control
3181         field to null, just as the other fields, to avoid calling any
3182         operation on a previous control. Also, when calling DndLeave on a
3183         control, set it to null, thus we don't fire that event multiple times
3184         for that control.
3185         Fixes #209264.
3186
3187 2008-04-23  Geoff Norton  <gnorton@novell.com>
3188
3189         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
3190         the whole_window object.  Fixes #377084.
3191
3192 2008-04-23  Andreia Gaita <avidigal@novell.com> 
3193
3194         * HtmlElement.cs: Implement RaiseEvent (event injection into the
3195           embedded browser)
3196
3197 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
3198
3199         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
3200
3201 2008-04-23  Andreia Gaita <avidigal@novell.com> 
3202
3203         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
3204           invocation
3205
3206 2008-04-23  Andreia Gaita <avidigal@novell.com> 
3207
3208         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
3209           attaching/detaching
3210
3211 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3212
3213         * X11Dnd.cs: When the drop was cancelled, or could just not be
3214         performed, return DragDropEffect.None always (match .net).
3215
3216 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
3217
3218         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
3219
3220 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
3221
3222         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
3223
3224 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
3225
3226         * DataGridView.cs: Add support for error icon tool tips.
3227         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
3228         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
3229
3230 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
3231
3232         * X11Structs.cs: Add mouse button masks enum.
3233         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
3234         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
3235         form resize/move operation instead of for each step of it.
3236         [Fixes bug #346529 for the x11 backend]
3237
3238 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
3239
3240         * DataGridView*: Implement support for drawing error icons.
3241
3242 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
3243
3244         * TreeView.cs: Make vbar and hbar internal.
3245         * TreeNode.cs: If collapsing the node removes one of the TreeView's
3246         scrollbars, invalidate the whole thing.
3247         [Fixes bug #382001]
3248
3249 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
3250
3251         * TreeView.cs: Calling Sort() sets Sorted = true.
3252         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
3253         if the nodes need to be sorted.
3254         [Fixes bug #382028]
3255
3256 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
3257
3258         * Form.cs: Fire SizeChanged for both when the form is minimized and 
3259         restored.
3260         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
3261         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
3262
3263 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
3264
3265         * ComboBox.cs: If the combobox is disabled, draw a disabled
3266         background before painting anything else.
3267         [Fixes bug #381729]
3268
3269 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3270
3271         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
3272         forget to send a Leave event to the target window - just as .net does
3273         when cancelling dnd operations.
3274
3275 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3276
3277         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
3278         soon as possible - this happens when we send the drop message to the
3279         target window. This way we avoid firing any DragOver _after_ drop finished.
3280         Fixes #378179.
3281
3282 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
3283
3284         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
3285         * Form.cs: Handle form minimization as a special state, where size doesn't 
3286         change, but we have to fire SizeChanged.
3287         [Fixes bug #325122 for the win32 and x11 backends]
3288
3289 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
3290
3291         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
3292         if the handle is disabled.
3293         [Fixes bug #371751]
3294
3295 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
3296
3297         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
3298         for forms with FormBorderStyle.None.
3299         [Fixes bug #349571]
3300
3301 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
3302
3303         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
3304         WM_EXITSIZEMOVE.
3305         [Fixes bug #346529 for the X11 backend]
3306
3307 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
3308
3309         * XplatUIX11.cs: 
3310           - Send a mouse Enter message after say dragging the mouse with a 
3311           button down and then release it in another client.
3312           - Reset the cursor to prevent X11 from remembering it and setting it 
3313           before the control gets WM_SETCURSOR.
3314           - Qeueue a mouse move after a mouse enter like win32.
3315           [Fixes bug #323234]
3316
3317 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
3318
3319         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
3320         It's sent when the form gets moved, resized, closed.
3321         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
3322         [Fixes bug #359193 for X11]
3323
3324 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
3325
3326         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
3327         the build.
3328
3329 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
3330
3331         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
3332         group. Fixes the 1.1 build.
3333
3334 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3335
3336         * ListView.cs: Use display indexes for selection in Details view, as
3337         well as do the proper layout based on display indexes for that view
3338         too.
3339
3340 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3341
3342         * ListView.cs: Focused item information is now stored as a display
3343         index, and display indexes are used all over the place for selection,
3344         instead of ListViewItem.Index values, which doesn't give us enough
3345         information to modify the selection in groups mode, and was broken.
3346
3347 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
3348
3349         * Control.cs: Do not fire MouseDown if validation of the control has 
3350         failed.
3351         * Form.cs: Validate the form before closing.
3352         [Fixes bugs #330501 and #353310]
3353
3354 2008-04-18  Andreia Gaita <avidigal@novell.com> 
3355
3356         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
3357           CreateWebBrowserSiteBase implementations
3358         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
3359           Style and TabIndex setters
3360
3361 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3362
3363         * ListViewGroup.cs: When returning the actual item count, return the
3364         proper count for default group.
3365         Fix the tests.
3366
3367 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3368
3369         * ListView.cs:
3370         * ListViewGroup.cs: When calculating groups layout, get the actual
3371         number of items per group, since groups added to the group BUT not
3372         added to the ListView are just ignored, and can cause some nasty
3373         exceptions because of the lack of synchronization. Also for
3374         ListViewGroup don't use lazy initialization for items, since we 
3375         the common scenario is to use it always - and it helps us to  refactor
3376         and clean the .ctor overloads.
3377
3378 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3379
3380         * ListView.cs: When adding an item to a ListViewItemCollection
3381         belonging to a group (ListViewGroup.Items), don't generate a redraw if
3382         the added item hasn't beeen previously added to the ListView instance
3383         refered by the group, since it will be ignored. This should avoid some 
3384         really nasty flickering.
3385
3386 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3387
3388         * ListView.cs: When accessing an item in a specific display
3389         position, use the helper method GetItemAtDisplayIndex, instead of
3390         direct access to the reordered_items_indices array. When doing layout
3391         for groups set the correct Items index for the display position (since
3392         in groups mode items don't have the same position as in Items
3393         collection).
3394         * ListViewGroup.cs: Add a field to store the starting item number,
3395         which is later used when calculating the layout.
3396
3397         Fixes #360805.
3398
3399 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
3400
3401         * Application.cs: Fixed ProductVersion to fallback to the assembly
3402         version. Fixes regression for bug #325413.
3403
3404 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3405
3406         * ListView.cs: New helper method to retrieve an item in a _specific
3407         display_ position (the items can be displayed in a different order
3408         than one of Items collection).
3409         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
3410         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
3411         specific display position (again remember that items can be sorted
3412         different than Items).
3413
3414 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
3415
3416         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
3417         list and update it when the collection changes.  We were recreating
3418         this several times per row paint and for every pixel the mouse moved
3419         across the grid.
3420         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
3421         changes.
3422
3423 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
3424
3425         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
3426         list to use generics.
3427         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
3428         and remove unneccessay casts.
3429
3430 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
3431
3432         * DataGridViewBand.cs: Add internal way to set displayed variable.
3433         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
3434         * DataGridView.cs: Make sure we always keep track of Displayed
3435         rows and columns, and only draw things that are displayed.
3436
3437 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
3438
3439         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
3440           whether the key events are filtered or not. Introduced
3441           PreFilter() process for this purpose. This fixes atokx3/iiimx
3442           shift state issue.
3443
3444 2008-04-16  Andreia Gaita <avidigal@novell.com> 
3445
3446         * HtmlHistory.cs: Implement Length property
3447
3448 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
3449
3450         * DataGridView.cs: Call EndEdit when a sort is performed so we take
3451         away the edit textbox.  Refactor to reuse column sort code.
3452
3453 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
3454
3455         * MenuAPI.cs: Remove the code that save and restore capture status of 
3456         grab_control, this fixes some Menu and Context menu bugs but maybe it can
3457         cause some others, I cant figure the possible problems of this patch but
3458         right now remove the code looks to be better than keep it. This patch fixes
3459         bugs #357638, #378721 and #379570.
3460
3461 2008-04-12  Andreia Gaita <avidigal@novell.com> 
3462
3463         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
3464         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
3465         add missing properties and event handlers.
3466         
3467 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
3468
3469         * ListBox.cs: Make sure the LargeChange we are setting is at least
3470         zero, to prevent an IOORE.  [Fixes bug #379531]
3471
3472 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
3473
3474         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
3475         in DropDownList mode, for each key-press select the next item 
3476         starting with that letter.
3477         For other modes, when no item selected, on arrow-up/-down and open 
3478         drop-down select the first item matching the text in the textbox.
3479
3480 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
3481
3482         * X11Keyboard.cs : Control.FromHandle() could return null
3483           in MoveCurrentCaretPos().
3484
3485 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3486
3487         * ListView.cs: When changing the size in VirtualMode, also Reset the
3488         selection.
3489         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
3490         changing selection info for VirtualMode.
3491         Fixes #372618.
3492
3493 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3494
3495         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
3496         view, don't use LineLimit for the first item - use NoWrap *always*
3497         instead, since ListView.LabelWrap is not used for this view.
3498         Fixes #378054.
3499
3500 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3501
3502         * Binding.cs: Call UpdateIsBinding when setting control - probably
3503         Binding is already usable and we don't need to wait to check the
3504         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
3505         Created, just like 2.0 does.
3506         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
3507
3508 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3509
3510         * Binding.cs: Just realized we don't need to have a handler for
3511         BindingContextChanged, since this info should be now consumed directly
3512         in the BindingManagerBase. And also, the manager.IsBindingSuspended
3513         state info is checked directly, instead of caching it.
3514
3515         * CurrencyManager.cs: IsSuspended should return always false if Count
3516         == 0.
3517
3518 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3519
3520         * Binding.cs: When calling PushData, return if manager.Count == 0,
3521         since we just don't have data to be read. Also, when setting the
3522         Control for binding, hook up some events to refresh the IsBinding
3523         state when BindingContext change or control gets created; use
3524         Control.IsHandleCreated instead of Control.Created check to set
3525         IsBinding state - we *actually* need to modify IsBinding when control
3526         is created, but we don't have any Created event, only HandleCreated.
3527         Fixes part of #349364.
3528
3529 2008-04-11  Geoff Norton  <gnorton@novell.com>
3530
3531         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
3532         warping a null Caret.
3533
3534 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
3535
3536         * DataGridView.cs: Implement row/column autosizing methods. Implement
3537         autosorting.
3538         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
3539         * DataGridViewRowCollection.cs: Add an internal sorting method.
3540
3541 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
3542
3543         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
3544         value in ListView drawing code.
3545
3546 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
3547
3548         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
3549         is clicked.  Respect the user setting Cancel in FileOk.
3550
3551 2008-04-11  Geoff Norton  <gnorton@novell.com>
3552
3553         * ListView.cs: Avoid setting and resetting control Width/Heights and
3554         calculate the final value and set it once.  Prevents a feedback loop
3555         on the mac.
3556
3557 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
3558
3559         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
3560         [Fixes bug #378869]
3561
3562 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
3563
3564         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
3565           Add some on-the-spot code, but it seems we don't need it.
3566
3567 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
3568
3569         * Form.cs: Add method for DataGridView to trigger focus cues
3570         even when it handles the tab keypress.
3571
3572 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
3573
3574         * DataGridView.cs: More keyboard handling, tab, esc.
3575         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
3576         when at the beginning or end of the text in the text box.
3577
3578 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
3579
3580         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
3581
3582 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
3583
3584         * DataGridView.cs: Some fixups for showing and adding the edit control.
3585         * DataGridViewButtonColumn.cs: Implement ToString.
3586         * DataGridViewCell.cs: Size and position the control simultaneously.
3587         * DataGridViewTextBoxCell.cs: Use base to position control.
3588
3589 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
3590
3591         * DataGridViewCell.cs: Fix up some formatting and painting code.
3592         * DataGridViewImageCell.cs: Implement some NIEX methods.
3593
3594 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
3595
3596         * ToolStripItemCollection.cs: What moving an item from one owner
3597         to another, remove from source owner before adding to destination.
3598         [Fixes bug #378109]
3599
3600 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
3601
3602         * PictureBox.cs: Call Load when ImageLocation is set.
3603         [Fixes bug #378308]
3604
3605 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
3606
3607         * X11Keyboard.cs, XplatUIX11.cs :
3608           Implement over-the-spot mode (with some odd offsets).
3609           - set preedit position when caret is set.
3610           - Wrap XMoveResizeWindow() to move preedit position.
3611
3612 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
3613
3614         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
3615         array lenght.
3616
3617 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
3618
3619         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
3620         and ScanTableIndex public, it fix compilations errors when compiling
3621         WinForms to generate keyboard layout resources.
3622
3623 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
3624
3625         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
3626         different element count than scan table. It prevents some errors in non
3627         standard keyboards.
3628
3629 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
3630
3631         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
3632
3633 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
3634
3635         * DataGridView.cs: Call OnContentClick.
3636         * DataGridViewCell.cs: Do a null check on ValueType instead
3637         of valueType.
3638         * DataGridViewCheckBoxCell.cs: Implement.
3639
3640 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
3641
3642         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
3643
3644 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
3645
3646         * X11Keyboard.cs : Check XGetIMValues() return value in
3647           case it does not return input styles in some environment.
3648
3649 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
3650
3651         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
3652
3653 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3654
3655         * BindingContext.cs: Stub UpdateBinding method.
3656
3657 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
3658
3659         * X11Structs.cs : added couple of structs for XIM support.
3660         * X11Keyboard.cs :
3661           Release XIM in case it failed to create XIC. 
3662           Use consts for XNblah string.
3663           Add support for IM style customization and XIC creation
3664           for preedit-position and preedit-callback.
3665           Right now use MONO_WINFORMS_XIM_STYLE environment variable
3666           (list of: over-the-spot | on-the-spot | root). Only root
3667           mode works so far.
3668
3669           (redoing r99172 with fix.)
3670
3671 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
3672
3673         * TreeView.cs: Center the checkbox a little better.
3674
3675 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
3676
3677         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
3678         Apply very nice patch from Ernesto Carrea that simplifies our
3679         scrollbar drawing.  [From bug #376146]
3680
3681 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
3682
3683         * TreeView.cs: Correct the location of the root node checkbox when
3684         ShowRootLines = false.  Don't draw the root lines for the root node
3685         when ShowRootLines = false.  [Fixes bug #377535]
3686
3687 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
3688
3689         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
3690         Fixed line endings.
3691         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
3692         line endings.
3693         * MaskedTextBox.cs: Added missing attribute. Code formatting.
3694         * PageSetupDialog.cs: Added missing attribute. Code formatting.
3695         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
3696         * ImeMode.cs: Added missing field.
3697         * HtmlWindow.cs: Code formatting. Fixed line endings.
3698         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
3699         warnings.
3700         * HtmlHistory.cs: Code formatting. Fixed line endings.
3701         * HtmlDocument.cs: Code formatting. Fixed line endings.
3702         * ToolStripPanel.cs: Added missing IList implementation.
3703         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
3704
3705 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
3706
3707         * BindingContext.cs: Changed argument names to fix corcompare errors.
3708         * DataGridView.cs: Removed extra explicit interface implementation
3709         of IDropTarget. Code formatting.
3710         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
3711         * ComboBox.cs: Changed argument names to fix corcompare errors.
3712         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
3713         errors.
3714         * GridColumnStylesCollection.cs: Changed argument names to fix
3715         corcompare errors. Removed extra tabs.
3716         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
3717         errors.
3718         * Control.cs: Changed argument names to fix corcompare errors. Code
3719         formatting. Removed extra explicit IList implementation.
3720         * TextBox.cs: Changed argument names to fix corcompare errors. Code
3721         formatting. Use string.Empty instead of "".
3722         * GridItemCollection.cs: Changed argument names to fix corcompare
3723         errors. Code formatting.
3724         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
3725         corcompare errors. Code formatting.
3726         * ImageList.cs: Changed argument names to fix corcompare errors.
3727         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
3728         * DataGridViewRowCollection.cs: Changed argument names to fix
3729         corcompare errors. Code formatting.
3730         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
3731         * DataGridViewSelectedCellCollection.cs: Changed argument names to
3732         fix corcompare errors. Code formatting.
3733         * DataGridViewComboBoxCell.cs: Changed argument names to fix
3734         corcompare errors. Code formatting.
3735         * LinkLabel.cs: Changed argument names to fix corcompare errors.
3736         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
3737         formatting.
3738         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
3739         Code formatting.
3740         * BindingSource.cs: Changed argument names to fix corcompare errors.
3741         Removed extra explicit interface implementations.
3742         * DataGridViewSelectedRowCollection.cs: Changed argument names to
3743         fix corcompare errors. Code formatting.
3744         * ToolStripItemCollection.cs: Removed extra explicit interface
3745         implementation of IList.ReadOnly.
3746         * DataGridViewColumnCollection.cs: Changed argument names to fix
3747         corcompare errors. Code formatting.
3748         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
3749         * ListView.cs:  Changed argument names to fix corcompare errors.
3750         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
3751         errors.
3752         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
3753         errors.
3754         * ListBindingHelper.cs: Changed argument names to fix corcompare
3755         errors.
3756         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
3757         fix corcompare errors. Code formatting.
3758         * ToolStripPanel.cs: Removed extra explicit implementation of
3759         IDropTarget interface.
3760         * ListBox.cs: Changed argument names to fix corcompare errors. Code
3761         formatting. Removed extra tabs and spaces.
3762         * DataGridViewCellCollection.cs: Changed argument names to fix
3763         corcompare errors.
3764         * Help.cs: Changed argument names to fix corcompare errors. Code
3765         formatting.
3766         * TabControl.cs: Changed argument names to fix corcompare errors.
3767         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
3768         errors.
3769         * TableLayoutSettings.cs: Changed argument names to fix corcompare
3770         errors.
3771
3772 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3773
3774         * ListBindingHelper.cs: When returning properties, only return those
3775         that are browsable. Also, don't do a linear search of the properties,
3776         but use the indexer of the PropertyDescriptorCollection class.
3777
3778 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3779
3780         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
3781         Dictionary containing the related (child) currency managers. Also,
3782         when setting DataSource, add datasource to our List if it is not a list.
3783
3784 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
3785
3786         * PropertyGridTextBox.cs: Fix background color of the buttons.
3787         * PropertyGridView.cs: Make the entry less jumpy.
3788
3789 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
3790
3791         * PropertyGrid.cs: Fix unused variable warnings.
3792
3793 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
3794
3795         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
3796         double-click. It expanded it once in the mouse down and then 
3797         again in the double-click handler.
3798
3799 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
3800         
3801         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
3802         TypeConverter and UITypeEditors.
3803
3804 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
3805
3806         * Control.cs: Visibility should be set synchronously, 
3807         so we must also redraw once it is and not rely on layouting or 
3808         other code to repaint.
3809         [Fixes bug #339898]
3810
3811 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
3812
3813         * DataGridViewCell.cs: Respect DataGridView.GridColor.
3814
3815 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
3816
3817         * Control.cs: Invalidate when the alpha channel is less than 255,
3818         not only when control is transparent.
3819
3820 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
3821
3822         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
3823         Implement some painting convenience methods that threw NIEX.
3824
3825 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
3826
3827         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
3828         * DataGridViewLinkCell.cs: Implement.
3829
3830 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
3831
3832         * GridEntry.cs: Report the conversion exception error description.
3833         [Fixes bug #375792]
3834
3835 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
3836
3837         * PropertyGridView.cs: Do not scroll to item on resize.
3838         [Fixes bug #375789]
3839
3840 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3841
3842         * BindingContext.cs: When retrieving a BindingManagerBase, if the
3843         dataSource parameter is ICurrencyManagerProvider, then return
3844         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
3845         instead of creating a new one.
3846
3847 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3848
3849         * BindingSource.cs: Implement support for Type instances as
3850         DataSource.
3851
3852 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
3853
3854         * DataGridView.cs: Minor cleanups and call CellMouseUp.
3855         * DataGridViewCell.cs: Make some painting routines internally virtual.
3856         * DataGridViewButtonCell.cs: Implement.
3857
3858 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
3859
3860         * Control.cs: We always need to invalidate our children with
3861         transparent backgrounds when we are invalidated.
3862         [Fixes bug #376081]
3863
3864 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3865
3866         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
3867         and CancelCurrentEdit on CurrencyManager respectively. Implement
3868         support for ICancelAddNew too.
3869
3870 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3871
3872         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
3873         call EndNew/CancelNew if list is ICancelAddNew.
3874
3875 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
3876
3877         * DataGridView.cs: Guard against an exception while painting
3878         if there are no rows.
3879
3880 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
3881
3882         * DataGridView.cs: Implement a bunch of keyboard commands.
3883
3884 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
3885
3886         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
3887         isn't set, don't call OnPaint.  [Fixes bug #375300]
3888
3889 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3890
3891         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
3892         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
3893         hookup the remaining events related to CurrencyManager, and fire
3894         OnListChanged also for the Clear () method.
3895
3896 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3897
3898         * BindingSource.cs: Use Current and Position implementations in
3899         CurrencyManager instead of using our own routines, since we need 
3900         to be in synch with it. Count should NEVER return a -1 value, and 
3901         also report ListChanged events for both simple IList data 
3902         sources (manually) as well for IBindingList ones (by hooking up an
3903         event handler for it).
3904
3905 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3906
3907         * BindingSource.cs: Make one .ctor call the another, to avoid
3908         duplicate code. Add the CurrencyManager property, and also for AddNew
3909         throw the proper exceptions and show better error messages.
3910
3911 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
3912
3913         * ComboBox.cs: Only adjust selectedindex if Handle has been
3914         created.  Fixes failing test.
3915
3916 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
3917
3918         * ComboBox.cs: Adjust selectedindex if we insert a new item
3919         above the current selectedindex in a sorted ComboBox.
3920         [Fixes bug #374654]
3921
3922 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
3923
3924         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
3925         [Fixes bug #374712]
3926
3927 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
3928
3929         * DataGridViewTextBoxCell.cs: Implement stuffs.
3930
3931 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
3932
3933         * TreeView.cs: Create the scrollbars even earlier to be
3934         double dog certain they are created before they are accessed.
3935
3936 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
3937
3938         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
3939
3940 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
3941
3942         * ScrollBar.cs: Create an internal safe Value setter so we
3943         won't crash if we try to set a value outside the min and max.
3944         * TextBoxBase.cs: Use safe value setter to guard against a
3945         potential NRE that is being reported by Reflector.
3946
3947 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
3948
3949         * TreeView.cs: Create the scrollbars earlier in the constructor
3950         to attempt to guard against an NRE in SetTop in Reflector.
3951
3952 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
3953
3954         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
3955         DataGridViewRowCollection.cs: Do not scroll column and row headers,
3956         show messagebox on data format error, use column display index
3957         correctly, make sure HitTest supports new layout stuff,
3958         make sure scrollbars support new layout stuff.
3959
3960 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
3961
3962         * XplatUIX11.cs : Patch by Doug Rintoul.
3963           For some IM engines, keypress events need to delay call
3964           to XPending() and XNextEvent() in the loop so that it
3965           does not mess the orders in XIM commit callback.
3966           Some KeyRelease events such as shift keys need to be
3967           processed both in the IM engine and winforms driver
3968           itself since winforms holds its own state check.
3969
3970           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
3971
3972 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
3973
3974         * X11Keyboard.cs, XplatUIX11.cs :
3975           add primitive support for XIM input support (preedit-
3976           nothing and status-nothing). It requires precise event
3977           capturing (XSelectInput/"filterEvents") and different
3978           call to XFilterEvent against root window.
3979           Get composed string and send dummy WM_IME_COMPOSITION.
3980           Free XIM and XIC instances in finalizer.
3981
3982           (This first patch does not include suggested changes
3983            by Doug Rintoul. It will follow.)
3984
3985 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
3986
3987         * DataGridView.cs: When binding to a property, if the property
3988         doesn't have a setter, set the column to readonly.
3989         [Fixes bug #343965]
3990
3991 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
3992
3993         * ComboBox.cs: Guard against NRE if an arrow key is hit while
3994         we aren't dropped down.  Support Home/End in DropDownList mode.
3995         [Fixes bug #371990]
3996
3997 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
3998
3999         * TreeNodeCollection.cs: Don't increment count until we've
4000         saved our index to return.
4001         [Fixes bug #373603]
4002
4003 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
4004
4005         * Label.cs: Add padding to the label's AutoSize calculation.
4006         [Fixes bug #373792]
4007
4008 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4009
4010         * ListBindingHelper.cs: Actually implement GetListName method.
4011
4012 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4013
4014         * BindingSource.cs: Throw the propert expceptions for some methods, as
4015         well as detect the list item type for Add method if DataSource is null.
4016
4017 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
4018
4019         * DataGridViewCell.cs: I don't know why I commented this out,
4020         putting it back for now.
4021
4022 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
4023
4024         * DataGridViewCell.cs: Remove storage for owning column, just
4025         use column index.
4026         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
4027         * DataGridViewColumnHeaderCell.cs: If the header text has been
4028         explicitly set, return it.
4029         [Fixes bug #325979]
4030
4031 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
4032
4033         * DataGridViewRowCollection.cs: Disable row sharing when
4034         using data binding.  Its a great feature, but lets work on
4035         getting DGV usable first before we worry about optimizations.
4036
4037 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4038
4039         * BindingSource.cs: When resetting our internal list, compute list
4040         item type information to be used for indirect list access. Also
4041         implement/tune some properties and methods related to the list access
4042         too.
4043         * ListBindingHelper.cs: Add a stub for GetListName method, used from
4044         BindingSource.
4045
4046 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
4047
4048         * DataGridView.cs: If RowCount is increased while ColumnCount
4049         is zero, add a column.  [Fixes bug #331649]
4050
4051 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
4052
4053         * DataGridViewRowCollection.cs: When adding new rows for
4054         databinding, make sure they are place before the add row.
4055         [Fixes bug #343961]
4056
4057 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
4058
4059         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
4060         instead of Index order.
4061
4062 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
4063
4064         * DataGridView.cs: If columns are added by increasing ColumnCount,
4065         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
4066         [Fixes bug #325588]
4067
4068 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
4069
4070         * DataGridView.cs: Turn off and on the "new row" when 
4071         AllowUserToAddRows is toggled.  When the handle is created,
4072         set current cell and selected cell/row/col.
4073
4074 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
4075
4076         * ComboBox.cs: When navigating the drop down by keyboard, we
4077         need to scroll the list box if our selection moves out of the
4078         currently shown items.  [Fixes bug #371990]
4079
4080 2008-03-24  Luke Page <luke.a.page@gmail.com>
4081
4082         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
4083         on the control. Also now handles unicode compatibility characters and
4084         stores the unicode compatibility length on the stack. Fixes Bugs
4085         #355198 and #366436.
4086
4087 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4088
4089         * BindingSource..cs: Take into account DataMember when re-creating the
4090         List property, and also create a specific kind of list as needed.
4091
4092 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4093
4094         * ListBindingHelper.cs: Add a new case for GetList () method - when we
4095         get an empty IEnumerable, try to detect whether the datamember is
4096         valid or not for that type, if true, return null, and throw exception
4097         otherwise.
4098
4099 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
4100
4101         * ComboBox.cs: Alt-Down should drop down the list, Esc should
4102         retract it.  [Fixes bug #371989]
4103
4104 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
4105
4106         * PropertyGrid.cs: Initialize the sorting button as pushed.
4107
4108 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
4109
4110         * PropertyGrid.cs: 
4111          - Visually select the PropertyTab.
4112          - Filter Properties by Attributes properly.
4113
4114 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
4115
4116         * MenuItem.cs: Remove menu item from parent when disposed.
4117         [Fixes bug #372845]
4118
4119 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
4120
4121         * ToolBar.cs: Don't reset layout_type if Dock = None.
4122
4123 2008-03-21  Andreia Gaita <avidigal@novell.com> 
4124
4125         * UserControl.cs: Select the first available control when we get focus.
4126           Fixes #372616
4127
4128 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
4129
4130         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
4131         the content if we are in edit mode.  [Fixes bug #343964]
4132
4133 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
4134
4135         * DataGridViewCell.cs: Fix border painting for column headers.
4136
4137 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4138
4139         * BindingSource.cs: When setting or resetting data source,
4140         use ListBindingHelper.GetList () method, since it will get the list in
4141         case datasource is IListSource.
4142
4143 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
4144
4145         * DataGridViewCell.cs: Implement lots more stuffs.
4146
4147 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
4148
4149         * PropertyGridView.cs, GridEntry.cs: Implement support for 
4150         UITypeEditor.IsDropDownResizable.
4151
4152 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
4153
4154         * DataGridViewCell.cs: Remove unused variables, improve how
4155         several of the property getters work.
4156         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
4157         get its size from the parent row/col.
4158
4159 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
4160
4161         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
4162         user alters manually the PropertyTabs collection via the 
4163         PropertyTabs property.
4164
4165 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4166
4167         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
4168         new tests for them to be sure to be compatible with .net.
4169
4170 2008-03-20  Andreia Gaita <avidigal@novell.com> 
4171
4172         * WebBrowserBase.cs: Fix attributes, add events
4173         * WebBrowser.cs: Fix Padding signature
4174
4175 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
4176
4177         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
4178
4179 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
4180
4181         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
4182         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
4183         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
4184         passes the new suite of tests for it.
4185
4186 2008-03-18  Andreia Gaita <avidigal@novell.com> 
4187
4188         * WebBrowser.cs: Add missing attributes, missing Padding and
4189           DefaultSize properties, remove extraneous getters
4190
4191 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4192
4193         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
4194         method overloads.
4195
4196 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
4197
4198         * ComboBox.cs: Move resetting the selected index to keypress
4199         instead of textchanged.  Changing the text programmatically
4200         should not trigger resetting the selected index.  Fixes test.
4201
4202 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
4203
4204         * ComboBox.cs: When the user types into the textbox, reset
4205         the selected index to -1.  [Fixes bug #371672]
4206
4207 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
4208
4209         * FileDialog.cs: Support Control-A for selecting everything
4210         in an OpenFileDialog.  [Fixes bug #371564]
4211
4212 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
4213
4214         * DataGridView.cs: When row/column visible/height properties
4215         change, invalidate.  Take the NIEX out of InvalidateRow/Column
4216         etc.  We don't support them yet, but we can just invalidate
4217         everything until we do support them.  (Added MonoTODO).  Set
4218         proper control styles.
4219         * DataGridViewRow.cs: Don't call PaintHeader if row headers
4220         are turned off. 
4221
4222 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4223
4224         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
4225
4226 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
4227
4228         * DataGridViewRow.cs: Only paint the white background in
4229         cell bounds, the row bounds extends past the cells if the 
4230         grid width isn't as wide as the DGV.
4231
4232 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
4233
4234         * DataGridView*: Completely revamp the drawing to match the
4235         public API.  Our grids now look better, and call all the
4236         appropriate methods and event to allow users to override
4237         the painting and do their own.
4238
4239 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4240
4241         * ListBindingHelper.cs: Implement 2.0 GetList methods.
4242
4243 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
4244
4245         * DataGridView.cs: Implement BorderStyle.
4246
4247 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
4248
4249         * FileDialog.cs: Apply patch from Andy Hume: Any time we
4250         are comparing attributes, make sure we only look at the
4251         one we are interested.  These calls were failing if there
4252         were more than one attribute.
4253         [Fixes bug #370385]
4254
4255 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
4256
4257         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
4258
4259 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
4260
4261         * PageSetupDialog.cs: Stub EnableMetric.
4262         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
4263         * PrintPreviewDialog.cs: Add ProcessDialogKey,
4264         ProcessTabKey.
4265
4266 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
4267
4268         * MonthCalendar.cs: Remove unused variable.
4269
4270 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
4271
4272         * DataGridView*.cs: corcompare stuffs.
4273
4274 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
4275
4276         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
4277         The savings aren't worth the extra code to fix the optimization.
4278         [Fixes bug #368585]
4279
4280 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
4281
4282         * ToolBar.cs: Always call base.Dock in the Dock override so that
4283         Control's layout_type gets reset correctly.
4284         [Fixes bug #368882]
4285
4286 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
4287
4288         * X11Dnd.cs: End DnD operation also for the middle mouse button.
4289
4290 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
4291
4292         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
4293         at the same time we do explicit ones, because we have to give all
4294         other controls on the container a chance to handle explicit ones
4295         first.  If no one has an explicit mnemonic, then we can let the
4296         MenuStrip have a shot at implicit mnemonics.
4297         * MenuStrip.cs: Create an implicit mnemonic function.
4298         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
4299         mnemonics for MenuStrips.
4300         [Fixes bug #368493]
4301
4302 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
4303
4304         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
4305         DataGridColumnStyle.cs: corcompare stuffs.
4306
4307 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4308
4309         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
4310         Details - This is needed after we added the bits to use any available
4311         column also for List and SmallIcon view. 
4312
4313 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4314
4315         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
4316         at the proper place, not only when changing SelectedIndex and changing
4317         the selection using keys/mouse, as .net does.
4318
4319 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4320
4321         * ControlBindingsCollection.cs: Implement last 2.0
4322         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
4323         in the new 2.0 Add methods.
4324
4325 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4326
4327         * ListBox.cs: When calling SelectedIndexCollection.Clear,
4328         return if no items are previously selected - this is done to avoid 
4329         firing OnSelectedIndexChanged without need to do so. Also,
4330         when creating handle ensure that the focused item is visible (as
4331         .net does).
4332
4333 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4334
4335         * ListBox.cs: Rewrote/refactored most of selection code. We require
4336         the following things in selection: a) keep selection sorted (both
4337         indices and items), b) SelectedIndices automatically detect the
4338         selection mode, c) SelectedIndex should be the first selected item
4339         index, d) Need to Focus/adjust scroll bar when selecting a new item,
4340         not only for SelectedIndex, which is specially important in Multi*
4341         selection modes. To achieve this we are moving the selection core to
4342         SelectedIndexCollection and make depend all selection modifications on
4343         it.
4344         Fixes #366438.
4345
4346 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
4347
4348         * ToolStrip.cs: Enable implicit mnemonics for drop down
4349         menu strips.  [Fixes part of bug #367692]
4350
4351 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
4352
4353         corcompare - fix parameter names [stragglers].
4354         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
4355         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
4356         TabControl.cs.
4357
4358 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
4359
4360         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
4361         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
4362         mnemonic, let the ToolStripManager have it even if it doesn't
4363         have a matching mnemonic.
4364         [Fixes bug #367499]
4365
4366 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
4367
4368         corcompare - fix warning about implicit implementation
4369         * ToolStrip.cs: Add IToolStripData interface.
4370         * IToolStripData.cs: Add.
4371
4372 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
4373
4374         corcompare - fix warning about implicit implementation
4375         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
4376         * IBounds.cs: Add.
4377
4378 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
4379
4380         corcompare - fix parameter names [N-Z].
4381         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
4382         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
4383         PropertyManager.cs, RichTextBox.cs,
4384         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
4385         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
4386         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
4387         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
4388         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
4389         ToolStripContentPanel.cs, ToolStripDropDown.cs,
4390         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
4391         ToolStripPanel.cs, ToolStripSeparator.cs,
4392         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
4393         UICuesEventHandler.cs, UpDownBase.cs.
4394
4395 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
4396
4397         corcompare - fix parameter names [G-M].
4398         GridColumnStylesCollection.cs, GridItemCollection.cs,
4399         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
4400         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
4401         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
4402         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
4403         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
4404
4405 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
4406
4407         corcompare - fix parameter names [A-F].
4408         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
4409         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
4410         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
4411         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
4412         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
4413         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
4414         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
4415
4416 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
4417
4418         * GridEntry.cs: Do not convert not only if the types match, 
4419         but also if the property type is assigneable from the value's
4420         type.
4421         [Fixes bug #366566]
4422
4423 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
4424
4425         * PropertyGridView.cs: 
4426          - Subscribe to the listbox only once and not everytime.
4427          - Update the textbox even if SetValue fails.
4428          - Close the listbox before calling TrySetValue just in case.
4429          [Fixes bug #366569]
4430
4431 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
4432
4433         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
4434
4435 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4436
4437         * ListView.cs: Implement support for custom column width based on
4438         Columns collection (we were previously using this collection only
4439         with Details view).
4440         Fixes #364484.
4441
4442 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4443
4444         * ListViewItem.cs: For Tile view, always set bounds for the first
4445         subitem (which is the main one), and also don't let Width be larger
4446         than ListView.TileSize.Width. Improve code readibility also.
4447         * ThemeWin32Classic.cs: When painting the ListViewItem instances
4448         in Tile view, _always_ use the NoWrap flag.
4449         Fixes #360798.
4450
4451 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
4452
4453         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
4454         in case.
4455         * GridEntry.cs: For MS compitability make all child properties 
4456         readonly if the parent is readonly. Ugh.
4457         [Fixes bug #365945 and #365944]
4458
4459 2008-02-29  Andreia Gaita <avidigal@novell.com> 
4460
4461         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
4462           relative to the history
4463
4464 2008-02-29  Andreia Gaita <avidigal@novell.com>
4465
4466         * HtmlElement.cs: More handlers for mouse and key events
4467
4468 2008-02-28  Andreia Gaita <avidigal@novell.com>
4469
4470         * WebBrowserBase.cs: MouseClick sig changed.
4471         * HtmlHistory.cs: Implement history navigation
4472         * HtmlElement.cs: Add event handlers, and connect them.
4473
4474 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
4475
4476         * GridEntry.cs: 
4477          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
4478            so that DisplayNameAttribute doesn't get ignored.
4479          - Check for ParenthesizeNameAttribute and parenthesize the Label.
4480          - Add support for PasswordPropertyTextAttribute
4481         * PropertyGridView.cs: Check if an entry is a password.
4482         [Fixes bugs #365589, #365586, #365588]
4483
4484 2008-02-28  Andreia Gaita <avidigal@novell.com>
4485
4486         * PropertyGridView.cs: Revert the message filtering change, as we
4487         need it to block after all. Remove block parameter, unnecessary.
4488
4489 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
4490
4491         * UserControl.cs: Better implementation of GetPreferredSize.
4492         First step to fixing bug #361441.
4493
4494 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4495
4496         * Binding.cs: Actually implement data binding support for 
4497         classes implementing IBindableComponent.
4498         * ControlBindingsCollection.cs: Likewise.
4499
4500 2008-02-26  Andreia Gaita  <avidigal@novell.com>
4501
4502         * PropertyGridView.cs: Use a message filter to check when to 
4503         close the dropdown
4504
4505 2008-02-26  Andreia Gaita  <avidigal@novell.com>
4506
4507         * Application.cs: Change the message_filters loop so a filter 
4508         can be removed while looping.
4509
4510 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
4511
4512         * GridEntry.cs: Optimization in ToggleValue so that it caches
4513         the current value.
4514         * PropertyGridView.cs: An optimization so that the property isn't 
4515         re-read twice for each StandardValue added to the drop-down menu.
4516         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
4517         license.
4518         [Fixes bug #362755]
4519
4520 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
4521
4522         * Application.cs: Apply patch from Justin Cherniak to match
4523         MS better for ProductName, ProductVersion, and CompanyName.
4524         [Fixes bug #361709]
4525
4526 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4527
4528         * Binding.cs: Actually implement 2.0 NullValue property. Also
4529         when changing the formatting related properties, only update the state
4530         if formatting_enabled is true (we don't mind otherwise).
4531
4532 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
4533
4534         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
4535         [Fixes bug #364486]
4536
4537 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
4538
4539         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
4540         of GetType on the current value as it uses reflection to 
4541         determine the type. This fixes the case where the new value is 
4542         null. 
4543
4544 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
4545
4546         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
4547         past the view.
4548
4549 2008-02-24  Luke Page  <luke.a.page@gmail.com>
4550
4551         * Line.cs, TextControl.cs: Implement offset x and y so that a
4552         document doesn't have to begin  at (0,0) on the viewpoint.
4553         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
4554         bars and switches the text alignment (and therefore is now
4555         implemented for textbox). Fixes #321383.
4556
4557 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4558
4559         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
4560         properties. Also when changing FormattingEnabled update the control
4561         property -as .Net does-.
4562
4563 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
4564
4565         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
4566         * Binding.cs: Add stubs for the overloads of the Add method in
4567         CBCollection.
4568
4569 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4570
4571         * Binding.cs: PullData () returns a false value if we got an exception.
4572         Also when validating the control and we get an error, instead of
4573         setting the value of the previous one, cancel the event (tested in 1.1
4574         and 2.0).
4575
4576 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
4577
4578         * TreeView.cs: Make selected_node and highlighted_node internal.
4579         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
4580         to null when Nodes.Clear is called.
4581         [Fixes bug #363884]
4582
4583 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
4584
4585         * FontDialog.cs: Ensure that when the Font is set in code,
4586         all the gui pieces are updated accordingly.
4587         [Fixes bug #361020]
4588
4589 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
4590
4591         * TextRenderer.cs: Respect proposed size for MeasureString.
4592         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
4593         autosize, use a proposed width to force wrapping for long text.
4594         [Fixes bug #360981]
4595
4596 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
4597
4598         * TreeView.cs: Factor in checkboxes = false and state images in
4599         to HitTest.  [Fixes bug #363360]
4600
4601 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
4602
4603         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
4604         when drawing the selected range.
4605         [Fixes bug #363648]
4606
4607 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
4608
4609         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
4610         ResizeRedraw control styles.
4611         [Fixes bug #363555]
4612
4613 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
4614
4615         * TreeView.cs: StateImages are basically custom checkboxes, so
4616         factor their size the same as real checkboxes when determining
4617         what got clicked.
4618         [Fixes bug #363367]
4619
4620 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
4621
4622         * MessageBox.cs: Make the message box wider if the form caption
4623         is longer than the text in the form.
4624         [Fixes bug #361137]
4625
4626 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
4627
4628         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
4629
4630 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
4631
4632         * TreeNode.cs: Guard against an NRE when the parent's
4633         StateImageList hasn't been set.
4634         [Fixes bug #363353]
4635
4636 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
4637
4638         * SplitContainer.cs: Add SupportsTransparentBackColor and
4639         OptimizedDoubleBuffering control styles.
4640         [Fixes bug #363303]
4641
4642 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
4643
4644         * Application.cs: For the app data paths and the registry key paths,
4645         ensure they are created before returning them to the user.
4646         [Fixes bug #361709]
4647
4648 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
4649
4650         * Application.cs: Guard against an NRE in CompanyName and
4651         ProductName.
4652
4653 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
4654
4655         * Application.cs: For CompanyName, ProductName, and ProductVersion,
4656         make sure we handle all three cases correctly: attribute is present,
4657         attribute is present but is an empty string, and attribute is not
4658         present.
4659
4660 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
4661
4662         * PropertyGridView.cs: 
4663          - Fix a NRE that caused a test failure
4664          - Another performance improvement - cache the standard values
4665          listbox.
4666
4667 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
4668
4669         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
4670         code paths.
4671
4672 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
4673
4674         * PropertyGridView.cs: Fix a big performance bug.
4675
4676 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
4677
4678         * SelectionRange.cs: Apply patch from Andy Hume to make
4679         constructor behavior more accurate.  [Fixes bug #362117]
4680
4681 2008-02-19  Andreia Gaita <avidigal@novell.com> 
4682
4683         * Control.cs: Added a new flag is_disposing to track if the
4684         window is currently in the process of being disposed of.
4685         This is used so that, when firing visibility changes triggered
4686         by unparenting controls during Dispose, the control doesn't
4687         get created again.      
4688
4689 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
4690
4691         * ComboBox.cs: Set height to preferred height when the handle
4692         is created.  [Fixes bug #360862]
4693
4694 2008-02-18  Andreia Gaita <avidigal@novell.com>
4695
4696         * XplatUIX11.cs: Create FosterParent with border width at 0.
4697         With the previous value of 4, everytime a control got reparented
4698         from parent = null, it's location would be shifted right and 
4699         down by 4, since these coordinates would be offset by the 
4700         FosterParent's border width.
4701
4702 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
4703
4704         * Control.cs: During diposing firstly remove ourselfes from
4705         the parent and *then* destroy our handle, because removing
4706         ourselfes from the parent controls collection causes 
4707         VisibilityChange, etc events, which require a handle and end
4708         up recreating the control.
4709
4710 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
4711
4712         * GridEntry.cs: Set expanded state before notifying that the
4713         expansion has taken place.
4714         * PropertyGridView.cs:
4715          - Set the propertygridtextbox text to the selected 
4716          StandardValue before proceeding to setting it.
4717          - Scrolling bugfixes.
4718
4719 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
4720
4721         * GridEntry.cs:
4722          - Fix ValueText to not return null.
4723          - Fix conversion error reporting to actually happen.
4724         * PropertyGridView.cs: Set entry only if the text has changed.
4725         [Fixes bug #362116]
4726
4727 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
4728
4729         * GridEntry.cs: 
4730          - Fix handling of a null current value.
4731          - Swallow editor exceptions.
4732         [Fixes bug #362114]
4733
4734 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
4735
4736         * PropertyGrid.cs: Clear current items first thing before 
4737         repopulating subitems.
4738         * GridEntry.cs: 
4739          - Handle null StandardValuesCollection.
4740          - Mark as not editable if there is no PropertyDescriptor and
4741          if the Converter cannot convert from string.
4742         [Part of fix for bugs #360666 and #358332]
4743
4744 2008-02-15  Luke Page  <luke.a.page@gmail.com>
4745         * MaskedTextBox.cs: Now skips non editable characters after a
4746         character has been entered and we are progressing to the next
4747         position in the MaskedTextBox.
4748
4749 2008-02-15  Luke Page  <luke.a.page@gmail.com>
4750         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
4751         that it changes the selection rather than just repositioning the
4752         cursor. Fixes Bug #360873.
4753
4754 2008-02-15  Luke Page  <luke.a.page@gmail.com>
4755         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
4756         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
4757         correctly. See #359330
4758
4759 2008-02-15  Andreia Gaita <avidigal@novell.com>
4760
4761         * XplatUIX11.cs: If the handle is null when posting a message, use the
4762         current thread queue to post instead. Fixes #332409
4763
4764         * SendKeys.cs: Slight optimization
4765
4766 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
4767
4768         * PropertyGrid.cs, PropertyGridView.cs:
4769         Fix multiple scrolling and sizing issues.
4770         [Fixes bug #359199]
4771
4772 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
4773
4774         * PropertyGridView.cs: Ensure that drop down editors are shown
4775         in the WorkingArea of the screen.
4776         [Fixes bug #359807]
4777
4778 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
4779
4780         * GridEntry.cs: Fail silently when UITypeEditor is missing.
4781         [Fixes bug #360666]
4782
4783 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4784
4785         * Binding.cs: Implement 2.0 DataSourceNullValue property.
4786
4787 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
4788
4789         * PropertyGridView.cs:
4790          - Clear the controls in the drop down form after it is hidden.
4791          - Fix Width sizing of the dropdown editors to match MSFT.
4792
4793 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
4794
4795         * PropertyGridView.cs: 
4796          - Fix height for drawing the grid entry
4797          text value, so that it clips multiline text properly.
4798          - Fix unfocusing to match MSFT.
4799
4800 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
4801
4802         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
4803         Fixes a bug where on repopulation after value changed items become
4804         expandable.
4805
4806 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4807
4808         * Binding.cs: For the 2.0 profile, look for a 
4809         'PropertyChanged' event in the target control, and add checks for
4810         DataSourceUpdateMode property to change -or not- the data source
4811         from validation/control property change.
4812
4813 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
4814
4815         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
4816           not compare struct with null in 2.0).
4817
4818 2008-02-10  Luke Page <luke.a.page@gmail.com>
4819
4820         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
4821         updates the provider and if not using a provider, uses the internal document
4822         class implementation of password char. Also when showing text, uses display string
4823         from the provider, instead of the actual text.
4824
4825 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4826
4827         * Binding.cs: Ooooops, forgot to take into account the data_source
4828         and binding_member_info null case (it was breaking the Binding tests).
4829
4830 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4831
4832         * Binding.cs: Implement support for data source changes exposed by
4833         'PropertyNameChanged' events, and update the control property as
4834         needed.
4835
4836 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4837
4838         * Binding.cs: Implement 2.0 WriteValue method.
4839
4840 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
4841
4842         Commit patch from James Purcell for better AutoScale implementation:
4843
4844         * ScaleControl should call GetScaledBounds with the control's total size rather
4845         than client size.  GetScaledBounds should handle ignoring the borders in its
4846         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
4847         (for the most part they just call the base code now since that is fixed).
4848         * Added ScaleChildrenInternal to allow controls to disable scaling of children
4849         without having to override ScaleChildren (since none of .NET's controls do). 
4850         This is required for most controls in Mono that have scrollbars to prevent the
4851         scrollbars from being moved/resized.
4852         * Nested ContainerControls can have a different scale mode than their parent. 
4853         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
4854         designer produce different results both of which look incorrect).
4855         * Default AutoScaleMode for ContainerControl should be Inherit.
4856         * Simplified workaround for ComboBox scaling issue.
4857         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
4858         1.0 style auto scaling should scale the whole control's size instead of
4859         ignoring the borders (except for Form) and the rounding is done differently to
4860         preserve control alignment.
4861         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
4862         GetAutoScaleSize.
4863         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
4864         * CurrentAutoScaleDimensions should round the estimated character width instead
4865         of truncating.
4866         * ListBox's GetScaledBounds should always use the height it was set to instead
4867         of the height that was passed in.  This prevents rounding errors from
4868         accumulating quickly with IntegralHeight.
4869         [Bug #359098]
4870
4871 2008-02-08  Andreia Gaita <avidigal@novell.com>
4872
4873         * Form.cs: Add a null check (darn it). 
4874
4875 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
4876
4877         * MdiClient.cs: Make sure the requesting form actually owns the
4878         control menu items before removing them.  Also, use
4879         Suspend/ResumeLayout when adding or removing items so we only
4880         layout once.
4881         [Fixes bug #359887]
4882
4883 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
4884
4885         * Control.cs: Guard against an NRE in ShowFocusCues.
4886         [Fixes bug #359830]
4887
4888 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4889
4890         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
4891         property, as well as stubbing DataSourceUpdateMode.
4892
4893 2008-02-08  Andreia Gaita <avidigal@novell.com>
4894
4895         * Form.cs: When closing forms, get focus back to the active control of the
4896         active form. [Fixes #341314, corner case]
4897         
4898 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
4899
4900         * MdiClient.cs: After we move the scrollbars, invalidate the NC
4901         area, so any old scrollbar artifacts are cleaned up.
4902         [Fixes bug #336305]
4903
4904 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
4905
4906         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
4907         for our menus, display that control box menu instead of the 1.1
4908         menu one.
4909
4910 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
4911
4912         * MdiControlStrip.cs: Add property to access the mdi form tied to
4913         each toolstripitem.
4914         * MdiClient.cs: Be smarter about removing and adding toolstripitems
4915         to the implicitly merged menu.  Every time we clicked the form, items
4916         were getting removed and the re-added, causing the form to jump around
4917         as the menu resized.
4918
4919 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
4920
4921         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
4922         was being reset by the implicit menu merge for menustrips.
4923         [Fixes bug #336296]
4924
4925 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
4926
4927         * Form.cs: Don't do the previous change when WindowState = Normal,
4928         or it messes up where the window is placed.  Fixes test failure.
4929
4930 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
4931
4932         * Form.cs: When becoming visible, if we are an MDI child, call
4933         SetWindowState with a dummy old_state so that changes will actually
4934         be made.
4935         [Fixes the 2nd part of bug #325473]
4936
4937 2008-02-07  Andreia Gaita <avidigal@novell.com>
4938
4939         * Control.cs: Reset properties to their pre parent-change values in case
4940         the new parent == null (in which case we're basically removing the control, 
4941         and don't want any events fired due to fake property changes)
4942         [Fixes #355850]
4943
4944 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
4945
4946         * PropertyGridView.cs: 
4947          - Refactor SetValue to allow setting the value
4948         when a custom editor is used, but the entry is not editable.
4949          - Remove the custom editor control on CloseDropDown.
4950         [Fixes #359196]
4951
4952 2008-02-06  Andreia Gaita <avidigal@novell.com>
4953
4954         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
4955         reflection only on 1.1, this property is public on system.drawing on 2.0.
4956         Fixed #359247
4957
4958 2008-02-06  Andreia Gaita  <avidigal@novell.com>
4959         
4960         * WebBrowser.cs: Do a normal page refresh by default.
4961
4962 2008-02-05  Andreia Gaita  <avidigal@novell.com>
4963
4964         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
4965         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
4966         platforms. Fixes #359036
4967         
4968         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
4969         platform-specific flags.
4970
4971 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4972
4973         * Binding.cs: Add 2.0 BindableComponent property - just return control
4974         by now.
4975
4976 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
4977
4978         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
4979         Jonathan for this patch. Fixes #358442.
4980
4981 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
4982
4983         * Form.cs: If we change the active MDI child form, let the others
4984         know they need to repaint their title bar so it will appear inactive.
4985         [Fixes part 1 of bug #325473]
4986
4987 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
4988
4989          * PropertyGridView.cs: Do not trucate custom editors' width
4990          and align them to the left.
4991          [Fixes #358353 and #358349]
4992
4993 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4994
4995         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
4996         Also fix the arguments passed to CollectionChangeEventArgs in the
4997         related methods.
4998
4999 2008-02-04  Geoff Norton  <gnorton@novell.com>
5000
5001         * Hwnd.cs: The conversion to Quartz coordinates happens in
5002         System.Drawing.  Removing this translation from here.
5003
5004 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
5005
5006          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
5007          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
5008          GridItemCollection.cs:
5009          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
5010
5011 2008-02-04  Geoff Norton  <gnorton@novell.com>
5012
5013         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
5014         SYSKEYUP if any other key has been pressed in the mean time.
5015         Fixes #324404
5016
5017 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5018
5019         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
5020         when the item in current position is different than 0. Also, save the
5021         item index in the beginning of the operation, instead of getting the
5022         index of the item when the event is actually performed. Lastly clean
5023         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
5024         triggered.
5025         [Fixes #357873]
5026
5027 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
5028
5029         * Form.cs: Alt-Minus for MDI children system menu should work
5030         with both the minus keys on the keyboard.
5031         [Fixes bug #336295]
5032
5033 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
5034
5035         * Control.cs: Don't invalidate on region change.  The WM should
5036         take care of this automagically.  Keeps us out of an infinite
5037         paint loop if someone changes the Region in the OnPaint.
5038         [Fixes bug #358327]
5039
5040 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
5041
5042          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
5043
5044 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
5045
5046         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
5047         down the MonthCalendar only on F4, not Alt+F4.
5048         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
5049         [Fixes bug #358340]
5050
5051 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
5052
5053         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
5054         if its part of a DateTimePicker, else, use the back color.
5055         [Fixes bug #358339]
5056
5057 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
5058
5059         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
5060         [Fixes bug #358342]
5061
5062 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5063
5064         * CurrencyManager.cs: When we get a ListChanged event from our source,
5065         always fire our own ListChanged event, as .Net does.
5066
5067 2008-02-03  Luke Page  <luke.a.page@gmail.com>
5068
5069         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
5070         #358379.
5071
5072 2008-02-03  Luke Page  <luke.a.page@gmail.com>
5073
5074         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
5075         property. Removed if for richtext property that was always true.
5076         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
5077
5078 2008-02-03  Luke Page  <luke.a.page@gmail.com>
5079
5080         * TextBoxBase.cs - commited patch from James Purcell that
5081         correctly sets the FixedHeight control style when the MultiLine
5082         property is changed on a TextBox control. Fixes bug 358229.
5083
5084 2008-02-02  Luke Page  <luke.a.page@gmail.com>
5085
5086         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
5087         Fixes bug 351938 - caret is positioned correctly when drawn
5088         and when calculating textual position of caret, no longer
5089         has a NRE in certain situations.
5090         
5091 2008-02-01  Geoff Norton  <gnorton@novell.com>
5092
5093         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
5094         get that region removed from the paint event.
5095         * XplatUICarbon.cs: Remove the window mapping after disposing of 
5096         window.  Prevents a crash with handle reuse.  Optimize exposes
5097         only onto visible windows (rare; but possible).
5098
5099 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
5100
5101         * UpDownBase.cs: Make sure the internal textbox calls the base's
5102         OnMouseDown and OnMouseUp so the textbox will function correctly.
5103         There were notes saying it doesn't chain up, but its an internal
5104         class, so our implementation may differ.
5105         [Fixes bug #357482]
5106
5107 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
5108
5109         * ListBox.cs: Fix a logic error and don't process MouseDown
5110         for mouse buttons other than Left.
5111
5112 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
5113
5114         * Control.cs: Remove HeightInternal.
5115         * ListBox.cs: Commit patch from James Purcell that correctly
5116         calculates heights for ListBoxen.
5117         [Fixes bug #357152]
5118
5119 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
5120
5121         * Label.cs: Apply patch from James Purcell that corrects the 
5122         signature of the AutoSize property.
5123         [Fixes bug #357605]
5124
5125 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
5126
5127         * ListBox.cs: Don't throw [Mouse]Click events for buttons
5128         other than the left mouse button.
5129
5130 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
5131
5132         * Control.cs: Remove my awesome optimization as it caused some
5133         regressions with control ordering.  :(
5134         [Fixes bug #357467]
5135
5136 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
5137
5138          * PropertyGridView.cs: Fix a NRE on double click when there is no
5139          selected object.
5140
5141 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5142
5143         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
5144
5145 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
5146
5147         * ListBox.cs: Call MouseClick and MouseDoubleClick.
5148         [Fixes bug #357146]
5149
5150 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
5151
5152         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
5153         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
5154         instead of Hwnd.bmp_g.
5155
5156 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
5157
5158         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
5159         Use the Hwnd one instead.
5160
5161 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
5162
5163         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
5164
5165 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
5166
5167         * Form.cs: corcompare for RestoreBounds.
5168
5169 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
5170
5171         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
5172
5173 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
5174
5175         * Form.cs: Handle Alt-Minus for MDI children forms.
5176         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
5177         Add mnemonics to the control menu.
5178         [Fixes bug #336295]
5179
5180 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5181
5182         * Binding.cs: Initial implementation bits of FormattingEnabled
5183         property and BindingComplete event (2.0). 
5184         * BindingCompleteEventArgs.cs: Internal methods for setting error text
5185         and exception.
5186
5187 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
5188
5189         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
5190         table.Location.  [Fixes bug #354672]
5191
5192 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
5193
5194         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
5195         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
5196
5197 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5198
5199         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
5200         of doing all the re-bound work, just invalidate and call SetControlText 
5201         to set the updated text of selected item to our textbox.
5202         Fixes #333750.
5203
5204 2008-01-28  Andreia Gaita <avidigal@novell.com>
5205
5206         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
5207         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
5208         missing properties and methods. Add Load, Unload, Error, GotFocus, 
5209         LostFocus, Resize, Scroll events (only load and unload are connected)
5210
5211 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
5212
5213         * AccessibleObject.cs: Modified argument names to match MS.
5214         * Button.cs: Modified argument names to match MS.
5215         * BindingContext.cs: Modified argument names to match MS.
5216         * BindingMemberInfo.cs: Modified argument names to match MS.
5217         * ButtonBase.cs: Modified argument names to match MS.
5218         * ComboBox.cs: Modified argument names to match MS.
5219         * Control.cs: Modified argument names to match MS.
5220         * CheckedListBox.cs: Modified argument names to match MS.
5221         * CommonDialog.cs: Modified argument names to match MS.
5222         * DataGrid.cs: Modified argument names to match MS.
5223         * CursorConverter.cs: Modified argument names to match MS.
5224         * ControlPaint.cs: Modified argument names to match MS.
5225         * CheckBox.cs: Modified argument names to match MS.
5226         * ControlBindingsCollection.cs: Modified argument names to match MS.
5227         * BindingSource.cs: Modified argument names to match MS.
5228         * DataFormats.cs: Modified argument names to match MS.
5229         * ContainerControl.cs: Modified argument names to match MS.
5230         * CurrencyManager.cs: Modified argument names to match MS.
5231         * Application.cs: Modified argument names to match MS.
5232         * ContextMenuStrip.cs: Modified argument names to match MS.
5233         * ContextMenu.cs: Modified argument names to match MS.
5234         * BindingManagerBase.cs: Modified argument names to match MS.
5235         * WindowsFormsSection.cs: Fixed line ending.    
5236
5237 2008-01-27  Andreia Gaita <avidigal@novell.com>
5238
5239         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
5240         detecting that the dropdown toolwindow is hidden. EndLoop outside the
5241         while.
5242
5243 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
5244
5245         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
5246         MS. Code formatting.
5247
5248 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5249
5250         * Binding.cs: Don't avoid the Format event if the control 
5251         property type is object. Also, if the value retrieved by 
5252         the data source is null _and_ the control proeprty type 
5253         is object, return Convert.DBNull (match .Net).
5254         Fixes part of #324286.
5255
5256 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5257
5258         * ListControl.cs: Since we are getting two BinginContextChanged events
5259         for the same binding context instance (when the control is added to
5260         form, and when the form is actually shown), take it into account only the
5261         first time for a given binding context instance.
5262         Fixes part of #324286.
5263
5264 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
5265
5266          * PropertryGridView.cs: Ops.
5267
5268 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
5269
5270          * PropertyGridView.cs: Close dropdown form if the owner form is
5271          moved or minimized.
5272          [Fixes bug #322446]
5273
5274 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
5275
5276          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
5277          RootGridEntry.cs, CategoryGridEntry.cs:
5278          PropertyGrid rewrite.
5279          - Rewrite all of the control logic in PropertyGrid.
5280          - Rewrite all of the ComponentModel logic in GridEntry.
5281          - Rewrite all UI work in PropertyGridView.
5282          - Many bugfixes, etc.
5283
5284 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
5285
5286         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
5287         when all contained controls are autosize or dock-fill.  Also take into
5288         account when the total percentage of column/row sizes is not 100%.
5289         [Fixes bug #354672]
5290
5291 2008-01-24  Andreia Gaita <avidigal@novell.com>
5292
5293         * HtmlDocument.cs:
5294         - Save a reference to the IDocument in the instance and
5295           use that one instead of going to WebHost.Document; the document that the 
5296           WebHost returns might not be the right one (in case of frames).
5297         - Use the hashcode returned from the IDocument interface.
5298         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
5299           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
5300           LinkColor, Url, VisitedColor, Window
5301
5302         * HtmlElement.cs: 
5303         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
5304           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
5305           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
5306           SetAttribute, Equals, equality operators.
5307         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
5308           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
5309         
5310         * HtmlElementCollection.cs: Change implementation to use a generic
5311         collection. Implemented Enumerator and CopyTo
5312
5313         * HtmlHistory.cs: Add constructor, no implementation yet.
5314
5315         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
5316         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
5317         Equals, equality operators.
5318
5319         * HtmlWindowCollection.cs: Implemented. 
5320
5321         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
5322         has been deprecated).
5323
5324         * WebBrowserBase.cs: Use Completed event to track document loading
5325         (Navigated has been deprecated)
5326
5327 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
5328
5329         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
5330         level MenuItems do not respect tabs.
5331         [Fixes bug #355196]
5332
5333 2008-01-23  Geoff Norton  <gnorton@novell.com>
5334
5335         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
5336         FormWindowState.  Finished fixing Fullscreen windows on Carbon
5337
5338 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
5339
5340         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
5341         be used as grab_control. Also save status of capture before show ContextMenu
5342         and restore it after close.
5343
5344 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
5345
5346         * Control.cs: Internal FindRootParent method added to return high control
5347         in parent tree.
5348
5349 2008-01-23  Geoff Norton  <gnorton@novell.com>
5350
5351         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
5352         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
5353         it work again.  Handle HITTEST events.
5354
5355 2008-01-23  Geoff Norton  <gnorton@novell.com>
5356
5357         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
5358         a crash in certain cases.  Support for fullscreen windows in certain cases.
5359
5360 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
5361
5362         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
5363         [Fixes bug #355703]
5364
5365 2008-01-23  Geoff Norton  <gnorton@novell.com>
5366         
5367         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
5368
5369 2008-01-23  Geoff Norton  <gnorton@novell.com>
5370
5371         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
5372
5373 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
5374
5375         * SplitContainer.cs: Remove unused declarations.
5376         * Binding.cs: Remove unused declarations.
5377
5378 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
5379
5380         * Form.cs: Remove unused declaration of 'active' in Activate method.
5381         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
5382         prevent compilation warnings.
5383         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
5384         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
5385         * Bindings.cs: Remove unused formatting_enabled declaration.
5386         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
5387         warnings.
5388         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
5389         warnings.
5390         * PropertyGridView.cs: Remove usused 'ex' declaration.
5391         * DataGridView.cs: Remove unused declarations.
5392
5393 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
5394
5395         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
5396         
5397         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
5398         to Control class, it makes possible to grab menu to controls that can't 
5399         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
5400         WmMouseMove removed since it was used only to track menu events.
5401
5402         * Control.cs:
5403         - Moved all active_tracker stuff from Form.
5404         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
5405         can call this method instead of reimplement all necessary code handle for
5406         menu tracker.
5407         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
5408         and WmMouseMove).
5409         
5410         * MenuAPI.cs: 
5411         - Remove special handle to ToolStripOverflow, now we can grab menu to 
5412         controls that can't reach Form using parent tree.
5413         - Change type of grab_control from Form to Control.
5414
5415 2008-01-22  Geoff Norton  <gnorton@novell.com>
5416
5417         * TextBoxBase.cs: Split up the sizing of controls and placing of 
5418         controls.  Fixes a bug where scrollbars in Reflector could be sized
5419         wrong and have non-working thumbers.
5420
5421 2008-01-23  Geoff Norton  <gnorton@novell.com>
5422
5423         * XplatUI.cs: Refactor environment variables to default support to the
5424         Carbon driver on the Mac.
5425
5426 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
5427
5428         * Label.cs: Uses new LabelPainter for drawing operations.
5429         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
5430         * Theme.cs: DrawLabel and LabelDefaultSize removed.
5431
5432 2008-01-22  Geoff Norton  <gnorton@novell.com>
5433
5434         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
5435
5436 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
5437
5438         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
5439         through the normal flat button code and don't draw the checkbox glyph.
5440         * Theme.cs: Button->ButtonBase signature change.
5441         [Fixes bug #324755]
5442
5443 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
5444
5445         * LinkLabel.cs: Uses new class LinkLabelPainter.
5446
5447 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
5448
5449         * MessageBox.cs: Adjust right border space, we don't need to add 
5450         "space_border*2" two times.
5451
5452 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
5453
5454         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
5455         becomes a wrapper around Padding.
5456         [Fixes a part of bug #354676]
5457
5458 2008-01-22 Geoff Norton  <gnorton@novell.com>
5459
5460         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
5461         acquired.  Also ensure the buffer is large enough to grab the header
5462         we need on linux boxes.
5463
5464 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
5465
5466         * Control.cs: Implement a custom enumerator so people can delete
5467         from the Controls collection while in a foreach.
5468         [Fixes bug #355074]
5469
5470 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
5471
5472          * PropertyGridView.cs: Fix focusing behavior:
5473          - Tab should focus the grid text box.
5474          - Clicking on the labels shouldn't focus the grid text box.
5475
5476 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
5477
5478          * PropertyGridView.cs: IsValueTypeGridItem should return true 
5479          for Arrays as well.
5480
5481 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
5482
5483          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
5484           - Renamed GridEntry.SelectedObjects to TargetObjects to better
5485           reflect the property name role.
5486           - PropertyGrid.GetTarget is not required as the target is known
5487           (TargetObjects).
5488           - Setting values will handle value types as a special case now and
5489           populate them up in the chain.
5490           [Fixes #354990]
5491
5492 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
5493
5494         * Hwnd.cs: Create a public property for the Graphics we keep around.
5495
5496 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
5497
5498          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
5499          when the current object selection changes. 
5500          Fixes failing test SelectedObject_Null2.B5.
5501
5502 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
5503
5504          * PropertyGrid.cs: Process Browsable properties with 
5505          DesignerSerializationVisibilityAttribute.Content as being expandable.
5506          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
5507          will not be expandable. We should be nested components-friendly now.
5508
5509 2008-01-21  Andreia Gaita <avidigal@novell.com>
5510
5511         * WebBrowserBase.cs: Check if control was loaded properly, 
5512         don't bind if it wasn't.
5513
5514         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
5515         GetElementFromPoint, equality operators, OpenNew, Write.
5516         Remove extra set_Body
5517
5518 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
5519
5520         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
5521         that makes our AutoScale* stuff more tolerant to different orders
5522         of being set.  [Fixes bug #354669]
5523
5524 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
5525
5526          * PropertyGridView.cs, PropertyGridTextBox.cs: 
5527          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
5528          [Fixes #339005 and #348209]
5529
5530 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
5531
5532          * PropertyGridView.cs: Hide the grid text box before adjusting it
5533          for the newly selected GridItem.
5534          [Fixes #338999]
5535
5536 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
5537
5538         * Form.cs: Give MDI children the opportunity to cancel the parent form
5539         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
5540         properly for both the parent and child.
5541         * Application.cs: Signature of internal method changed, pass the previous
5542         default of false.
5543         [Fixes bug #354286]
5544
5545 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
5546
5547         * PropertyGridView.cs: Set the property value only if it has changed.
5548         [Fixes bug #338997]
5549
5550 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
5551
5552         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
5553         If the mouse hasn't actually moved, ignore these messages so the currently
5554         highlighted menuitem isn't reset to the one under the mouse.
5555         [Fixes bug #333668]
5556
5557 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
5558
5559         * PropertyGridView.cs: When the property changes Invalidate the GridItem
5560         in order for the properties with UITypeEditor.GetPaintValueSupported == true
5561         to reflect the change visually.
5562         [Fixes bug #338998]
5563
5564 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
5565
5566         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
5567         to 2.0 button drawing.
5568         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
5569         the button text is tall enough for one line.  LineLimit says it will
5570         always draw at least one line, but it is a lie.
5571         [Fixes bug #324941]
5572
5573 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
5574
5575         * XplatUIStructs.cs, X11Keyboard.cs :
5576           added some more VK_* keys to be handled.
5577
5578 2008-01-16  Andreia Gaita <avidigal@novell.com>
5579
5580         * Control.cs: Check if there is a container before setting or getting
5581         the validation flag.
5582
5583 2008-01-16  Andreia Gaita <avidigal@novell.com>
5584
5585         * ContainerControl.cs: Add flag to track if a control cancels validation, 
5586         so we don't fire click events.
5587
5588         * Control.cs: 
5589         - (HandleClick) Check if validation was cancelled before  firing the click
5590         events (doubleclicks are fired, but not clicks)
5591         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
5592         ContainerControl.set_ActiveControl, but in the case of non-selectable
5593         controls, like a Label, activecontrol is not set. 
5594
5595         * ButtonBase.cs: Only fire clicks if validation passes.
5596         
5597         Fixes #353310
5598
5599 2008-01-16  Geoff Norton  <gnorton@novell.com>
5600
5601         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
5602         trunk
5603
5604 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
5605
5606         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
5607         SelectedPath, just display the default dialog instead of crashing.
5608         [Fixes bug #348989]
5609
5610 2008-01-16  Geoff Norton  <gnorton@novell.com>
5611
5612         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
5613         AddExpose instead of trusting apples compositing manager which doesn't
5614         work for our use case.  Remove some dead code causing warnings and 
5615         redecorate some other code to prevent warnings.
5616
5617 2008-01-16  Geoff Norton  <gnorton@novell.com>
5618
5619         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
5620         carbon signals us to redraw.  Fixes another portion of the flickering bug
5621
5622 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
5623
5624         * Form.cs: Prevent the MdiParent property to be set when value is the same
5625         as value already set. Fixes bug #328019.
5626
5627 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
5628
5629         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
5630         it prevents NRE when closing mdi child windows. Fixes bug #325211.
5631
5632 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
5633
5634         * InternalWindowManager.cs: Invalidade close button after mouse up when 
5635         mdi form is prevented to close.
5636
5637 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
5638
5639         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
5640         thanks to Andy Hume. Fixes bug #325433.
5641
5642 2008-01-16  Andreia Gaita <avidigal@novell.com>
5643
5644         * LinkLabel.cs: Reset focused_index when resellecting the control.
5645         Fixes #323190
5646
5647 2008-01-15  Geoff Norton  <gnorton@novell.com>
5648
5649         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
5650         messages.
5651
5652 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
5653
5654         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
5655         of truncate.
5656
5657 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
5658
5659         * ContainerControl.cs: Setting AutoScaleMode to anything should set
5660         Form.AutoScale to false.
5661         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
5662         AutoScaleBaseSize should be changed on Font change unless it has been
5663         explicitly set.
5664         [Fixes bug #353827]
5665
5666 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
5667
5668         * MenuAPI.cs: On instance of MenuTracker check if source control is
5669         ToolStripOverflow and use properly method to find form.
5670         [Fixes bug #338511]
5671
5672 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
5673
5674         [Fixes bug #323241 Transparent toolbar support]
5675
5676         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
5677         is flat.
5678
5679         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
5680         defined in control style to mimic win32 behavior.
5681
5682         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
5683         it will be transparent.
5684
5685 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
5686
5687         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
5688         CreateParams for ToolBar controls.
5689
5690 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
5691
5692         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
5693         FixedToolWindow, SizeableToolWindow, or None for border styles have
5694         different minimum sizes than regular forms.  Implemented to fix
5695         regression in PDN with toolbox being too wide.
5696
5697 2008-01-14  Andreia Gaita <avidigal@novell.com>
5698
5699         * HtmlElementCollection.cs: Implemented
5700
5701         * HtmlElement.cs: Implemented:
5702           - All
5703           - InnerHtml
5704           - InnerText
5705           - Id
5706           - Name
5707           - FirstChild
5708
5709         * HtmlDocument.cs: Implemented GetElementsByTagName.
5710
5711 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
5712
5713         * Screen.cs: Stub BitsPerPixel to always return 32.
5714
5715 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
5716
5717         * Form.cs: Implement RestoreBounds.
5718
5719 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
5720
5721         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
5722         Sebastien and his fabulous magical problem-finding machine:
5723         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
5724         respect the value set.
5725
5726 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
5727
5728         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
5729         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
5730
5731 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5732
5733         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
5734         messages (to match .Net), we need to remove the capture ourselves.
5735
5736 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
5737
5738         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
5739         will process the message and close our window.
5740         [Fixes bug #324328]
5741
5742 2008-01-10  Geoff Norton  <gnorton@novell.com>
5743
5744         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
5745         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
5746         window manager.
5747
5748 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
5749
5750         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
5751         failing test.
5752
5753 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
5754
5755         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
5756         Linux doesn't care, having a minimum matches MS and keeps the window
5757         from becoming too small to use window decorations.
5758         [Fixes bug #338996]
5759
5760 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
5761
5762         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
5763         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
5764         control.  [Fixes bug #325419]
5765
5766 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
5767
5768         * ComboBox.cs: Guard against an NRE if the user open a new form from a
5769         SelectedIndexChanged event.  This closes the combobox dropdown, and we
5770         were trying to dispose it.  [Fixes bug #352830]
5771
5772 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
5773
5774         * Control.cs, Form.cs: Implement the necessary semantics for
5775         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
5776         to determine if a focus rectangle should be drawn.
5777         * PropertyGrid.cs: Fix property visibility to match override.
5778         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
5779
5780 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
5781
5782         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
5783         [Fixes bug #323552]
5784
5785 2008-01-09  Geoff Norton  <gnorton@novell.com>
5786         
5787         * XplatUICarbon.cs: Scroll windows in the correct direction.
5788
5789 2008-01-09  Geoff Norton  <gnorton@novell.com>
5790
5791         * XplatUICarbon.cs: Track all created utility windows so we can hide them
5792         when the app is deactivated or spaces is enabled.
5793
5794 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5795
5796         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
5797         extra separation pixel for the label rect origin if SmallImageList is
5798         null, and thus we don't need that separation between icon and label
5799         rects.
5800         Patch by Ernesto Carrea.
5801         Fixes # 340195.
5802
5803 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
5804
5805         * StatusStrip.cs: Invalidate after completing a layout.  The base
5806         OnLayout does this, but we don't call the base.
5807         * ToolStripItem.cs: Revert the previous change to invalidate after
5808         the item moves.
5809         [Fixes bug #351341 better.]
5810
5811 2008-01-07  Geoff Norton  <gnorton@novell.com>
5812
5813         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
5814         not a notification to exit the application.  Listen for WM_QUIT
5815         instead.
5816
5817 2008-01-07  Andreia Gaita <avidigal@novell.com>
5818
5819         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
5820
5821 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
5822
5823         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
5824         so it can repaint at the correct location.
5825         [Fixes bug #351341]
5826
5827 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5828
5829         * ListControl.cs: SelectedValue should return a null value if
5830         SelectedIndex is -1. Also, when setting it, it should throw an
5831         ArgumentNullException if the value is null, as well as taking
5832         into account the String.Empty value, instead of ignoring it (we have
5833         tests for that now).
5834         Fixes part of #324286.
5835
5836 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
5837
5838         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
5839         SelectionStart is updated after pressing enter.  Fixes bug #351918.
5840
5841 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
5842
5843         * TextControl.cs: Revert a piece r92316 that prevented the fix
5844         from working when there were multiple tags in the text box.
5845         Fixes bug #351881.
5846
5847 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
5848
5849         * TextControl.cs: Apply patch from Luke Page that prevents an
5850         NRE when determining the beginning of a paragraph.
5851         Fixes bug #351886.
5852
5853 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
5854
5855         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
5856         caret gets moved with clicking away from a selected block of
5857         text.  Fixes bug #351885.
5858
5859 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
5860
5861         * TextControl.cs: Apply patch from Luke Page that takes line
5862         alignment into account for mouse selection, so that center and
5863         right aligned text can be selected.
5864         Fixes bug #351881.
5865
5866 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
5867
5868         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
5869         issues after loading an RTF file by using the correct line feeds.
5870         Fixes bug #351841.
5871
5872 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
5873
5874         * TextControl.cs: When deleting multiple line selections, we need
5875         to invalidate every line beginning at the first line of the selection.
5876         Patch from Luke Page fixes bug #351791.
5877
5878 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5879
5880         * ListControl.cs: When getting a CurrencyManager.PositionChanged
5881         event, don't set SelectedIndex if the number of items is 1. This is
5882         because, for the first item, PositionChanged is fired _before_
5883         ItemChanged (the place where we actually populate the items), and
5884         leave us in a temporary invalid state (since items collection is
5885         empty).
5886         Fixes #349655.
5887
5888 2008-01-04  Geoff Norton  <gnorton@novell.com>
5889
5890         * XplatUICarbon.cs:  Create native toolwindows instead of
5891         the managed drawing ones.
5892
5893 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
5894
5895         * LineTag.cs: If the line doesn't have any characters, return
5896         0 for GetCharIndex.  Fixes an AOORE exception after certain
5897         caret movements.  Fixes bug #351683.  Patch by Luke Page.
5898
5899 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
5900
5901         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
5902         is hit when there is selected text, only the selected text gets
5903         deleted, not the character in front of the selection as well.
5904         Fixes bug #351578.
5905
5906 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5907
5908         * ComboBox.cs: When the values are displayed, calculate the
5909         ComboListBox scrollbar's LargeChange based on the visible area's
5910         height and  the actuall ItemHeight, instead of calculating it
5911         based on MaxDropItems value, since it's not used by our _current_ 
5912         2.0 profile.
5913         Fixes #332366.
5914
5915 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
5916
5917         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
5918         Patch from Luke Page that fixes issues with font colors and styles
5919         not showing up in a readonly RichTextBox.  Fixes bug #324354.
5920
5921 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
5922
5923         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
5924         from Luke Page.  This one fixes bug #349926.
5925
5926 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5927
5928         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
5929         an item in the IBindingList source changes with
5930         ListChangedType.ItemAdded. Ignore for now firing the event for other
5931         changes, since we want to have tests for those cases as well.
5932
5933 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
5934
5935         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
5936         created.
5937
5938 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
5939
5940         * TextBoxTextRenderer.cs: Implement a cache for measuring each
5941         character.  This is effective because the typical usage of a
5942         TextBox is with a limited amount of fonts and characters, and
5943         the current implementation of TextBox measures everything one
5944         character at a time.  Another second or two speedup for bug #347238.
5945
5946 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
5947
5948         * Control.cs: Rewrite the Font getter to only query the parent's
5949         Font property once instead of twice.  Since this operation is
5950         recursive, the queries were growing exponentially as the control
5951         tree got deeper.  Another second or two speedup for bug #347238.
5952
5953 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
5954
5955         * Control.cs: Avoid setting a parent (and more importantly, updating
5956         the zorder of all its children) if the parent is already correct in
5957         WmShowWindow.  Decreases the startup time of the test case on bug
5958         #347238 from 35 seconds to 11 seconds.
5959
5960 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5961
5962         * X11Dnd.cs: When the dnd operation has started and we are 
5963         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
5964         This is done to match .Net, which doesn't send those messages after
5965         dnd operation was completed/cancelled.
5966         Fixes #349922.
5967
5968 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
5969
5970         * ToolStrip.cs: Previous change should be != null, not == null.
5971         Thanks Gert!
5972
5973 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
5974
5975         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
5976         user may have moved the mouse off the current item during the event.
5977
5978 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5979
5980         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
5981         calling GetItemAt for every MouseMove event by also taking into
5982         account whether any mouse button is pressed (probably dragging); 
5983         if so, we can call GetItemAt, and if not, try to not call it 
5984         (GetItemAt can be quite expensive when used with a large number of items).
5985
5986 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5987
5988         * ListView.cs: Implement -finally- support for dnd, by calling
5989         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
5990         authors list ;-).
5991         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
5992         simple calculation of distances for all the items in the owner
5993         listview.
5994
5995 2007-12-21  Geoff Norton  <gnorton@novell.com>
5996
5997         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
5998         for windows that are originally created as invisible.  Fixes missing
5999         main window in paint-mono.
6000
6001 2007-12-21  Geoff Norton  <gnorton@novell.com>
6002
6003         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
6004         subclass handler for com.novell.mwfview subclassing HIView.  Implement
6005         Pasteboard and Dnd methods.
6006
6007 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6008
6009         * ListBox.cs: When we got focus, give focus to first item if there
6010         wasn't any pervious focused item. Also update navigation to depend on
6011         SelectedIndex rather than FocusedItem, just as .Net does.
6012         Fixes #349174.
6013
6014 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6015
6016         * ListBox.cs: Both FindString and FindStringExact methods must do an
6017         case insensitive search, should allow the last valid index to be
6018         passed in the overload taking an initial index, and should also
6019         continue searching from the top back to the specified index when it
6020         reaches the bottom.
6021
6022 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
6023
6024         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
6025         redraw issue, and allows RichTextBox to draw colored text even while
6026         disabled or readonly.
6027
6028 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
6029
6030         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
6031         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
6032         and doesn't grey text in a disabled RichTextBox.
6033
6034 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
6035
6036         * RichTextBox.cs: Apply patch from Luke Page that adds better support
6037         for many RTF commands: quad alignment, separate formatting for blocks
6038         inside groups, and ParDef support.  Makes the test case from bug #324589
6039         look much better.
6040
6041 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
6042
6043         * LineTag.cs: Fix an error in the new Draw method that caused
6044         a crash when rendering the document on bug #324589.
6045
6046 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
6047
6048         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
6049         TextControl.cs: Apply patch from Luke Page that adds support
6050         for URL links in RichTextBox.
6051         [Fixes enhancement #342516]
6052
6053 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
6054
6055         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
6056         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
6057
6058 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6059
6060         * ListBox.cs: When a key gets pressed, try to find a string
6061         if the key is a character or a digit.
6062         Fixes #343971.
6063
6064 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
6065
6066         * TableLayoutPanel.cs: Remove some unused variables.
6067
6068 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
6069
6070         * DateTimePicker.cs: Commit patch from Luke Page that ensures
6071         we don't end up at an invalid date when we click the up/down
6072         spinner to change the month or year.  Fixes bug #348682.
6073
6074 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
6075
6076         * Application.cs: Calling Exit in 2.0 should chain to the
6077         Exit (CancelEventArgs) version so it can be cancelled.
6078         * Form.cs: Create a flag to allow raising the Closing
6079         events to be skipped.  We raise them once in Application.Exit
6080         and don't want to raise them again when the Form is actually
6081         closed.  [Fixes bug #349073]
6082
6083 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
6084
6085         * ToolStripDropDown.cs: Guard against an NRE when there
6086         hasn't been a mainform set in the application context.
6087         [Fixes bug #349108]
6088
6089 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6090
6091         * ListBox.cs: When SetBoundsCore gets called, besides
6092         calling UpdateScrollBars, update the value of
6093         last_visible_index, since we could need to show more items
6094         than before, and we need to let the paint routines know that.
6095         Fixes #344445.
6096
6097 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6098
6099         * ListView.cs: Add DesignerSerializationVisibility attribute to
6100         InsertionMark property.
6101         * ListViewItem.cs: Add same attribute to Position property.
6102
6103 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6104
6105         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
6106         is 2.0 only.
6107
6108 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
6109
6110         * ThemeWin32Classic.cs: Don't draw the background on a
6111         flat button if there is a background image.
6112         [Fixes bug #348649]
6113
6114 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6115
6116         * ListBox.cs: If we remove the item currently selected,
6117         remove it not only from SelectedItems, but also
6118         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
6119         the items count decreased and focused_item has bigger value than that.
6120
6121 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
6122
6123         * Control.cs: Perform our layout after we resize ourselves
6124         if we had to adjust our AutoSize.  Missed commit for bug
6125         #346246.
6126
6127 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
6128
6129         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
6130         we can provide an implementation of AutoSize.
6131         [Fixes bug #346246]
6132
6133 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6134
6135         * ListBox.cs: Add the internal overload Sort (bool paint),
6136         to indicate whether we actually need a paint or we will
6137         call Refresh ourselves. This way we don't request a paint
6138         _before_ having an updated and valid layout.
6139         Fixes #347233.
6140
6141 2007-12-12  Andreia Gaita <avidigal@novell.com>
6142
6143         * XPlatUIX11.cs: Send paint messages when updating a systray icon
6144         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
6145         properly invalidated. 
6146         Fixes #324237
6147
6148 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6149
6150         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
6151         don't simply assign it to our internal group field, but instead 
6152         use our Group property, which should do all the neccessary work
6153         required to support groups. Fixes an issue reported to me (mail) by a 
6154         guy using this new feature.
6155
6156 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
6157
6158         * Control.cs: Use Scale instead of ScaleControl to ensure the
6159         whole hierarchy gets scaled.
6160         [Fixes bug #347282]
6161
6162 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
6163
6164         * DateTimePicker.cs: Don't set the internal MonthCalendar's
6165         Parent property.  Doing this causes the control to be hosted by
6166         the Form instead of being a popup window.
6167         [Fixes bug #347665]
6168
6169 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
6170
6171         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
6172         at an index higher than Count, just use Add instead of Insert.
6173         [Fixes bug #347669]
6174
6175 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
6176
6177         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
6178         DrawPictureBox, this is handled by Control.PaintBackground.
6179         [Fixes bug #347276]
6180
6181 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
6182
6183         * MenuAPI.cs: When process menu keys return true by default only if menu is
6184         active. Fixes bug #342892.
6185
6186 2007-12-09  Andreia Gaita <avidigal@novell.com>
6187
6188         * Control.cs: check if windows are actually mapped before
6189         trying to zorder. Fixes #342509, #346955
6190
6191 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6192
6193         * ListView.cs:
6194         * ListViewInsertionMark.cs:
6195         * ThemeWin32Classic.cs: Implement the drawing side of the
6196         new 2.0 ListView.InsertionMark property.
6197
6198 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
6199
6200         * CurrencyManager.cs: Silence some debug spew.
6201
6202 2007-12-07  Geoff Norton  <gnorton@novell.com>
6203         
6204         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
6205         masks for our children as well as siblings to avoid having to query
6206         Quartz for this information.
6207         * XplatUICarbon.cs: Implement a delegate based system to pass
6208         information to System.Drawing.  Implement Async methods.  Remove
6209         the hack for the resize thumb and imlpement a transparent Grow Box.
6210         Rework the messaging system to proplery create window's and messages,
6211         fixes TabControl.
6212
6213 2007-12-06  Andreia Gaita <avidigal@novell.com>
6214
6215         * X11Keyboard.cs: Use Xutf8LookupString to support international 
6216         characters under alternate codepages. Patch from #340878
6217
6218 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6219
6220         * ListView.cs: When doing layout computations, set position in the
6221         ListView instances (we cache the position just as .Net does).
6222         * ListViewItem.cs: New internal setter method for Position. Also set
6223         position field as also available in 1.1, since we are going to use it
6224         now in the common case.
6225
6226 2007-12-06  Andreia Gaita <avidigal@novell.com>
6227
6228         * Control.cs: When removing controls, get the actual container
6229         to notify about active control changes. Fixes 341314.
6230
6231 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6232
6233         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
6234
6235 2007-12-05  Andreia Gaita <avidigal@novell.com>
6236
6237         * Control.cs: When updating the zorder, ignore windows that are not
6238         mapped. Fixes #342509
6239
6240 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6241
6242         * ListViewItem.cs: Actually implement serialization on this class.
6243
6244 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
6245
6246         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
6247         LinkCollection. Spaces to tabs, and removed extra tabs.
6248
6249 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6250
6251         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
6252           tests to fail (hopefully).
6253
6254 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
6255
6256         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
6257         the image margin so custom renderers can correctly place it.
6258
6259 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
6260
6261         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
6262         so custom renderers can correctly place it.
6263
6264 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
6265
6266         * Application.cs: Let WM_CHAR messages flow through to controls
6267         hosted in Strips.  [Fixes bug #343972]
6268
6269 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
6270
6271         * ToolStripManager.cs: Guard against an NRE I ran into.
6272
6273 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
6274
6275         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
6276         a Link is manually added to the Links collection, we need to set
6277         its owner, so it can invalidate properly.
6278         [Fixes bug #344012]
6279
6280 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6281
6282         * ListView.cs: When changing ListViewItem.Position (which calls
6283         ListView.ChangeItemLocation), invalidate not only the area
6284         corresponding to the main item, but also to the area occupied
6285         by the items being moved.
6286
6287 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6288
6289         * ListView.cs: When changing the position of a given item,
6290         don't use item bounds, but item areas (which includes the item spacing
6291         between them). Also, use first/last position if the requested
6292         position is outside bounds (as .Net does). Invalidate the previous and
6293         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
6294         in a specific position, instead of directly accessing Items collection
6295         (this is done to get the right item - remember an Item can have a
6296         different position in the grid than in the Items collection).
6297
6298 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
6299
6300         * MessageBox.cs: Calculate text area instead of just top left, this rect 
6301         area will be used in DrawString. Fixes bug #343364.
6302
6303 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
6304
6305         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
6306         screen width. Partially fixes bug #343364.
6307
6308 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
6309
6310         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
6311         code inside recalculate, it makes code more simple.
6312
6313 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
6314
6315         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
6316         between update or add icon. Fixes bug #324344.
6317
6318 2007-11-21  Andreia Gaita <avidigal@novell.com>
6319
6320         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
6321         window manager, since that stretches the drawing area to include
6322         the window decorations, and they get hidden. Reverts r84444 and fixes
6323         #335849 and #342790 (mdi and pdn3 regression)
6324
6325 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6326
6327         * ListView.cs: When setting focused item, try to give focus to the
6328         previous one _only_ if the previous one remains valid. 
6329         Fixes #342504.
6330
6331 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
6332
6333         * Application.cs: Revert r89650, as it broke a common case to fix
6334         an obscure case.  Fixes bug #342606.
6335
6336 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
6337
6338         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
6339
6340 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
6341
6342         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
6343         alignment. [Fixes #324228]
6344
6345 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
6346
6347         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
6348         [Fixes bug #342123]
6349
6350 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
6351
6352         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
6353         it prevent problems when empty captions. [Fixes #342141]
6354
6355 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
6356
6357         * Label.cs: Use Size instead of None.  Fixes bug #342077.
6358
6359 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6360
6361         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
6362
6363 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
6364
6365         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
6366         but there isn't a MdiContainer.
6367         [Fixes bug #342358]
6368
6369 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
6370
6371         * TextControl.cs: Don't recalculate document if the recalc_start and
6372         recalc_end hasn't changed.
6373         [Fixes bug #342505]
6374
6375 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
6376
6377         * DataGridViewTextBoxCell.cs: Removed CWL.
6378
6379 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6380
6381         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
6382
6383 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
6384
6385         * TextControl.cs: Missed some code for bug 341534 to trigger a
6386         recalculation when the font changes.
6387
6388 2007-11-16  Andreia Gaita <avidigal@novell.com>
6389
6390         * Control.cs: When updating the zorder, check if the child to update is
6391         the same control that is set to always be on top (i.e., scrollbars), and 
6392         just put it on top directly. Fixes BadMatch error on pdn3
6393
6394 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6395
6396         * ListView.cs: Throw the needed exceptions for FindNearestItem.
6397
6398 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
6399
6400         * Control.cs: Don't perform a new layout when a label changes its text,
6401         cause label handles its own autosizing.
6402         [Fixes bug #342077]
6403
6404 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6405
6406         * ListView.cs: Implement 2.0 FindNearestItem methods.
6407
6408 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
6409
6410         * ToolStripPanel.cs: Make Join at least add the control to the panel,
6411         even if the rest of what Join does isn't supported.  Add some more
6412         support for vertical toolbars.
6413         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
6414         [Fixes the application breaking parts of bug #341998]
6415
6416 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
6417
6418         * ToolStripItem.cs: When determining if we have a check/image margin,
6419         we need to look at ShowCheckMargin as well as ShowImageMargin.
6420
6421 2007-11-15  Geoff Norton  <gnorton@novell.com>
6422
6423         * XplatUIOSX.cs: Rename to...
6424         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
6425         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
6426
6427 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
6428
6429         * KeysConverter.cs: The default values should be an array of Keys, not
6430         strings.  Also, the array has more values for 2.0.
6431         [Fixes bug #341851]
6432
6433 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
6434
6435         * Application.cs: Change ExecutablePath to use 
6436         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
6437         [Fixes bug #323552]
6438
6439 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
6440
6441         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
6442         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
6443         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
6444         be ignored.  Create a new GetLineEnding that can specify which types of
6445         line endings to look for.  On Insert, only create new lines for \n and \r\n.
6446         [Fixes bug #324274]
6447
6448 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
6449
6450         * TextBoxBase.cs: As we loop through each line changing the font, tell
6451         the document that the line needs to be recalculated.  Fixes bug #341534.
6452
6453 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
6454         [Another round of refactoring]
6455         * Line.cs: Add DeleteCharacters.
6456         * LineTag.cs: Add Delete.
6457         * TextBoxBase.cs: Update to use new methods.
6458         * TextControl.cs: Refactor the Delete* methods.
6459
6460 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
6461
6462         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
6463         the patch. [Fixes #324856]
6464
6465 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6466
6467         * ListView.cs:
6468         * ListViewItem.cs: Add an initial implementation of
6469         2.0 ListViewItem.Position getter.
6470
6471 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6472
6473         * ListView.cs: Add a reordered_items_indices array, to allow us
6474         to have a different sorting than that of Items (the sorting in Items
6475         could not match the actual sorting in screen). This is needed to
6476         implement a pair of 2.0 features.
6477         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
6478         actual position in the ListView grid, since it could have a position
6479         different than its Index (position in ListViewItemCollection). 
6480
6481 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
6482
6483         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
6484         not draw partial lines.
6485         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
6486         LineLimit flag from the base is preserved.
6487         Fixes the windows part of bug #338965.
6488
6489 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
6490
6491         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
6492         so that it can be canceled in KeyPress.
6493         Fixes bug #340078.
6494
6495 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6496
6497         * ListView.cs: In ItemControl, reset mouse-handling related
6498         fields even if we dont' have items (we still should reset them when
6499         we had items but then called Items.Clear). Partially based in a patch
6500         by George Giolfan.
6501         Fixes #338399.
6502
6503 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
6504
6505         * Application.cs: In ProductVersion first try AssemblyFileVersion
6506         before falling back to assembly version. Fixes bug #339787.
6507
6508 2007-11-08  Andreia Gaita <avidigal@novell.com>
6509
6510         * HtmlElement.cs: Implement InnerText setter.
6511         * WebBrowserBase.cs: Implement Navigated event support.
6512         Add flag to track when the browser "document" is ready to be retrieved.
6513         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
6514         Make sure browser document is ready before retrieving it.
6515         Clean up cached objects (document) when moving to a new page through
6516         any of the navigation methods.
6517         Use the new Mono.WebBrowser.INavigation interface to control navigation.
6518         Implement OnNavigated event.
6519
6520 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
6521
6522         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
6523         DrawLinkLabel, this is handled by OnPaintBackground.
6524         Fixes bug #339565, part II.
6525
6526 2007-11-07  Andreia Gaita <avidigal@novell.com>
6527
6528         * Control.cs: Revert r88915. Selecting text on a textbox depends on
6529         getting a Select call on click, so this call needs to be here for now.
6530         Unfixes #325809
6531
6532 2007-11-07  Geoff Norton  <gnorton@novell.com>
6533
6534         * OSXStructs.cs: Add the kEventClassApplication constants.
6535         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
6536         application is deactivated otherwise Menu overlays linger on top of
6537         other application windows.
6538
6539 2007-11-07  Geoff Norton  <gnorton@novell.com>
6540
6541         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
6542         dont support cursors yet anyways.  This allows Reflector to run.
6543
6544 2007-11-07  Geoff Norton  <gnorton@novell.com>
6545
6546         * XplatUIOSX.cs: Implement DragSize.
6547
6548 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6549
6550         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
6551         ItemControl, request the focus, as .Net does. This is needed after 
6552         Control does not request focus anymore when it receives a
6553         WM_LBUTTONDOWN.
6554
6555 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
6556
6557         * Label.cs: Make DrawImage internal so it can be called from Theme code.
6558         Remove the DrawImage call from OnPaint.
6559         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
6560         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
6561         but before we draw the text for DrawLabel and DrawLinkLabel.
6562         Fixes bug #339565.
6563
6564 2007-11-05  Andreia Gaita <avidigal@novell.com>
6565
6566         * Control.cs: Remove select call on click. Fixes #325809
6567
6568 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6569
6570         * ListViewItem.cs: Add 2.0 Position property getter.
6571
6572 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6573
6574         * ListView.cs: Add 2.0 BackgroundImageTiled property.
6575         Also, to make it work properly, change item's BackColor and
6576         BackgroundImageLayout as needed.
6577         * ThemeWin32Classic.cs: Don't fill any background rectangle 
6578         in ListView.ItemControl when drawing items; just let the Control
6579         base implementation fill it.
6580
6581 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6582
6583         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
6584         as well as adding a custom 'dummy' Converter, as .net does.
6585
6586 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6587
6588         * PropertyGridView.cs: When clicking drop-down button,
6589         select an index in the listbox only if our standard values collection 
6590         has one or more items.
6591
6592 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6593
6594         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
6595         property.
6596
6597 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
6598
6599         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
6600         the value is not changed. This ensure a pushed button remains in that
6601         state when clicked again. When switching the value of PropertySort
6602         between Categorized and CategorizedAlphabetical, do not update the
6603         grid items and do not fire a PropertyChangedEvent. When clicking the
6604         sorting buttons, do not modify the PropertySort value when switching
6605         between Categorized and CategorizedAlphabetical but only update the
6606         button state.
6607
6608 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
6609
6610         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
6611         formatting.
6612         * PropertyGrid.cs: Also put Categorized button in pushed state when
6613         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
6614         for help description label.
6615
6616 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6617
6618         * ListView.cs: When calculating the biggest item for a given column,
6619         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
6620         the item's width.
6621
6622 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
6623
6624         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
6625         value for PropertySort on 1.0 profile. PropertySortChanged event
6626         should only be fired on 2.0 profile. Fixed NullReferenceException
6627         in UpdateSortLayout when PropertyGrid contains no items.
6628
6629 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
6630
6631         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
6632         [Fixes bug #338554]
6633
6634 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6635
6636         * ListViewItem.cs: Implement 2.0 IndentCount property.
6637
6638 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6639
6640         * X11Dnd.cs: When sending status in a dnd operation, compare current
6641         effect with the 'allowed' field instead of 'drag_data.Allowed', since
6642         the later is only created when a Winforms application is both the
6643         source and the target, but not when we are the target only.
6644         Fixes part of #324251.
6645
6646 2007-11-01  Geoff Norton  <gnorton@novell.com>
6647
6648         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
6649         order of Z-Order.
6650         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
6651         children out of the drawing view on mac.
6652         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
6653         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
6654         
6655 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
6656
6657         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
6658         on the non-hosted-control part of it shouldn't do anything.
6659         Fixes part of bug #327498.
6660
6661 2007-11-01  Andreia Gaita <avidigal@novell.com>
6662
6663         * WebBrowserBase.cs: revert previous change, resize can be called anytime
6664
6665 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
6666
6667         * Application.cs: When a toolstrip has the keyboard input loop, let messages
6668         it does not use flow through to controls that are hosted in menus.
6669         Same with mouse clicks.
6670         * Form.cs: Don't close all menus on click if the click is on a
6671         control hosted in a menu.
6672         Fixes part of bug #327498, and part of bug #325969.
6673
6674 2007-10-31  Andreia Gaita <avidigal@novell.com>
6675
6676         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
6677
6678 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
6679
6680         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
6681         Addresses an issue raised in bug #336218.
6682
6683 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
6684
6685         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
6686         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
6687
6688 2007-10-30  Andreia Gaita <avidigal@novell.com>
6689
6690         * ContainerControl.cs: Check if the active control is a
6691         child of a removed control and update active_control accordingly.
6692         Fixes #329718
6693
6694 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
6695
6696         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
6697         or the MaxDate.  Fixed bug #337693.
6698
6699 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
6700
6701         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
6702         after calling SetWindowLong for a form, to force an immediate NC refresh.
6703         Fixes first part of bug #325150.
6704
6705 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
6706
6707         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
6708         simple.  Fixes the last part of bug #322668.
6709
6710 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
6711
6712         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
6713         needs to be TopMost as well, or else the MessageBox is under the form.
6714         Patch by George fixes bug #325300.
6715
6716 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6717
6718         * X11Dnd.cs: When starting a new drag operation, reset the static
6719         'dropped' field to false (previously the implementation didn't reset
6720         it and got confused after the first drag).
6721         Fixes #325071.
6722
6723 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6724
6725         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
6726         items instead of re-creating them all. For this purpose we now cache
6727         both CategoryGridEntry items and the GridEntries for the main object's
6728         properties.
6729         * GridItem.cs: Make SetParent method abstract.
6730         * GridEntry.cs: Override the SetParent method (already there, but now
6731         we override it).
6732         Fixes #324866.
6733
6734 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6735
6736         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
6737         depending on its depth (as .Net does). Update the needed values in
6738         MouseDown handler. Also draw the plus/minus rect after the label,
6739         so we don't draw on top of it.
6740
6741 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
6742
6743         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
6744         processed by forms or controls when menu is active. [Fixes #333548]
6745
6746 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
6747
6748         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
6749         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
6750         focus on mouse over.
6751
6752 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
6753
6754         * TextControl.cs: Code cleaning, simplifying.
6755
6756 2007-10-24  Geoff Norton  <gnorton@novell.com>
6757
6758         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
6759         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
6760
6761 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
6762
6763         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
6764         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
6765
6766 2007-10-24  Andreia Gaita <avidigal@novell.com>
6767
6768         * SendKeys.cs: apply jpobst's patch to bug #332409
6769
6770 2007-10-23  Andreia Gaita <avidigal@novell.com>
6771
6772         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
6773         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
6774         for some reason
6775
6776 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6777
6778         * PropertyGridView.cs: If a property has an UIEditor available,
6779         make the drop-down/editor button available only if the property
6780         is _not_ read only.
6781
6782 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6783
6784         * PropertyGridView.cs: Don't make the grid item textbox 
6785         editable when a drop-down control is available, but 
6786         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
6787         true. The same bur the color of the grid item value's label.
6788
6789 2007-10-22  Geoff Norton  <gnorton@novell.com>
6790
6791         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
6792         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
6793         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
6794         driver.  Padd the bottom of all real windows so the resize thumb doesn't
6795         obscure scroll/status bars.
6796
6797 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
6798
6799         * WindowsFormsSection.cs: Implement.
6800
6801 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
6802
6803         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
6804         closed see #325434 patch.
6805
6806 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
6807
6808         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
6809         see #325434 patch.
6810
6811 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6812
6813         * PropertyGridView.cs: When showing the textbox for a grid item,
6814         have two local variables to store the read-only and non-editable
6815         status of a grid item (we were previously using just one variable
6816         to do this, when actually they are slightly different).
6817         Fixes part of #325023.
6818
6819 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6820
6821         * PropertyGridView.cs: When showing a drop-down list, try to get the
6822         values using TypeConverter.ConvertTo (to convert to a string). Fixes
6823         part of #325023.
6824
6825 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6826
6827         * PropertyGrid.cs: When updating a property and populating sub grid
6828         items, remove the previous ones, and invalidate the specific area.
6829         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
6830         area behind a grid item.
6831         * GridItemCollection.cs: Add an internal Clear method, to allow us to
6832         clean the items if needed (specially for controls implementing 
6833         ICustomTypeDescriptor and returning a variable number of properties).
6834         Fixes #324865.
6835
6836 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
6837
6838         * TextControl.cs: Clean up and document the Insert function.
6839
6840 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
6841
6842         * TextControl.cs: Make sure we know our start point for updating the view
6843         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
6844         update the view.
6845
6846 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
6847
6848         * ListView: Couple of corcompare fixes.
6849
6850 2007-10-17  Geoff Norton  <gnorton@novell.com>
6851
6852         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
6853         the title caption of real window.
6854
6855 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
6856
6857         * ErrorProvider.cs: Add the error provider's internal window to a 
6858         containercontrol when the parent changes.  [Fixes bug #329714]
6859
6860 2007-10-17  Geoff Norton  <gnorton@novell.com>
6861
6862         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
6863         When we make a new window; restore the old active window - fixes dialogs.
6864
6865 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6866
6867         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
6868         when modifying a property, and if found then invalidate as
6869         requested.
6870         Fixes part of #324865.
6871
6872 2007-10-17  Geoff Norton  <gnorton@novell.com>
6873
6874         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
6875         highly experimental.  Fixed coordinate translation.  Fixed window locations.
6876         Initial support for clipping. Implemented NC areas and menus.  Support for
6877         launching from command line from Will Johansson (wjohansson@atacomm.com).
6878         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
6879         wjohansson@atacomm.com)
6880         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
6881         Hwnds now track the existence of all of their children for Mac clipping.
6882     * XplatUI.cs: Re-enabled the native driver on the Mac.
6883
6884 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
6885
6886         * Line.cs: Move the InsertString function to here.
6887         * TextControl.cs: Cleanup some duplicate code, move some InsertString
6888         functionality to Line.
6889
6890 2007-10-17  Geoff Norton  <gnorton@novell.com>
6891
6892         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
6893
6894 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
6895
6896         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
6897         always setting value to true.
6898         * Form.cs: When changing AcceptButton, notify new and original button.
6899
6900 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
6901
6902         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
6903         a custom control that implements IButtonControl instead of an actual
6904         button.  [Fixes bug #334244]
6905
6906 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
6907
6908         * Form.cs: Change SelectActiveControl to internal, we need to call it in
6909         MdiWindowManager.
6910         
6911         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
6912         active control when activate a new mdi window.
6913         
6914         [Fixes bug #330495]
6915
6916 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
6917
6918         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
6919         is already added.
6920         [Fixes bug #333617]
6921
6922 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
6923
6924         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
6925         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
6926         so we always recalculate the whole document instead of just the new part.
6927         [Fixes bug #325082]
6928
6929 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
6930
6931         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
6932         when the mouse was to the left of the first character in the line.
6933
6934 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
6935
6936         * TextBox.cs, TextBoxBase.cs: When setting the document's password
6937         character, use the property instead of the variable so that the
6938         UseSystemPasswordChar property is taken into account.
6939         [Fixes bug #333748]
6940
6941 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6942
6943         * FolderBrowserDialog.cs: When a node is right clicked and the "New
6944         folder" contex menu appears, actually add the new folder to it, even
6945         if the node is not currently selected. Still use SelectedNode in case 
6946         there wasn't found a node under the pointer.
6947         Fixes #325452.
6948
6949 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6950
6951         * ListViewItem.cs: When retrieving the focused state, the index check
6952         should be done only when ListView is in virtualmode, as it is an
6953         expensive check for normal mode.
6954
6955 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6956
6957         * ListViewItem.cs: Make the focus state information be stored
6958         in the ListView, not in the items. This is done to match the MS
6959         behaviour for items that are not yet part of a ListView control;
6960         besides that, since just one item can be focused at the same time,
6961         we save a little space in our items.
6962         Fixes part of #331643.
6963
6964 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
6965
6966         * ComboBox.cs: When focus is lost, deselect the text. When setting
6967         text of control, select all text. Do not hide selection when control
6968         does not have focus. Fixes bug #333663.
6969
6970 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
6971
6972         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
6973         instead of ArgumentException when SelectionLength is set to negative
6974         value. Added same check to SelectionStart. Code formatting.
6975
6976 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
6977
6978         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
6979         or SelectionStart. Code formatting.
6980
6981 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6982
6983         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
6984         indicating that there was not a previous drag-and-drop operation going
6985         on.
6986         Fixes part of #325071.
6987
6988 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6989
6990         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
6991         AllowedEffect, don't let the drop operation happen. 
6992         Fixes #32580.
6993
6994 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
6995
6996         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
6997
6998 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
6999
7000         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
7001         is called.
7002
7003 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
7004
7005         * Line.cs: Add a method that finds the tag that contains an x-coord.
7006         * LineTag.cs: Add a method that finds the character at an x-coord using
7007         a binary search, the old way was a linear search.
7008         * TextControl.cs: Change FindCursor to use the above new methods.
7009
7010 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7011
7012         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
7013         value different than AllowedEffect). This should be possible to
7014         indicate that dragging is not possible in some control/area.
7015
7016 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
7017
7018         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
7019         descent internally when font changes instead of outside code being responsible
7020         for setting it.
7021         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
7022         instead of accessing internal variables.
7023
7024 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
7025
7026         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
7027         remove special treatment for ArrangeIcons since it is already arranged.
7028
7029 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
7030
7031         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
7032         the Win32 backend uses Color.
7033         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
7034         Refactor to store a Color instead of a Brush for Color.
7035
7036 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
7037
7038         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
7039         away.  I didn't realize I needed this when I refactored these earlier.
7040
7041 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
7042
7043         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
7044         store a Color structure and use the ResPool for back color instead of
7045         holding onto brushes.
7046
7047 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
7048
7049         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
7050         [Fixes bug #325592]
7051
7052 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
7053
7054         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
7055         to recalculate its size.  Fixes a part of bug #331052.
7056
7057 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
7058
7059         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
7060         button.  Fixes a part of bug #331052.
7061
7062 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
7063
7064         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
7065         the CreateParams.
7066         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
7067         decorations.
7068         [Fixes bug #330986]
7069
7070 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
7071
7072         * TextBoxTextRenderer.cs: Don't make this a static class, as static
7073         doesn't exist in 1.1.  (Thanks jb!)
7074
7075 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
7076
7077         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
7078         class to allow us to use different backends on different platforms.
7079         Linux uses the current [Draw|Measure]String backend.  Windows uses
7080         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
7081         of GDI+.  This leads to better looking text and more accurate measurements
7082         on Windows, fixing many of the reported issues.
7083         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
7084
7085 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7086
7087         * FolderBrowserDialog.cs: When running on Windows,
7088         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
7089         since we must match both "C:" and "C:\" forms. A little hackish, but
7090         works.
7091         Fixes #325247.
7092
7093 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7094
7095         * ListView.cs: When calling EndEdit (after editing an item),
7096         create a new instance of LabelEditEventArgs to keep clean the fields
7097         in case we get a new call to BeginEdit; also do Application.DoEvents
7098         to have focus in synch. This is a fix similar to TreeView's #325244.
7099
7100 2007-10-07  Andreia Gaita <avidigal@novell.com>
7101
7102         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
7103         * WebBrowserBase.cs: Added dialog support, calling the
7104           WebBrowserDialogs classes for each specific dialog type.
7105
7106 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7107
7108         * ListView.cs: When the last item is focused and is removed,
7109         move the focus to the previous item (in Items order). This is what MS
7110         does.
7111         Fixes #330415.
7112
7113 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7114
7115         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
7116         instead of the opposite (RemoveAt call Remove). This is a better
7117         approach since we don't need to to a pair of traversals when using
7118         RemoveAt.
7119
7120 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7121
7122         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
7123         check that the node actually has nodes, and if not, move to the
7124         parent node instead. 
7125         Fixes #325265.
7126
7127 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7128
7129         * TreeView.cs: Move the previous change to the general case (to
7130         call Application.DoEvents in cases where the method was called by
7131         different places).
7132
7133 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7134
7135         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
7136         call Application.DoEvents. This is neccessary when we get a call to
7137         BeginEdit from an AfterLabelEdit handler, because the focus always
7138         goes to the TreeView, even if we try to give it to our
7139         LabelEditTextBox. The call do Application.DoEvents seems to
7140         synchronize the focus, basically.
7141         Fixes #325244.
7142
7143 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7144
7145         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
7146         should be false. This also removes some nasty recursive paths. Fixes
7147         part of #325244.
7148
7149 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
7150
7151         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
7152         state to normal. Also resize window when cascading. Fixes #325433. 
7153
7154 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
7155
7156         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
7157         DefaultForeColor, as drawing empty colored lines isn't very useful.
7158         [Fixes the not drawn lines part of bug #324358]
7159
7160 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
7161
7162         * TextControl.cs: Move Line and LineTag classes into separate files to
7163         make things easier to find.
7164         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
7165         * RichTextBox.cs: Capitalize LineTag.Length property access.
7166         - This is purely an organizational/formatting change, no logic changed. -
7167
7168 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
7169
7170         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
7171         text is empty.
7172
7173 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
7174
7175         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
7176         text is empty.
7177
7178 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
7179
7180         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
7181         prevent calling of OnBackColorChanged. Fixes #325321.
7182
7183 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
7184
7185         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
7186         because control can be disabled because owner is disabled.
7187
7188 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
7189
7190         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
7191         string.Empty, test failed from previous change.
7192
7193 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
7194
7195         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
7196         is null, not String.Empty.  See bug #323038.
7197
7198 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
7199
7200         * TextControl.cs: Change the margins to match MS a little better.
7201         Still not perfect for X11 due to some DrawString differences, but
7202         is still an improvement over the old stuff.
7203         Partially fixes #324467.
7204
7205 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7206
7207         * FolderBrowserDialog.cs: When using MyComputer as 
7208         RootFolder, let absolute paths be considered as valid ones. Also, use
7209         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
7210         for Windows compatibility.
7211         Partially fixes #325247.
7212
7213 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7214
7215         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
7216         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
7217         method, since it causes the dialog to not select folders directly
7218         under the root path (when setting SelectedPath property).
7219
7220 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7221
7222         * TreeNode.cs: When calling Expand/Collapse and need to call 
7223         ExpandBelow/CollapseBelow respectively, take into account
7224         partially visible nodes (previously Expanding/Collapsing
7225         a partially visible node in the bottom was not updating its +- sign).
7226
7227 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7228
7229         * TreeView.cs: When calling Expand on a TreeNode, and we need to
7230         expand nodes below (ExpandBelow), scroll the entire Viewport
7231         area if the node is above it and not visible (instead of scrolling
7232         the area from node's Bottom, which applies only when the node is
7233         visible).
7234         Fixes #325266.
7235
7236 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7237
7238         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
7239         node in the bottom area (as .Net does). This is done to preserve the
7240         scroll position when ExpandAll is called before handle is created for
7241         the 1.1 profile (bottom area, as opposed to top area in 2.0).
7242         Fixes #324103.
7243
7244 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7245
7246         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
7247         bottom area if we are in fact not using the vertical scroll bar.
7248         Fixes #324824.
7249
7250 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
7251
7252         * Control.cs: Comment out a double buffering optimization that doesn't
7253         take into account invalidates created in OnPaint, causing the control
7254         to never be redrawn.  It would take quite a bit of work to work around
7255         this, but I left it commented with an explanation for later possible
7256         optimization.
7257         [Fixes bug #328681]
7258
7259 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
7260
7261         * Control.cs: Ask parent to perform a layout if control is AutoSize and
7262         the text changes.
7263         * RadioButton.cs: Implement GetPreferredSizeCore.
7264         [Fixes bug #328672]
7265
7266 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
7267
7268         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
7269         corcompare stuffs.
7270
7271 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
7272
7273         * Application.cs: Move the sync context stuff to Run instead of RunLoop
7274         so that it doesn't get uninstalled on modal forms.
7275         * Control.cs: Install a sync context when a control is created.
7276         * WindowsFormsSyncronizationContext.cs: Create a private static control
7277         to invoke on.  This is easier than trying to find a created control we
7278         can use.
7279         [Fixes bug #327608]
7280
7281 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
7282
7283         * Application.cs: Install a WindowsFormsSynchronizationContext in the
7284         run loop, and uninstall it when done.
7285         * WindowsFormsSynchronizationContext.cs: Implement.
7286         [Fixes the common case in bug #327608]
7287
7288 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
7289
7290         * DataGridViewCellCollection.cs: Added argument checks for indexers.
7291         Use case-insensitive lookup of column name in indexer. Code
7292         formatting.
7293
7294 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7295
7296         * TreeNode.cs: When collapsing or expanding a node, check whether its
7297         change will affect the visible area (we were previously doing a
7298         IsVisible check, but that check is not enough since children nodes
7299         could be still visible). Fixes part of #325266.
7300
7301 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
7302
7303         * TreeView.cs: Always select the first node when the TreeView gets
7304         focus if there is no currently selected node.
7305         [Fixes bug #324279]
7306
7307 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
7308
7309         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
7310         node being selected is null.
7311         [Patch from Yves Bastide fixes bug #326858]
7312
7313 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7314
7315         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
7316         whether all the parent nodes are expanded.
7317         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
7318         call RecalculateVisibleOrder if all previous nodes are expanded.
7319         Before that we were doing a IsVisible check, but sometimes the node
7320         is not in the visible area, but _should_already be ready, because of
7321         all previous nodes are expanded. Fixes #325259.
7322
7323 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
7324
7325         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
7326         portion of the item is clicked.
7327
7328 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
7329
7330         * TextControl.cs: Do not tell the system to move the cursor if the
7331         textbox isn't focused.  Fixes part of bug #322668.
7332
7333 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
7334
7335         * ComboBox.cs: When there are no items, do not show the dropdown if
7336         the down arrow is clicked.  Fixes part of bug #322668.
7337
7338 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
7339
7340         * ToolStripComboBox.cs: Manually set the size of this control in the
7341         constructor, as it doesn't seem to be the same as DefaultSize.
7342         Fixes a failing monobuild test.
7343
7344 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
7345
7346         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
7347         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
7348
7349 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
7350
7351         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
7352         Desktop.  This lets it work for people who have moved their desktops
7353         from the default location on windows.  For people who have not, both
7354         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
7355
7356 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
7357
7358         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
7359         but when the base constructor sets this, the control is null.  Set it
7360         again in the constructor.  Fixes a failing monobuild test.
7361
7362 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
7363
7364         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
7365         get called.
7366         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
7367         called.
7368
7369 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
7370
7371         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
7372         will handle it themselves.
7373         * ToolStripItem.cs: When deciding what the text of a tooltip should
7374         be, use the Text property instead of the text field.
7375         * ToolStripTextBox.cs: Handle tooltips.
7376         [Fixes bugs #325417 and #325973]
7377
7378 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
7379
7380         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
7381         left click.  Fixes the easy part of bug #325969.
7382
7383 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
7384
7385         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
7386         bug #325406, but set a minimum for StatusStrip to 22 to keep
7387         bug #325390 fixed.  I think this minimum would have been figured
7388         up automatically if the grip was actually a ToolStripItem, but it
7389         currently is not.
7390
7391 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7392
7393         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
7394         as this is apparently the actual value used by .Net. Also apply
7395         ItemPadding in Details view only, and decrease the general width padding,
7396         to have only the needed. This should fix #324340 in Windows too.
7397
7398 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7399
7400         * ListViewItem.cs: Don't Invalidate item if parent is inside
7401         a BeginUpdate/EndUpdate block. This prevents to have differences
7402         between the ListView and items state, as well as avoid some exceptions
7403         there.
7404         * ListView.cs: Make 'updating' field internal.
7405
7406 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
7407
7408         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
7409         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
7410         size if appropriate.
7411         Fixes reopened bug #325414.
7412
7413 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
7414
7415         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
7416         * ToolStripItem.cs: Invalidate before and after our new autosize when
7417         text changes.
7418         Fixes reopened bug #325390.
7419
7420 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
7421
7422         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
7423         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
7424         #325044.
7425
7426 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
7427
7428         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
7429
7430 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7431
7432         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
7433         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
7434         #82734.
7435
7436 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
7437
7438         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
7439         item to select when the ToolStrip is selected.
7440         * ToolStripControlHost: Realign the control when the bounds or visibility
7441         change.
7442         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
7443         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
7444         preferred height.
7445         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
7446         base.OnPaint.  Was causing text not to be drawn.
7447
7448 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
7449
7450         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
7451
7452 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7453
7454         * TreeView.cs: When creating the label edit text box,
7455         set is initially to Visible = false. This is done to
7456         prevent a confusion in the layout which makes it to lose
7457         focus when shown the first time. Fixes part of #82592.
7458
7459 2007-09-13 Andreia Gaita <avidigal@novell.com>
7460
7461         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
7462
7463 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
7464
7465         * ToolStrip.cs: Take Margin into account when calculating preferred
7466         size.  Also, allow preferred size to get smaller than the explicit
7467         size.
7468         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
7469         First step towards fixing bug #82747.
7470
7471 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
7472
7473         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
7474         full row select background over the plus/minus glyph.  Also, turn
7475         off the focus rectangle for full row select since MS doesn't seem
7476         to ever paint it.  [Fixes bug #81839]
7477
7478 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
7479
7480         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
7481         This was causing keyboard opened dropdowns to lose focus.
7482         [Fixes bug #82803]
7483
7484 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
7485
7486         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
7487         ClientRectangle instead.  [Fixes bug #82838]
7488
7489 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
7490
7491         * SplitContainer.cs: We can't reset Visible on every layout because
7492         someone may have set Visible = false explicitly on a SplitterPanel.
7493         Make sure when we switch orientation the SplitterDistance does not
7494         change.  Fixes two failing tests.
7495
7496 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7497
7498         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
7499         TextRenderer, since the latter is only available in 2.0.
7500
7501 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
7502
7503         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
7504         * SplitContainer.cs: Implement FixedPanel layouting.
7505
7506 2007-09-12  Andreia Gaita  <avidigal@novell.com>
7507
7508         * WebBrowserBase.cs: setup shutdown routine
7509
7510 2007-09-12  Andreia Gaita  <avidigal@novell.com>
7511
7512         * Application.cs: Let keyboard events that are targetted 
7513                 to non-mwf windows hosted inside mwf (as in, webbrowser),
7514                 propagate properly. Fixes keyboard handling on the webbrowser.
7515
7516 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7517
7518         * ListView.cs: When handling MouseUp event and we are 
7519         highligting a node with the mouse right button, don't trigger
7520         Before/AfterSelecting event, since we are not actually selecting
7521         the node.
7522
7523 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7524
7525         * TreeView.cs: When editing a node, modify the edit text box
7526         depending on the text length (as you are typing), like MS does.
7527
7528 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
7529
7530         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
7531         Override GetPreferredSizeCore to perform calculations.  Remove custom
7532         autosize logic.  [Fixes bug #82739]
7533
7534 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
7535
7536         * TextBoxBase.cs: Modified should default to false.
7537
7538 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
7539
7540         * Control.cs: Update the anchoring distances even when layout is supspended.
7541         Patch provided by George fixes bug #82805.
7542
7543 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
7544
7545         * Control.cs: Provide a setter for ExplicitHeight.
7546         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
7547         remove the hacks in here for requested_height.
7548         [Fixes bug #82749]
7549
7550 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
7551
7552         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
7553         Maximum to lower that its current Value caused an ArgumentException by setting
7554         the Value to the new Maximum.
7555
7556 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
7557
7558         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
7559         handle moves to the closest tick when it is being dragged.
7560         [Fixes bug #82751]
7561
7562 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
7563
7564         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
7565         can't let them count as real items when calculating where to merge in the
7566         user's items.  [Fixed bug #82786]
7567
7568 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
7569
7570         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
7571         who want to add a menu item directly onto a toolstrip.
7572         [Fixes bug #82775, part II]
7573
7574 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
7575
7576         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
7577         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
7578         don't set it to available.
7579         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
7580         [Fixes bug #82727, part II]
7581
7582 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
7583
7584         * StatusStrip.cs: Change item placement to None if not visible.
7585         * ToolStripItem.cs: Invalidate when InternalVisible changes.
7586         These should have been committed to fix 82723, but I missed them.
7587
7588 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
7589
7590         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
7591         Click, and that it is only called once.
7592         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
7593         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
7594         dropped down.
7595         [Fixes bug #82775]
7596
7597 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7598
7599         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
7600         to match .Net.
7601         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
7602         instead of 8, just like above. Partially fixes #82734.
7603
7604 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7605
7606         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
7607         fixes #82734.
7608
7609         * ListView.cs: Remove extra space between rows in Details view (match
7610         .Net). 
7611         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
7612         the DefaultFont.
7613
7614 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
7615
7616         * Application.cs: Modified ProductVersion to return value of
7617         AssemblyInformationVersion if available, and fallback to assembly
7618         version. Fixes bug #82746. Code formatting.
7619         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
7620         instead.
7621
7622 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7623
7624         * Control.cs: When updating ZOrder for a child control,
7625         take into account the implicit ones (we need it in our controls
7626         using them). Fixes #82642.
7627
7628 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
7629
7630         * ToolStripItem.cs: Add support for animated images.
7631         [Fixes bug #82726]
7632
7633 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
7634
7635         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
7636         visible.  [Fixes bug #82727]
7637
7638 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7639
7640         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
7641         so we repaint using the new size.  [Fixes bug #82723]
7642
7643 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7644
7645         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
7646         option.  [Fixes bug #81779]
7647
7648 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7649
7650         * TreeView.cs: Override HandleClick because the StandardClick style is
7651         set to false.  According to MSDN (and testing), the click events should
7652         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
7653
7654 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7655
7656         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
7657         the border will disappear.  Fixes reopened #82653.
7658
7659 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7660
7661         * Control.cs: If the control is autosize, and its preferred size changes
7662         when it lays out its children, tell its parent so it can be re-layed out.
7663         Fixing some of the fallout from r85433.
7664
7665 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7666
7667         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
7668         and CheckBox share some code.
7669
7670 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7671
7672         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
7673         the TrackBar, not every mouse move.  [Fixed bug #82718]
7674
7675 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7676
7677         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
7678         under 2.0 rendering.  [Fixes bug #82657]
7679
7680 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7681
7682         * TreeView.cs: If we found a TreeNode to display a context menu, but
7683         it doesn't have one to show, let the TreeView display its menu
7684         instead.  [Fixes bug #82680]
7685
7686 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7687
7688         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
7689         OnPaintInternal instead.  Give the internal TextBox a Border property
7690         so it can draw itself more correctly.  [Fixes bug #82653]
7691
7692 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
7693
7694         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
7695
7696 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
7697
7698         * ComboBox.cs: Adjust combobox button state to reflect current state when
7699         back to enabled = true. Fixes first issue of #82654.
7700
7701 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
7702
7703         * Control.cs: Fix last patch regression, prevent forms to update zorder when
7704         setting visible property.
7705
7706 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
7707
7708         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
7709         fix zorder for controls initially created as non visible. Fixes #82667.
7710
7711 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
7712
7713         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
7714         mimic win32 look. Fixes #82656.
7715
7716 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
7717
7718         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
7719         Stubs for new net 3.5 classes.
7720
7721 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7722
7723         * ListViewItem.cs: In ListViewItemCollection operations calculate
7724         Layout for owner as well as invalidate it. Fixes part of #82642.
7725
7726 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
7727
7728         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
7729         when returning Enabled.  [Fixes bug #82651]
7730
7731 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
7732
7733         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
7734
7735 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7736
7737         * ListView.cs: Put item padding info in a single place
7738         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
7739         columns again.
7740         * ThemeWin32Classic.cs:
7741         * Theme.cs: Likewise.
7742
7743 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7744
7745         * ListView.cs: When a ListViewSubItem instance is invalidated,
7746         invoke Invalidate on parent ListViewItem, not parent ListView.
7747         Fixes #81570.
7748
7749 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
7750
7751         * ListView.cs, ListViewItem.cs: corcompare stuffs.
7752
7753 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
7754
7755         * BindingMemberInfo.cs: Implement == and != operators.
7756
7757 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
7758
7759         * HtmlElementEventArgs.cs: Implement properties.
7760
7761 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
7762
7763         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
7764
7765 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
7766
7767         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
7768         Add (string,string,string) to implement the imagekey.  It turns out, we
7769         use the requested imagekey whereas .Net does not.  So I broke ours to match
7770         theirs.  :(
7771
7772 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
7773
7774         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
7775
7776 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
7777
7778         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
7779
7780 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
7781
7782         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
7783         up-to-date. Fixes bug #82618.
7784
7785 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
7786
7787         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
7788         reflect document changes. Fixes #82367.
7789
7790 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7791
7792         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
7793         as well as add new ones. This should make work the BackgroundImage
7794         property for ListView again.
7795
7796 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
7797
7798         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
7799         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
7800         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
7801
7802 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
7803
7804         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
7805         IsKeyLocked.
7806
7807 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
7808
7809         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
7810         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
7811
7812 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
7813
7814         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
7815         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
7816
7817 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
7818
7819         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
7820
7821 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
7822
7823         * GridEntry.cs: Implement GetService.
7824
7825 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
7826
7827         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
7828         for label editting, make sure we focus back on the TreeView.
7829         [Fixes bug #82590]
7830
7831 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7832
7833         * ListView.cs: Add some 2.0 overrides.
7834
7835 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
7836
7837         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
7838         because getter dont returns right value before handle creation. Thanks 
7839         to George. Fixes #82569.  
7840
7841 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
7842
7843         * Theme.cs: Revert last patch, it causes error under win32. 
7844
7845 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
7846
7847         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
7848         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
7849         logical Desktop rather than the physical file system location. Fixes #82603. 
7850
7851 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
7852
7853         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
7854         for the patch. Fixes #82568.
7855
7856 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7857
7858         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
7859         methods.
7860
7861 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7862
7863         * ListViewInsertionMark.cs: New stubbed class.
7864
7865 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
7866
7867         * FolderBrowserDialog.cs: When adding folder, immediately create the
7868         directory with temporary name and rename the directory when editing
7869         finishes. This matches MS. Ensure the node for the new folder is 
7870         selected and LabelEdit is disabled, when editing is either finished
7871         or cancelled.
7872
7873 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
7874
7875         * TreeView.cs: When editing label of node, ensure node is visible.
7876
7877 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
7878
7879         * PropertyGridView.cs: Set the value only if it has changed.
7880
7881 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7882
7883         * ListView.cs: Some more code refactoring to add support sorting
7884         with groups (now for Details view). Remove unused code also.
7885
7886 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
7887
7888         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
7889         Not a big fan of reacting immediately to a field in an EventArg, but that's
7890         the way it's done.  (This is part of the previous commit that got left out.)
7891
7892 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
7893
7894         * FolderBrowserDialog.cs: Removed need for separate description field.
7895         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
7896         has focus when dialog box is displayed again, regardless of what
7897         button was pressed the previous time. Set RootFolder and SelectedPath
7898         each time dialog box is displayed. This ensures the treeview is
7899         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
7900         when it does not have focus. Added support for more special folders.
7901
7902 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
7903
7904         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
7905         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
7906         it resets the edit_args.
7907         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
7908         [Fixes bug #82577]
7909
7910 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
7911
7912         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
7913         button to match MS. Provide more meaningful exception message for
7914         invalid RootFolder value. Use zero-length string when SelectedPath
7915         is set to null. Allow non-rooted paths in SelectedPath, but ignore
7916         them in FolderBrowserTreeView. Allow folders to be created in
7917         RootFolder. Fixes bug #82576.
7918
7919 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7920
7921         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
7922         since we need to take into account the group headers and the margin
7923         between them.
7924         * ListViewGroup.cs: Add a rows field to store the number of rows per
7925         group.
7926
7927 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7928
7929         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
7930           Anyways, let's just follow the lead.
7931
7932 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
7933
7934         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
7935         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
7936         controls in GetPreferredSizeCore.
7937         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
7938         [Fixes bug #82488]
7939
7940 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
7941
7942         * PrintDialog.cs: Need to instantiate the form variable here too.
7943
7944 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7945
7946         * ListView.cs: Do some reorganization to support sorting in groups,
7947         by doing the layout sequentially in ListView.Items. Also add support
7948         for the Default Group, which should be available for items with no
7949         group assigned.
7950         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
7951         for storing layout info also.
7952         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
7953         collection, as well as providing internal members to do a traversal
7954         including the default group (needed when doing layout/drawing).
7955         * ThemeWin32Classic.cs: When drawing group headers use internal
7956         ListViewGroupCollection members to take into account the default
7957         group.
7958
7959 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
7960
7961         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
7962
7963 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
7964
7965         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
7966         been created.  If handle is created, we want arror keys.  If we are editing
7967         a node, we want things like enter, esc, home, end, page up, page down.
7968         Allows Esc to work for FolderBrowserDialog.
7969
7970 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
7971
7972         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
7973         they close when ESC is pressed.  Thanks Andy!
7974
7975 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
7976
7977         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
7978         This way we can tell if this is a CommonDialog provided with mono, or one
7979         that is being implemented outside by a developer.  If it is an external one,
7980         the developer is responsible for showing their own form.  We were showing
7981         our blank form after the developer showed his.
7982         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
7983         PageSetupDialog.cs: Instantiate form variable in our constructor.
7984         [Fixes bug #82531]
7985
7986 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
7987
7988         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
7989         and always return true.  [Fixes bug #81616]
7990
7991 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
7992
7993         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
7994         TextBox.  [Fixes bug #82549]
7995
7996 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
7997
7998         * FileDialog.cs: When Save/Open is clicked and no filename is selected
7999         or entered then do not close the dialog. Fixes bug #82539. Removed
8000         CWLs.
8001
8002 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
8003
8004         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
8005         code to this method. It is calling every time filter changes. This method
8006         will help to fix the bug #80887.
8007
8008 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
8009
8010         * CheckBox.cs: Implement AutoSize calculation.
8011
8012 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
8013
8014         * CheckBox.cs: Use new 2.0 rendering for 2.0.
8015         * Theme.cs: Method declarations for 2.0 rendering path.
8016         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
8017
8018 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8019
8020         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
8021
8022 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8023
8024         * ListViewGroupCollection.cs: Implement AddRange the right way, to
8025         only call Redraw on the parent one time.
8026
8027 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8028
8029         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
8030           GetClipboardContent.
8031         * DataGridViewCell.cs: Implemented GetClipboardContent,
8032           GetEditedFormattedValue, GetFormattedValue.
8033         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
8034
8035 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
8036
8037         * TableLayoutStyleCollection.cs: corcompare fix.
8038
8039 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8040
8041         * DataObject.cs: Implemented retrieval of convertible / not convertible
8042           objects.
8043
8044 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
8045
8046         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
8047         ourselves.  This ensures the entire old bounds are repainted, in case our new
8048         size is smaller.  [Fixes bug #82518]
8049
8050 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
8051
8052         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
8053         flag to make fast handle of mouse events, without this the mouse move is
8054         handled in some manner, whether it is a mouse move or not. Fixes #81588.
8055
8056 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8057
8058         * ListView.cs: When doing layout calculations don't use a ref
8059         param to keep the current item; instead use its Index value (this 
8060         is specially important when doing the layout with Groups
8061         and Items being sparse). Also don't take into account items added to
8062         the Group but not yet added to the main ListView.Items collection.
8063
8064 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8065
8066         * ListViewGroupCollection.cs: Forgot to mimic an issue
8067         in the indexer (don't assign the ListView owner for new values).
8068
8069 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8070
8071         * ListViewGroupCollection.cs: Make the string indexer use
8072         the int based indexer to re-use code, instead of duplicate the code.
8073         Also Redraw as needed and take into account null values.
8074
8075 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
8076
8077         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
8078         [Fixes bug #82481]
8079
8080 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
8081
8082         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
8083         when other buttons are clicked or navigated to.
8084
8085 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8086
8087         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
8088           it's XplatUIX11 that attaches them.
8089
8090 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8091
8092         * DataGridView.cs: If a column has been added, recreate the editing row.
8093           Fixes #82226.
8094
8095 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8096
8097         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
8098           of the tag to draw. Makes disappearing text show up again.
8099
8100 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8101
8102         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
8103           Contents. Fixes #82487.
8104
8105 2007-08-19  Andreia Gaita  <avidigal@novell.com>
8106
8107         * Added HtmlElement.cs, HtmlElementCollection.cs, 
8108           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
8109           
8110 2007-08-19  Andreia Gaita  <avidigal@novell.com>
8111
8112         * BindingSource.cs: Implement this, dispose and getenumerator.
8113         * DataGridViewRowCollection.cs: Move the InvalidOperationException
8114         out of AddInternal, throw it only on public Add calls. The 
8115         UsingWebBrowser sample was blowing up with this when setting the
8116         DataSource after adding DataBindings, so it's likely that .net
8117         only throws this exception when Add is called directly. 
8118         
8119         * ToolStripControlHost.cs: Return the hosted control's text
8120         property, and not the ToolStripItem one (it would always return
8121         the initial value).
8122         
8123         * HtmlDocument.cs: Implement GetElementById and All
8124         * WebBrowser.cs: Remove exception on set_DocumentStream.        
8125
8126 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
8127
8128         * Form.cs: Fix the max and min value for opacity (0~1).
8129
8130 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
8131
8132         [Fixes #80118]
8133         * DataGridTableStyle.cs: Default header font is now null, on getter it 
8134         returns datagrid font when is null. On setter permits null.
8135
8136         * DataGrid.cs:
8137         - When ResetHeaderFont set header font to null.
8138         - On EndInit set grid_style.DataGrid.
8139
8140 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
8141
8142         * TabControl.cs: Fix regression in default padding x.
8143
8144 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
8145
8146         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
8147
8148 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
8149
8150         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
8151         not 2. Fixes #82229.
8152
8153 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
8154
8155         * TabControl.cs: Fix tab size when image height is less than text height.
8156         Partially fixes #81837.
8157
8158 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
8159
8160         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
8161         "alt + tab". It works only for Win32, for X11 theres no way to remove window
8162         from taskbar and keep it on "alt_tab". Fixes #81722.
8163
8164 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
8165
8166         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
8167         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
8168         Fixes #80877 and #79418.
8169
8170 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
8171
8172         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
8173         between position and one of the screen borders. Fixes #82349.
8174
8175 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
8176
8177         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
8178         the MessageBox in the taskbar. Fixes #82457.
8179
8180 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
8181
8182         * MessageBox.cs: Fix form size when icon is set and text height is bigger
8183         than icon. Fixes #82468.
8184
8185 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8186
8187         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
8188         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
8189           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
8190           Refactored HandleNCCalcSize somewhat to avoid code duplication.
8191         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
8192           FormBorderStyle to decide if we're calculating a new size from the
8193           client size or not. CreateParams: Don't fake tool windows, only the X11
8194           backend manages toolwindows manually.
8195
8196 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
8197
8198         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
8199         ObjectDisposedException.
8200
8201 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
8202
8203         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
8204         in OnLoad should not have any effect.  [Fixes bug #82470]
8205
8206 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
8207
8208         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
8209         paint for controls that create their own ToolTipWindow instead of
8210         going through ToolTip.
8211
8212 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
8213
8214         * ToolTip.cs: Make Hide internal instead of public to match MS API.
8215
8216 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8217
8218         * ListViewGroupCollection.cs: Use generic List instead of an
8219         ArrayList, since this collection is 2.0 only.
8220
8221 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
8222
8223         * ToolTip.cs (Hide): Made public to make the build work (should
8224         this not be public?).
8225
8226 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
8227
8228         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
8229         ToolTipWindow.
8230         * ToolTip.cs: Add an internal Visible property to facilitate transition.
8231
8232 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
8233
8234         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
8235         PopupEventHandler.cs: Make these internal for 1.1.
8236         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
8237         use ToolTipWindow internals.
8238         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
8239         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
8240
8241 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8242
8243         * X11Dnd.cs: Add a null check.
8244
8245 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8246
8247         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
8248           nothing else succeeds. Fixes #82453.
8249
8250 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8251
8252         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
8253           rectangle if we're painting to another window than the one the paint
8254           message was generated on. Simplify the code somewhat, which makes
8255           PaintEventEnd also simpler.
8256
8257 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8258
8259         * Control.cs: When changing parent of a form, let the form decide whether
8260           XplatUI.SetParent should be called or not.
8261         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
8262           recreating the handle. If the new parent's handle isn't created, don't
8263           recreate our handle, just destroy it. CreateParams: Check if the
8264           parent's handle is created before fetching it.
8265
8266 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8267
8268         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
8269           Update calls to PaintEventStart/End to take a Message argument.
8270         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
8271           take a Message argument.
8272         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
8273           Message argument, and handle the case where we don't paint to the window
8274           for which the paint message was generated.
8275
8276 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8277
8278         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
8279           Marshal.GetLastWin32Error. Plug nasty memory leak in
8280           PaintEventStart/End, we were creating a DC we weren't releasing.
8281
8282 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8283
8284         * ListView.cs: Add Groups support in Details view. Also have a small
8285         method to do the layout of the group header. Don't use a separate
8286         method to do the groups calculation in Icons view, since our methods
8287         are now a little simpler.
8288         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
8289         `Bounds'.
8290         * ThemeWin32Classic.cs: Likewise.
8291
8292 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
8293
8294         * Application.cs: Add FilterMessage method and rework our message loop
8295         logic to use it.
8296
8297 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
8298
8299         * Application.cs: Add some methods and stub a few methods that are
8300         pretty much never used.
8301
8302 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
8303
8304         * TreeNode.cs: Add some serialization methods.
8305
8306 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8307
8308         * ListView.cs: In ListViewItemCollection have a 
8309         'is_main_collection' field to not modify ListViewItem.ListView
8310         when using it as ListViewGroup.Items (and not ListView.Items)
8311         and also don't modify selection state (.Net behaviour). 
8312         Instead, set group for items contained in a ListViewGroup.Items collection.
8313         * ListViewItem.cs: Simplify some code in Group setter.
8314         * ListViewGroup.cs: use the new .ctor to pass the current instance
8315         to the ItemsCollection.
8316         * ListViewGroup.cs: Set the ListView property for ListViewGroup
8317         instances when adding/removing. Also make Remove use RemoveAt, which
8318         should perform better.
8319
8320 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
8321
8322         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
8323         that crept into the 1.1 profile.
8324
8325 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
8326
8327         * ToolBarButton.cs: Implement ImageKey.
8328
8329 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
8330
8331         * ToolBar.cs: Implement ScaleControl/ScaleCore.
8332
8333 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8334
8335         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
8336           created, it might have gotten destroyed since we last checked. Fixes
8337           #82405.
8338
8339 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
8340
8341         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
8342         tooltip will hide when mouse is moved off the control.
8343         [Fixes bug #82407]
8344
8345 2007-08-11 Andreia Gaita <avidigal@novell.com>
8346
8347         * WebBrowserBase.cs, WebBrowser.cs: add implementation
8348         using Mono.Mozilla for loading and navigating webcontrol
8349         with xulrunner.
8350         The initial implementation was done on 
8351         /trunk/mozembed/tests/browser , and copied here.
8352
8353 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
8354
8355         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
8356         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
8357
8358 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8359
8360         * DataGridView.cs: Add support for an editing row. Fixes #82226.
8361           RowTemplateFull: throw an exception if a column doesn't have a template.
8362         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
8363           add the row just before it.
8364         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
8365           selected.
8366         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
8367           DataGridView field to be able to reach the grid's editing row.
8368
8369 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
8370
8371         * ToolTip.cs: If the control's handle hasn't been created when it has a
8372         tooltip set on it, don't check to see if we need to show the tooltip.  This
8373         check was causing the control's handle to be created.
8374         [Fixes bug #82399]
8375
8376 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
8377
8378         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
8379                                         1.1             2.0
8380         Handle Not Created      -1              0
8381         Handle Created          0               0
8382         [Fixes bug #82371]
8383
8384 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
8385
8386         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
8387         [Fixes bug #82348]
8388
8389 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
8390
8391         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
8392         * ToolTip.cs: Implement some properties and owner draw.
8393
8394 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8395
8396         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
8397           show them again, since setting visibility causes a paint, causing an
8398           endless loop (instead use a temporary and set it all when it's known if
8399           they should be shown or not). Fixes #79265.
8400
8401 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8402
8403         * DataGridView.cs: Only do a full column/row selection if a header was
8404           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
8405           isn't pressed, deselect everything before selecting something.
8406
8407 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8408
8409         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
8410           behaviour according to bug #81075 - they are returned in the order they
8411           are selected. Fix HitTest to check if the point is within any of the
8412           headers. Allow for row/column selection when in ColumnHeader or
8413           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
8414           the row and column to call when their selected state changes, and
8415           updated selected_[rows|columns] whenever SetSelected* is called.
8416         * DataGridViewBand.cs: Initialize isRow correctly. Call
8417           SetSelected[Row|Column]CoreInternal when the selected state changes, and
8418           add a SelectedInternal to avoid StackOverflows.
8419         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
8420           ReadOnly no matter what.
8421         * DataGridViewSelectedColumnCollection.cs,
8422           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
8423           the items in reverse order (just as MS does...)
8424
8425 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
8426
8427         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
8428         itself, not part of a mnemonic.  [Fixes bug #82378]
8429
8430 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8431
8432         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
8433         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
8434           the DGV, the column, the row, or the cell itself is readonly.
8435
8436 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
8437
8438         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
8439         OSVersion.Platform.
8440         * FileDialog.cs: Same.
8441         * TextRendered.cs: Same.
8442         * FolderBrowserDialog.cs: Same.
8443         * TextBoxBase.cs: Same.
8444         * Application.cs: Same.
8445         * Cursors.cs: Same.
8446         * ThemeClearLooks.cs: Same.
8447
8448 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
8449
8450         * XplatUI.cs: Added RunningOnUnix property to be used by controls
8451         instead of duplicating these checks everywhere.
8452         * FileDialog.cs: Use case-insensitive comparison for populating the
8453         DirComboBox when not running on unix. Fixes bug #82385.
8454         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
8455         "Look in".
8456
8457 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8458
8459         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
8460           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
8461           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
8462           cell and column selection with ctrl and shift pressed. Call the correct
8463           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
8464           the corresponding virtual method (PaintBackground to paint background,
8465           etc).
8466         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
8467           either the column, row or the cell itself is selected.
8468         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
8469           OnRowsAdded.
8470         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
8471           here. When the row is selected, don't select all cells. Each cell now
8472           queries the row to see if the row is selected.
8473
8474 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8475
8476         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
8477           SelectionMode.
8478
8479 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8480
8481         * ListView.cs: In ListViewItemsCollection check that owner is
8482         not null before trying to access it (this happens quite often
8483         using Groups). Also don't duplicate calls by calling CollectionChanged
8484         method.
8485
8486 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
8487
8488         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
8489         when we are dismissed to clear keyboard mnemonics.
8490         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
8491         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
8492         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
8493         was activated by keyboard or the OS tells us to always draw them.
8494         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
8495         [Fixes bugs #82376, #82377]
8496
8497 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
8498
8499         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
8500         shot at having it because Alt was pressed.
8501         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
8502         the first real menu item.
8503         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
8504         a mnemonic if Text is null.
8505         [Fixes bug #82374]
8506
8507 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8508
8509         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
8510         search do check whether the item is already contained in the
8511         collection or not; instead check if the owner of the item is the same
8512         as ours. Also, remove a redundant check in the same method. 
8513
8514 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
8515
8516         * Control.cs: Allow the clip region to be set back to null.
8517         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
8518         [Fixes button still showing up in bug #82370 when Show Through is turned off]
8519
8520 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8521
8522         * GridEntry.cs: Add a null check.
8523         * PropertyGrid.cs: When checking for existing grid entries, ignore category
8524           entries. Fixes #82297.
8525
8526 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
8527
8528         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
8529         for 2.0.
8530
8531 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
8532
8533         * ListBox.cs: Implement ScaleControl.
8534
8535 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8536
8537         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
8538           have a menu strip.
8539         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
8540           parent has a menu strip. Fixes #81689.
8541
8542 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8543
8544         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
8545           moments, so apply some fuzzy logic to determine if the mouse is still
8546           inside a control or not. Fixes #82288 (for the third time).
8547
8548 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8549
8550         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
8551           Don't create the child if it has been disposed already (may happen if
8552           the user closes the form the Load event).
8553
8554 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8555
8556         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
8557           #82288.
8558
8559 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8560
8561         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
8562           might call us after we've been destroyed, in which case our own private
8563           parent field is null. Fixes #82326.
8564
8565 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
8566
8567         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
8568         check for setting the dropdown's owner.
8569
8570 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
8571
8572         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
8573         before removing system menu items.
8574
8575 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
8576
8577         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
8578         folding.
8579         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
8580         folding.
8581         * ToolStrip.cs: Add a null check to mnemonics.
8582         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
8583         no ConnectedArea.
8584         [Fixes most of bug #81689]
8585
8586 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8587
8588         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
8589
8590 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8591
8592         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
8593
8594 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8595
8596         * DataGridViewCell.cs: EditType: returns
8597           DataGridViewTextBoxEditingControl always.
8598
8599 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
8600
8601         * TextRenderer.cs: Remove the LineLimit string format flag from the
8602         DrawString fallback method so that things like buttons that aren't
8603         tall enough to draw a full line will still draw part of the text.
8604         [Fixes part of bug #82272]
8605
8606 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8607
8608         * DataGridView.cs: Implemented AutoResizeColumn(s).
8609         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
8610           according to the Alignment.
8611         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
8612           Implement alignment and padding when painting.
8613         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
8614           exists.
8615         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
8616           way.
8617         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
8618           a column is added.
8619
8620 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
8621
8622         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
8623         which is internal.
8624
8625 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
8626
8627         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
8628         hide GetPreferredSize from public API.
8629         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
8630         * ToolStripItem.cs: Stub out drag and drop methods and events.
8631         * ToolStripManager.cs: Stub out Save/LoadSettings.
8632         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
8633         * ToolStripPanel.cs: Fix corcompare error.
8634         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
8635         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
8636         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
8637
8638 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
8639
8640         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
8641         bounds height instead of PreferredHeight.  Puts things back the way 
8642         they were for height while still fixing the width.  Fixes broken unit
8643         tests.
8644
8645 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8646
8647         * Binding.cs: Implement 2.0 constructors and add a null check.
8648
8649 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8650
8651         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
8652           and fix row index (off by one).
8653
8654 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8655
8656         * PropertyGridView.cs: Remove debug output.
8657
8658 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8659
8660         * Control.cs: We need to reset the is_created flags when the handle is
8661           destroyed. Fixes #82187.
8662         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
8663           client coordinates if the window doesn't have a parent.
8664           Win32GetParent returns the parent or the owner, and for top-level
8665           windows with no parent (but with an owner) we were calculating the
8666           location from the location of the owner.
8667         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
8668           form has been disposed.
8669         * MdiClient.cs: Add a null-check.
8670
8671 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
8672
8673         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
8674         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
8675         so we can provide an implementation that returns the current width
8676         and preferred height.  Allows anchor = right to work with TextBox 2.0.
8677         [Fixes bug #82233]
8678
8679 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8680
8681         * ListView.cs: Add support for navigating items in Groups mode, by
8682         creating a big matrix containing all rows and cols of all groups. When
8683         are in other mode than Details, pressing Up should have a similar
8684         behaviour as that one of Down (moving to the next available column if
8685         current one doesn't have an item in the requested row). Also, don't
8686         proceed to use groups if ShowGroups is false.
8687         * ListViewGroup.cs: Add an internal int field to store the starting
8688         row of the group (used by the big matrix used for navigating the
8689         ListView).
8690         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
8691         false.
8692
8693 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
8694
8695         * ToolStripDropDown.cs: When we do Show, start with the 
8696         DefaultDropDownDirection, but if our popup menu is going to off-screen,
8697         modify the direction to keep it on screen.  [Fixes bug #82210]
8698
8699 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
8700
8701         * FileDialog.cs: Accept any FilterIndex value, and store it
8702         unmodified. When FilterIndex is less than 1, or greater than number
8703         of filters, then default to first filter. Only add filter extension to
8704         file if user did not specifiy an extension. When type of dialog is
8705         OpenFileDialog and DefaultExt is set, then only use filter extension
8706         if: CheckFileExists is true and no file wih the default extension
8707         exists, or CheckFileExists is false, and user specified file does not
8708         exist. When CheckFileExists is true, then add first extension of 
8709         selected filter that matches existing file. Perform checks for
8710         existing file, overwrite and create after extension has been added to
8711         file name. When CheckFileExists is true and type is SaveFileDialog,
8712         then only consider first filter extension if DefaultExt is set.
8713         When CheckFileExists is true, then ignore DefaultExt if file with that
8714         extension does not exist. Also perform check for existing file when
8715         type is SaveFileDialog. Changed some field to constants.
8716
8717 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8718
8719         * ListView.cs: Take into account the region used by header
8720         control when doing the vertical scroll (this way we invalidate
8721         the precise area, and don't get any dirty one).
8722
8723 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
8724
8725         * FileDialog.cs: Check for valid filterIndex on button open/save. 
8726         Fixes #82184.
8727
8728 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8729
8730         * ListView.cs: Update some layout calculations in details view
8731         and clean the code in a pair of assignations.
8732
8733 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
8734
8735         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
8736         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
8737         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
8738         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
8739
8740 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
8741
8742         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
8743         performance of thread-safe Graphic methods.  (Thanks rolf!)
8744
8745 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8746
8747         * ListView.cs: When doing the layout calculations, don't calculate
8748         scroll bars before handle is created. This is unnecessary and also
8749         calculating them before handle creation item causes a number of random
8750         bugs (which begin to appear after Chris' big patch for handle creation
8751         fixes). 
8752
8753 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
8754
8755         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
8756         for things that don't have a Graphics object.  Currently, things just use
8757         the static Hwnd.bmp_g which is not thread safe.
8758
8759 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8760
8761         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
8762           dialog. Fixes #82187.
8763
8764 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8765
8766         * DataGridViewElement.cs: Initialize state.
8767         * DataGridView.cs: Forward a few Mouse events to cells. Add
8768           GetRowInternal and GetCellInternal that doesn't unshare rows.
8769           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
8770           don't use the index, but look it up. Add
8771           DataGridViewControlCollection.RemoveInternal to remove controls
8772           that Remove won't remove (scrollbars, edit control).
8773         * DataGridViewColumn.cs: Initialize State correctly.
8774         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
8775           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
8776           implementing this.
8777         * DataGridViewRowCollection.cs: Implemented shared rows.
8778         * DataGridViewRow.cs: Throw exceptions as MS do.
8779         * DataGridViewCell.cs: A few properties are implemented by a
8780           Get<Property> method, so move implementation there and remove the
8781           NIEX in the method. Add a bunch of OnXInternal that DataGridView
8782           calls when necessary.
8783         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
8784           complicates matters.
8785         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
8786           unshare any rows.
8787
8788 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
8789
8790         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
8791         the children controls.  Instead, we will just set up the proper docking for the
8792         children controls so we don't have to worry about it.  [Fixes bug #82188]
8793
8794 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
8795
8796         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
8797         canceling and correct Before/AfterLabelEdit properties as layed out in bug
8798         81847.  [Fixes bug #81847]
8799
8800 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
8801
8802         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
8803         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
8804         an explicit size based on the design-time size of the text.  Since our fonts
8805         may not match this explicit size, we tend to cut off the ends of people's labels.
8806
8807 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
8808
8809         * Menu.cs: Add some missing methods to MenuItemCollection.
8810
8811 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8812
8813         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
8814         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
8815         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
8816         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
8817         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
8818         * DataGridViewElement.cs: State defaults to Visible.
8819         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
8820         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
8821
8822 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8823
8824         * Control.cs: Minor 1.1 corcompare fix.
8825
8826 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
8827
8828         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
8829         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
8830
8831 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8832
8833         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
8834           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
8835           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
8836           DataGridViewSelectedColumnCollection.cs,
8837           DataGridViewSelectedRowCollection.cs: Corcompare work.
8838
8839 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
8840
8841         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
8842         it is autoset by VS2005 designer and the effect is barely noticeable.
8843
8844 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
8845
8846         * TreeView.cs: Implement HitTest.
8847
8848 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8849
8850         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
8851           manually adding and removing the control from the Controls
8852           collecftion.
8853         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
8854           EditingControlInternal property that tracks the editing control.
8855           Always keeping the scrollbars in the Controls collection, as MS
8856           testing confirms is the right behaviour.
8857
8858 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8859
8860         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
8861           according to MSDN and new test.
8862
8863 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
8864
8865         * TreeNode.cs: Implement ToolTipText.
8866         * TreeView.cs: Implement tooltips, NodeMouse* events.
8867
8868 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
8869
8870         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
8871
8872 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
8873
8874         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
8875         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
8876
8877 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
8878
8879         * Control.cs, Form.cs, ContainerControl.cs,
8880         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
8881         for misc properties.
8882
8883 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
8884
8885         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
8886         * TreeView.cs: Implement StateImageList.
8887
8888 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8889
8890         * Form.cs: Don't check if the current form is the active form before
8891           activating it. Fixes #81904.
8892
8893 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8894
8895         * Form.cs: Don't check if the current form is the active form before
8896           activating it. Fixes #81904.
8897
8898 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8899
8900         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
8901
8902 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8903
8904         * Form.cs: Don't try to position the form after loading if the form was
8905           disposed. Fixes #81969.
8906
8907 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8908
8909         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
8910           properties. Had to change ToolBar into ToolStrip, which required a
8911           few #ifs.
8912
8913 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8914
8915         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
8916           resized, fixes part of #79829 (vertical lines in toolbar).
8917           PropertyGrid: Refactored Populate* to something that's easier to
8918           follow at least for me, as well as splitting it up into several new
8919           methods, required to update only subitems when something has
8920           changed by a popup editor or listbox. Don't use events to check
8921           when any values are changed, since the events are unreliable (we're
8922           changing the objects the events are registered with, and if the
8923           event handling requires the objects to be immutable (objects stored
8924           in hashtables for instance), the events will never be raised).
8925         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
8926           everytime we change a value, since events are unreliable.
8927           DropDownButtonClicked: For the same reason don't compare objects to
8928           check if it has changed or not, it would require all objects to
8929           derive Equals. Fix dialog location on windows, MS is doing weird
8930           things when creating parented forms.
8931         * GridEntry.cs: Add a SelectedObject setter.
8932
8933 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
8934
8935         * TreeNode.cs: Add some corcompare attributes.
8936         * TreeNodeCollection.cs: Implement 2.0 stuffs.
8937         * TreeView.cs: Implement some 2.0 stuffs.
8938
8939 2007-07-18  Andreia Gaita  <avidigal@novell.com>
8940
8941         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
8942         for moma.
8943
8944 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
8945
8946         * ListBox.cs: Implement custom tab offsets.
8947
8948 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
8949
8950         * ToolStripContentPanel.cs: Support System renderer.
8951         * ToolStripControlHost.cs: Set RightToLeft to default to No.
8952
8953 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
8954
8955         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
8956
8957 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
8958
8959         * CheckBox.cs: Chain TextAlign to base implementation instead of
8960         maintaining another one.
8961
8962 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
8963
8964         * ButtonBase.cs: Fix an incorrect string constant.
8965
8966 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
8967
8968         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
8969         of creating one for measuring strings.
8970
8971 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
8972
8973         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
8974         Implement MaxItemSize.
8975
8976 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
8977
8978         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
8979         for DeviceContext.  Instead, use the static one available in Hwnd.
8980         Informal tests show this saves about 500k on formtest.exe.
8981
8982 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
8983
8984         * ContainerControl.cs: Implement 2.0 AutoScaling.
8985
8986 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8987
8988         * ComboBox.cs: Work around bug #82120 (bug in mcs).
8989
8990 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
8991
8992         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
8993         Darken the focus color.
8994
8995 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
8996
8997         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
8998         for the checkbox.
8999         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
9000         X, Y instead of a rect for drawing text.
9001         - For ControlPaint.DrawCheckBox, center the check a little better when the
9002         checkbox is odd width.  When drawing a flat checkbox, use a white background
9003         when state != inactive.
9004         [Fixes bugs #82097, 82100]
9005
9006 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
9007
9008         * ListControl.cs: When changing CurrencyManager, disconnect event
9009         handlers from previous one. Fixes bug #81771. Code formatting.
9010
9011 2007-07-15  Andreia Gaita <avidigal@novell.com>
9012
9013         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
9014         full preview invalidation from layout invalidation, and only invalidate
9015         the layout when setting zoom or other properties. Invalidation should
9016         always be done even when resetting properties with the same values as
9017         what is there. Fixes #81744 and #79830.
9018
9019 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9020
9021         * ListView.cs: Implement initial support for Groups. Split some of the
9022         LayoutIcons code to render a partial list of the items (needed by
9023         items contained in ListViewGroup instances). Let the
9024         ListViewItemsCollection.ListView property be modifiable (needed when
9025         using Groups, too).
9026         * ListViewGroup.cs: Use a Bounds property rather than a Location
9027         one. Also invalidate the bounds when they get changed.
9028         * ThemeWin32Classic.cs: When drawing items, also draw the group header
9029         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
9030         method as well.
9031
9032 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9033
9034         * ListView.cs: When space gets pressed and CheckBoxes is true, 
9035         don't invoke the Begin and EndUpdate methods. We are generating 
9036         a redraw of the entire control without need to do so.
9037
9038 2007-07-13  William Holmes <billholmes54@gmail.com> 
9039
9040         * Control.cs: Changing logic in FindFlatForward and 
9041           FindFlatBackward to handle multiple Controls with 
9042           the same TabIndex.  
9043           This fixes bug 81687.
9044
9045 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
9046
9047         * OSFeature.cs: Enable IsPresent.
9048
9049 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9050
9051         * Control.cs: Don't do anything in WmShowWindow if the control has been
9052           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
9053           control is created, put on a form, the control is disposed (the
9054           form is never shown), and then we get a MapNotify, triggering a
9055           WM_SHOWWINDOW.
9056         * Form.cs: Exclude the current form when sending Deactivate to all
9057           MdiChildren.
9058         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
9059           there was a race condition because assigning the handle raises
9060           events, we can get more messages, therefore trying to assign the
9061           handle again, which would fail if any of those event handlers
9062           closed/disposed the control.
9063
9064 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9065
9066         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
9067
9068 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
9069
9070         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
9071         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
9072
9073 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9074
9075         * DateTimePicker.cs: If there's no part format specifier, return an
9076           empty string.
9077
9078 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
9079
9080         * FlatButtonAppearance.cs: Throw NotSupportedException for a
9081         Transparent BorderColor.
9082
9083 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9084
9085         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
9086           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
9087           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
9088           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
9089           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
9090           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
9091           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
9092           Remove warnings.
9093         * X11Structs.cs: Remove warnings, add ToString implementations.
9094
9095 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9096
9097         * XplatUIX11.cs: Translate min/max size according to the actual min/max
9098           size, and not the current size. Fixes #81798.
9099
9100 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9101
9102         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
9103           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
9104           to the control yet).
9105
9106 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9107
9108         * PropertyGridTextBox.cs: Add a method that sends any forwarded
9109           mousedowns to the contained textbox.
9110         * X11Structs.cs: More ToString implementation.
9111         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
9112           #81791.
9113
9114 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9115
9116         * PropertyGridView.cs: Add a null-check, fixes a few tests.
9117
9118 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
9119
9120         * TableLayoutPanelCellPosition.cs: TypeConverter.
9121
9122 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9123
9124         [ Fixes #79761]
9125         
9126         * PropertyGridTextBox.cs: Propagate any color changes to all contained
9127           controls.
9128         * PropertyGridView.cs: A few color fixes.
9129
9130 2007-07-10  Jackson Harper  <jackson@ximian.com>
9131
9132         * TextControl.cs: Remove some old unused text formatting stuff.
9133
9134 2007-07-10  Jackson Harper  <jackson@ximian.com>
9135
9136         * TreeView.cs: Update full row select invalidation to match the
9137         newer DrawSelection... method.
9138         - Make sure to invalidate the entire width when selecting a new
9139         node, if we have full row selection enabled.
9140
9141 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9142
9143         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
9144           display of properties again.
9145
9146 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
9147
9148         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
9149         to existing collections.
9150
9151 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
9152
9153         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
9154         that changed between 1.1 and 2.0.
9155
9156 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
9157
9158         * PowerStatus.cs: Added.  This is just a data class, it is filled
9159         in by SystemInformation.
9160
9161 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
9162
9163         * Message.cs: Add op_Equality and op_Inequality.
9164
9165 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
9166
9167         * MenuStrip.cs: Finish corcompare work.
9168
9169 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
9170
9171         * LinkArea.cs: Add op_Equality and op_Inequality.
9172
9173 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
9174
9175         * Application.cs: Add MessageLoopCallback delegate.
9176
9177 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
9178
9179         * ListBox.cs: First set of 2.0 stuffs.
9180
9181 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
9182
9183         * Control.cs: Make an internal Height property we can override
9184         without messing up the public API.
9185         * ListBox.cs: Override HeightInternal to always return the size
9186         the user set.  [Fixes bug #80466]
9187
9188 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
9189
9190         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
9191         paint cell borders if we haven't calculated where they go yet.
9192         [Fixes bugs #82040 and #82041]
9193
9194 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9195
9196         * ListView.cs: In Details view, set the location of item_control
9197         in the (0,0) position (and the header_control is thus on the
9198         item_control). This way the Bounds of the Items are relative to the
9199         ListView control (before this, they had a Bounds value without the
9200         header_control offset, which wasn't matching .Net). Fixes #82004.
9201
9202 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9203
9204         * ListControl.cs: When DataSource is set to null, pass an empty
9205         array of object to SetItemsCore. This is done to clean the items
9206         in the ListContol children. Fixes #81788.
9207
9208 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
9209
9210         * ListControl.cs: Add 2.0 stuffs.
9211
9212 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
9213
9214         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
9215         Refresh is overkill for just about every repaint request.
9216
9217 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
9218
9219         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
9220         so remove my custom Get method and fix the property getter.
9221
9222 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
9223
9224         * Label.cs: DefaultMargin for 2.0.
9225
9226 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
9227
9228         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
9229         reported issue where other controls with mnemonics would steal strokes
9230         from a selected ComboBox.
9231
9232 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
9233
9234         * ScrollOrientation.cs: Make internal for 1.1.
9235         * ScrollEventArgs.cs: Add 2.0 stuffs.
9236
9237 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
9238
9239         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
9240         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
9241         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
9242
9243 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9244
9245         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
9246
9247 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9248
9249         * ListView.cs: Implement the so-incredibly broken 2.0 
9250         VirtualItemsSelectionRangeChanged event.
9251
9252 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9253
9254         * ListView.cs: When enter is pressed and selection is non empty,
9255         an OnItemActivate event must be fired.
9256
9257 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9258
9259         * ListView.cs: Store the FocusedItem information as an
9260         int instead of a ListViewItem (needed by VirtualMode).
9261         Update the calls to SetFocusedItem to pass an index instead of
9262         an item.
9263         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
9264         the Focused state from the owner ListView. 
9265
9266 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9267
9268         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
9269         property. Also, invalidate previous focused item in the mentioned
9270         property (match .Net).
9271
9272 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9273
9274         * ListView.cs: Implement 2.0 FocusedItem property setter.
9275
9276 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9277
9278         * ListView.cs: Implement 2.0 TopItem property setter.
9279
9280 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
9281
9282         * StatusStrip.cs: The default renderer is System.
9283         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
9284         if the user specifies it.
9285         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
9286         if we are ManagerRenderMode.
9287         * ToolStripMenuItem.cs: Calculate our text color better.
9288         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
9289         from Professional to the base class based off working with the System renderer.
9290         * ToolStripSystemRenderer.cs: Added.
9291
9292 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9293
9294         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
9295
9296 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
9297
9298         * ToolTip.cs: Implement 2.0 Tag property.
9299
9300 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9301
9302         * ListView.cs: Implement 2.0 HitTest methods.
9303
9304 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9305
9306         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
9307         item is under the pointer or not (sugar). Also remove the TODO
9308         regarding to the cursor changes in OneClick activation.
9309         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
9310         the subitems use the parent's HotFont if UseItemStyleForSubItems is
9311         true; otherwise don't show the underline style.
9312
9313 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9314
9315         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
9316         the code to retrieve the item at position only one time. Also
9317         change cursor when Activation is ItemActivation.OneClick as well
9318         as invalidate the item if HotTracking is true (to show/hide the
9319         underline style). Add an internal HotItemIndex property to retrieve
9320         the current hot item's index.
9321         * ListViewItem.cs: Add an internal HotFont property to cache the
9322         font used when HotTracking is true and the pointer moves within the
9323         item's borders.
9324         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
9325         HotFont depending on the hot state of the item.
9326
9327 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9328
9329         * ListView.cs: Implement 2.0 HotTracking property.
9330
9331 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
9332
9333         * ToolStripControlHost.cs: If our hosted control never got created,
9334         don't try to dispose it.  [Fixes bug #81909]
9335
9336 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
9337
9338         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
9339
9340 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
9341
9342         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
9343
9344 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9345
9346         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
9347         Details view.
9348         * DrawListViewColumnHeaderEventArgs.cs:
9349         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
9350         using the DrawText () methods.
9351
9352 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
9353
9354         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
9355         background which got erased in my changes yesterday.
9356
9357 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9358
9359         * ListViewItem.cs: Actually set bounds for subitems in Details view
9360         (2.0 feature).
9361         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
9362         can invoke from the owner draw routines if we need it. Also, add
9363         support for Owner draw in Details view.
9364
9365 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
9366
9367         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
9368         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
9369         ShowImageMargin setting, properly align text in a ToolStripLabel
9370         hosted on a ToolStripDropDown.
9371
9372 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
9373
9374         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
9375         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
9376
9377 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9378
9379         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
9380
9381 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
9382
9383         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
9384         location to match ToolStripMenuItems.
9385
9386 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9387
9388         * DrawListViewColumnHeaderEventArgs.cs:
9389         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
9390         column headers in ListView. 
9391
9392 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
9393
9394         * UserControl.cs: Implement AutoSize.
9395
9396 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9397
9398         * DrawListViewItemEventArgs.cs:
9399         * ListView.cs:
9400         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
9401         ListView.
9402
9403 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
9404
9405         * ToolStripDropDownItemAccessibleObject.cs: Added.
9406         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
9407         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
9408         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
9409         ToolStripTextBox.cs: corcompare work.
9410
9411 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
9412
9413         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
9414         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
9415         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
9416                 corcompare.
9417
9418 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
9419
9420         * OSFeature.cs: Add IsPresent.
9421         * PrintPreviewControl.cs: Add RightToLeft.
9422         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
9423         * SplitterPanel.cs: Add AutoSizeMode.
9424
9425 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
9426
9427         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
9428         * MdiClient.cs: Add 2.0 ScaleControl.
9429         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
9430         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
9431
9432 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
9433
9434         * Form.cs: Implement some scaling methods, stub some RTL methods,
9435         corcompare work.
9436
9437 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
9438
9439         * Control.cs: corcompare work.
9440         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
9441
9442 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
9443
9444         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
9445         ControlPaint 2.0 stuffs.
9446
9447 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9448
9449         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
9450
9451 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9452
9453         * UpDownBase.cs: Add 2.0 stuffs.
9454
9455 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9456
9457         * NumericUpDown.cs: Add 2.0 stuffs.
9458
9459 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9460
9461         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
9462
9463 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9464
9465         * ErrorProvider.cs: Implement 2.0 stuffs.
9466
9467 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9468
9469         * DomainUpDown.cs: Implement 2.0 stuffs.
9470
9471 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9472
9473         * CheckedListBox.cs: Fix RefreshItems signature.
9474
9475 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9476
9477         * PictureBox.cs: Implement 2.0 stuffs.
9478
9479 2007-06-12  Andreia Gaita  <avidigal@novell.com>
9480         
9481         * TabControl.cs: Check if there are tabpages before checking
9482         the selected index - fix #81802 (font changes raise a ResizeTabs
9483         call on controls.add, which blew up nicely with no tabpages)
9484
9485 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9486
9487         * ListView.cs:
9488         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
9489
9490 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9491
9492         * ListView.cs:
9493         * ListViewItem.cs: In VirtualMode the selection information
9494         resides in the ListView, rather than in the Items. Also, throw
9495         InvalidOperationExceptions when VirtualMode is being used and
9496         CheckedItemCollection is accessed.
9497
9498 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
9499
9500         * ComboBox.cs: Add ScaleControl.
9501
9502 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
9503
9504         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
9505
9506 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
9507
9508         * GroupBox.cs: Add 2.0 stuffs.
9509
9510 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
9511
9512         * Panel.cs: Add autosize properties/event.
9513
9514 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
9515
9516         * Control.cs:
9517         - When we remove a control, remove it from the collection before performing the layout.
9518         - Setup an internal property for explicit_bounds.
9519         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
9520         - Perform a layout when we set a new AutoSizeMode.
9521
9522 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
9523
9524         * ScrollableControl.cs: Add 2.0 stuffs.
9525
9526 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
9527
9528         * ScrollBar.cs: Add 2.0 stuffs.
9529
9530 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
9531
9532         * Splitter.cs: Add 2.0 stuffs.
9533
9534 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
9535
9536         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
9537         to have BindingContext simply use base implementation.
9538
9539 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
9540
9541         * ColumnHeader.cs: corcompare fix.
9542
9543 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
9544
9545         * Button.cs: corcompare fixes.
9546         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
9547
9548 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
9549
9550         * Button.cs: Override GetPreferredSizeCore.
9551         * ButtonBase.cs: PerformLayout after changing properties that can affect
9552         AutoSize.  Simplify some mouse/keyboard code.
9553         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
9554         * MouseEventArgs.cs: Make Location internal for 1.1.
9555         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
9556         * Theme.cs: Add CalculateButtonAutoSize.
9557         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
9558
9559 2007-06-05  Miguel de Icaza  <miguel@novell.com>
9560
9561         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
9562
9563 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9564
9565         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
9566         since we can get different item instances every time we retrieve it.
9567
9568 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9569
9570         * ListView.cs: Work around for #81602, since an unkown an pretty
9571         infrequent condition appears only in some systems (old linux boxes, it
9572         seems).
9573
9574 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
9575
9576         * Button.cs: Completely reformat and a little refactor to bring
9577         this closer to Mono circa 2007.
9578
9579 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
9580
9581         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
9582         to be ButtonBase.Invalidate.
9583
9584 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
9585
9586         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
9587
9588 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
9589
9590         * ButtonBase.cs: Completely reformat and a little refactor to bring
9591         this closer to Mono circa 2007.
9592
9593 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
9594
9595         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
9596         values for autosize. Fixes #80137.
9597
9598 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
9599
9600         * Control.cs: Don't perform layout when AutoSize changes.
9601         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
9602         directly when autosizing, use SetBounds with BoundsSpecified.None.
9603         Fixes unit tests my last commit broke.
9604
9605 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
9606
9607         * Control.cs: Perform layout when AutoSize changes.
9608         * Form.cs: Implement AutoSizing.
9609
9610 2007-06-01  Chris Toshok  <toshok@ximian.com>
9611
9612         * DataGrid.cs: remove the XXX'ed check at the top of
9613         ProcessGridKey.  fixes #80464.
9614
9615 2007-06-01  Chris Toshok  <toshok@ximian.com>
9616
9617         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
9618         adding idempotent (add/remove in Edit()), and also make sure we
9619         don't add it until after we set the text, so it's not tripped in
9620         Edit().  Fixes unit test regression.
9621
9622 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
9623
9624         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
9625         change is user explicit, not when the layout engine moves stuff.  Fixes
9626         anchoring to bottom and right.  [Fixes bug #81790]
9627
9628 2007-06-01  Andreia Gaita  <avidigal@novell.com>
9629
9630         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
9631
9632 2007-06-01  Andreia Gaita  <avidigal@novell.com>
9633
9634         * ContainerControl.cs: 
9635         Fire enter event for common ancestor if it is not a ContainerControl.
9636         Send focus to the active_control and not the 'value', the active 
9637         control might have been changed in one of the events fired.     
9638         Definitely fixes #80159.
9639
9640 2007-06-01  Andreia Gaita  <avidigal@novell.com>
9641
9642         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
9643
9644 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9645
9646         * PropertyGrid.cs: Anchor the help description to the bottom of the
9647           help panel and refactor SelectGridItem into a
9648           SelectGridItemInternal that can be set to null (and update it to
9649           clear the help texts when it is set to null). Set root item to null
9650           when there's no SelectedObject. Fixes #80438.
9651         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
9652           when we're recalculating after a resize (only).
9653
9654 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9655
9656         * ListView.cs: Implement 2.0 RedrawItems method.
9657
9658 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9659
9660         * ListControl.cs: Disconnect PositionChanged and ItemChanged
9661         handlers from previous data manager when DataSource is set to
9662         null. Fixes #81771.
9663
9664 2007-05-31  Jackson Harper  <jackson@ximian.com>
9665
9666         * TextBoxBase.cs: These seem to be the correct values.
9667
9668 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
9669
9670         * FileDialog.cs: When close dialog with ok set filterindex using combobox
9671         value. Fixes #81784.
9672
9673 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
9674
9675         * Control.cs: Implement 2.0 scaling methods.
9676
9677 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9678
9679         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
9680           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
9681           corcompare issues.
9682
9683 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9684
9685         * ProgressBar.cs: Implemented missing 2.0 members.
9686
9687 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9688
9689         * Control.cs: Corcompare issues.
9690         * MessageBox.cs: Implemented missing 2.0 functions.
9691
9692 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9693
9694         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
9695           Implemented more 2.0 members.
9696
9697 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9698
9699         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
9700           null (strange, but it seems to happen when running unit tests).
9701
9702 2007-05-30  Andreia Gaita  <avidigal@novell.com>
9703
9704         * ContainerControl.cs: Set active_control even earlier, before 
9705         firing any events, and undo it if validation returns false.
9706
9707 2007-05-30  Andreia Gaita  <avidigal@novell.com>
9708
9709         * ContainerControl.cs: Raise Validation and Enter/Leave events
9710         even if there is no Form and set active_control earlier, just
9711         before firing Enter events (toshok's patches). Fixes #80647.
9712
9713 2007-05-30  Jackson Harper  <jackson@ximian.com>
9714
9715         * TextControl.cs: Redid the pageup/pagedown a little to simplify
9716         things and fix bug #81311.
9717
9718 2007-05-30  Jackson Harper  <jackson@ximian.com>
9719
9720         * X11Dnd.cs: Now that we have our own event loop, we need to
9721         cancel when we get a mouseup but it won't be accepted.
9722
9723 2007-05-30  Chris Toshok  <toshok@ximian.com>
9724
9725         * DataGrid.cs (set_CurrentCell): guard against negative
9726         column/row.
9727
9728         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
9729         array index syntax instead of looping over the property names.
9730
9731         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
9732         and set IsInEditOrNavigateMode to false there.
9733
9734 2007-05-30  Jackson Harper  <jackson@ximian.com>
9735
9736         * TreeView.cs: Make sure we don't get a bad visible order when
9737         setting to the top node.  Fixes some misc crashing in
9738         ControlInspector.
9739
9740 2007-05-30  Andreia Gaita  <avidigal@novell.com>
9741
9742         * UserControl.cs: Add 2.0 AutoSizeMode
9743
9744 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
9745
9746         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
9747
9748 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
9749
9750         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
9751         lines. Fixes #80285. 
9752
9753 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
9754
9755         * DataGridColumnStyle.cs: Add char trimming column header text format. 
9756
9757 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
9758
9759         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
9760         Fixes #80147.
9761
9762 2007-05-29  Jackson Harper  <jackson@ximian.com>
9763
9764         * TreeNode.cs: Fix off by one on calculating whether or not a node
9765         is visible.
9766
9767 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
9768
9769         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
9770         * ScrollableControl.cs: Force an UpdateDistances when we move the
9771         scrollbars.
9772         [Fixes bug #80605]
9773
9774 2007-05-29  Andreia Gaita  <avidigal@novell.com>
9775
9776         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
9777         update the page setup screen.
9778
9779 2007-05-29  Andreia Gaita  <avidigal@novell.com>
9780
9781         * PageSetupDialog.cs: Fix landscape mode.
9782
9783 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9784
9785         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
9786         IconSizeHorizontalSpacing.
9787
9788 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9789
9790         * ListView.cs: The declaration of prev_tooltip_item should be inside
9791         a NET_2_0 conditional (avoid a warning).
9792
9793 2007-05-28  Andreia Gaita  <avidigal@novell.com>
9794
9795         * PageSetupDialog.cs: Implement PrintPreview control to display
9796         the preview thumbnail. Change unit conversion to use 
9797         PrinterUnitConvert methods.
9798         
9799         Note: there is a huge bug in ms.net where the default margins are 
9800         interpreted as centimeters (?), when in fact they are set in inches. When 
9801         loading the page setup dialog initially (ms.net), the default margins 
9802         are set to 1 inch, and the dialog shows them with value 10, when in fact 
9803         it should be 25 (properly converted). Our dialog doesn't have this bug.
9804         
9805         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
9806         RectangleF.
9807         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
9808
9809 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9810
9811         * ListView.cs:
9812         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
9813         items.
9814
9815 2007-05-28  Andreia Gaita  <avidigal@novell.com>
9816
9817         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
9818         an IntPtr on csc (it builds fine on mcs, could it be a compiler
9819         bug?), convert the ptr to Int32 first.
9820
9821 2007-05-28  Jackson Harper  <jackson@ximian.com>
9822
9823         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
9824         recieved, we will exit the dnd tracking loop.
9825
9826 2007-05-28  Jackson Harper  <jackson@ximian.com>
9827
9828         * X11Dnd.cs: Keep tracking until the xdnd finished event is
9829         recieved. TODO: I should probably stick a timer on the dropped
9830         event, and finish the drag if the XDND Finished event never shows
9831         (because some apps don't seem to send it).
9832
9833 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
9834
9835         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
9836         #81733.
9837
9838 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9839
9840         * MonthCalendar.cs: Only mark the keypresses we actually handle as
9841           handled.
9842
9843 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9844
9845         * MonthCalendar.cs: Set the size after initializing all the relevant
9846           variables. Fixes #81742.
9847
9848 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9849
9850         * KeyEventArgs.cs: Fix typo.
9851
9852 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
9853
9854         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
9855         to match MS. Fixed MinDate to only accept value less than or equal
9856         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
9857         Removed TODO's that are now verified by unit tests.
9858
9859 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
9860
9861         * TreeNodeCollection.cs: Minor corrections to exceptions to match
9862         MS.
9863
9864 2007-05-25  Jackson Harper  <jackson@ximian.com>
9865
9866         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
9867         it's own message loop.
9868         * XplatUIX11.cs: Remove some of the dnd hooks
9869
9870 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
9871
9872         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
9873         instead of MinimizedWindowSize.
9874
9875 2007-05-25  Jackson Harper  <jackson@ximian.com>
9876
9877         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
9878
9879 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9880
9881         * KeyEventArgs.cs: Added SuppressKeyPress.
9882         * Control.cs: Added support for SuppressKeyPress.
9883
9884 2007-05-24  Andreia Gaita  <avidigal@novell.com>
9885
9886         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
9887         problems with PieChart. suppress_validation should not be a counter,
9888         if there are several BeginInit calls, the first EndInit will 
9889         activate validation. Fix exceptions thrown by set_Value.
9890         * UpDownBase.cs: ValidateText only if it's the user editing it.
9891
9892 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9893
9894         * ListControl.cs: FilterItemOnProperty should return the filtered
9895         item proeprty even if DataSource is null. The same applies for
9896         GetItemText. Fixes #80427.
9897
9898 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
9899
9900         * Control.cs: If a control doesn't have a parent when it's Dock is
9901         set, but it has children, it needs to do a layout.  Fixes some nested
9902         controls issues.  [Fixes bug #81199]
9903
9904 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9905
9906         * ComboBox.cs: If there are few items in the drop down list, make it
9907           the exact size the items need, no bigger. Fixes #81612.
9908
9909 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
9910
9911         * Application.cs: When we have captured the keyboard for a menu,
9912         check for mouse down events in case we need to close the menu.
9913         * Control.cs, Form.cs: Remove mouse down checks for menus.
9914
9915 2007-05-24  Jackson Harper  <jackson@ximian.com>
9916
9917         * TextControl.cs: Handle tabs in non multiline mode a little
9918         differently.
9919
9920 2007-05-24  Jackson Harper  <jackson@ximian.com>
9921
9922         * TextControl.cs: We need to manually break apart tabbed text and
9923         move the tabs, since the system.drawing tabbing mechanism relies
9924         on tab stops.
9925         * TextBoxBase.cs: Move the caret properly when the user enters a
9926         tab.
9927
9928 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
9929
9930         * ContainerControl.cs: Don't check CanSelect before calling
9931         ProcessMnemonic.
9932         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
9933         release a KeyboardActive on click if it's not ours.
9934
9935 2007-05-23  Andreia Gaita  <avidigal@novell.com>
9936
9937         * ColumnHeader.cs: Add TypeConverter
9938
9939 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
9940
9941         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
9942
9943 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
9944
9945         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
9946
9947 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
9948
9949         * LinkLabel.cs: Implement public Padding property.
9950
9951 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
9952
9953         * LinkLabel.cs: Implement public FlatStyle.
9954
9955 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
9956
9957         * Control.cs: Apply patch from George to call parent.PerformLayout
9958         when Visible is changed.  [Fixes bugs #81118, 81718]
9959
9960 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
9961
9962         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
9963
9964 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
9965
9966         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
9967
9968 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
9969
9970         * ContextMenu.cs: Implement Collapse.
9971
9972 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
9973
9974         * ToolBarButton.cs: Implement Name.
9975
9976 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
9977
9978         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
9979         use current_item, it prevents some NRE. Fixes #81675.  
9980
9981 2007-05-22  Andreia Gaita  <avidigal@novell.com>
9982
9983         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
9984         without updating the text.
9985
9986 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
9987
9988         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
9989         without calling DeleteObject.  [Should fix bug #81709]
9990
9991 2007-05-22  Jackson Harper  <jackson@ximian.com>
9992
9993         * RichTextBox.cs: Set the line endings correctly, when flushing
9994         RTF text.
9995
9996 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
9997
9998         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
9999          {Width=0,Height=0}.
10000
10001 2007-05-22  Jackson Harper  <jackson@ximian.com>
10002
10003         * TreeView.cs: Setting top with a null node should set to the very
10004         top.
10005
10006 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10007
10008         * Form.cs: ShowDialog: destroy the handle when message loop is
10009           finished, matches MS behaviour. Refactor parts of WmClose into
10010           RaiseCloseEvents, that only raises events if they haven't already
10011           been raised. Fixes #81688 and #81521.
10012         * Application.cs: Don't call close on the form when exiting a modal
10013           loop, it will raise all the (Form)Closed/Closing events again if
10014           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
10015           which doesn'r raise any events it they have been raised before.
10016
10017 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
10018
10019         * Control.cs: Add OnPrint.
10020         * ToolStrip.cs: Add GetChildAtPoint.
10021         * ToolStripContainer.cs: Add OnRightToLeftChanged.
10022         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
10023
10024 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
10025
10026         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
10027
10028 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10029
10030         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
10031           isn't visible anymore. Fixes #81651.
10032
10033 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10034
10035         * Control.cs: WmShowWindow: Update children's z-order after setting
10036           their parent. SetParent may show the window, thereby corrupting
10037           z-order, since the window will be shown on top.
10038         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
10039           multiple (and redundant) WM_SHOWWINDOW messages.
10040         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
10041           event has already been raised.
10042         * Form.cs: Change is_changing_visible_state to a counter, since
10043           SetVisibleCore can be called recursively. CreateHandle: when
10044           creating mdi children, send (De)Activated events.
10045         * MdiClient.cs: Update use of is_changing_visible_state.
10046         * Application.cs: OnThreadException: Surround exception handling with
10047           try/finally to ensure we always reset the error-handling state
10048           before leaving.
10049
10050 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10051
10052         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
10053           (#81704).
10054
10055 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10056
10057         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
10058         SmallIcon views, now that we have a standarized horizontal spacing.
10059
10060         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
10061         4, just like the other views (Match .Net).
10062
10063 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
10064
10065         * Control.cs: Delay calculating anchor distances until we actually layout.
10066         Always query the WM for the actual size and location it put us at instead of
10067         only when we send negative values.
10068         [Fixes bugs #81694, 81695]
10069
10070 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10071
10072         * Application.cs: Avoid a possible stack overflow when trying to exit
10073           the application.
10074
10075 2007-05-19  Marek Safar  <marek.safar@gmail.com>
10076
10077         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
10078         enum value.
10079
10080 2007-05-19  Andreia Gaita  <avidigal@novell.com>
10081
10082         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
10083         * NumericUpDownAcceleration.cs, 
10084           NumericUpDownAccelerationCollection.cs: Added 2.0
10085           implementation.
10086
10087 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
10088
10089         * RichTextBox.cs: Recalculate the document after the ScrollBars
10090         property is changed. Fixes bug #81681.
10091
10092 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
10093
10094         * DataObject.cs: Implement 2.0 methods.
10095
10096 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10097
10098         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
10099         in the center of the checkbox, not in the left-top corner. 
10100         Fixes #80037.
10101
10102 2007-05-18  Jackson Harper  <jackson@ximian.com>
10103
10104         * RichTextBox.cs: Recalculate the document after the scrollbars
10105         property is changed.
10106         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
10107         81486.
10108
10109 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10110
10111         * CreateParams.cs: Make HasWindowManager marginally faster.
10112         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
10113           into Hwnd so that other drivers can use it as well.
10114         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
10115           the default location from Hwnd. Fixes MDI client windows always
10116           showing up at (0,0) in Windows (Win32 won't set the default
10117           location since the window styles aren't correct).
10118
10119 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
10120
10121         * TreeView.cs: Modified DoubleBuffered to just use the base
10122         implementation.
10123
10124 2007-05-18  Jackson Harper  <jackson@ximian.com>
10125
10126         * TreeView.cs: Set the top node to the last child node when
10127         expanding all
10128         - When we get focus, if there is no selected node, use the top
10129         node.
10130
10131 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
10132
10133         * KeysConverter.cs: Add CanConvertTo.
10134         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
10135         * LinkConverter.cs: Added.
10136
10137 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
10138
10139         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
10140         it prevents error when file dont have write access. Fixes #81669 and #81667.  
10141
10142 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
10143
10144         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
10145         button text. Fixes #79640.  
10146
10147 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
10148
10149         * Control.cs: According to MSDN controls created in the designer theres 
10150         keyboard accelerators visible by default. So included check for design
10151         in ShowKeyboardCuesInternal.  
10152
10153 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
10154
10155         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
10156         text. Fixes #81621.  
10157
10158 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
10159
10160         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
10161         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
10162
10163 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
10164
10165         * Control.cs: Finish implementation of UI State using WmChangeUIState
10166         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
10167         in some controls to check for show_keyboard_cues to draw accell keys "_".  
10168
10169 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10170
10171         * ListBox.cs: When calculating the horizontal scrollbar
10172         in single column mode, don't use values less than 0 for
10173         Maximum. Fixes #81474.
10174
10175 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10176
10177         * ListBox.cs: Throw the some missing exceptions in
10178         ListBox.ObjectCollection methods.
10179
10180 2007-05-17  Jackson Harper  <jackson@ximian.com>
10181
10182         * TextBoxBase.cs: Recalculate the document when the word wrap
10183         value has changed. This fixes 81488.
10184
10185 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
10186
10187         * Clipboard.cs: Implement missing GetText overload.
10188
10189 2007-05-17  Chris Toshok  <toshok@ximian.com>
10190
10191         * Control.cs (CheckDataBindings): remove the binding_context arg
10192         to binding.Check.
10193
10194         * CurrencyManager.cs (OnItemChanged): fix this now that
10195         BindingManagerBase is fixed. also remove the comment telling where
10196         the fix should go.  We set transfering_data to true/false around
10197         the call to PushData to keep UpdateIsBinding from being called.
10198         (ListChangedHandler): remove the extra OnMetaDataChanged call for
10199         PropertyDescriptorAdded in the 1.1 case.  The extra call is
10200         actually generated by System.Data generating 2 metadata changed
10201         events of its own per column add.  The fix should go there.  Add a
10202         comment to that affect in our test's Assert.Ignore.
10203
10204         * BindingManagerBase.cs: Rework PullData and PushData slightly.
10205         we keep a boolean flag (transfering_data) that keeps us from
10206         calling UpdateIsBinding multiple times if we re-enter either of
10207         them.
10208
10209         * ControlBindingsCollection.cs (AddCore): remove the
10210         binding_context arg to binding.Check.
10211
10212         * Binding.cs (IsBinding): don't check if we're binding here, just
10213         return our cached value.  we update it in UpdateIsBinding.
10214         (Check): don't take the binding_context arg, we'll just use our
10215         control's.  Also, for some reason MS doesn't use the data member
10216         field when getting the bindingmanager for this binding.  it just
10217         uses the datasource.  Make this method callable multiple times,
10218         and only do the is_null_desc stuff if manager.Position != -1 (so
10219         we don't get an exception accessing manager.Current).
10220         (UpdateIsBinding): move the code from IsBinding here.
10221         (PositionChangedHandler): call Check here to we can initialize
10222         things that require a non- -1 position.
10223
10224 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
10225
10226         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
10227         control.
10228
10229 2007-05-17  Andreia Gaita  <avidigal@novell.com>
10230
10231         * TabControl.cs: Add 2.0 methods and events, including
10232         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
10233         * TabPage.cs: Add 2.0 methods
10234
10235 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
10236
10237         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
10238         keyboard_cues is properly handled by message method.  
10239
10240 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
10241
10242         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
10243
10244 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
10245
10246         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
10247
10248 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
10249
10250         * Control.cs: 
10251         - WmUpdateUIState added to handle state changes, it make call to
10252         OnChangeUICues event.
10253         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
10254         SystemInformation.
10255
10256 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
10257
10258         * ImageKeyConverter.cs: Added.
10259         * TreeViewImageKeyConverter.cs: Added.
10260
10261 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10262         
10263         * ToolTips.cs: Update Text if SetToolTip is called for a control
10264         already showing the tooltip, as well as restarting its timer; show
10265         tooltip if we are inside the control bounds by the time of calling
10266         SetToolTip. Inside ShowTooltip remove the check to not show the 
10267         tooltip again for the active control (it is allowed by .Net to 
10268         show the tooltip on the same control multiple times).
10269
10270 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10271
10272         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
10273
10274 2007-05-16  Andreia Gaita <avidigal@novell.com> 
10275
10276         * ContainerControl.cs: only process tab key if there are no 
10277         modifier keys present, otherwise the control does the 
10278         tab processing, if it needs to. Fixes #81622
10279         * TabControl.cs: Fixes calculation for which tab to select on
10280         shift+ctrl+tab.
10281
10282 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10283
10284         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
10285
10286 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
10287
10288         * Control.cs: Make IsInputCharInternal to allow controls to
10289         override it and still match MS API.
10290         * TextBoxBase.cs: Override IsInputCharInternal and always
10291         return true.
10292         [Fixes bug #81616]
10293
10294 2007-05-15  Jackson Harper  <jackson@ximian.com>
10295
10296         * TextBox.cs: Disable some of the menu options when using a
10297         readonly textbox.
10298
10299 2007-05-15  Jackson Harper  <jackson@ximian.com>
10300
10301         * TextBox.cs:
10302         * TextBoxBase.cs:
10303         * RichTextBox.cs: Some new 2.0 methods
10304
10305 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
10306
10307         * FileDialog.cs: On 1.0 profile, do not support multidotted 
10308         extensions.
10309
10310 2007-05-14  Jackson Harper  <jackson@ximian.com>
10311
10312         * TextBoxBase.cs: Implement some of the new 2.0 methods.
10313         * RichTextBox.cs: We need to override these methods on 2.0.
10314         * MaskedTextBox.cs: These are implemented now
10315         * TextControl.cs: This was off by one.
10316
10317 2007-05-14  Jackson Harper  <jackson@ximian.com>
10318
10319         * TextControl.cs: Because the line endings are including in the
10320         text, we don't need to add them in anymore.
10321
10322 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
10323
10324         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
10325         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
10326
10327 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
10328
10329         * ToolBar.cs: Adjust size to default size when button theres no text and
10330         image, it fixes remaining issues from #81524.
10331
10332 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
10333
10334         * ToolBar.cs: 
10335         - When not flat call redraw to recalculate sizes on creare handle to match
10336         win32 behavior.
10337         - Revert 77220 because it causes some regressions in toobar
10338         button.
10339
10340 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10341
10342         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
10343           now actually enters a usable state.
10344
10345 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
10346
10347         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
10348         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
10349         3 buttons.
10350
10351 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
10352
10353         * ToolBar.cs: Save default_size on create handle to use later for buttons
10354         without text, needed to mimic win32 behavior.
10355
10356 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
10357
10358         * ToolBar.cs: Fix button layour to best fit width or height according to
10359         vertical or not. Fixes #81524.
10360
10361 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
10362
10363         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
10364         toolbar size info because different styles theres different sizes.
10365         Fixes #81522.
10366
10367 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10368
10369         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
10370         if we are using checkboxes, checked is true, and we have less
10371         than two images in StateImageList; for the 1.1 in the same scenario
10372         draw the first image if we have at least one image in StateImageList.
10373         Fixes part of #81191.
10374
10375 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
10376
10377         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
10378         the owner's Items collection on merge.
10379
10380 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
10381
10382         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
10383         * ToolStripItemCollection.cs: Lots of fixes to when events get called
10384         and parent/owner gets changed based on gert's unit tests.
10385
10386 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10387
10388         * MaskedTextBox.cs: Started implementing parts of it.
10389
10390 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10391
10392         * ListView.cs: When clicking the checkbox on the items
10393         take into account the double clicks even if we have only
10394         one image in StateImageList (only for 1.0/1.1). Also 
10395         generate an extra change of checked state when we receive
10396         the second click on checkbox (match .Net behaviour). 
10397         Fixes part of #81191.
10398
10399 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
10400
10401         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
10402
10403 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
10404
10405         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
10406         even if OnLoad is overriden and base.OnLoad is not called.
10407         [Fixes bug #81582]
10408
10409 2007-05-10  Andreia Gaita  <avidigal@novell.com>
10410
10411         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
10412         shame. (I blame my ever-persisting and annoying cold)
10413
10414 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
10415
10416         * ListView.cs: Don't eat navigation keys.  Let them flow through to
10417         KeyDown/KeyPress routines.  [Fixes bug #81569]
10418
10419 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
10420
10421         * ListView.cs: When handling keys for selecting the item based off
10422         keyboard input, do not consider keys pressed with Alt or Control.  Also,
10423         correctly handle keys when the Shift key is down. [Fixes bug #81578]
10424
10425 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
10426
10427         * Control.cs: When using UseWaitCursor, we have to store the requested
10428         Cursor to use when UseWaitCursor is turned off.
10429
10430 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
10431
10432         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
10433         to false.
10434         * Application.cs: Use PreProcessControlMessage instead of
10435         PreProcessMessage.
10436         * PreProcessControlMessage.cs: Make internal for 1.1.
10437
10438 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10439
10440         * Control.cs: Add InternalContains focus property, which hast the same
10441         functionality of ContainsFocus, but also including implicit controls.
10442         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
10443         since we need to know if the focus is contained in our implicit
10444         ItemControl when calculating Layout. Fixes part of #80888.
10445
10446 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
10447
10448         * ToolTip.cs: Remove center form string alignment as it must be align to
10449         left.
10450
10451 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
10452
10453         * ToolStripItemCollection.cs: Set the new item's parent and owner
10454         in Insert like we do in Add.  [Fixes bug #81568]
10455
10456 2007-05-08  Jackson Harper  <jackson@ximian.com>
10457
10458         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
10459         - Off by one error in SetTop
10460         - Disable DoubeBuffering
10461         
10462 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10463
10464         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
10465           control as much as necessary in order to make it entirely visible,
10466           instead of centering the control in the container (matches MS
10467           behaviour). CalculateCanvasSize: we need to take the current scroll
10468           position into account when calculating the maximum canvas,
10469           otherwise the following scenario will fail: resize so that the
10470           scrollbars appear, use the scrollbars to scroll, resize again
10471           smaller, and now the canvas size is too small. Recalculate: when
10472           showing scrollbars make sure they start off at 0, and try to scroll
10473           the active control into view. Fixes #79540. HandleScrollBar: don't
10474           scroll anywhere if the scrollbar isn't visible.
10475
10476 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10477
10478         * ListView.cs: When focus changed, call Layout/Invalidate
10479         in the focused item to update the selected state (should show
10480         entire label when ListView is focused, and a part of it if is not).
10481         * ListViewItem.cs: When doing layout for LargeIcon, take into account
10482         for displaying the entire label not only the Focused state of the
10483         item, but also the Focused state of the ListView (match .Net
10484         behaviour).
10485
10486 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
10487
10488         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
10489         Implement UseWaitCursor. 
10490
10491 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
10492         Applying contributed patch from Sergey Volk.
10493
10494         * Clipboard.cs: Implement SetDataObject retry logic and new overload
10495         of SetDataObject.
10496         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
10497
10498 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
10499
10500         * Control.cs: Implement DrawToBitmap.
10501
10502 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
10503         Applying contributed patch from Stefan Noack.
10504         
10505         * Control.cs: Add [Get|Set]AutoSizeMode.
10506
10507 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
10508
10509         * MdiClient.cs: Unmerge menus when the last child is closed.
10510
10511 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
10512
10513         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
10514         * ToolStripManager.cs: Call Merge on DropDowns.
10515         [Fixes bug #81477]
10516
10517 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10518
10519         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
10520           uints.
10521         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
10522           visibility. We can't create forms visible, since we have to set the
10523           owner before making the form visible (otherwise Win32 will do
10524           strange things with task bar icons). The problem is that we set the
10525           internal is_visible to true before creating the control, so
10526           is_changing_visible_state is the only way of determining if we're
10527           in the process of creating the form due to setting Visible=true -
10528           this works because SetVisibleCore explicitly makes the form
10529           visibile afterwards anyways. Fixes #80775.
10530
10531 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10532
10533         * ThemeWin32Classic.cs: When drawing ListViewItems,
10534         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
10535         or LargeIcon _and_ item is not focused (match .Net behaviour).
10536
10537 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
10538
10539         * Control.cs, Form.cs: Fix some obsolete method warnings.
10540
10541 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
10542
10543         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
10544         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
10545
10546 2007-05-04  Andreia Gaita  <avidigal@novell.com>
10547
10548         * ContainerControl.cs: Fix active_control attribution when going
10549         up the parent chain so that the first parent container gets the control
10550         and the rest of the parent containers get the child containers (skips
10551         non-containers). Fixes #80729
10552
10553 2007-05-04  Randolph Chung  <tausq@debian.org>
10554
10555         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
10556         [Fixes bug #81499]
10557
10558 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10559
10560         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
10561           takes a size parameter, since the CreateParam's size isn't true for
10562           minimized forms. Fixes #81518,
10563
10564 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10565
10566         * Form.cs: Add OnDeactivateInternal.
10567         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
10568
10569 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10570
10571         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
10572           accessing the parent. Fixes #81508.
10573
10574 2007-05-03  Chris Toshok  <toshok@ximian.com>
10575
10576         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
10577         2.0 block, pass listposition + 1 to ChangeRecordState when a row
10578         was added before the current listposition.  Fixes the
10579         TestInsertRowBeforeCurrent unit test.
10580
10581 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
10582
10583         * Application.cs: Add RaiseIdle.
10584         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10585         XplatUIX11.cs: Implement RaiseIdle.
10586
10587 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
10588         corcompare work: N - Z
10589         * NotifyIcon.cs
10590         * ProgressBar.cs
10591         * RadionButton.cs
10592         * ScrollableControl.cs
10593         * SplitContainer.cs
10594         * SplitterPanel.cs
10595         * StatusBar.cs
10596         * SystemInformation.cs
10597         * TabControl.cs
10598         * TableLayoutControlCollection.cs
10599         * TableLayoutPanel.cs
10600         * TabPage.cs
10601         * ToolBar.cs
10602         * ToolBarButton.cs
10603         * ToolStrip.cs
10604         * ToolStripComboBox.cs
10605         * ToolStripContainer.cs
10606         * ToolStripContentPanel.cs
10607         * ToolStripDropDown.cs
10608         * ToolStripDropDownItem.cs
10609         * ToolStripDropDownMenu.cs
10610         * ToolStripItem.cs
10611         * ToolStripItemCollection.cs
10612         * ToolStripMenuItem.cs
10613         * ToolStripPanel.cs
10614         * ToolStripSplitButton.cs
10615         * ToolTip.cs
10616         * TreeNode.cs
10617         * TreeNodeCollection.cs
10618         * TreeNodeMouseHoverEventArgs.cs
10619         * TreeView.cs
10620
10621 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
10622
10623         * ContextMenu.cs: Add public method Show with alignment property to 2.0
10624         stuff. Thanks aatdark for the patch. 
10625
10626 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
10627
10628         * GridItem.cs: Implement 2.0 Tag property.
10629
10630 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
10631
10632         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
10633         count instead of Nodes.Length.  [Fixes bug #81448]
10634
10635 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
10636
10637         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
10638         [Fixes bug #81506]
10639
10640 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
10641         corcompare work: A - M
10642         * BindingNavigator.cs
10643         * Button.cs
10644         * ButtonBase.cs
10645         * CheckBox.cs
10646         * Control.cs
10647         * FlowLayoutPanel.cs
10648         * Form.cs
10649         * Label.cs
10650         * LinkLabel.cs
10651         * ListView.cs
10652
10653 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
10654
10655         * Application.cs: Give toolstrips a chance to process mnemonics.
10656         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
10657         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
10658         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
10659
10660 2007-05-01  Jackson Harper  <jackson@ximian.com>
10661
10662         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
10663         wider area too.
10664         - Don't set the BoundsSpecified
10665
10666 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
10667
10668         * Application.cs: When using the toolstrip shortcut mechanism, allow the
10669         message to pass through to a regular control if it hosted by a toolstrip.
10670         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
10671         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
10672
10673 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
10674
10675         * TextRenderer.cs: Use the flags argument when using the MeasureString
10676         fallback algorithm.
10677
10678 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
10679
10680         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
10681         the MDI menu item.  [Fixes bug #81483]
10682
10683 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
10684
10685         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
10686         string. When setting Name to null, use zero-length string instead.
10687
10688 2007-04-29  Andreia Gaita  <avidigal@novell.com>
10689
10690         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
10691         DeselectTab). Implement missing 2.0 TabPageCollection methods
10692         (Add, ContainsKey, RemoveByKey, IndexOfKey)
10693
10694 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
10695
10696         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
10697
10698 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
10699
10700         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
10701         Fixes bug #81479. Include details of exception when LoadFile fails.
10702
10703 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
10704
10705         * DrawListViewSubItemEventArgs.cs: Added missing setter
10706
10707 2007-04-27  Andreia Gaita  <avidigal@novell.com>
10708
10709         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
10710         Hide methods (not complete). Implement missing 2.0 OnPopup event.
10711
10712 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10713
10714         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
10715         removed in ly last commit (it was breaking the Label edit feature).
10716
10717         * ThemeWin32Classic.cs: When drawing a ListViewItem use
10718         StringAlignment.Near for LineAlignment (match .Net).
10719
10720 2007-04-27  Andreia Gaita  <avidigal@novell.com>
10721
10722         * TabControl.cs: Change SetTab so it adds the tabpage to the list
10723         of controls if it isn't already there - was blowing up when doing
10724         tabcontrol.TabPages[i]=new TabPage(). 
10725         SetTab now does a replace by removing the page at the index. 
10726         Add a new InsertTab method that inserts a page in a given index 
10727         instead of replacing. 
10728         Implements TabPageCollection.Insert(int, TabPage).
10729
10730 2007-04-27  Chris Toshok  <toshok@ximian.com>
10731
10732         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
10733         internal handler that can be invoked from our subclasses.)  Also,
10734         add a comment to PushData about how we need to fix it.
10735
10736         * CurrencyManager.cs: tons of changes here.  trying to get things
10737         matching the behavior of .net wrt event orders (ItemChanged,
10738         CurrentChanged, PositionChanged.)  I've implemented a private .net
10739         symbol (ChangeRecordState) that appears in stack traces because
10740         it's actually easier to do this than to effective inline all its
10741         various behaviors at every call site.
10742
10743         * RelatedPropertyManager.cs: guard against an exception here by
10744         not using parent.Current if the position is set to -1 (if the
10745         parent datasource is cleared, for instance).
10746
10747         * Binding.cs: don't parse data in PushData (this might be wrong,
10748         but it jives with MS's behavior.)  Also, don't call PushData when
10749         we get a CurrentChanged event.
10750
10751 2007-04-27  Andreia Gaita  <avidigal@novell.com>
10752
10753         * WebBrowser.cs,
10754           WebBrowserBase.cs,
10755           WebBrowserSiteBase.cs,
10756           HtmlDocument.cs: Added stubbed out classes, no real implementations 
10757           yet.
10758
10759 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
10760
10761         * MainMenu.cs: In draw method without parameters call draw method with 
10762         PaintEvent, another one (just rect) adjust rectangle and we dont need it
10763         as Rect property is already adjusted. Fixes #80694.
10764
10765 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
10766
10767         * Application.cs: Need to handle keyboard menu deselection here.
10768         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
10769         navigation, allowing keyboard to work on X11.
10770         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
10771
10772 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
10773
10774         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
10775         menu bar. It fixes some drawing issues in menu bar.
10776
10777 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
10778
10779         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
10780         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
10781         when <alt> key is pressed.
10782
10783 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
10784
10785         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
10786         example just set visible to false and make this prevent from other problems.
10787         In SystrayAdd always remove pending expose. Fixes #81072.
10788
10789 2007-04-26  Marek Safar  <marek.safar@gmail.com>
10790
10791         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
10792         value is set.
10793
10794 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
10795
10796         * ListView.cs: Added three missing 2.0 events and corresponding
10797         EventHandlers. Added the OwnerDraw property.
10798         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
10799
10800 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
10801
10802         * DrawListViewItemEventArgs.cs
10803         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
10804
10805 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
10806
10807         * TextControl.cs: Fixed typo in constructor
10808
10809 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
10810
10811         * Application.cs: Create a shortcut path so that currently selected
10812         MenuStrips can intercept keyboard events without having focus.
10813         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
10814         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
10815         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
10816         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
10817         generate WM_SYSCOMMAND message in X11 for other platforms.
10818         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
10819         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
10820         * ToolStripSplitButton.cs: Add DefaultItem property.
10821         
10822 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
10823
10824         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
10825         fixes some menu draw problem on Windows with border diferent from default
10826         it also fixes #81403.
10827
10828 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10829
10830         * Form.cs: Refactor WndProc into separate methods, just like Control is
10831           doing it.
10832
10833 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10834
10835         * Control.cs: set_Text: move the call to the driver into a seperate
10836           virtual method so that Form can override it.
10837         * MaskedTextBox.cs: Corcompare fixes.
10838         * Form.cs: Override UpdateWindowText and only update the styles if the
10839           form has been shown (fixes #81405).
10840
10841 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
10842
10843         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
10844         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
10845         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
10846         the form lost focus or another control was clicked.
10847
10848 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
10849
10850         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
10851         fixed.
10852
10853 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10854
10855         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
10856           DrawListViewItemEventHandler.cs,
10857           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
10858           Added.
10859         * X11Structs.cs: More ToString implementation.
10860
10861 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
10862
10863         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
10864         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
10865
10866 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10867
10868         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
10869           handle.
10870         * FormCollection.cs: Don't add a form if it's already in the
10871           collection.
10872         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
10873           according to behaviour and MSDN. The ownerWin32 is the active
10874           window at the moment when we call ShowDialog, not the context's
10875           main form (the context's main form may open another form that opens
10876           a form with ShowDialog, the win32 owner is the second form). Add
10877           and remove forms to the Application.OpenForms in other places to
10878           better match MS behaviour. Add an IsActive property that raises
10879           On(de)Activated only if the active state has changed (we were
10880           raising OnDeactivated before OnActivated while creating forms).
10881         * Application.cs: Refactor Enabling/Disabling of windows for modal
10882           dialog loops out to separate methods, and restore the thread
10883           context when we quit the method. Fixes #81407.
10884
10885 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10886
10887         * ListView.cs: In ItemControl.HandleClicks, also fire 
10888         2.0 MouseClick or MouseDoubleClick events on the parent,
10889         not only the Click/DoubleClick events.
10890
10891 2007-04-24  Andreia Gaita  <avidigal@novell.com>
10892
10893         * TableLayoutSettings.cs: 
10894         - Added a GetControls method and a support structure to help the 
10895         TypeConverter to enumerate the controls for     serialization. 
10896         - Added a new serialization constructor. 
10897         - Added a isSerialized flag initialized to true on the 
10898         serialization constructor so that the TableLayoutPanel.LayoutSettings 
10899         setter does not throw the designed NotSupportedOperation exception
10900         when the object is built through deserialization.
10901         - Implemented GetObjectData
10902         
10903         * TableLayoutPanel.cs: Added check on LayoutSettings.
10904
10905 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10906
10907         * ListView.cs: Report Click and DoubleClick events to the parent
10908         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
10909         from breaking the click count state when using dialog forms (Control
10910         reports the clicks in a similar fashion). In the previous behaviour
10911         the last WM_LBUTTONUP message in a  double click was sent to the
10912         ListView's form, instead of the ListView, which was breaking the click
10913         count for it. Fixes #80387.
10914
10915 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
10916
10917         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
10918
10919 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
10920
10921         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
10922         us from created dropdowns for menu items that do not have subitems.
10923         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
10924         Check HasDropDownItems before calling DropDown so a dropdown will not be
10925         created if it isn't needed.
10926
10927 2007-04-24  Jackson Harper  <jackson@ximian.com>
10928
10929         * TreeView.cs: Set the first node to the selected node when we get
10930         focus if there is no selected node.
10931
10932 2007-04-24  Andreia Gaita  <avidigal@novell.com>
10933
10934         * MimeIcon.cs: remove using blocks so that image streams are
10935         not disposed of. Fixes #80151
10936
10937 2007-04-24  Jackson Harper  <jackson@ximian.com>
10938
10939         * TextBoxBase.cs: Fixup the height of textboxes when the control
10940         is created.
10941
10942 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
10943
10944         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
10945         for each ToolStripItem when the parent's RightToLeftChanged is called.
10946
10947 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10948
10949         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
10950           Fixes #80163.
10951         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
10952           property, so that the setter can be overriden too.
10953         * TextBox.cs: Change GetContextMenuInternal() to use
10954           ContextMenuInternal.
10955
10956 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10957
10958         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
10959           #81406.
10960
10961 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10962
10963         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
10964           #81406.
10965
10966 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10967
10968         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
10969           avoid duplicate work. Mostily skeleton code, it's not working at
10970           all yet.
10971
10972 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
10973
10974         * NotifyIcon.cs : stub for MouseClick event
10975         * Application.cs: stub for SetUnhandledExceptionMode
10976
10977 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
10978
10979         * BindingNavigator.cs : Initial (partial) implementation
10980
10981 2007-04-23  Jackson Harper  <jackson@ximian.com>
10982
10983         * TreeView.cs: Do not create the treeview's handle when setting
10984         the scroll position.
10985         - ExpandAll needs to compute the scrollbars so it knows which
10986         position to set the bar too.
10987         * TreeNode.cs: 
10988         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
10989
10990 2007-04-23  Jackson Harper  <jackson@ximian.com>
10991
10992         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
10993         key. Fixes #81408.
10994
10995 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
10996
10997         * ToolStripItem.cs: Make GetImageSize internal.
10998         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
10999         need to draw an item.  Fixes a reported issue where images on menus
11000         that were not 16x16 were drawing incorrectly.
11001
11002 2007-04-21  Miguel de Icaza  <miguel@novell.com>
11003
11004         * Padding.cs: Use the converter, fixes the resgen2 issue with
11005         XMLNotePad. 
11006
11007 2007-04-21  Jackson Harper  <jackson@ximian.com>
11008
11009         * TreeView.cs: Dont try to unhighlight the selected node if there
11010         isn't a selected node.
11011
11012 2007-04-21  Jackson Harper  <jackson@ximian.com>
11013
11014         * UpDownBase.cs:
11015         * TextBoxBase.cs:
11016         * ListView.cs:
11017         * ListBox.cs:
11018         * TreeView.cs: Use the InternalBorderStyle property to set the
11019         initial border style, this forces the client rectangle to be sized
11020         correctly.
11021
11022 2007-04-20  Jackson Harper  <jackson@ximian.com>
11023
11024         * TreeView.cs: Simplify scrolling to the last node after expanding
11025         all.
11026         - Fix some off by ones with setting the bottom.
11027
11028 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
11029
11030         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
11031         that.  We were incorrectly doing it the other way around.  Also,
11032         update ClientSize if we change the BorderStyle before the control
11033         is created.
11034
11035 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
11036
11037         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
11038         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
11039         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
11040         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
11041         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
11042         Caption to CaptionHeight.
11043         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
11044         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
11045         and FixedFrameBorderSize to return value from current XplatUI driver.
11046         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
11047         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
11048         and FixedFrameBorderSize using win32 API. Renamed Caption to
11049         CaptionHeight.
11050         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
11051         * SystemInformation.cs: Fixed typo in BorderSize.
11052
11053 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
11054
11055         * XplatUI.cs: Added MenuAccessKeysUnderlined.
11056         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
11057         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
11058         returning false.
11059         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
11060         value from XplatUI driver.
11061         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
11062         SystemParametersInfo.
11063         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
11064         override.
11065         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
11066         returning false.
11067
11068 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11069
11070         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
11071
11072 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11073
11074         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
11075
11076 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
11077
11078         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
11079         MenuStrips that contain ToolStripSeparators.
11080
11081 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11082
11083         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
11084           DefineStdCursorBitmap.
11085         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
11086           has been created off a standard cursor. This is used to get a
11087           bitmap of the standard cursor when Draw or DrawStretched is called
11088           in order to draw the cursor.
11089         * X11Structs.cs: Added XcursorImage and XcursorImages.
11090         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
11091           DefineStdCursorBitmap.
11092         * Cursors.cs: Update all relevant creations of Cursor to use the new
11093           internal constructor.
11094
11095 2007-04-19  Jackson Harper  <jackson@ximian.com>
11096
11097         * TextBox.cs: Move the has_been_focused into the base control, so
11098         some of the text adding methods can manipulate it (probably time
11099         for a better name for this flag too).
11100         - Call a new version of selectall that doesn't scroll
11101         * TextBoxBase.cs: When we append text, if the document is empty,
11102         don't scroll.  If the document has text already, we scroll to the
11103         end of the appended text.
11104         - When the text is changed, we reset the has_been_focused, so the
11105         next time the control gets focused, all the text is selected.
11106
11107 2007-04-19  Jackson Harper  <jackson@ximian.com>
11108
11109         * TextControl.cs: Move the margins to the document, add a method
11110         so the margin sizes can be updated.
11111         * TextBoxBase.cs: When the border style is changed, update the
11112         border sizes.
11113
11114 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
11115
11116         * Control.cs: Respect DefaultPadding.
11117         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
11118         padding into account.
11119         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
11120
11121 2007-04-19  Jackson Harper  <jackson@ximian.com>
11122
11123         * TextControl.cs: Oops, we need to use the ClientRect not the
11124         bounds here.
11125
11126 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11127
11128         * ListView.cs: In ItemControl.ItemsMouseDown, take into
11129         account the double clicks when CheckBoxes are used and
11130         the pointer is inside the checkbox. Fixes part of #81191.
11131
11132 2007-04-18  Jackson Harper  <jackson@ximian.com>
11133
11134         * TextControl.cs: Pressing the end key shouldn't move the caret
11135         past the line ending.
11136         * TextBoxBase.cs: We can still delete if we are in the line
11137         ending and the combine will just kill the existing line ending.
11138
11139 2007-04-18  Jackson Harper  <jackson@ximian.com>
11140
11141         * TextControl.cs: We can't move lines, then invalidate their
11142         bounds, we need to get the old bounds and combine that with the
11143         new bounds.
11144         * TextBoxBase.cs: Before combining two lines for a delete, we need
11145         to invalidate the area of the old line, since that will be moved
11146         in the combine operation.
11147
11148 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
11149
11150         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
11151         with transparent background. Fixes #80482.
11152
11153 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
11154
11155         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
11156         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
11157         [Fixes bug #81391]
11158
11159 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11160
11161         * CreateParams.cs: Add a couple of helper methods and do a less string
11162           concatenation in ToString.
11163         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
11164           overload that takes a Control parameter, since this method may be
11165           called before a control is assigned to the hwnd (from
11166           CreateWindow), and update CreateWindow to use the new overload. In
11167           GetMenuOrigin subtract the title bar from the y position if the
11168           form has a window manager (since we're painting it and not X).
11169         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
11170           CreateParams to calculate the origin (since border sizes may vary).
11171           In ScreenToMenu only subtract the title height if we actually have
11172           a title.
11173         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
11174           mdi children never have menus of themselves.
11175         * InternalWindowManager.cs: Implement menu handling like form does.
11176           Added GetMenuOrigin to calculate the menu origin, can't use the
11177           CreateParams from the form like normally since it's lying.
11178         * Hwnd.cs: Implement GetBorderSize better (in the sense more
11179           windows-like) and add Inflate and comparison operators to the
11180           Borders type. When calculating MenuOrigin and it's a form with a
11181           window manager, use the window manager to calculate it.
11182
11183 2007-04-17  Chris Toshok  <toshok@ximian.com>
11184
11185         * Control.cs (CreateControl): turns out in 2.0 we don't need this
11186         OnBindingContextChanged thing here.  It's only generated from
11187         ContainerControl.OnCreateControl.  Fixes a newly written unit test
11188         - BindingTest.BindingContextChangedTest4.
11189         
11190 2007-04-17  Jackson Harper  <jackson@ximian.com>
11191
11192         * ScrollBar.cs: When setting values, make sure the current
11193         position stays within the new values range.
11194
11195 2007-04-17  Chris Toshok  <toshok@ximian.com>
11196
11197         * Control.cs (CreateControl): talk about a bizarre corner case.
11198         Don't emit OnBindingContextChanged here if we're a parentless
11199         control (i.e. if we're a form.).  Fixes
11200         BindingTest.BindingContextChangedTest2.
11201
11202 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
11203
11204         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
11205         from win32. Fixes #81255.
11206
11207 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
11208
11209         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
11210         already present in CalculateButtonTextAndImageLayout.
11211
11212 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11213
11214         * XplatUIX11.cs: When setting min/max size for a window we need to
11215           translate the coordinates to x coordinates. Create an overload of
11216           SetWindowMinMax that takes a CreateParams handling this, and change
11217           SetWMStyles to call this function (can't use Control.FromHandle in
11218           the SetWindowMinMax to get the control/CreateParams from the handle
11219           because the handle might not have been assigned to the control
11220           yet). Fixes #81371.
11221
11222 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11223
11224         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
11225         if StateImageList is non-null and it has less than two items (match MS
11226         behaviour). Also, in HandleNavKeys handle the Space key, calling
11227         the new ToggleItemsCheckState method, which tries to change the
11228         checked state of the selected items. Fixes part of #81191.
11229
11230 2007-04-16  Jackson Harper  <jackson@ximian.com>
11231
11232         * RichTextBox.cs: namespace cleanup.
11233
11234 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
11235
11236         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
11237
11238 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
11239
11240         [Fixes #79447]
11241         * Control.cs: Call invalidate in set_Region.
11242
11243         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
11244         it dont works here.
11245
11246 2007-04-16  Jackson Harper  <jackson@ximian.com>
11247
11248         * TextBoxBase.cs: When enter is pressed, we need to update all
11249         lines below the current.
11250
11251 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
11252
11253         * MdiClient.cs: Implement implicit menu merging for MDI
11254         children.  When a child form is active, if it has a menustrip
11255         and the parent form has a MainMenuStrip, automatically merge
11256         the menus.
11257
11258 2007-04-15  Andreia Gaita  <avidigal@novell.com>
11259
11260         * TabControl.cs: Refactored sizing methods to not repeat
11261         code all over the place. Tab bounds are now calculated
11262         as if alignment is top and single line, and only when 
11263         setting the bounds are the positions adjusted according
11264         to alignment. Replaced hardcoded positions, spacings and
11265         paddings by getting the values the ThemeEngine. 
11266         Fixes #79619.
11267         
11268         * Theme.cs: Change TabControl properties and methods so
11269         that all start with TabControl*. Added more properties
11270         to help remove hardcoded values on tabcontrol.
11271         Add CPDrawBorder3D declaration so the Theming classes
11272         can access it.
11273         
11274         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
11275
11276         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
11277         on the Theming namespace, and call the appropriate methods here.
11278         Change CPDrawBorder3D to public.
11279
11280 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11281
11282         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
11283         the control after firing the OnMouseUp event, instead of sending
11284         the message before the mentioned event. This is so we can match the
11285         MS behaviour. Fixes part of #80385.
11286
11287 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
11288
11289         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
11290         RightToLeft property.
11291
11292 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
11293
11294         * ToolStrip.cs: Add properties and internal methods to support merging.
11295         * ToolStripItem.cs: Add MergeAction and MergeIndex.
11296         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
11297         not trigger reparenting or layouts.
11298         * ToolStripManager.cs: Add Merge and RevertMerge methods.
11299         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
11300         is hosting the overflow menu.
11301
11302 2007-04-13  Jackson Harper  <jackson@ximian.com>
11303
11304         * TextControl.cs: Set the line ending correctly for the first
11305         inserted line.
11306
11307 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
11308
11309         * Theme.cs: Update GetMethod to get the new definition for 
11310         KnownColors.Update (and fix theme color updates).
11311
11312 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
11313
11314         * MessageBox.cs: Fix some test and button position.
11315
11316 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11317
11318         * Form.cs: Consider the implicit controls in
11319         GetRealChildAtPoint. We need it since this method
11320         is called on Form when handling the some messages in
11321         WndProc, and need to consider those implicit ones too.
11322         Fixes #80385.
11323
11324 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
11325
11326         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
11327         if there are no ShortcutKeys set.
11328         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
11329         set, use it when painting.
11330
11331 2007-04-12  Jackson Harper  <jackson@ximian.com>
11332
11333         * TextControl.cs: Fix some off-by-one issues in line duplication
11334         and insertion in the undo manager. Also, overwrite the first tag
11335         of a line on insert, if it is just a zero lengthed tag. This
11336         prevents us from getting an extra stranded tag at the beginning of
11337         the first line.
11338
11339 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
11340
11341         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
11342         to calculated proper size including when handle was not created yet.
11343
11344 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11345
11346         * MdiWindowManager.cs: When moving a form, allow the form to be moved
11347           when the mouse is outside of it's parent's client rectangle. Fixes
11348           #79982 (take 3, part 2).
11349
11350 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11351
11352         * X11Structs.cs: Add a few ToString() overrides.
11353         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
11354           the window location in a window-manager independent way. Reworked
11355           FrameExtents, it now actually works. Reworked AddConfigureNotify
11356           and ReparentNotify handling to use GetTopLevelWindowLocation
11357           instead of the earlier, more hacky solution. Reworked SetWMStyles,
11358           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
11359           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
11360           for all other windows (fixes #81281 part 1), a toolwindow is hidden
11361           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
11362           and generally refactored to do as few calculations as possible
11363           inside the lock.
11364
11365 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
11366
11367         * Theme.cs: Change "reflective-contract" between MWF and SD to 
11368         minimize # of calls, avoid Color serialization and avoid updating 
11369         every "known colors" each time a single one is updated.
11370
11371 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
11372
11373         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
11374         when not readonly and the text is explicitly set. Code style updates.
11375         * DataGridTableStyle.cs: Removed extra line.
11376         * DataGrid.cs: Code style updates. Removed extra whitespace.
11377         * DataGridColumnStyle.cs: Code style updates. Removed extra 
11378         whitespace.
11379
11380 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11381
11382         * XplatUIX11.cs: Added comment that "fixes" #80021.
11383
11384 2007-04-09  Jackson Harper  <jackson@ximian.com>
11385
11386         * TextControl.cs: We don't need this -1 on the line count anymore.
11387
11388 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
11389
11390         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
11391         entered value to underlying type, and convert it back to a string to
11392         apply formatting. Modified GetFormattedValue to use TypeConverter
11393         if available.
11394
11395 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
11396
11397         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
11398         Use SubItems property when we want to ensure there's at least one
11399         subitem. Modified SubItems property to ensure there's always at least
11400         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
11401         the NRE's reported by MS.
11402
11403 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
11404
11405         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
11406         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
11407         Spaces to tabs. Removed extra tabs.
11408
11409 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
11410
11411         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
11412         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
11413
11414 2007-04-06  Jackson Harper  <jackson@ximian.com>
11415
11416         * TextBoxBase.cs: When a delete removes a line, recalculate all
11417         lines below that line (they need to get offsets setup correctly)
11418         and invalidate.
11419
11420 2007-04-05  Jackson Harper  <jackson@ximian.com>
11421
11422         * TextControl.cs: We need to invalidate across the width of the
11423         document when we are invalidating multiple lines.
11424         * TextBoxBase.cs: Don't delete into the line ending.
11425
11426 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11427
11428         * ListView.cs: Restore the check for the MouseHover event
11429         in ListView. It looks like the ListView fires more than one MouseHover
11430         event when HoverSelection is true  _only_ in weird-corner scenarios, but
11431         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
11432         event.
11433
11434 2007-04-05  Mike Kestner  <mkestner@novell.com>
11435
11436         * ListView.cs : raise MouseDown before updating selection.
11437         [Fixes #80373 tab 1&3]
11438
11439 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
11440
11441         * ToolStripRenderer.cs: Add static method to mirror image.
11442         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
11443         and RightToLeftAutoMirrorImage.
11444         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
11445
11446 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
11447
11448         * ToolStripSplitStackLayout.cs: Support Alignment property.
11449         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
11450
11451 2007-04-05  Jackson Harper  <jackson@ximian.com>
11452
11453         * TextControl.cs: Move around the line endings when crossing line
11454         boundaries.
11455         - When combining lines, strip the ending text off the first line.
11456
11457 2007-04-05  Jackson Harper  <jackson@ximian.com>
11458
11459         * TextControl.cs:
11460         * TextBoxBase.cs: Try to never move the cursor into the line
11461         ending.
11462         
11463 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
11464
11465         * ToolStripItem.cs: Make sure we aren't firing mouse events when
11466         the item is disabled.  Also add a few missing methods.
11467
11468 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11469
11470         * ListView.cs: We don't need the MouseEnter/MouseLeave check
11471         to fire just one MouseHover event when HoverSelection is true, since
11472         .Net does fire more than one MouseHover event in that scenario. Also,
11473         fix the selection in HoverSelection, by invoking UpdateMultiSelect
11474         if MultiSelect is true, instead of only setting ListViewItem.Selected.
11475         Finally, we need to reset the Hover logic in MouseMove, even when we
11476         don't have a selected item.
11477
11478 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
11479
11480         * ToolStrip.cs: Add several missing methods, properties, and events.
11481
11482 2007-04-04  Chris Toshok  <toshok@ximian.com>
11483
11484         * DataGridTextBoxColumn.cs: set the bounds of the text box to
11485         (0,0,0,0) in Commit, as MS does.
11486
11487         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
11488         make sure we set CurrentRow on a row header click *before* calling
11489         Select.  This moves the current cell (and the textbox) to the new
11490         row.  The call to Select then hides the textbox, giving us the
11491         correct behavior.  Fixes #80362.
11492
11493         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
11494         (ListChangedHandler): reorder the position/current changed events,
11495         and call UpdateIsBinding in the ItemAdded case.
11496
11497         * GridColumnStylesCollection.cs: add some columns events, one of
11498         which raises the CollectionChanged event.
11499
11500 2007-04-04  Jackson Harper  <jackson@ximian.com>
11501
11502         * TextControl.cs: When we delete multiple selection lines
11503         invalidate the selection area, don't need to do that for single
11504         lines because the final update view will handle it.
11505
11506 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
11507
11508         * Control.cs: When we CreateControl, we need to also create all of the
11509         control's children.  The child's OnLoad must also fire before the parent's
11510         OnLoad.  Fixes the toolbox size in PDN.
11511
11512 2007-04-04  Jackson Harper  <jackson@ximian.com>
11513
11514         * TextBoxBase.cs: When the user presses enter, insert a line
11515         ending into the text. (Maybe this would be a good spot for
11516         Environment.NewLine).
11517         * TextControl.cs: Remove undo manager hack, line endings get
11518         inserted properly now.
11519         
11520 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
11521
11522         * MenuAPI.cs: 
11523         - Remove unneeded parameters in UpdateCursor.
11524         - Fix UpdateCursor to check if menu is active.
11525         - Call UpdateCursor when menu deactivate my click.
11526         [Fixes remaining issues from #80410]
11527
11528 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
11529
11530         * Control.cs: GetRealChildAtPoint method added, it make an
11531         recursive child control search for the point. 
11532
11533         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
11534         menu.
11535
11536         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
11537
11538 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
11539
11540         * Form.cs: Fix mouse position when send back mouse event after closes
11541         menu.
11542
11543 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
11544
11545         * Form.cs: Simplify the BUTTONDOWN for active tracker.
11546
11547 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
11548
11549         * Control.cs: Fix an issue where if a user resized a control inside
11550         a sizing method like OnResize, we would overwrite their explicit
11551         value.  Also, only call DefaultSize once in the constructor instead
11552         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
11553         nothing actually changed.
11554
11555 2007-04-03  Jackson Harper  <jackson@ximian.com>
11556
11557         * TextControl.cs: Don't attempt to copy text for lines with no
11558         text in them (technically this shouldn't happen, but we aren't
11559         always inserting line endings when we should be).
11560
11561 2007-04-03  Jackson Harper  <jackson@ximian.com>
11562
11563         * TextBoxBase.cs: Calculate the scrollbars before calculating the
11564         document, because this sets some of the document size properties
11565         that are needed.
11566
11567 2007-04-03  Jackson Harper  <jackson@ximian.com>
11568
11569         * TextBoxBase.cs: We need to calculate maximums even if this is
11570         not a multiline control, because the maxs are used for scrolling.
11571         - Display the caret after doing a page up/down, we need to
11572         manually display it because a proper CaretMoved event isn't
11573         triggered (this is because of the way the math is done to
11574         determine how far to scroll).
11575
11576 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
11577
11578         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
11579         (ToolBar was relying on SetBoundsCore to default the values sent 
11580         base off of BoundsSpecified.)
11581
11582 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11583
11584         * DateTimePicker.cs: Change Text so that when a null value or empty
11585           string is assigned to the test we always raise ValueChanged and
11586           TextChanged (earlier implementation would only raise ValueChanged
11587           if the current date value was different from DateTime.Now).
11588
11589 2007-04-03  Andreia Gaita <avidigal@novell.com> 
11590
11591         * ButtonBase: Call update after invalidation, fixes #80194
11592
11593 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11594
11595         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
11596           #79335.
11597
11598 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11599
11600         * XplatUIX11.cs: SetWMStyles: If the control is a form with
11601           FormBorderStyle = None, don't give the window any decorations.
11602           Fixes #81276.
11603
11604 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11605
11606         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
11607         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
11608           to check for is a mix of several styles (such as WS_CAPTION for
11609           instance).
11610         * Control.cs: Don't paint an area bigger than the client area when
11611           painting the background colour. Add an internal GetCreateParams.
11612           Update calls to XplatUI.CalculateWindowRect due to API change.
11613         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
11614           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
11615           the size if it hasn't been handled by any windows. When creating
11616           and moving windows, X wants the location of the entire window, but
11617           the size of the client window, so add
11618           TranslateClientRectangleToXClientRectangle,
11619           TranslateWindowSizeToXWindowSIze and
11620           TranslatedXWindowSizeToWindowSize to cope with this, and call them
11621           before every window creation and move. Update CalculateWIndowRect
11622           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
11623           In AddConfigureNotify don't do anything if the hwnd is a zombie
11624           (fixes the BadWindow we were getting while running the tests),
11625           always calculate the offsets when it's a parentless window, not
11626           only when reparented, and translate the window size, since we're
11627           getting the client size of the whole window, excluding entire
11628           window.
11629         * Theme.cs: Added BorderSizableSize.
11630         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
11631           anymore. Update calls to XplatUI.CalculateWindowRect due to API
11632           chang
11633         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
11634           change. Fake the window styles here instead of in XplatUIWin32 so
11635           that all back-ends get the same window styles (and it's Form that's
11636           deciding when to use wm, not the Win32 backend anyways)
11637         * Hwnd.cs: Completely reworked GetWindowRectangle and
11638           GetClientRectangle - they are now passed a CreateParams and they
11639           only use Style and ExStyle to determine the rectangles (they should
11640           now work just like Win32AdjustWindowRectEx - though quite a few
11641           special cases are probably missing). They should also be 100%
11642           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
11643           == rect), and all numbers (borders, menu sizes) are taken from the
11644           current theme. Added a GetBorders helper function that will return
11645           the borders for any given CreateParams (including captions and
11646           menus), and GetBorderSize that returns the given border size only.
11647         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
11648           Hwnd.GetClientRectangle.
11649
11650 2007-04-02  Chris Toshok  <toshok@ximian.com>
11651
11652         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
11653         logic between the values we present to the user and the values
11654         which are stored in the column's property.  Also, don't call
11655         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
11656
11657 2007-04-02  Jackson Harper  <jackson@ximian.com>
11658
11659         * TextBoxBase.cs: Scroll faster!
11660
11661 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
11662
11663         * StatusStrip.cs: Layout fixes for PDN.
11664         * ToolStrip.cs: Set item's available to true, and placement to main when
11665         added.
11666         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
11667         changing in setter before doing any work, add InternalVisible.
11668         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
11669         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
11670         infinite loop.
11671
11672 2007-04-02  Jackson Harper  <jackson@ximian.com>
11673
11674         * TextBox.cs: LBUTTON does not make the textbox select all of it's
11675         text on focus.
11676
11677 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11678
11679         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
11680           Makes ToolStripComboBoxes show up again.
11681
11682 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11683
11684         * ListView.cs: Add a hover_pending field in ListView
11685         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
11686         cycle (we are resetting the MouseHover logic in XplatUI
11687         to handle HoverSelection). Fixes #80429.
11688
11689 2007-04-02  Jackson Harper  <jackson@ximian.com>
11690
11691         * TextControl.cs: Make sure the attributes get set on the last
11692         tag.
11693         - Still have to do the end tag if we have stepped all the ways to
11694         the end.
11695
11696 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
11697
11698         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
11699         on an internal libgdiplus call when the information is already 
11700         available via the public API.
11701
11702 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11703
11704         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
11705           control is removed from a control collecftion.
11706         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
11707           Fixes FormPropertyTest (failed on rare occasions).
11708         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
11709           of Win32SetParent (when changing from no parent to a parent it
11710           might add the new parent's location in screen coordinates to this
11711           window's location).
11712         * Form.cs: Rework ChangingParent once again, now the handle is
11713           recreated whenever a FormWindowManager is added or removed (that is
11714           whenever a normal form is parented or abandoned). Also change
11715           CreateParams so that all non-toplevel windows always get the
11716           specified sice (StartupPosition is never considered for
11717           non-TopLevel forms).
11718         * ContainerControl.cs: Add ChildControlRemoved, the container control
11719           needs to be notified when a control is removed from it's
11720           collection, in the case the removed control is the active control.
11721
11722 2007-04-02  Jackson Harper  <jackson@ximian.com>
11723
11724         * RichTextBox.cs: Use the new methods for setting the font and
11725         color, these methods set the specified attribute without
11726         overriding the other attributes.
11727
11728 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
11729
11730         * ToolStripPanel.cs: Fixes for better layouts in PDN.
11731
11732 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
11733
11734         * TextBox.cs: Added internal ChangeBackColor method to special-case
11735         Color.Empty. Added check for invalid ScrollBars value.
11736         * TextBoxBase.cs: Added internal ChangeBackColor method.
11737         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
11738         internal ChangeBackColor method to special-case Color.Empty. Added
11739         check for invalid ScrollBars value.
11740
11741 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
11742
11743         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
11744
11745 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
11746
11747         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
11748         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
11749         [Based on submitted patch from Olivier Duff.]
11750
11751 2007-03-30  Jackson Harper  <jackson@ximian.com>
11752
11753         * TextBox.cs: Only select all on initial focus if the user has not
11754         specified a selection area.
11755
11756 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
11757
11758         * UserControl.cs: Override CreateParams.
11759
11760 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11761
11762         [ Fixes #80995 ]
11763
11764         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
11765         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
11766           check for is a mix of several styles (such as WS_CAPTION for instance).
11767         * Control.cs: Don't paint an area bigger than the client area when painting
11768           the background colour. Add an internal GetCreateParams. Update calls to
11769           XplatUI.CalculateWindowRect due to API change.
11770         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
11771           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
11772           hasn't been handled by any windows. When creating and moving windows, X
11773           wants the location of the entire window, but the size of the client
11774           window, so add TranslateClientRectangleToXClientRectangle,
11775           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
11776           to cope with this, and call them before every window creation and move.
11777           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
11778           removing DeriveStyles). In AddConfigureNotify don't do anything if the
11779           hwnd is a zombie (fixes the BadWindow we were getting while running the
11780           tests), always calculate the offsets when it's a parentless window, not
11781           only when reparented, and translate the window size, since we're getting
11782           the client size of the whole window, excluding entire window.
11783         * Theme.cs: Added BorderSizableSize.
11784         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
11785           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
11786         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
11787           Fake the window styles here instead of in XplatUIWin32 so that all
11788           back-ends get the same window styles (and it's Form that's deciding when
11789           to use wm, not the Win32 backend anyways)
11790         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
11791           they are now passed a CreateParams and they only use Style and ExStyle
11792           to determine the rectangles (they should now work just like
11793           Win32AdjustWindowRectEx - though quite a few special cases are probably
11794           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
11795           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
11796           sizes) are taken from the current theme. Added a GetBorders helper
11797           function that will return the borders for any given CreateParams
11798           (including captions and menus), and GetBorderSize that returns the given
11799           border size only.
11800         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
11801           Hwnd.GetClientRectangle.
11802
11803 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11804
11805         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
11806           layout of the mdi children is handled by CreateParams. Fixes
11807           #79964,
11808
11809 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
11810
11811         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
11812         processed.
11813
11814         * Form.cs: When active tracker mouse down is not processed, send event 
11815         back to control inside mouse position. [Fixes #81227]
11816
11817 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
11818
11819         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
11820         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
11821         stealing focus from the active form on Windows.  (Control will be made
11822         visible in ShowWindow.)
11823
11824 2007-03-29  Mike Kestner  <mkestner@novell.com>
11825
11826         * ImageList.cs : add internal Changed event.
11827         * ListView.cs : hook up to StateImageList.Changed to perform
11828         invalidations when the the state icon list changes. [Fixes #81191]
11829
11830 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
11831
11832         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
11833         to prevent tooltips from stealing focus from the active form on Windows.
11834
11835 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
11836
11837         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
11838
11839         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
11840
11841 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
11842
11843         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
11844         balloons.
11845
11846 2007-03-29  Jackson Harper  <jackson@ximian.com>
11847
11848         * TextControl.cs: When deleting text from non multiline textboxes,
11849         we need to update the entire document, because line offsets will
11850         be shifting.
11851
11852 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
11853
11854         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
11855         added to theme, now we can create themes that uses diferent notify engines
11856         like notification-daemon from galago project or growl for Mac OS.
11857
11858 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
11859
11860         * NotifyIcon.cs: Prevent Balloon to show in task bar.
11861
11862 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
11863
11864         * XplatUIX11.cs: Prevent system to open more than one balloon.
11865
11866         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
11867         some compiler warning messages.
11868
11869 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
11870
11871         [Fixes #79149]
11872
11873         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
11874
11875         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
11876         implemented, this methods is used by NotifyIcon.BalloonWindow class.
11877
11878         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
11879         systems.
11880
11881 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11882
11883         * ListViewItem.cs: Forgot to make Invalidate internal.
11884
11885 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11886
11887         * ListView.cs: Add a InvalidateSelection method to
11888         invalidate methods which are currently selected, and call
11889         it when setting FullRowSelect and HideSelection, instead of
11890         calling Redraw.
11891
11892 2007-03-28  Chris Toshok  <toshok@ximian.com>
11893
11894         * XplatUIX11.cs (UnmapWindow): reindent this block.
11895
11896         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
11897         the selection_start if we're moving the selection (that is, not
11898         extending it). Fixes bug #80461.
11899
11900 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
11901
11902         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
11903         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
11904         create private ControlCollection.
11905
11906 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
11907
11908         * Control.cs: We need to call OnVisibleChanged for our implicit
11909         children as well as our normal children.  Fixes scrollbars in
11910         comboboxes not showing up.
11911
11912 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
11913
11914         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
11915         the check for IsHandleCreated first.  The check in CreateHandle is not
11916         good enough because CreateHandle can be overriden, and the override 
11917         should not be called if the handle is already created.
11918
11919 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
11920
11921         * ToolStrip.cs: Remove MonoTODO for tooltips.
11922         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
11923         * ToolStripContainer.cs: Add custom ControlCollection class.
11924         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
11925         * ToolStripDropDown.cs: Add some missing properties/methods.
11926         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
11927         * ToolStripItem.cs: Remove MonoTODO for tooltips.
11928         * ToolStripManager.cs: Add IsShortcutDefined.
11929         * ToolStripOverflow.cs: Override LayoutEngine.
11930         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
11931         * ToolStripSeparator.cs: Add ImageKey.
11932
11933 2007-03-28  Jackson Harper  <jackson@ximian.com>
11934
11935         * TextControl.cs: If a char delete removes a line ending, we need
11936         to update the ending style.
11937         - Make sure the line ending calcs get called.
11938
11939 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11940
11941         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
11942           it was making the new code not work. Fixed a typo in the new code
11943           as well. Fixes #79826.
11944
11945 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
11946
11947         * XplatUIWin32.cs:
11948         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
11949         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
11950         - SystrayBalloon method implemented.
11951         [Add support for notifyicon balloon on win32, #79149]
11952
11953 2007-03-27  Mike Kestner  <mkestner@novell.com>
11954
11955         * ThemeWin32Classic.cs : update StateImageList selection to mirror
11956         the ms behavior when only one image is added to the list.
11957         [Fixes #81191]
11958
11959 2007-03-27  Jackson Harper  <jackson@ximian.com>
11960
11961         * TextControl.cs: Improvements to non multiline line ending
11962         drawing/measuing.
11963
11964 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
11965
11966         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
11967
11968 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
11969
11970         * NotifyIcon.cs: 
11971         - Balloon message handling added.
11972         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
11973
11974         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
11975         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
11976         to SystrayBalloon to me like other Systray method, also a
11977         handle parameter added.
11978
11979 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11980
11981         * ListView.cs: Show scrollbars even when items.Count == 0
11982         but the columns Width is bigger than the ListView.Width.
11983         Also, when columns.Count == 0 set layout_wd and layout_ht
11984         to the ClientRectangle values, so we don't show any scrollbar
11985         in that case.
11986
11987 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
11988
11989         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
11990
11991 2007-03-27  Jackson Harper  <jackson@ximian.com>
11992
11993         * RichTextBox.cs: The RTF library decodes the text properly for us
11994         now.
11995
11996 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11997
11998         * ListView.cs: Display HeaderControl even when columns.Count == 0.
11999         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
12000         ListView header (HeaderControl), instead of Control.BackColor.
12001
12002 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
12003
12004         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
12005         Fixes tab control issues where controls would not show up because they
12006         never received their OnVisibleChanged call.
12007
12008 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
12009
12010         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
12011         BalloonTipShown).
12012
12013 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
12014
12015         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
12016         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
12017         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
12018         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
12019         the handle.  Fix WindowState by using the internal variable until we are 
12020         sure that we've been shown.
12021         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
12022         max or min.
12023         [Fixes bug #81198]
12024
12025 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12026
12027         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
12028           (at least borders). Fixes #79386 on Linux (with a small difference
12029           in behaviour: when trying to resize a caption-less window metacity
12030           shows the sysmenu. Resizing is still possible though).
12031         * XplatUIWin32.cs: When setting window styles send request an extra
12032           WM_NCCALCSIZE when it's a form without title (due to no text and no
12033           caption), since Win32 seems to calculate it wrong the first time we
12034           get the message, though the second time things work as they should.
12035         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
12036           newly reparented window might show up unparented. Update
12037           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
12038           there's no title text. Fixes #79386.
12039
12040 2007-03-27  Mike Kestner  <mkestner@novell.com>
12041
12042         * ListBox.cs : don't perform invalidations if the handle hasn't been
12043         created.  [Fixes #80753]
12044
12045 2007-03-27  Mike Kestner  <mkestner@novell.com>
12046
12047         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
12048         [Fixes #80428]
12049
12050 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
12051
12052         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
12053         needed to implement Balloon.
12054
12055 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12056
12057         * ListViewItem.cs: In the constructors that take
12058         an array of strings, don't use ListViewSubItemCollection.AddRange
12059         method to add items, since we need to have a different behaviour (in
12060         the constructors we add an item for each null string, opposed to
12061         the behaviour of AddRange, which adds nothing).
12062
12063 2007-03-26  Andreia Gaita  <avidigal@novell.com>
12064
12065         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
12066
12067 2007-03-26  Jackson Harper  <jackson@ximian.com>
12068
12069         * TextControl.cs: Draw and measure line endings when in non
12070         multiline mode.
12071         - When searching the text, count the end of the last line as a
12072         word boundary.
12073
12074 2007-03-26  Jackson Harper  <jackson@ximian.com>
12075
12076         * RichTextBox.cs: The selection_start and selection_end don't
12077         really track the correct tags for the selection. So we'll manually
12078         compute the correct tag here.
12079
12080 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12081
12082         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
12083           and Continuous styles. Fixes #79469.
12084
12085 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
12086
12087         * ToolStrip.cs: Implement Tooltips.
12088         * ToolStripItem.cs: Create internal method for determining tooltip.
12089
12090 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
12091
12092         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
12093
12094 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
12095
12096         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
12097         it prevents a problem thak keeps icon visible after application 
12098         closes on win32.
12099
12100 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
12101
12102         * NotifyIcon.cs: Balloon properties and methods created.
12103
12104         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
12105         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
12106
12107 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
12108
12109         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
12110
12111 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
12112
12113         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
12114         parameter indicates which aspects were explicit/user-set.
12115         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
12116
12117 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
12118
12119         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
12120         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
12121         SmallChange, and Value (2.0).
12122         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
12123
12124 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12125
12126         * ListView.cs: Always set item_control.Width in LayoutDetails
12127         if View is Details. Setting it later in CalculateScrollBars
12128         in a not-so-corner scenario (the sum of columns width is
12129         not bigger than the ListView width when handle is created, and then
12130         that sum gets bigger by increasing the width of the columns)
12131         causes a very weird recursion path (which shouldn't be happening,
12132         since header_control sets it in CalculateScrollBars too). This bug
12133         appeared after Chris' fixes for handle created issues, so probably
12134         it's related to some handle-creation time.
12135
12136 2007-03-23  Chris Toshok  <toshok@ximian.com>
12137
12138         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
12139         case where there's an add row, just so we don't end up in a case
12140         where it's not displayed (this happens when the row is partially
12141         obscured).  Fixes bug #79574.
12142
12143 2007-03-23  Jackson Harper  <jackson@ximian.com>
12144
12145         * TextControl.cs:
12146         * TextBoxBase.cs:
12147         * RichTextBox.cs: Preserve line endings in the lines text buffer,
12148         also added an enum that represents the line ending type. 
12149
12150 2007-03-23  Andreia Gaita  <avidigal@novell.com>
12151
12152         * NumericUpDown.cs: Fix logic so Text and Value properties are not
12153         messed with in every method call, but only from DownButton, 
12154         UpButton, UpdateEditText() and ValidateText. Fixes #80346
12155
12156 2007-03-23  Chris Toshok  <toshok@ximian.com>
12157
12158         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
12159         format objects if the format spec is "".  Fixes bug #80889.
12160
12161 2007-03-22  Miguel de Icaza  <miguel@novell.com>
12162
12163         * ToolStripPanel.cs (Join): added stubs to build PDN3
12164
12165         * Control.cs (AutoScrollOffset): Add.
12166
12167         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
12168         property, its only implemented for Win32, on X11 it defaults to
12169         some hardcoded value.
12170
12171         * ToolStripItem.cs (AllowDrop): Add property
12172
12173 2007-03-22  Mike Kestner  <mkestner@novell.com>
12174
12175         * ListView.cs : in FullRowSelect Details mode, only enable box
12176         selection if the user clicks over the "item" column outside of the
12177         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
12178
12179 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12180
12181         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
12182           handle is not created yet.
12183         * Form.cs: Select: Don't call CreateHandle if the handle is already
12184           created, avoids a stack overflow on Windows when we are recreating
12185           controls.
12186         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
12187           they are made visible, and override AfterTopMostControl to keep
12188           them on top when other controls are brought to front.
12189           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
12190           or force_*scroll_visible is true (old implementation always shows
12191           scrollbars when needed, no matter what auto_scroll was set to).
12192         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
12193           IsHandleCreated check.
12194
12195 2007-03-22  Andreia Gaita  <avidigal@novell.com>
12196
12197         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
12198         row or col separator.
12199         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
12200
12201 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
12202
12203         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
12204
12205 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
12206
12207         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
12208         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
12209         every time. Fixes #80410.
12210
12211 2007-03-22  Chris Toshok  <toshok@ximian.com>
12212
12213         * BindingSource.cs (AddNew): partially implement.
12214
12215         remove a couple of NotImplementedException's
12216         to get bug #81148 closed.
12217
12218 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
12219
12220         [Fixes #80380]
12221         
12222         * Control.cs:
12223         - UpdateCursor method added to update the screen cursor.
12224         - GetAvailableCursor method added to return cursor for enabled tree,
12225         it searches for cursor on control and it's parent's for enabled control.
12226         - Call UpdateCursor method on setter of Cursor property.
12227         - On setter of Enabled call UpdateCursor when it is false, we need to
12228         change cursor to normal (or to this parent cursor) because cursor 
12229         setting theres no effect to disabled controls.
12230         - Some minor source changes to follow the coding style guidelines.
12231
12232         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
12233         controls.
12234
12235 2007-03-22  Chris Toshok  <toshok@ximian.com>
12236
12237         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
12238         generates.
12239
12240 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12241
12242         * XplatUIX11.cs: Implement default locations for forms.
12243         * Form.cs: Completely rework startup location for forms. Fixes #79964.
12244         * Hwnd.cs: Add previous_child_startup_location (to track the current
12245           startup location for any child forms of the current form) and
12246           previous_main_startup_location (to track the startup location for
12247           the current toplevel form).
12248
12249 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
12250
12251         * Control.cs: Don't trigger a layout if an implicit control is added
12252         that isn't visible.  Also, don't notify the owner when an implicit control
12253         is added.  (Owners shouldn't even know about their implicit controls.)
12254
12255 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
12256
12257         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
12258         to save some re-layouts.
12259
12260 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
12261
12262         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
12263         [Fixes #81203]
12264
12265 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
12266
12267         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
12268         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
12269
12270 2007-03-21  Mike Kestner  <mkestner@novell.com>
12271
12272         * ListView.cs : disable selection update for non-left button clicks
12273         with mods and over selected items.  [Fixes #80524]
12274
12275 2007-03-20  Jackson Harper  <jackson@ximian.com>
12276
12277         * TextControl.cs:
12278         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
12279         \r\r\n, \n.
12280
12281 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12282
12283         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
12284           very probably a more complicated calculation there. Update the
12285           textbox' ForeColor and BackColor when the ComboBox' colors are
12286           changed. Change the border change in LayoutComboBox to only affect
12287           the textbox, not all the calculations there. Seems to fix most of
12288           #79436.
12289
12290 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12291
12292         * ComboBox.cs: Handle Home and End keys as well as all combinations of
12293           modifiers + navigation keys as input keys, enables advanced text
12294           selection in the combobox (like Shift+Left Arrow for instance).
12295           ComboTextBox now overrides Focused and returns whatever
12296           ComboBox.Focused returns, since it really should be focused
12297           whenever the ComboBox is. Fixes #80795. Also make the border around
12298           the text box one pixel bigger, as mentioned in #79436.
12299
12300 2007-03-20  Jackson Harper  <jackson@ximian.com>
12301
12302         * TreeView.cs: Don't offset the images, this was causing some
12303         artifacts when expanding/collapsing with images that were the
12304         exact height of the treenode.
12305
12306 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12307
12308         * TrackBar.cs: Query the theme for the correct value when the mouse
12309           moves and the thumb is pressed. 
12310         * Theme.cs: Added TrackBarValueFromMousePosition
12311         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
12312           implementation was updating the trackbar value when drawing, now
12313           the drawing methods only draw. Fixes #80900. Refactored the
12314           calculations out to TrackBarValueFromMousePosition and
12315           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
12316           according to the mouse position whenever it wants to. Changed the
12317           light coloured pen when drawing the thumb from ControlLight to
12318           ControlLightLight, because the ControlLight is the same colour as
12319           the background so the 3D effect is lost. 
12320
12321 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
12322
12323         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
12324         defined. Fixes #80784.
12325
12326 2007-03-20  Marek Habersack  <mhabersack@novell.com>
12327
12328         * ContextMenuStrip.cs: align with the change introduced in
12329         revision 74664.
12330
12331 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
12332
12333         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
12334         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
12335         in SetTopmost.
12336
12337 2007-03-19  Chris Toshok  <toshok@ximian.com>
12338
12339         * Control.cs (WmPaint): don't make use of the Handle property
12340         after an event is emitted, as the user could have closed the
12341         form/destroyed the control.  Store the Handle in a local variable
12342         and make use of that.  Fixes bug #80768.
12343
12344 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
12345
12346         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
12347         behavior in X11 environments.
12348
12349 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
12350
12351         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
12352         because on setter of topmost we dont call SetTopmost when handle is not
12353         created.
12354
12355 2007-03-20  Jackson Harper  <jackson@ximian.com>
12356
12357         * TextControl.cs: Need to use SelectionLength () not
12358         selection_length, since that var is reset to -1.
12359         - Draw the caret when we don't have focus.
12360         * TextBox.cs: The selectall actually doesn't occur until the first
12361         focus.
12362         * TextBoxBase.cs: Need to update the caret position after a
12363         selectall.
12364         
12365 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12366
12367         * ListView.cs: Enable scrolling when using Tile view.
12368
12369 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
12370
12371         [Fixes #80902]
12372
12373         * XplatUIDriver.cs: Abstract SetOwner method created.
12374
12375         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
12376         must be implemented and was masked as todo.
12377
12378         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
12379         GWL_HWNDPARENT.
12380
12381         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
12382         cheking for null owner to remove transient. The SetTopmost will be change
12383         on a decond step.
12384
12385         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
12386         SetTopmost. Now owned forms will work properly in win32 and X11.
12387
12388 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12389
12390         * MdiWindowManager.cs: Update function name.
12391         * Form.cs: After closing a form MdiParent is always null.
12392         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
12393           better what it should do: necessary book-keeping when the form is
12394           closed, it should not close the form itself.
12395
12396 2007-03-19  Andreia Gaita  <avidigal@novell.com>
12397
12398         * ListViewItem.cs: Fix back and fore color. The subitems only
12399         use their own colors if they are set, otherwise use the listview's
12400         colors. Don't set default colors on constructor for subitem.
12401         Fixes #79315.
12402
12403 2007-03-19  Mike Kestner  <mkestner@novell.com>
12404
12405         * ListView.cs : make box selection for Details views with 
12406         FullRowSelect conform to MS behavior when clicking in the "item" 
12407         column and clicking outside the defined columns.
12408         [Fixes case 5-6 of #80374]
12409
12410 2007-03-19  Chris Toshok  <toshok@ximian.com>
12411
12412         * ScrollableControl.cs: create the controls from within the ctor,
12413         but don't actually add them until our handle is created.  this
12414         fixes a NRE possibility jpobst found (if you override OnLayout in
12415         a subclass, it's called before your ctor).  Also, add a
12416         IsHandleCreated guard to UpdateSizeGripVisibility as well.
12417
12418 2007-03-19  Jackson Harper  <jackson@ximian.com>
12419
12420         * TextBox.cs: Reduce the amount of invalidation we do.
12421         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
12422         some of them are true by default on MS.
12423         - Add some functions to reduce the amount of invalidates we do.
12424         * TextControl.cs: Less invalidation.
12425
12426 2007-03-19  Chris Toshok  <toshok@ximian.com>
12427
12428         [ Fixes #81773, and *seems* to fix #81553 as well ]
12429
12430         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
12431         AccumulateDestroyedHandles.  We need to do it *after* we send
12432         WM_DESTROY, as the user's code can access Control.Handle in
12433         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
12434         move the WM_DESTROY/zombie handling to before the call to
12435         XDestroyWindow.  For some reason without this ordering
12436         FormTest.RecreateHandle hangs.  This ordering is semantically
12437         equivalent, however, as XDestroyWindow is async anyway.
12438
12439 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
12440
12441         * RichTextBox.cs: Reset backcolor_set after setting default.
12442
12443 2007-03-19  Chris Toshok  <toshok@ximian.com>
12444
12445         * ScrollableControl.cs: the scroll position should not effect the
12446         canvas size.  commit patch from georgegiolfan@yahoo.com, which
12447         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
12448         
12449 2007-03-19  Chris Toshok  <toshok@ximian.com>
12450
12451         * ScrollableControl.cs: clean this up a bit.  create the
12452         scrollbars in the ctor and just show/hide them as needed.  Also,
12453         make hscroll_visible/vscroll_visible internal to Recalculate, and
12454         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
12455         everywhere else.  This seems to fix the scrollbars appearing
12456         beneath the content for me (i have *no* idea why that is,
12457         however.)
12458
12459 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
12460
12461         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
12462         some redundacy for stuff in Anchor and Dock that base will take care of.
12463         [Fixes #80762]
12464
12465 2007-03-19  Mike Kestner  <mkestner@novell.com>
12466
12467         * ListView.cs : make box selection for Details views without 
12468         FullRowSelect dependent on the text bounds, not item bounds.
12469         * ListViewItem.cs : add an internal property to obtain the TextBounds
12470         in Details view.  [Fixes case 1-4 of #80374]
12471
12472 2007-03-19  Andreia Gaita  <avidigal@novell.com>
12473
12474         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
12475         we're < 2.0. #78448 && #80316
12476
12477 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
12478
12479         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
12480         have the same style available as the previously selected one.  Also,
12481         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
12482
12483 2007-03-19  Jackson Harper  <jackson@ximian.com>
12484
12485         * TextControl.cs: Add an alignment property that all new lines
12486         will be given.
12487         - Make sure to use the align shift when calculating the line's X
12488         position.
12489         * TextBox.cs: Set the alignment on the document as well as on all
12490         the document lines.
12491
12492 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12493
12494         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
12495           throw if setting the parent of an mdichild that already has an
12496           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
12497           AssemblyProductAttribute in the assembly, use the type's namespace (as
12498           MS seems to do). CreateControl: don't create the handle if the control
12499           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
12500           create handle if the control is not a form. Change FocusInternal to
12501           virtual so that it can be overriden by Form.
12502         * TextBox.cs: Update call to FocusInternal.
12503         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
12504           form is not a toplevel form when it's a mdi child, so update is_toplevel
12505           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
12506           hasn't been created. Show (IWin32Window): Don't allow this overload for
12507           toplevel windows. CenterToParent/CenterToScreen/Select: create the
12508           handle as MS does. SetVisibleCore: if called on a MdiChild and the
12509           parent isn't visible yet, save the visibility and restore it when the
12510           parent is made visible.
12511         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
12512           methods, since the visibility of the scrollbars can be changed from
12513           several places, not only from AutoScroll.
12514           [Fixes #81179]
12515
12516 2007-03-19  Jackson Harper  <jackson@ximian.com>
12517
12518         * RichTextBox.cs: Enable shortcuts by default.
12519         * TextBoxBase.cs: Add conditional shortcuts.  
12520
12521 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
12522
12523         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
12524
12525 2007-03-19  Chris Toshok  <toshok@ximian.com>
12526
12527         [ Fixes bug #80604]
12528         
12529         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
12530         swallow the message we're waiting on, instead of delivering it, as
12531         this is only used for the WM_SHOWWINDOW raised from
12532         MapWindow/UnmapWindow, and the message needs to be generated
12533         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
12534         before doing the Map/Unmap.  Also make sure that the Hwnd is still
12535         alive after the message has been handled.
12536
12537         *before* the window is shown.
12538
12539         * Control.cs (CreateControl): guard a few more things inside the
12540         if (!is_created) block, as we might end up being called again -
12541         yay .net.
12542         (WmShowWindow): call CreateControl if we're showing the control.
12543
12544 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12545
12546         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
12547           controls without a handle if they have any parent with a handle. In
12548           Dispose add a check whether the handle is created or not before
12549           calling BeginInvoke, this removes the need of the extra disposing
12550           parameter (which was bogus anyway since it didn't prevent the
12551           invoke from happening, it only skipped the check for an existing
12552           handle, meaning that the invoke would call on an inexistent
12553           handle).
12554
12555 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
12556
12557         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
12558         appears in taskbar.
12559
12560 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
12561
12562         * MessageBox.cs:
12563         - Fixed a problem that dont show help button for messages with 3 buttons.
12564         - Refactory button size and position calculations, now dont use fixed 
12565         values, also fixed button sizes (#80043) and form's border space.
12566         - AddButton method created, now all other AddButton methods call this one.
12567         - Some other source code cosmetic changes.
12568
12569 2007-03-18  Jackson Harper  <jackson@ximian.com>
12570
12571         * RichTextBox.cs: Don't do this all fonts must match check if
12572         there is only one char selected.
12573
12574 2007-03-18  Jackson Harper  <jackson@ximian.com>
12575
12576         * TreeView.cs: ScrollWindow works properly now, so we don't need
12577         to screw around with the scroll area.  This fixes some artifacts
12578         when expanding and collapsing.
12579
12580 2007-03-18  Jackson Harper  <jackson@ximian.com>
12581
12582         * TextBoxBase.cs: Allow updating the selection position when the
12583         cursor is outside the textarea, but we have a capture.
12584         * TextControl.cs: A special case for when the cursor is outside
12585         the bounds of the TB.
12586         
12587 2007-03-18  Jackson Harper  <jackson@ximian.com>
12588
12589         * TextBoxBase.cs: Remove image pasting code for now.  There is no
12590         way to get an image on the clipboard right now anyways.
12591         * TextControl.cs:
12592         * RichTextBox.cs: Use the new RTF Picture class for pictures.
12593
12594 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
12595
12596         * MessageBox.cs:
12597         - Set window properties in constructor intead of on CreateParams.
12598         - Remove topmost from Window ExStyle.
12599         - Set ShowInTaskbar to false.
12600         - Set form border to FixedDialog.
12601         - Some cosmetic changes and remove unneeded comments.
12602         - It fixes itens 2,3 and 4 of bug #80043.
12603
12604 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
12605
12606         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
12607         none was explicitly set. Fixes part of bug #79949.
12608
12609 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
12610
12611         * ToolStripComboBox.cs: Add AutoComplete*.
12612
12613 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
12614
12615         * ToolStripComboBox.cs: Add FlatStyle.
12616
12617 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
12618
12619         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
12620         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
12621
12622 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12623
12624         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
12625           CheckBox.cs, RadioButton.cs, BindingSource.cs,
12626           DataGridColumnStyle.cs: Remove warnings.
12627
12628 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12629
12630         * Menu.cs: MergeMenu: Check menu argument for null before looping over
12631           it.
12632         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
12633           visibility of mdi child forms. FormSizeChangedHandler: update the
12634           maximized size if size has changed while maximized.
12635         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
12636           creating the handle.
12637         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
12638           avoid creating the handle if not created.
12639         * XplatUI.cs: Update debug output.
12640         * XplatUIStructs.cs: Added ToString's for a couple of structs.
12641
12642 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
12643
12644         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
12645         ProcessCmdKey().
12646         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
12647         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
12648         Implement keyboard shortcuts.
12649
12650 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
12651
12652         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
12653         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
12654         ColorDialog and all derived classes.
12655
12656 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
12657
12658         [ Fixes bug #79828 ]
12659
12660         * ToolBar.cs:
12661         - Rename ToolBarButtonInfor to ToolBarItem.
12662         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
12663         - Maintain an array of ToolBarItem, used instead of ToolBarButton
12664         collection to be able add same button more than one time on a toolbar.
12665         - Refactory all properties and methods to use ToolBarItem. 
12666
12667         * ToolBarButton.cs: 
12668         - Remove all propeties and methods that is now in ToolBarItem.
12669         - Rectangle propery now gets the rectangle from first ToolBarItem to
12670         mimic win32 behavior.
12671         - Size calculation and layout methods also removed.
12672
12673         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
12674         ToolBarItem instead of ToolBarButton to right drawing buttons when
12675         same button/separator was added more than one time to ToolBar.
12676
12677         * ThemeNice.cs: Same as above. 
12678
12679 2007-03-15  Andreia Gaita  <avidigal@novell.com>
12680
12681         * XplatUIX11.cs: Fire extra MouseMove events right after
12682         MouseDown and MouseUp, emulating win32's <censored> behaviour
12683         for apps that rely on it.
12684
12685 2007-03-15  Jackson Harper  <jackson@ximian.com>
12686
12687         * TextControl.cs:
12688         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
12689         it is drawn on the controls client window and there is no NC
12690         area.
12691         - Set the background color to gray on 2.0 when we are readonly.
12692
12693 2007-03-15  Chris Toshok  <toshok@ximian.com>
12694
12695         [ Fixes bug #81144 ]
12696         
12697         * XplatUIX11.cs: implement VirtualScreen independently of
12698         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
12699         property.
12700
12701 2007-03-15  Chris Toshok  <toshok@ximian.com>
12702
12703         * Hwnd.cs: add an internal field for the cached_window_state.
12704
12705         * XplatUIX11.cs: cache the window state, invalidating the cache
12706         (and thus re-querying the X server) only when we see an update to
12707         the _NET_WM_STATE property.
12708
12709 2007-03-15  Chris Toshok  <toshok@ximian.com>
12710
12711         * BindingSource.cs: get a lot of the unit tests working.
12712
12713 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
12714
12715         * Control.cs: Modify UpdateStyles to store distances when bounds >=
12716         0 instead of just bounds > 0.  [Fixes bug #80912]
12717
12718 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
12719
12720         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
12721         and methods.
12722
12723 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
12724         
12725         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
12726         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
12727         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
12728         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
12729
12730 2007-03-15  Chris Toshok  <toshok@ximian.com>
12731
12732         [ Fixes #81101 ]
12733         
12734         * Control.cs: add Ivan's fix for 81101, with a slight modification
12735         - you can set control.Target to null.
12736
12737 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
12738
12739         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
12740         HideDropDown, use Hide instead to prevent an NRE.
12741         [Fixes bug #81147]
12742
12743 2007-03-14  Jackson Harper  <jackson@ximian.com>
12744
12745         * TextBoxBase.cs: Mess with the creation stuff a little. We need
12746         to calculate the document before the handle is created, in some
12747         cases. (Actually just one case).
12748
12749 2007-03-14  Jackson Harper  <jackson@ximian.com>
12750
12751         * TextBoxBase.cs: Need to display the caret after letting the base
12752         wndproc handle the focus methods, because the caret display
12753         methods check the focus state.
12754         - Try to display the caret after updating it's position with SelectWord.
12755         - Don't need to do an immediate update on this recalc, since there
12756         will be an invalidate anyways.
12757
12758 2007-03-14  Jackson Harper  <jackson@ximian.com>
12759
12760         * TreeView.cs: Some workarounds so that we can match event order a
12761         little better.
12762
12763 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
12764
12765         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
12766         #80803. Avoid NullReferenceException when Control does not have
12767         parent. Fixed different blinkstyle issues. Only subscribe to Tick
12768         event a single time. Only draw error icon when control is created and
12769         visible. Fixes failing unit tests.
12770
12771 2007-03-14  Andreia Gaita  <avidigal@novell.com>
12772
12773         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
12774         Selecting events. Fire Leave and Enter events when changing tabs.
12775
12776 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
12777
12778         * TreeView.cs: Add TreeViewNodeSorter.
12779         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
12780
12781 2007-03-14  Chris Toshok  <toshok@ximian.com>
12782
12783         * Form.cs: go ahead and remove the RecreateHandles that jpobst
12784         removed earlier and I had him add back it.  It turns out metacity
12785         *does* in fact handle the MOTIF_WM_HINTS property changing, it
12786         just doesn't redraw the window titlebar until you resize the
12787         window.  This also means we aren't recreating the entire window
12788         hierarchy on X when you change this property.  And it looks better
12789         on windows, too.
12790
12791 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12792
12793         * ListViewItem.cs:
12794         * ListView.cs: Collecting selection information
12795         is now done in SelectedIndexCollection rather than in
12796         SelectedListViewItemCollection. This is done so we can
12797         have the selection information code in one single place
12798         (virtual mode selection information entirely depends on
12799         SelectedIndexCollection).
12800
12801 2007-03-13  Miguel de Icaza  <miguel@novell.com>
12802
12803         * ErrorProvider.cs: Add stubs for ISupportInitialize
12804
12805 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12806
12807         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
12808         in the right order with the right values, from the Checked property, 
12809         just as MS does (instead of triggering them from ListView).
12810
12811         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
12812
12813 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12814
12815         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
12816         the correct handler in OnItemCheck method (ItemCheckEventHandler 
12817         instead of EventHandler). This used to throw an InvalidCastException.
12818
12819 2007-03-13  Jackson Harper  <jackson@ximian.com>
12820
12821         * TextBoxBase.cs: Calculate the document before the handle is
12822         created, so there isn't an extra invalidate called.
12823
12824 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
12825
12826         * Form.cs: Don't set owner in ShowDialog until we are sure
12827         that we aren't going to throw an exception.  [Fixes bug #80773]
12828
12829 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
12830
12831         * TreeView.cs: Make it compile.
12832
12833 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
12834
12835         * Control.cs: Another place we don't call SizeFromClientSize.
12836         * Form.cs: Another place we don't call SizeFromClientSize.
12837         [Fixes bug #81125]
12838
12839 2007-03-12  Jackson Harper  <jackson@ximian.com>
12840
12841         * TreeView.cs: Basically emulating some strangness here with
12842         exanding nodes and setting node positions when windows aren't
12843         created.
12844         - Also attempting to walk the node tree less than previously, and
12845         just use visible order calculations for determining offsets.
12846         - oops made scrolling backwards.
12847         * TreeNode.cs: We need to start nodes with a zero visible order,
12848         because the order calcs are based on the first nodes order.
12849
12850 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
12851
12852         * Form.cs: Don't exit the program if RecreateHandle is called on
12853         the main form.
12854
12855 2007-03-12  Chris Toshok  <toshok@ximian.com>
12856
12857         * XEventQueue.cs: remove the use of PostQuitState.
12858
12859         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
12860         WM_QUIT message in GetMessage, return false (and if we're in the
12861         nested WaitForHwndMessage, repost the WM_QUIT message).
12862
12863 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
12864
12865         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
12866         or the MaximizeBox properties.  [Part of bug #80640]
12867
12868 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
12869
12870         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
12871         no links.
12872
12873 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
12874
12875         * ToolStripItem.cs: Fix some tests I broke by checking Visible
12876         instead of visible.
12877
12878 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
12879
12880         * FileDialog.cs: Use text of File name combobox to determine what
12881         files the user selected. Added tokenizer to parse the file names.
12882         Fixes bug #81123.
12883
12884 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
12885
12886         * Control.cs: We can't call SizeFromClientSize in the constructor,
12887         but we still need to do the same work, so make an internal version.
12888         [Fixes bug #80621]
12889
12890 2007-03-12  Jackson Harper  <jackson@ximian.com>
12891
12892         * TreeView.cs:
12893         * TreeNode.cs:
12894         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
12895         IsExpanded.
12896
12897 2007-03-12  Jackson Harper  <jackson@ximian.com>
12898
12899         * TextBoxBase.cs: Now that the handles are being created a little
12900         later, we need to make sure that the document is recalculated when
12901         the handle is created.
12902
12903 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
12904
12905         * Theme.cs: GetLinkFont abstract method added.
12906         
12907         * LinkLabel.cs: 
12908         - Remove CalcTrimRectangle, no longer needed.
12909         - Factor also remove, position issues must be fixed in libgdiplus.
12910         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
12911         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
12912         care about font used to draw links.
12913         - Set TabStop to true when control is "Selectable", control is selectable
12914         when have one or more links. Fixes #80501 (test case is also added).
12915         - Set the LinkArea values after links change, LinkArea values must be
12916         based in first link position and size, a test case was created.
12917         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
12918         the attribute must be true LinkArea.Length > 0. The same was applied to
12919         TabStop.
12920         
12921         * ThemeWin32Classic.cs: 
12922         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
12923         in draw method.
12924         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
12925         color change.
12926         - Draw focus rectangle for every parts focused, including parts that 
12927         is on another line, its because regions returns various rectangles
12928         and not only one. Needed to mimic W32 look.
12929         - Uses Graphics.Clip to delimite region painted, it mean that now 
12930         complete text is passed to DrawString, with this we solve layout
12931         issues without create another text renderer.
12932         - Uses Region.Intersect to fix some flickers problems, now only needed
12933         parts will redrawed.
12934         - This changes fixes #79614 and some other unreported issues, on Linux 
12935         some layout problems still remain, the problem is under 
12936         MeasureCharacterRanges but it is an libgdiplus bug.
12937
12938 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
12939
12940         * TextBox.cs: Set for foreground color.
12941         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
12942         this is already done in Control.
12943
12944 2007-03-10  Jackson Harper  <jackson@ximian.com>
12945
12946         * TextBox.cs: Set the background color, but reset the
12947         backcolor_set flag which is just for the user setting the
12948         background color.
12949
12950 2007-03-09  Chris Toshok  <toshok@ximian.com>
12951
12952         * Control.cs: really remove the call to XplatUI.SetVisible from
12953         CreateHandle(), like I said I did when I merged the branch.
12954
12955         * BindingSource.cs: implement some more of this stuff.
12956
12957 2007-03-09  Jackson Harper  <jackson@ximian.com>
12958
12959         * TextBox.cs: Don't explicitly set our background colors.
12960         * TextControl.cs:
12961         * TextBoxBase.cs: Draw readonly text.
12962         - Need to invalidate when backcolor or readonly are changed.
12963         
12964 2007-03-09  Jackson Harper  <jackson@ximian.com>
12965
12966         * TextBoxBase.cs: Don't set the forecolor until the handle is
12967         created.
12968         - Do not raise OnPaint, and removed some old debug code.
12969
12970 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
12971
12972         * ScrollableControl.cs: Fix mouse wheel scrolling.
12973
12974 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
12975
12976         * Control.cs: Wire up MouseDoubleClick event.
12977
12978 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
12979
12980         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
12981         top or bottom.
12982         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
12983         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
12984         item is added.  This logic was moved to ToolStrip.OnItemAdded.
12985         [Fixes bug #81090]
12986
12987 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12988
12989         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
12990
12991 2007-03-08  Jackson Harper  <jackson@ximian.com>
12992
12993         * TreeView.cs: Show the correct image for selected node (this used
12994         to work, not sure how the code got deleted). Also implemented 2.0 feature
12995         SelectedImageKey.
12996
12997 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12998
12999         * ListView.cs:
13000         * ListViewItem.cs: Cache index in items when retrieving them
13001         in VirtualMode.
13002
13003 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
13004
13005         * ToolStripItem.cs: Don't return the explicit_size if we are using 
13006         AutoSize.  Fixes invalidation issue when user has explicitly set a
13007         size and has AutoSize = true.
13008
13009 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
13010
13011         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
13012
13013 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
13014
13015         * DataGridView.cs: Remove event handler from DataView when a
13016         DataTable is used as DataSource.
13017
13018 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
13019
13020         * Control.cs: Create internal setter for client_size to allow it to be
13021         set without triggering resizing code.
13022         * Form.cs: Calculate client_size in constructor, only change client_size
13023         in FormBorderStyle property if Handle has been created.
13024         [Fixes #80574, #80791]
13025
13026 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
13027
13028         * SystemInformation.cs: Add TerminalServerSession.
13029
13030 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
13031
13032         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
13033         TreeView code.
13034
13035 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
13036
13037         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
13038         Handle before we were supposed to.  Now checks ActivateOnShow property
13039         in Control.
13040         * Control.cs: Add internal ActivateOnShow property.
13041         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
13042         for ActivateOnShow.
13043         * Hwnd.cs Remove no longer needed no_activate field.
13044
13045 2007-03-07  Jackson Harper  <jackson@ximian.com>
13046
13047         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
13048         2.0 properties
13049         * DrawTreeNodeEventHandler.cs: Add
13050         * DrawTreeNodeEventArgs.cs: Correct default value.
13051         
13052 2007-03-07  Chris Toshok  <toshok@ximian.com>
13053
13054         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
13055         to be called before NativeWindow.WndProc.  Put the HwndCreating
13056         magic there to hook up our Hwnd's to handles.
13057
13058 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
13059
13060         * DataGridView.cs: Comment out debug code.
13061
13062 2007-03-07  Chris Toshok  <toshok@ximian.com>
13063
13064         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
13065         to make the rest of the world happy]
13066
13067         * Control.cs (CreateHandle): there's no need to call
13068         XplatUI.SetVisible here, it's effectively done by
13069         XplatUI.CreateWindow on X now, and always was on windows.
13070
13071         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
13072         shortcircuit out of the loop if we have a message loop running on
13073         this thread.
13074
13075         [Changelog from merge]
13076
13077         2007-03-05  Chris Toshok  <toshok@ximian.com>
13078
13079                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
13080                 causes handle creation.
13081
13082         2007-02-28  Chris Toshok  <toshok@ximian.com>
13083
13084                 * ApplicationContext.cs: Add a flag to make sure we only raise the
13085                 ThreadExit event once (ExitThreadCore can be indirectly called
13086                 from a few places.)  I don't like the additional flag, but it
13087                 makes the event ordering/count correct.
13088
13089                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
13090                 without locking the collection.  An enumerator doesn't give us any
13091                 protection from modification anyway.  Lock the thread hash and
13092                 replace the complicated enumerator loop with a foreach.
13093                 (Application.CloseForms): make internal so it can be called from
13094                 ApplicationContext.  This should probably be moved to MWFThread.
13095                 (Application.ExitThread): don't call MWFThread.Current.Exit()
13096                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
13097                 when the runloop exits (in response to WM_QUIT.)
13098                 (Application.RunLoop): add a comment (and check) for
13099                 context.MainForm being null after setting context.MainForm.Visible
13100                 = true.  This is because you're perfectly free to dispose of a
13101                 form in VisibilityChanged.  Chalk this up to another case where we
13102                 need to synchronously generate WM_ACTIVATE from Control.Show.
13103                 Also, add handling for WM_QUIT here so we'll exit the loop.
13104                 
13105                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
13106                 fact that we don't wait if we're only unmapping the whole_window
13107                 makes me a bit nervous, but it doesn't seem to cause any problems
13108                 yet.
13109
13110                 also, add a comment about the stupid, broken and wrong resetting
13111                 of PostQuitState to false in GetMessage().
13112
13113                 In PostQuitMessage, we need to add a WM_QUIT message to the
13114                 thread's queue.  We use the FosterParent to get the right
13115                 handle/hwnd/queue.
13116
13117                 Lastly, in SetVisible, we need to unmap both windows, since the
13118                 waiting only happens when we're unmapping the client window.  So
13119                 now, the *only* time we unmap just the whole_window is in the hack
13120                 for resizing a control to 0,0.
13121                 
13122         2007-02-21  Chris Toshok  <toshok@ximian.com>
13123
13124                 * Application.cs (CloseForms): rewrite this so that we don't
13125                 modify the list while we're traversing it.
13126
13127         2007-02-20  Chris Toshok  <toshok@ximian.com>
13128
13129                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
13130                 of OnHandleCreated.
13131                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
13132                 handle is created.  otherwise we'll create it here.
13133                 (VerticalScrollEvent): same here.
13134
13135                 * Application.cs (CloseForms): call Form.Dispose, don't post
13136                 WM_CLOSE_INTERNAL.
13137
13138                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
13139                 here. Application should Dispose() of the Form's.
13140
13141                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
13142                 WM_DESTROY as well.
13143                 (MapWindow,UnmapWindow): only actually do the waiting for
13144                 SHOWWINDOW if the control we're dealing with is a Form.
13145                 (CreateWindow): if the control isn't a form, SendMessage
13146                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
13147
13148                 * Control.cs (SetVisibleCore): always use is_visible here, not
13149                 value.  If we use value, we can end up re-setting something
13150                 visible if, for instance, you do Control.Hide() in a delegate
13151                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
13152
13153         2007-02-20  Chris Toshok  <toshok@ximian.com>
13154
13155                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
13156                 the message we need.  PeekMessage returning false should not be a
13157                 condition under which we exit the loop.
13158
13159         2007-02-15  Chris Toshok  <toshok@ximian.com>
13160
13161                 * Control.cs (Refresh): only refresh if we've got a handle and are
13162                 visible.
13163                 (CreateAccessibilityInstance): CreateControl() here.
13164                 (UpdateChildrenZOrder): complicate the code loop even more by
13165                 taking into account controls that haven't had their handle
13166                 created, and those that aren't visible.  But on the flip side,
13167                 simplify the code by splitting it into two loops.  one which
13168                 builds up the list of child controls we're interested in, and the
13169                 other that sets the z order of those children.
13170
13171         2007-02-14  Chris Toshok  <toshok@ximian.com>
13172
13173                 * Control.cs: Control.AccessibilityObject causes the control to be
13174                 created, not just the handle.
13175
13176         2007-02-14  Chris Toshok  <toshok@ximian.com>
13177
13178                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
13179                 problem on X where a window might have its handle created (and be
13180                 visible) while the window is unmapped.  calling XConfigureWindow
13181                 on an unmapped window is bad, and generates X errors.
13182
13183         2007-02-13  Chris Toshok  <toshok@ximian.com>
13184
13185                 * Control.cs (CreateHandle): don't loop over our children setting
13186                 their parent here.  do it when in WndProc when we're shown.
13187                 (UpdateChildrenZOrder): make this internal so we can call it from
13188                 ScrollableControl.
13189                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
13190                 creating its handle.  Also, remove the calls to PerformLayout from
13191                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
13192                 OnVisibleChanged only seems to be called directly here for the
13193                 toplevel control.  It's propagated down the window hierarchy by
13194                 calls to child.OnParentVisibleChanged.
13195                 (OnVisibleChanged): don't do layout here - it's done (oddly
13196                 enough, according to a glance at stack traces on ms.net..) in
13197                 ScrollableControl.
13198                 
13199                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
13200                 z order of our children before calling PerformLayout.
13201
13202         2007-02-12  Chris Toshok  <toshok@ximian.com>
13203
13204                 [big change, fixes #80020]
13205                 
13206                 * AccessibleObject.cs: we need to make owner internal again to fix
13207                 some of ControlAccessibleObject.
13208
13209                 * Control.cs: lots of changes here.  add support for WM_CREATE,
13210                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
13211                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
13212                 we create child controls.  leave the MonoTODO's for the
13213                 accessibility calls, but fix the exceptions so the tests pass.
13214
13215                 Add the InvalidOperationExceptions to Invoke methods, and remove a
13216                 couple of InvokeInternal methods we aren't using.
13217                 
13218                 Also, add a couple of CreateHandle calls in places where we know
13219                 the handles are being created but our code doesn't reference
13220                 .Handle.
13221
13222                 Make SetVisibleCore call OnVisibleChange if the handle isn't
13223                 created.  If the handle is created, we rely on XplatUI.SetVisible
13224                 generating the event synchronously.
13225                 
13226                 Lastly, make sure we don't use this.Handle inside CreateHandle,
13227                 because we can call back into client (and that code can dispose of
13228                 the control).
13229
13230                 * XplatUIStructs.cs: misc/cleanup.
13231
13232                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
13233                 although we don't populate the wParam properly.
13234                 (CreateWindow): generate WM_CREATE.
13235                 (MapWindow,UnmapWindow): make these calls synchronous, at great
13236                 performance expense (particularly in the unmap case), to match
13237                 win32 behavior.
13238
13239                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
13240                 to call it.
13241                 (set_MdiParent): don't recreate the handle unless it's been
13242                 created already.
13243                 
13244                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
13245                 it's created.
13246
13247                 * NativeWindow.cs: this is probably the weirdest part of the
13248                 patch.  We need a way to link up the window being created to the
13249                 WM_CREATE message.  Since we can only be creating one window at a
13250                 time on a given thread, we keep track of a per-thread reference so
13251                 we can dispatch it properly.  We also need to keep track of the
13252                 Hwnd currently being created so that the win32 backend doesn't
13253                 have problems.
13254                 
13255                 * XplatUIWin32.cs: a similar change to the one we made in
13256                 NativeWindow.cs.
13257
13258 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
13259
13260         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
13261         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
13262         to draw the menu shortcut string.
13263
13264 2007-03-07  Jackson Harper  <jackson@ximian.com>
13265
13266         * TreeNode.cs: Add the 2.0 collapse method.
13267
13268 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
13269
13270         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
13271
13272 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
13273
13274         * DataGridView.cs: Change DataSource will clear column and row
13275         lists. Call Invalidate() to reflect DataSource change.
13276
13277 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
13278
13279         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
13280         and a new row is added to it.
13281
13282 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
13283
13284         * DataGridView.cs: Add columns when DataSource is en empty list but
13285         is a System.Data.DataView (from a System.Data.DataTable).
13286
13287 2007-03-06  Andreia Gaita  <avidigal@novell.com>
13288
13289         * Label.cs: Implement AutoEllipsis (2.0)
13290
13291 2007-03-06  Jackson Harper  <jackson@ximian.com>
13292
13293         * TreeView.cs: Implement 2.0 TopNode setter property.
13294         - Use a local var instead of the skipped_nodes field for computing
13295         how many nodes to skip.  Otherwise we won't scroll because the
13296         valuechanged handler checks if skipped_nodes is equal to the new
13297         value.
13298         - Implement 2.0 Sort method.
13299         - Add useless 2.0 DoubleBuffer property
13300         - Implement 2.0 LineColors property.  Lets you change the color of
13301         the lines in the tree. Terribly useful for creating non cohesive
13302         desktops.
13303         - Implement 2.0 image key feature.
13304
13305 2007-03-06  Jackson Harper  <jackson@ximian.com>
13306
13307         * TreeView.cs: We can't get the bounds of the nodes before raising
13308         the AfterSelect event, because that event could change the node's
13309         bounds (scrolling, font change, etc).
13310
13311 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13312
13313         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
13314         * Form.cs: Don't recreate handle when creating FormWindowManager, just
13315           update window styles. In CreateParams us VisibleInternal instead of
13316           VIsible to get the actual visible flag set for this form.
13317         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
13318           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
13319           handle the case when the form is already maximized, in which case
13320           it should be restored. Fixes #81043.
13321
13322 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13323
13324         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
13325
13326 2007-03-05  Jackson Harper  <jackson@ximian.com>
13327
13328         * TreeViewHitTestInfo.cs: implement.
13329
13330 2007-03-05  Jackson Harper  <jackson@ximian.com>
13331
13332         * InternalWindowManager.cs: class status fix.
13333
13334 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13335
13336         * InternalWindowManager.cs: All windows that have a parent
13337         are confined to their parent when they're being moved.
13338         Fixes #80822.
13339
13340 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
13341
13342         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
13343         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
13344
13345 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13346
13347         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
13348           buttons invisible before deciding which ones should be visible
13349           (fixes minimize/maximize buttons showing up in toolwindows). Remove
13350           an unused variable.
13351         * InternalWindowManager.cs: Remove warning.
13352
13353 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13354
13355         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
13356         to throw an InvalidOperationException is virtual mode is being used.
13357
13358 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
13359
13360         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
13361         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
13362         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
13363         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
13364         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
13365         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
13366
13367 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13368
13369         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
13370           driver.KeyboardDelay from XplatUI.KeyboardDelay 
13371         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
13372           (patch by Sergey Volk)
13373
13374 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13375
13376         * ToolWindowManager.cs: Added, contains logic for
13377           tool windows.
13378         * CreateParams.cs: Add a few helper methods and an
13379           internal variable to know which control the CreateParams belongs
13380           to.
13381         * Control.cs: Call Form.ChangingParent when the
13382           parent is about to be changed.
13383         * XplatUIX11.cs: DeriveStyles (): Set
13384           caption_height for all windows that have captions and are children.
13385           Update to use ToolWindowManager instead of InternalWindowManager
13386           for ToolWindows.
13387         * XplatUIWin32.cs: Set fake window styles for all
13388           windows that have window managers.
13389         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
13390           now duplicated for mdi windows when they are
13391           maximized, first for the buttons the window itself has, then for
13392           the buttons that appear in the menu bar. Makes things a little
13393           easier). Updated UpdateWindowDecorations, SetWindowState and the
13394           mouse eventhandlers accordingly.
13395         * Form.cs: Add ChangingParent (), contains the
13396           logic of what should happen when the parent changes. In MdiParent
13397           don't set things that ChangingParent () is doing. When handling
13398           WM_CLOSE, we can close the form if there are any other modal forms
13399           and the current form is a descendent of the modal form.
13400         * InternalWindowManager.cs: A lot of refactoring,
13401           the title buttons are now extracted to a separate container class
13402           that takes care of all button code (clicks, tooltips, etc). Moved
13403           Iconic|Maximized|Normal Bounds properties to this class from
13404           MdiWindowManager, so that the window state logic can succeed for
13405           other than mdi wm's. Implemented general window state change logic.
13406           Moved CreateButtons to ThemeWin32Classic, since the theme might
13407           override which buttons are available when as well as the exact
13408           location.
13409         * FormWindowManager.cs: Added, contains logic for
13410           normal forms.
13411         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
13412           which buttons go where (and if they are at all visible). 
13413           Removed special handling of maximized windows, since they aren't special. 
13414           In DrawManagedWindowDecorations don't try to draw the text if it is
13415           empty.
13416         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
13417           use whatever the wm gives us.
13418
13419 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
13420
13421         * ButtonBase.cs: Add 2.0 properties.
13422         * Button.cs: Override Draw for 2.0.
13423         * Control.cs: Add Entered and Selected properties.
13424         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
13425         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
13426         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
13427         buttons.
13428         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
13429
13430 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
13431
13432         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
13433
13434 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
13435
13436         * XplatUIWin32.cs: Register a new class with Windows each time we get
13437         a new ClassStyle.  [Fixes bugs #79432, #80817]
13438         * Controls.cs: Set the correct ClassStyle in CreateParams.
13439         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
13440
13441 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
13442
13443         * ListView.cs: Add fireEvent argument to ReorderColumn since the
13444         ColumnReordered event must not be signaled when modifying DisplayIndex
13445         of a ColumnHeader. Added internal ReorderColumns method which takes
13446         care of drawing, and updating the internal DisplayIndex of the
13447         ColumnHeader. Added AddColumn method which is invoked from
13448         ColumnHeaderCollection when adding or inserting columns, and which
13449         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
13450         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
13451         Recalculated dispay indices after removing a ColumnHeader.
13452         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
13453         match MS. Allows last display index to be returned after ListView
13454         is disposed. Update actual location of ColumnHeader when DisplayIndex
13455         is modified.
13456
13457 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
13458
13459         * LinkLabel.cs: Improve CalcTrimRectangle.
13460         
13461         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
13462
13463 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
13464
13465         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
13466         get rectangle as a result value.
13467
13468 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
13469
13470         * LinkLabel.cs: Theres some diferences between rectangle return from 
13471         MeasureCharacterRanges and the area used for DrawString to fix this 
13472         CalcMeasurementFactor method was created, it calcules the diferences
13473         to be use later to adjust rectangle in draw operations. Fixes #80473.
13474         
13475         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
13476         to adjust draw rectangle.
13477
13478 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
13479
13480         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
13481         text and some other changes to reduce and optimize source code.
13482
13483 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
13484
13485         * RadioButton.cs: Implement 2.0 event.
13486         * RelatedImageListAttribute.cs: Implement new class.
13487
13488 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
13489
13490         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
13491
13492 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
13493
13494         * CheckBox.cs: Implement 2.0 functionality.
13495
13496 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13497
13498         * ListView.cs: Refactor Add and AddRange methods of
13499         ListViewItemCollection, to not update the ListView
13500         everytime an item is added in AddRange. Also move the update
13501         code to a new CollectionChanged method, and call it
13502         from other methods that need it as well (this should also fix some
13503         bugs when Sorting is used).
13504
13505 2007-02-27  Jackson Harper  <jackson@ximian.com>
13506
13507         * TextControl.cs: Try to never let the caret stay in a non-text
13508         tag.
13509         * TextBoxBase.cs: Update the caret.
13510
13511 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
13512
13513         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
13514         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
13515         delete POINT structure, duplicate of one in XplatUIStructs.
13516         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
13517
13518 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
13519
13520         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
13521         edit box since otherwise the Label would immediately be set (even if
13522         the user did not modify the label). In OnKeyDown set Handled to true
13523         if Return or Escape was pressed. In ColumnHeaderCollection unlink
13524         columns that are to be removed. In ListViewItemCollection unlink items
13525         that are to be removed.
13526
13527 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
13528
13529         * TextRenderer.cs: If we set a GDI clip region, we need to clear
13530         it when we are done.  [Fixes bug #80949]
13531
13532 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
13533
13534         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
13535
13536 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13537
13538         * ListView.cs: I forgot to commit the changes for ListView 
13539         in my previous patch.
13540
13541 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
13542
13543         * Clipboard.cs: Partially implement an overload of SetDataObject.
13544         * Form.cs: Implement ShowWithoutActivation.
13545         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
13546
13547 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13548
13549         This is a first set of changes to make the Virtual mode works,
13550         by avoiding the retrieval of ListViewItem instances until
13551         draw time.
13552
13553         * ListView.cs: Store item position in the ListView instead of the
13554         ListViewItem, this way we don't request the Bounds property of
13555         ListViewItem inside the ListView calculations, as well as cache the item
13556         size in item_size field. Store indexes instead of ListViewItem
13557         instances in the matrix used by icon view. Add a ItemMatrixLocation
13558         struct to hold the row and col info of the matrix info.
13559
13560         * ListViewItem.cs: Don't store the location anymore, and only cache
13561         the rectangles for GetBounds. Use the ListView.GetItemLocation
13562         method to retrieve the actual location.
13563
13564 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
13565
13566         * TextRenderer.cs: Add clipping support, thanks to George.
13567         [Fixes bug #80949]
13568
13569 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
13570
13571         * ListViewItem.cs: Cancel label edit when item is removed from 
13572         ListView.
13573         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
13574         event before the edit textbox is displayed.  Added CancelEdit method
13575         which is used end to editing while ignoring the value set by the
13576         user. In EndEdit, set focus to ListView to avoid losing focus to
13577         other controls. In ListViewItemCollection.Clear, cancel editing of
13578         any of the items.  In Remove, cancel editing of item being removed.
13579         Avoid udplicate code by modifing RemoveAt to invoke Remove.
13580
13581 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
13582
13583         * FileDialog.cs: Update FSEntry when move is successful. Fixes
13584         bug #80948.  
13585
13586 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
13587
13588         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
13589         compatible with non X11 systems. Fixes #80901.
13590
13591 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
13592
13593         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
13594         whether the item should be unselected and reselect. We do no want this
13595         when we're starting to edit the label. Do not fire the 
13596         SelectedIndexChanged event from ListView when its already been fired
13597         by modifying ListViewItem.Selected. Fixes bug #80943.
13598
13599 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
13600
13601         * TextRenderer.cs: Previos commit logic was backwards.
13602
13603 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
13604
13605         * TextRenderer.cs: Don't add padding on MeasureText if we were
13606         sent the NoPadding flag.
13607
13608 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
13609
13610         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
13611         after DrawButton. To prevent image overlaps button borders SetClip and 
13612         ResetClip added before and after draw image. Fixes #79129.
13613
13614 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
13615
13616         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
13617         window size, it fix problem when you run under win32 that theres
13618         Size diferent than ClientSize. Also fix controls size and positions
13619         to mimic Win32. Fixes #80837.
13620
13621 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
13622
13623         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
13624         menu area to fix some problems for non X11 systems. Fixes #80613.
13625
13626 2007-02-22  Jackson Harper  <jackson@ximian.com>
13627
13628         * TreeNode.cs: When a node is expanded, set its is_expanded flag
13629         even if it doesn't have any children.
13630
13631 2007-02-22  Jackson Harper  <jackson@ximian.com>
13632
13633         * TreeView.cs: Calculate the top node 'on the fly', this
13634         eliminates issues where you need to click on the tree before
13635         scrolling it to get the top node computed correctly.
13636         * TreeNodeCollection.cs: We don't need to mess with the top node
13637         anymore.
13638
13639 2007-02-22  Jackson Harper  <jackson@ximian.com>
13640
13641         * DataGridViewRow.cs: Fix typo so height can actually be set.
13642         Patch by Peter Grimm.
13643
13644 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
13645
13646         * FileDialog.cs: Fixed support for renaming files and directories.
13647         * ListView.cs: Do not lose focus when edit is canceled. Process
13648         Escape as regular key (to prevent closing of dialogs).
13649
13650 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
13651
13652         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
13653         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
13654
13655 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
13656
13657         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
13658         did not modify label.
13659         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
13660         modified the text. Reset Label when user presses Escape in edit mode.
13661         Move focus to ListView after having cancelled or finished editing the
13662         label.
13663
13664 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
13665
13666         * ComboBox.cs: Removed unnecessary initializations. Marked items field
13667         private. Clear textbox when Text is set to null and SelectedIndex is
13668         already -1.
13669         * FileDialog.cs: Removed unnecessary initializations. Removed 
13670         workarounds for ComboBox bugs that are now fixed. Modified
13671         DefaultExt, InitialDirectory and Title property to change null to
13672         zero-length string in getters. Avoid directly accessing fields.
13673
13674 2007-02-20  Jackson Harper  <jackson@ximian.com>
13675
13676         * TextControl.cs: Remove RecalAlignments call, that was some
13677         debugging leftovers.
13678         - Don't use the line indent when we shouldn't.
13679         * RichTextBox.cs: Add support for paragraph left indents.
13680
13681 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13682
13683         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
13684         Seems like the class status pages doesn't catch params differences.
13685
13686 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
13687
13688         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
13689
13690 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
13691
13692         * ComboBox.cs: Setting Text should have no effect if item text of
13693         selected item exactly matches value. First lookup text using
13694         case-sensitive comparison, and fallback to case-insensitive comparison.
13695         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
13696         allow startIndex to be last index. Changed ArgumentOutOfRangeException
13697         paramname to match MS. Restart from first item if string is not found
13698         after startIndex. Fixed paramname of ArgumentNullException that is
13699         thrown for null value in ObjectCollection.Contains.
13700
13701 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
13702
13703         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
13704
13705 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13706
13707         * ListControl.cs: In SelectedValue use value.Equals to compare for
13708         equality instead of ==, otherwise it will fail for strings.
13709         Fixes #80794.
13710
13711 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13712         
13713         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
13714         since the caret won't show up unless ShowSelection is true. 
13715         Fixes #80795.
13716
13717 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13718
13719         * Application.cs: When disabling all forms but the main form, do not
13720           disable any descendants of the main form (such as mdi children or
13721           other parented forms). Fixes #80822 on Windows.
13722         * Form.cs: If we have a parent, set the WS_CHILD style.
13723         * Control.cs: Update the window styles if the control whose parent has
13724           changed is a form (the WS_CHILD style has to be switched).
13725
13726 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
13727
13728         * XplatUIStructs.cs: MsgUIState structure added.
13729
13730 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
13731
13732         * FileDialog.cs: Removed need for separate fileName field. On 2.0
13733         profile, do not check filename(s) for illegal character if filename(s)
13734         were set non-interactively but always check on 1.0 profile. Fixed NRE
13735          in DefaultExt and only strip off first leading dot. Improve exception
13736         message when invalid Filter is set. Do not ignore InitialDirectory if
13737         it does no exist. Store specified Title, and if empty use default
13738         title (depending on type of dialog). Added an internal DialogTitle 
13739         property for retrieving dialog title. Fixed logic of displayed dir to
13740         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
13741         string as its buggy.
13742         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
13743         FileName is a zero-length string (it can never be null). Override 
13744         DialogTitle property to set default title of dialog box.
13745         * SaveFileDialog.cs: Override DialogTitle property to set default
13746         title of dialog box.
13747
13748 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
13749
13750         * FileDialog.cs: Modify default text of filename and filetype labels
13751         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
13752         after we've updated the SelectedIndex. Fixes part of bug #80887.
13753         * SaveFileDialog.cs: Set text of filetype label.
13754
13755 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13756
13757         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
13758         label field. Needed by latest Jackson's fixes for ListView.
13759
13760 2007-02-16  Andreia Gaita  <avidigal@novell.com>
13761
13762         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
13763         print preview images.
13764
13765 2007-02-16  Jackson Harper  <jackson@ximian.com>
13766
13767         * ListView.cs: Make AfterLabelEdit work correctly.
13768         * FileDialog.cs: After changing the name of the folder, we have to
13769         make sure that it is created, or that we pop up an error because
13770         it already exists.
13771
13772 2007-02-16  Jackson Harper  <jackson@ximian.com>
13773
13774         * X11Dnd.cs: Implement aliases on mime handlers, so things like
13775         System.String are mapped to text.
13776         - Handle dataobjects, getting all the possible formats out of them
13777         - We dont need the drag event args before we give feedback. This
13778         allows feedback cursors to be immediate before selections have
13779         been converted.
13780
13781 2007-02-16  Jackson Harper  <jackson@ximian.com>
13782
13783         * TextBoxBase.cs: Modified the method for inserting images to
13784         taking a line and position instead of tag and position.
13785         * RichTextBox.cs: Handle PngBlip data by inserting the png image
13786         into the RTF file.
13787         * TextControl.cs: Allow images to be inserted as the first tag of
13788         a line.
13789         - Fix some off by one issues when we assume the first tag is a
13790         text tag, not an image tag.
13791
13792 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13793
13794         * ListView.cs: Set focus to ListView when ItemControl gets a
13795         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
13796         Fixes part of #80467.
13797
13798 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13799
13800         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
13801           validate Text input (if null or empty string reset Value to default
13802           value). Fixes #80830.
13803
13804 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13805
13806         * ListView.cs: Set owner as null for columns and items when
13807         Dispose is invoked. Fixes #80607.
13808
13809 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
13810
13811         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
13812         showing DropDowns, don't show a Grip when doing Flow layout.
13813         [This fixes the toolbox in PDN 2.72.]
13814         * ToolStripItem.cs: Add Anchor property and some internal properties to
13815         reduces needed changes to FlowLayout.
13816         * ToolStripOverflow.cs: Remove unused variable.
13817         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
13818         use it in the layout calculations.
13819
13820 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
13821
13822         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
13823         reported in #79640.
13824         
13825         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
13826         size calculation.
13827
13828 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
13829
13830         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
13831         MeasureString format, it can make button very large in some cases, it is
13832         strange but is what win32 do.
13833
13834 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
13835
13836         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
13837         size calculation.
13838
13839         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
13840         rendering, the value is based on MenuAccessKeysUnderlined.
13841
13842 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
13843
13844         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
13845         for most themes.
13846         
13847         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
13848         
13849         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
13850         and use MenuAccessKeysUnderlined instead.
13851
13852 2007-02-13  Andreia Gaita  <avidigal@novell.com>
13853
13854         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
13855         A selected control would not get a Focus call if:
13856                 - the default active control of the container is the same as
13857                   the one that was selected
13858                 - we are switching from one container to another
13859         Under these conditions, the container being selected already has
13860         an active_control, which is the same as the one being activated, 
13861         so set_ActiveControl would always return and not send the Focus
13862         call. Fix to check if the currently active control of the container
13863         is actually focused.
13864
13865 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
13866
13867         * StatusStrip.cs: Implement the spring layout.
13868         * ToolStripControlHost.cs: Make sure the hosted control's visibility
13869         always matches the host.
13870         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
13871         and TextAfterImage.
13872
13873 2007-02-13  Andreia Gaita  <avidigal@novell.com>
13874
13875         * Control.cs: Code reorganization only.
13876           - Reorganize the WndProc cases so that each case has it's own handling method, 
13877           to help with the no-line-numbering stack traces.
13878           - Formatting changes (it's vstudio's fault, really :p)
13879
13880 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13881
13882         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
13883           Thread.CurrentUICulture to match DateTimePicker's (and MS)
13884           behaviour.
13885
13886 2007-02-12  Jackson Harper  <jackson@ximian.com>
13887
13888         * RichTextBox.cs:
13889         * TextBox.cs: By default we have a non multiline document
13890         - use the multiline property instead of the internal variable
13891         * TextBoxBase.cs: Treat multiline and non multiline the same in
13892         most places.
13893         - Use the documents multiline flag instead of tracking it ourself
13894         * TextControl.cs: Attempt at getting multiline to match MS
13895         behavior.  Lines now track an offset, which is either their X or Y
13896         offset depending on whether or not we are in multiline mode.
13897         - Update all the methods to understand that lines have an X value.
13898         - Fix crash in Undo::Duplicate when empty lines are deleted.
13899
13900 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
13901
13902         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
13903         code moved to properties PreferredHeight and PreferredWidth. It solve the
13904         all problems when preferred sizes must be recalculated. Fixes #80801.
13905
13906 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
13907
13908         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
13909         font height when compatible_text_rendering is false. Partially fix #80801.
13910
13911 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
13912
13913         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
13914
13915 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
13916
13917         * Form.cs: Improved exception messages in ShowDialog.
13918
13919 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
13920
13921         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
13922         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
13923         if not set. Fixes bug #80764. Avoid accessing current_settings field
13924         directly.
13925
13926 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
13927
13928         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
13929         false.
13930
13931         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
13932         public in 2.0 and for easy maintenance and dont break compatibility it is 
13933         internal in 1.1.
13934         
13935 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
13936
13937         * ToolStripItem.cs: Implement using images from ImageList.
13938
13939 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13940
13941         * DateTimePicker.cs: Change default date-formatting culture from
13942           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
13943           seems to be the way MS does it.
13944
13945 2007-02-08  Andreia Gaita  <avidigal@novell.com>
13946
13947         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
13948         (the 6 was cut off on the right side)
13949
13950 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
13951
13952         * Form.cs: Tell MenuStrips to close when the form is clicked.
13953         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
13954         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
13955         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
13956         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
13957         support for Overflow, where items that do not fit are automatically
13958         reparented to a drop down menu.
13959         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
13960         Also: fixes bug #80747.
13961
13962 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13963
13964         * ComboBox.cs: Remove warning (unused code).
13965         * ScrollableControl.cs: Remove warning for 1.1 profile.
13966
13967 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13968
13969         * Form.cs: Remove a warning.
13970
13971 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13972
13973         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
13974           'g' specifier, not documented anywhere, but seems to always show up
13975           as a single space (might have something to do with the DateTime 'g'
13976           specifier, which is the era format, but since DateTimePicker can't
13977           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
13978           won't crash if the format has an unmatched quote. Now shows
13979           single-character formats correctly. Fixes #80744.
13980
13981 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
13982
13983         * StatusStrip.cs: Stretch property needs to call base.Stretch,
13984         not this.Stretch to fix stack overflow. [Fixes bug #80760]
13985
13986 2007-02-07  Chris Toshok  <toshok@ximian.com>
13987
13988         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
13989         background color.  it overwrites the background image we've
13990         already painted.  Fixes #80599.
13991
13992 2007-02-07  Chris Toshok  <toshok@ximian.com>
13993
13994         * DataGrid.cs: return immediately from Edit() when there are no
13995         columns.  Fixes #80662.
13996
13997 2007-02-07  Chris Toshok  <toshok@ximian.com>
13998
13999         * MessageBox.cs: fix #80625.  don't always show the Help button in
14000         2.0.  use the displayHelpButton parameter to determine if we
14001         should show it. Also, make the internal show_help field private.
14002
14003 2007-02-07  Chris Toshok  <toshok@ximian.com>
14004
14005         * Control.cs (SetVisibleCore): check in the proposed patch for
14006         80604, and set is_visible before calling CreateControl.
14007
14008 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
14009
14010         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
14011         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
14012         on it.
14013
14014 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
14015
14016         * MenuAPI.cs: hotkey_active internal field added, it is required because
14017         we need to know when hotkeys must be draw, before this change a keystate
14018         Navigating was used but we can have menu in navigating state without
14019         hotkeys. Fixes #80694.
14020         
14021         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
14022
14023 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14024
14025         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
14026           corresponding events and methods to be internal for 1.1 profile and
14027           public for 2.0 profile (required by SizeGrip).
14028         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
14029           implicit control list). Don't set the size nor the location of the
14030           SizeGrip anymore as it's not needed.
14031         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
14032           draw directly on the captured control (fixes #80656). Removed
14033           ShowGrip (it wasn't used anywhere), redraw (always true), added
14034           GetDefaultSize and GetDefaultRectangle to calculate defaults.
14035         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
14036           be called from SizeGrip.
14037
14038 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14039
14040         * Timer.cs: Throw ArgumentException if Interval <= 0.
14041
14042 2007-02-05  Jackson Harper  <jackson@ximian.com>
14043
14044         * TreeView.cs: We need to check scrollbar visibility when window
14045         visibility is updated, because non visible trees don't ever add
14046         scrollbars.
14047         * Cursor.cs: We want the override cursor to be reset to NULL when
14048         we set current cursor to the default cursor.
14049
14050 2007-02-05  Jackson Harper  <jackson@ximian.com>
14051
14052         * TextControl.cs: Don't have crlfs when we are non multiline.
14053         - Consolidate the line position.
14054
14055 2007-02-05  Jackson Harper  <jackson@ximian.com>
14056
14057         * X11Keyboard.cs: BACK+CTRL gets a special char code.
14058
14059 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14060
14061         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
14062           handling LeaveNotify->NotifyUngrab in order to send
14063           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
14064           after calling XUngrabPointer, so we call WindowUngrabbed directly
14065           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
14066         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
14067           MouseCaptureChanged correctly. Also create handles if changing
14068           Capture (matches MS behaviour).
14069
14070 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14071
14072         * SizeGrip.cs: Make the last change 2.0 only.
14073
14074 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14075
14076         * SizeGrip.cs: If resizing and the capture is lost, revert any size
14077           changes to initial size (fixes #80597).
14078
14079 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14080
14081         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
14082
14083 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14084
14085         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
14086           background) and only allow dragging if enabled. This way the
14087           sizegrip can be used to fill the open square that otherwise would
14088           have been shown in the bottom right corner of ScrollableControl
14089           when ScrollableControl is not suppose to support sizing.
14090         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
14091           sizegrip is shown and enabled, and hook up with necessary events.
14092
14093 2007-02-01  Chris Toshok  <toshok@ximian.com>
14094
14095         * DataGridTextBoxColumn.cs: clean up the
14096         GetFormattedString/GetColumnValueAtRow combination of functions.
14097         Also fix UpdateUI, and the initial state of
14098         IsInEditOrNavigateMode.
14099
14100         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
14101         aren't supposed to scroll the textbox here, we're supposed to
14102         scroll the datagrid.
14103
14104 2007-02-01  Chris Toshok  <toshok@ximian.com>
14105
14106         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
14107         setting the position.
14108
14109 2007-02-01  Chris Toshok  <toshok@ximian.com>
14110
14111         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
14112         here, since the most recent focus fixes keep us from generating
14113         the Leave event when our textbox gets focus.
14114         (Edit): we should be passing null for the column style's
14115         instantText parameter.
14116         
14117 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
14118
14119         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
14120         raised.  Fixes menu text/icons not showing up in PDN.
14121
14122 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14123
14124         * Control.cs: Remove code in constructor that makes every
14125         control with WS_CHILD set have initial location -1, -1.
14126
14127 2007-01-31  Jackson Harper  <jackson@ximian.com>
14128
14129         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
14130         XplatUIX11.
14131         * XplatUIX11.cs: Give teh keyboard to teh dnd.
14132
14133 2007-01-31  Jackson Harper  <jackson@ximian.com>
14134
14135         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
14136         - Remove some debug code.
14137
14138 2007-01-31  Jackson Harper  <jackson@ximian.com>
14139
14140         * XplatUIX11.cs: If you set the override cursor during a grab, it
14141         should actually override the grab cursor.  This comes into play
14142         when you are setting custom cursors in a DND feedback method.
14143
14144 2007-01-31  Jackson Harper  <jackson@ximian.com>
14145
14146         * X11Dnd.cs: Add support for handling the QueryContinue and
14147         GiveFeedback events.
14148         - Cancel drag and drop actions when the escape key is clicked.
14149         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
14150         can handle the ESCAPE key.
14151         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
14152         done when dnd events are continued after the button is released.
14153         - Add a new helper method so that dnd can translate key events.
14154
14155 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
14156
14157         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
14158         make it more obvious what is happening.
14159
14160 2007-01-30  Jackson Harper  <jackson@ximian.com>
14161
14162         * XplatUIX11.cs: Don't break when handling button release in drag
14163         and drop operations. We need that BUTTONUP message to get through
14164         so capture is released.
14165         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
14166         this is handled automatically when the mouse is down.
14167
14168 2007-01-30  Jackson Harper  <jackson@ximian.com>
14169
14170         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
14171         is closed, so we need to make sure that we aren't changing the
14172         dialog result when the OK (Open or Save) button has been clicked
14173         and we are closing the window ourselves.  Note we don't need to
14174         worry about the cache being written in this case, because it was
14175         already done in the previous FilOk call.
14176
14177 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14178         
14179         * DateTimePicker.cs: Remove a warning.
14180         * ComboBox.cs: Remove a couple of warnings.
14181
14182 2007-01-29  Chris Toshok  <toshok@ximian.com>
14183
14184         * XplatUIX11.cs: don't crash, and remove the icon if the user has
14185         set one, if SetIcon is passed a null icon.
14186
14187 2007-01-29  Andreia Gaita  <avidigal@novell.com>
14188
14189         * TextBox.cs: Redraw when the password characters changes
14190         * TextControl.cs: Check if textbox has a password char and draw 
14191         a line of password chars instead of the text in the line. LineTag gets 
14192         an extra Draw() method which allows document.Draw to override the text 
14193         that will be drawn. Removes 1024 char limitation on length of passworded 
14194         lines.
14195
14196 2007-01-29  Jackson Harper  <jackson@ximian.com>
14197
14198         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
14199         single chars is not.
14200
14201 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
14202
14203         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
14204         one pixel.  Fix a StackOverflowException caused by an overload wrongly
14205         calling itself.
14206
14207 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
14208
14209         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
14210         also remove ProcessArrowKey and put the code inside ProcessKeys.
14211
14212 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
14213
14214         * PaddingConverter.cs: Added.
14215
14216 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14217         
14218         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
14219         ShowPanels is false (fixes #80600). Only draw up to 127 characters
14220         of text (fixes #80601). For panels clip the text to draw to the
14221         panel (fixes #80603).
14222
14223 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14224
14225         * ComboBox.cs: Fixed implementation of ResetText.
14226
14227 2007-01-25  Jackson Harper  <jackson@ximian.com>
14228
14229         * TextControl.cs: For the last char of a line we need to use the
14230         line size, not that chars width, since it won't actually be
14231         computed since the right side of a char is based on the start of
14232         the left side of the next char, and the next char does not exist.
14233
14234 2007-01-25  Chris Toshok  <toshok@ximian.com>
14235
14236         * Splitter.cs: fix the new unit tests, and reindent some switch
14237         statements.
14238
14239 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14240
14241         * ComboBox.cs: Implemented 2.0 methods and events.
14242         * TextBoxBase.cs: Added OnTextUpdate, so that
14243         ComboBox.ComboTextBox can inform ComboBox of it.
14244
14245 2007-01-25  Jackson Harper  <jackson@ximian.com>
14246
14247         * TextControl.cs: Respect ShowSelection when deciding whether or
14248         not to display the caret, this allows comboboxes to have carets
14249         when the combotextbox does not have focus.
14250
14251 2007-01-25  Jackson Harper  <jackson@ximian.com>
14252
14253         * TextControl.cs: Add a Suspend/Resume for updating, basically the
14254         same as the Suspend/Resume for recalc, except this will do actual
14255         Invalidates.
14256         - New Undo manager, works much like the MS version.
14257         - Implemented Redo
14258         * TextBoxBase.cs: The Cut operation is undoable.
14259
14260 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14261         
14262         * TextBoxBase.cs: Don't antialias text. Makes it look way better
14263         on Windows (no difference on Linux).    
14264
14265 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14266
14267         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
14268         we don't want to activate any windows. Fixes #79433.
14269
14270 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
14271
14272         - ButtonBase.cs: Fix capitalization of parameter: disposing.
14273         [Fixes bug #80609]
14274
14275 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
14276
14277         * FileDialog.cs:
14278         - Move to using System.ComponentModel.EventHandlerList
14279         - Replace Refresh with Invalidate
14280         - Clear the mime filecache on closing
14281         - Some other memory reducing work. After beeing closed FD now uses
14282           only about 300 KB for the fdo mime stuff plus the memory of the
14283           cached icons.
14284         * Mime.cs: Changed coding style and removed unnecessary commented
14285         code. Some more memory memory reducing work.
14286
14287 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14288
14289         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
14290         a few other missing 2.0 properties.
14291         * Theme.cs: Added DrawFlatStyleComboBox.
14292         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
14293
14294 2007-01-24  Chris Toshok  <toshok@ximian.com>
14295
14296         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
14297         wake_waiting flag, not just when there's data to be read.  if we
14298         don't, then future wakeup's won't reach us and we'll be doomed to
14299         wait for the entire 1 second timeout forever (unless there are X
14300         events to be had).
14301
14302 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
14303
14304         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
14305         until you pass Items.Count, not Items.Count - 1 like 1.1.
14306
14307 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
14308
14309         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
14310
14311 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
14312
14313         * ToolStripContainer.cs: The recent Dock fix exposed that I was
14314         adding the panels in the wrong order.
14315
14316 2007-01-24  Jackson Harper  <jackson@ximian.com>
14317
14318         * TextBoxBase.cs: When we move the caret we also need to move the
14319         selection, this fixes some random crashing after doing select
14320         text, unselect, delete a char, paste.
14321
14322 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14323
14324         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
14325
14326 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
14327
14328         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
14329         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
14330         * ToolBar.cs: Force redraw in BackgroundImageChanged.
14331
14332 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
14333
14334         * ToolBar.cs:
14335         - Implement support for vertical toolbars. Fixes #80539;
14336         - Call LayoutToolBar when resize, it fix some other problems in layout.
14337         - Rename requested_height to requested_size, as we can have width on it
14338         when toolbar is vertical.
14339         - Create a private property "Vertical" that uses Dock to verify when 
14340         toolbar is vertical or not.
14341         - Set ControlStyles when change Dock property.
14342         - Refactory in LayoutToolBar to have better variables names and to support
14343         vertical toolbars.
14344         - Fixes default value for ButtonSize when button count is equal zero, size
14345         must be (39, 36) test case writed.
14346
14347 2007-01-23  Chris Toshok  <toshok@ximian.com>
14348
14349         * Control.cs: fix the checks so that they work correctly for mdi
14350         parents/children.
14351
14352 2007-01-23  Chris Toshok  <toshok@ximian.com>
14353
14354         * Control.cs: ControlCollection seems to have super-secret
14355         abstraction breaking knowledge of Mdi containers.  allow MdiClient
14356         to add toplevel controls.
14357
14358 2007-01-23  Chris Toshok  <toshok@ximian.com>
14359
14360         * Control.cs: throw an ArgumentException if a toplevel control is
14361         added to our control collection from ControlCollection.Add, as
14362         well as from ControlCollection.IList.Add.  This fixes the
14363         ControlSetTopLevelTest.TestTopLevelAdd unit test.
14364
14365         Also, in ControlCollection.IList.Add, don't through an
14366         ArgumentNullException, throw an ArgumentException, when value ==
14367         null.  This matches MS.
14368
14369 2007-01-23  Chris Toshok  <toshok@ximian.com>
14370
14371         * BindingSource.cs: initial, incomplete, implementation of
14372         BindingSource.
14373
14374 2007-01-23  Jackson Harper  <jackson@ximian.com>
14375
14376         * TextControl.cs:
14377         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
14378         that I can fix a broken unit test (TextBoxTest::ClearUndo)
14379         
14380 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
14381
14382         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
14383
14384 2007-01-23  Andreia Gaita  <avidigal@novell.com>
14385
14386         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
14387         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
14388         IndexOfKey() for 2.0
14389
14390 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14391
14392         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
14393         to prevent it from changing z-order.
14394         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
14395         leave UI updates in MdiWindowManager.
14396         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
14397         1 sized (NC handling goes weird on Linux otherwise).
14398         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
14399         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
14400         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
14401         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
14402         and SetWindowState(s) to allow for changing the size of an activated child
14403         before activating it (reduces a lot of flicker).
14404
14405 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
14406
14407         * Form.cs: Changing FormBorderStyle has different semantics based
14408         on whether the Form is visible or not.  If not visible, don't change
14409         the Size.  But InvalidateNC needs to be called to force the window
14410         to pick up the changes and redraw itself.  [Fixes bug #80574]
14411
14412 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
14413
14414         [Moma work]
14415         * ContainerControl.cs: ProcessCmdKey.
14416         * ErrorProvider.cs: new constructor.
14417         * Form.cs: fix AutoValidateEvent compiler warning.
14418         * Label.cs: fix OnAutoSizeChanged compiler warning.
14419         * MenuStrip.cs: fix CanOverflow compiler warning.
14420         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
14421         * TextBox.cs: Dispose.
14422         * ToolStrip.cs: CanOverflow, re-enable double buffering.
14423         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
14424         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
14425         * ToolStripItem.cs: Overflow, RightToLeft properties.
14426
14427 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14428
14429         * Form.cs: Move the layout of the main form to MdiWindowManager.
14430         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
14431         do a layout of the main window to update MdiClient's client area to
14432         the right area. Fixes #80533. Remove the calculation of nc size, 
14433         it was just wrong and the correct one is the same as for 
14434         InternalWindowManager. 
14435
14436 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
14437
14438         * Control.cs: Setting Anchor or Dock needs to reset the other
14439         to its default.  [Fixes bug #80556]
14440
14441 2007-01-20  Chris Toshok  <toshok@ximian.com>
14442
14443         * CheckedListBox.cs: class status changes.
14444
14445         * ScrollableControl.cs: same.
14446
14447         * RichTextBox.cs: same.
14448
14449         * ContainerControl.cs: same.
14450
14451         * ListView.cs: same.
14452
14453         * NotifyIcon.cs: same.
14454
14455         * MenuStrip.cs: same.
14456
14457         * RadioButton.cs: same.
14458
14459         * CheckBox.cs: same.
14460
14461         * PrintPreviewDialog.cs: same.
14462
14463         * Form.cs: same.
14464
14465 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
14466
14467         * TreeNode.cs: Apply Alan's patch for Name property.
14468
14469 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14470         
14471         * Form.cs: Implemented SizeGripStyle.
14472         * SizeGrip.cs: Check for minimum and maximum size for the
14473         control being resized and only resize if size has actually
14474         changed.
14475
14476 2007-01-19  Chris Toshok  <toshok@ximian.com>
14477
14478         * DataGridColumnStyle.cs: stop setting _readonly in the
14479         PropertyDescriptor setter.  fixes a unit test failure.
14480
14481         also, rename ParentReadOnly to TableStyleReadOnly, and have it
14482         just consult our table style (if we have one).  We don't need to
14483         consult the datagrid readonly attribute because that's passed in
14484         as the _ro arg to Edit.  this simplifies things a little.
14485         
14486         * DataGrid.cs: use CurrentColumn instead of
14487         current_cell.ColumnNumber just to simplify some of the code.
14488
14489         switch the order of some things in the CurrentCell setter to keep
14490         the previous cell from getting a textbox again -
14491         EnsureCellVisibility causes scrolling to happen, which calls Edit.
14492         So we need to set the new cell before calling it.
14493         
14494         call Edit in OnEnter, as does Microsoft.
14495         
14496         also, make sure the current table style isn't the one we create
14497         initially when checking to see if it's different than the one
14498         we're setting it to in BindColumns (this fixes #80421).
14499
14500         * GridTableStylesCollection.cs: table styles can have "" for a
14501         mapping name.  part of the fix for #80421.
14502
14503         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
14504         Edit significantly.
14505
14506 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
14507
14508         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
14509         and less GDI object leaky-er.
14510
14511 2007-01-18  Andreia Gaita  <avidigal@novell.com>
14512
14513         * LinkLabel.cs: Add opaque control style
14514
14515 2007-01-18  Jackson Harper  <jackson@ximian.com>
14516
14517         * TextControl.cs: Calculate width properly.
14518         - Don't store the tag's X offset, this can be figured out very
14519         easily.
14520         - When getting the caret tag make sure to get the last empty tag.
14521
14522 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
14523
14524         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
14525         [Fixes bug #79959]
14526
14527         * Control.cs: Color.Empty shouldn't count for previous transparent
14528         redraw changes.
14529
14530 2007-01-18  Jackson Harper  <jackson@ximian.com>
14531
14532         * TextBox.cs:
14533         * RichTextBox.cs:
14534         * TextControl.cs: Starting to merge in some pieces of my older
14535         undo work.  Basically just some slight cleanup of the undo API.
14536
14537 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14538
14539         * TrackBar.cs: Fix signature of RightToLeftLayout.
14540         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
14541         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
14542         * Application.cs: Implemented UseWaitCursor.
14543
14544 2007-01-18  Jackson Harper  <jackson@ximian.com>
14545
14546         * TextControl.cs: We can't skip tags if any part of the tag is
14547         visible.
14548
14549 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
14550
14551         * ContainerControl.cs: Override OnLayout.
14552
14553 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
14554
14555         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
14556
14557         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
14558         everything else.
14559
14560 2007-01-18  Chris Toshok  <toshok@ximian.com>
14561
14562         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
14563         (leftover from the container_selected days, I'd wager).  fixes bug
14564         #80546.
14565
14566 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
14567
14568         * Control.cs: Apply patch from George to fix the new testcase on
14569         bug #80451.  We can't just check for Color.Transparent, we need 
14570         to check if the back color's alpha channel is < 255.
14571
14572 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
14573
14574         * Form.cs: Move setting show_icon = true to before the constructor
14575         so that the base constructor has that information when it calculates
14576         the form's size.  Was causing forms to be (6, 6) bigger than they
14577         were supposed to be.  Thanks for catching this Rolf!
14578
14579 2007-01-18  Jackson Harper  <jackson@ximian.com>
14580
14581         * TextControl.cs: When replacing a selection we need to invalidate
14582         from the initial selection start, because selection start is moved
14583         to the end of the replacement.
14584
14585 2007-01-18  Andreia Gaita  <avidigal@novell.com>
14586
14587         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
14588
14589 2007-01-18  Chris Toshok  <toshok@ximian.com>
14590
14591         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
14592         I just added.
14593
14594 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
14595
14596         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
14597         layout methods and properties from ToolBarButton must be available
14598         into ToolBarButtonInfo.
14599
14600 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
14601
14602         * Control.cs: If the control has a transparent background, we
14603         need to refresh it when it moves and when it's parent's background
14604         image changes.  [Fixes bug #80451]
14605
14606 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
14607
14608         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
14609
14610 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
14611
14612         * XplatUIWin32.cs: Implement proper double buffering for Windows.
14613         [Fixes bug #80447, and probably speeds up things as well]
14614
14615 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14616
14617         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
14618         * XplatUIWin32.cs: We need to recalculate NC size after changing 
14619         window style to toolwindow (otherwise the client rectangle will be
14620         3 pixels to small for some reason).
14621         * MdiWindowManager.cs: Revert NC size calculations to match how
14622         they are calculated only based on window styles (to match
14623         Win32AdjustWindowRectEx, since otherwise when setting size or 
14624         location, Control will call Win32AdjustWindowRectEx to update client 
14625         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
14626         calculate a different value of client size causing another paint 
14627         (and flickering))
14628         * InternalWindowManager.cs: When moving or resizing a window only
14629         update size or location if they actually changed.
14630         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
14631         (seems to match Windows behaviour better). Cleaned up 
14632         ManagedWindowDecorations to draw what's needed and nothing else
14633         (was drawing borders and lines where they shouldn't be)
14634         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
14635         (style = 0xFFFF) and takes into account caption height when 
14636         calculating window rectangle.   
14637
14638 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
14639
14640         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
14641         can be added to toolbar multiple times, we need to maintain a list of 
14642         button information for each positions.
14643
14644 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
14645
14646         * ToolBar.cs: Some small stetic changes.
14647
14648 2007-01-16  Jackson Harper  <jackson@ximian.com>
14649
14650         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
14651         that allow us to have nested recalc = false blocks.
14652         - Add paste support for images in the RichTextBox
14653         * RichTextBox.cs: flush the text after the color is changed, so
14654         the change takes effect.
14655         - Use SuspendRecalc
14656         - Some extra debugging info
14657         * TextControl.cs: Tags no longer track their length, it is just
14658         computed from the next tags length, this makes things a little
14659         simpler and reduces places that we have to track length changes.
14660         - Refactored the linetag class a little so we could make it
14661         a base class for different kinds of tags
14662         - Created a image tag, a tag that can have a single image inserted
14663         into it
14664         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
14665         that we can call suspend multiple times.
14666         - Add some debugging methods
14667
14668 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14669
14670         * MdiClient.cs: Add ActivatePreviousChild for 
14671         mdi child window navigation.
14672         * Form.cs: Use MdiClient.ActivateNextChild/
14673         ActivatePreviousChild instead of Form.SelectNextControl
14674         to select the next/previous child since 
14675         SelectNextControl doesn't do it in the same order
14676         as mdi children should do it.
14677
14678 2007-01-16  Chris Toshok  <toshok@ximian.com>
14679
14680         * Control.cs: remove container_selected field.
14681
14682 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14683
14684         * MdiClient.cs: Update main form's ActiveChild when
14685         updating keyboard focus for the mdi child.
14686
14687 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
14688
14689         * Control.cs: PreferredSize fix.
14690
14691         * Form.cs: Add several 2.0 events, properties, and methods.
14692
14693 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
14694
14695         * Form.cs: Provide meaningful message when MdiParent is assigned a
14696         Form that is not an MdiContainer.
14697
14698 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14699
14700         * MdiClient.cs: Update main form's ActiveChild when
14701         activating a mdi child.
14702
14703 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14704
14705         * MdiWindowManager.cs: Fix NRE when merging menus and main form
14706         doesn't have a menu.
14707
14708         * Form.cs: Request NCRecalc after creating a mdi child window.
14709         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
14710         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
14711         
14712         * MdiClient.cs: Add new method SendFocusToActiveChild that either
14713         sends keyboard focus to the active child, or to the MdiClient
14714         if there are no child forms.
14715         
14716 2007-01-15  Chris Toshok  <toshok@ximian.com>
14717
14718         * ListView.cs: drop the *Internal overrides, just do our work in
14719         ItemControl's WndProc instead.
14720
14721         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
14722         of the various controls, and forward the events properly (in the
14723         same manner as MS) from the textbox to the UpDown.  Also the
14724         ActiveControl of the UpDownBase gets set properly now.  Finally,
14725         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
14726
14727         * NumericUpDown.cs: set Text in the ctor.
14728
14729         * DomainUpDown.cs: call UpdateEditText in the ctor.
14730         
14731         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
14732         so even a Selectable = false textbox can be focused if you click
14733         in it.  Go figure.
14734
14735         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
14736         just add their handling in their respective WndProc's.  Also add
14737         an explicit FocusInternal method that doesn't consult CanFocus
14738         before calling Select(this).
14739
14740         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
14741         do our work in WndProc instead.
14742
14743         * TabControl.cs: same.
14744
14745         * ComboBox.cs: same.
14746
14747 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
14748
14749         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
14750         Fixes #80006.
14751
14752 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14753
14754         * ListViewItem.cs:
14755         * ThemeWin32Classic.cs: Don't draw the item text outside
14756         item bounds in Details view, as well as use trimming.
14757         Fixes bug #80376.
14758
14759 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
14760
14761         * Form.cs: Implement Form.ShowIcon.
14762         
14763         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
14764         null, which when combined with the DlgModalFrame window style removes
14765         the icon from the title bar.
14766
14767 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
14768
14769         * Control.cs: Call OnMouseClick after OnClick. (2.0)
14770
14771 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
14772
14773         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
14774         menu when mdi child windows theres a menu, uses insert to get icon
14775         at first position. Partially fix #80006.
14776
14777 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
14778
14779         * Clipboard.cs: Implement 2.0 methods.
14780
14781 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
14782
14783         * Menu.cs: Implement Insert method of MenuItemCollection class
14784         to fix MenuMerge.
14785
14786 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14787
14788         * ListView.cs: Implement 2.0 FindItemWithText method.
14789
14790 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
14791
14792         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
14793         to calculate menu bar size. Fixes #80290.
14794
14795 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
14796
14797         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
14798
14799 2007-01-11  Chris Toshok  <toshok@ximian.com>
14800
14801         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
14802         initial form.
14803
14804 2007-01-11  Chris Toshok  <toshok@ximian.com>
14805
14806         * LinkLabel.cs: make sure to call base.Select in our Select method
14807         if it turns out we're going to be selected (i.e. if we have a link
14808         that is going to receive focus).  That way our container's
14809         ActiveControl is updated properly.
14810
14811 2007-01-11  Chris Toshok  <toshok@ximian.com>
14812
14813         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
14814         they have 1 or more links.  this fixes the crash gert reported.
14815
14816 2007-01-11  Andreia Gaita  <avidigal@novell.com>
14817
14818         * ContainerControl.cs: Remove ContainerSelected flag, not needed
14819         anymore.
14820
14821         * Control.cs (Controls.Add): Check if control to be added to the collection
14822         is a top level control, and throw an ArgumentException if it is.
14823         Remove ContainerSelectedFlag, not needed anymore.
14824
14825         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
14826         top most control doesn't activate the form. This fixes a problem in the
14827         MessageBox, where the default button wouldn't get focus because the form
14828         was activated before being Loaded - when the Owner is set, SetTopMost is
14829         called, and it would activate it.
14830
14831 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
14832
14833         * Button.cs: When clicked and setting the parent form's DialogResult,
14834         use FindForm instead of Parent, since parent could be a container
14835         control and not the Form.  Fixes bug #80495.
14836
14837 2007-01-10  Chris Toshok  <toshok@ximian.com>
14838
14839         * Form.cs: move the call to SendControlFocus into the same
14840         is_loaded check.
14841
14842 2007-01-10  Chris Toshok  <toshok@ximian.com>
14843
14844         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
14845         It breaks in the face of the new ActiveControl stuff, and should
14846         be unnecessary.
14847
14848         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
14849         activecontrol's focus if it's not already set, after we set
14850         ActiveControl, but before we call OnActivated.  Re-fixes #79667
14851         after the previous focus/active control fixes regressed it.
14852
14853         * Control.cs: reindent some code.
14854         
14855 2007-01-10  Chris Toshok  <toshok@ximian.com>
14856
14857         * Splitter.cs: clearing some outstanding changes from my tree.
14858         Replace all accesses (not writes) to the internal dock_style field
14859         with the Dock property.
14860
14861 2007-01-10  Chris Toshok  <toshok@ximian.com>
14862
14863         * Control.cs: make FireEnter, FireLeave, FireValidating, and
14864         FireValidated virtual.
14865
14866         * Form.cs: override and don't chain up calls to FireEnter and
14867         FireLeave.
14868
14869 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14870
14871         * ListView.cs: Add more text padding space when using
14872         auto resize for columns (the previous value didn't work fine).
14873
14874         * ThemeWin32Classic.cs: Update text position inside columns,
14875         to match the appeareance of .Net.
14876
14877         * ColumnHeader.cs: When using auto resize, only the Width should
14878         depend on the sub items, not the Height. Also, set width after
14879         auto resizing (the value of Width should never remain as -1 or -2).
14880
14881 2007-01-10  Chris Toshok  <toshok@ximian.com>
14882
14883         * Application.cs: fix compilation errors when debug is enabled.
14884
14885 2007-01-10  Chris Toshok  <toshok@ximian.com>
14886
14887         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
14888         add some nice ascii art pictures and explanation of the process).
14889         (GetMostDeeplyNestedActiveControl): new utility function we need
14890         because our ActiveControl can refer to a child container with its
14891         own ActiveControl.
14892
14893         * Form.cs (OnActivated): remove the call to SelectActiveControl
14894         from here, since you can override this method and not chain up,
14895         and winforms still sets the active control.
14896         (OnCreateControl): also remove the unnecessary SelectActiveControl
14897         call from here.
14898         (WndProc): it's actually called from the WM_ACTIVATE block, just
14899         before calling OnActivated.
14900
14901         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
14902         inside the else.  the ActiveControl setter will end up setting
14903         focus on @control.  This keeps us from setting it again (and
14904         generating an extra LostFocus/GotFocus pair).
14905         (Select (bool, bool)): reindent.
14906
14907 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
14908
14909         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
14910         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
14911         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
14912         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
14913         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
14914         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
14915         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
14916         ToolStripTextBox.cs: Another wave of corcompare work.
14917
14918 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14919
14920         * ColumnHeader.cs: Implement 2.0 AutoResize method using
14921         the Width property.
14922
14923         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
14924         methods by callling Column.AutoResize method on columns.
14925
14926 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
14927
14928         * Control.cs: Provide proper implementations of PreferredSize
14929         and GetPreferredSize (2.0).
14930
14931 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
14932
14933         * Form.cs: Remove one character (!) to make my previous OnClosing
14934         stuff work for modal windows like MessageBox.
14935
14936 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14937
14938         * ListView.cs:
14939         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
14940         ListView.Columns to get the last displayed column. Fixes #80452.
14941
14942 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
14943
14944         * Label.cs, LinkLabel.cs: Source code identation fixes.
14945
14946 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
14947
14948         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
14949         we dont need to invalidate only borders because when we invalidate four
14950         border lines the invalidate's generates a complete redraw of button, 
14951         because it now invalidate a complete rect some other redraws operations
14952         are fixed. Fixes #80196.
14953         
14954         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
14955         Remove ToolBarInvalidateEntireButton as it is not used.
14956
14957 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
14958         
14959         * Form.cs: Make sure that both OnClosing and OnFormClosing are
14960         called for 2.0 profile.
14961         * CloseReason.cs: Make class internal for 1.1.
14962
14963 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
14964
14965         * ToolStripManager.cs: Implement FindToolStrip functionality.
14966         * ToolStrip.cs: Register and unregister with ToolStripManager.
14967
14968 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
14969
14970         * Control.cs: This was messy.  2.0 moves much of ControlCollection
14971         to ArrangedElementCollection.  Implemented this with as few #if's as 
14972         possible (which is still too many).
14973
14974 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
14975
14976         * Control.cs: Implement SizeFromClientSize() [2.0].
14977
14978 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
14979
14980         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
14981         use Theme.BorderSize to calculate area instead of static value 1, 
14982         by the way use new BorderStaticSize instead     Border3DSize when 
14983         border_static is true. Fixes #79537.
14984         
14985         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
14986         
14987         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
14988         it is not needed.
14989
14990 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
14991
14992         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
14993
14994 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
14995
14996         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
14997         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
14998         
14999         * Hwnd.cs: 
15000         - border_static field added, it will used to define when a control 
15001         theres 3D border but it must be static (thin).
15002         - In GetWindowRectangle use Theme.BorderSize to calculate area 
15003         instead of static value 1, by the way use new BorderStaticSize instead
15004         Border3DSize when border_static is true.
15005
15006         * XplatUIX11.cs, XplatUIOSX.cs: 
15007         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
15008         
15009         * Theme.cs: BorderStaticSize field added.
15010
15011 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
15012
15013         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
15014
15015 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
15016
15017         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
15018         mimic same behavior than win32 that set border only in CreateParams,
15019         it fix problems under CreateParams overrides. Fix #79442 and partial
15020         fix #79537.
15021         
15022         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
15023         of thi control you must call recreate handle. 
15024         
15025         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
15026         need to do anything as RecreateHangle will take care about borders.
15027
15028 2007-01-05  Mike Kestner  <mkestner@novell.com>
15029
15030         * ListView.cs: hack to eliminate Lost/Got focus notifications on
15031         cycles between the ItemControl and parent.  Fixes #80388.
15032
15033 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
15034
15035         * Control.cs: Lazy init layout engine. Do not directly use 
15036         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
15037
15038 2007-01-05  Chris Toshok  <toshok@ximian.com>
15039
15040         * DataGrid.cs: don't forceably rebind columns in SetDataSource
15041         unless our list manager has changed (i.e. unless we have reason to
15042         believe our columns have changed).  Fixes #80422.
15043         
15044         also, disable the call do BindColumns in
15045         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
15046         1.1 the event isn't raised in response to a column addition on a
15047         table.)
15048
15049 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
15050
15051         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
15052         that inheritors can not call it if they choose.  Fixes bug #80456.
15053
15054 2007-01-05  Andreia Gaita  <avidigal@novell.com>
15055
15056         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
15057         doesn't blow up with a null exception on marshalling.
15058         
15059 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
15060
15061         * Control.cs: Implement several 2.0 protected properties and methods.
15062         Ensure that all necessary events are being called when properties
15063         are set.
15064
15065 2007-01-05  Mike Kestner  <mkestner@novell.com>
15066
15067         * ListView.cs: implement PgUp/PgDn for Details view.  Also
15068         fixes First/LastVisibleIndex to use the item_control.ClientRect 
15069         instead of the parent control.  Fixes #80378.
15070
15071 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
15072
15073         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
15074           determine whether to use yard-pound or not (bug #78399).
15075
15076 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
15077
15078         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
15079         problems. So it is time to bring back the old popupbutton colors.
15080
15081 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15082
15083         * ColumnHeader.cs:
15084         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
15085         property by using the internal information of the
15086         columns order in ListView.
15087
15088 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
15089
15090         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
15091         Add 2.0 Tag properties.
15092
15093         * LinkArea.cs: Add 2.0 ToString method.
15094
15095 2007-01-03  Chris Toshok  <toshok@ximian.com>
15096
15097         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
15098         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
15099         when we're editing, which fixes #80047.
15100
15101 2007-01-03  Chris Toshok  <toshok@ximian.com>
15102
15103         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
15104         #80404.
15105
15106 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
15107
15108         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
15109         property and implementation.
15110
15111         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
15112         for MdiWindowListItem property.
15113
15114         * ToolStripDropDown.cs: Don't consider hidden menu items while
15115         laying out the menu.
15116
15117 2007-01-03  Andreia Gaita  <avidigal@novell.com>
15118
15119         * SendKeys.cs: window handle is not needed in win32, so just
15120         get the active window for X after parsing keys and don't use
15121         it when building the message; it is passed by parameter to the 
15122         Xplat method and used there to build the message instead. Also,
15123         wait for events to be processed on SendWait, as opposed to Send,
15124         which doesn't wait :) Playing with threads and Send() completely 
15125         hangs on ms.net, only SendWait() works.
15126         
15127         XplatUIX11.cs
15128         X11Display.cs: Check for valid window handle.
15129
15130 2007-01-03  Jackson Harper  <jackson@ximian.com>
15131
15132         * TextControl.cs: Need to prevent wrap calculations when replacing
15133         text (this was there before i removed it accidently).
15134         - Don't update the cursor during the positioning, just set it to
15135         selection_start at the end of the operaion.
15136
15137 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15138
15139         * Control.cs:
15140         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
15141         
15142 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15143
15144         * MonthCalendar.cs: Added Click and DoubleClick events again,
15145         but this time they only hide Control's Click and DoubleClick.
15146         
15147 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
15148
15149         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
15150         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
15151
15152 2007-01-02  Jackson Harper  <jackson@ximian.com>
15153
15154         * TextBoxBase.cs: We move the caret with the split now, so we
15155         don't need to explicitly move the caret after splitting.  This
15156         fixes the caret bumping down an extra line on Enter.
15157
15158 2007-01-02  Miguel de Icaza  <miguel@novell.com>
15159
15160         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
15161         2.72). 
15162
15163         * ScrollableControl.cs: Add Scroll event.
15164
15165 2007-01-02  Mike Kestner  <mkestner@novell.com>
15166
15167         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
15168         to fix all hdr height padding codepaths.  Fixes #80207.
15169
15170 2007-01-02  Chris Toshok  <toshok@ximian.com>
15171
15172         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
15173         setting it to the Control defaults anyway, and it being after the
15174         Dock set was screwing up layout.
15175         (set_Dock): don't short circuit out of setting base.Dock.  Also,
15176         no need to call UpdateStatusBar here, as it'll be re-layed out if
15177         it needs to be.
15178
15179 2007-01-02  Mike Kestner  <mkestner@novell.com>
15180
15181         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
15182         to header height for width == -1. Fixes the rest of #80207.
15183
15184 2007-01-02  Mike Kestner  <mkestner@novell.com>
15185
15186         * ListView.cs: rework the mouse event forwarding everaldo added
15187         to translate the coordinates to the parent control not
15188         raise the parent events until after we've done our work. Hover
15189         needs more work, in the case where HoverSelection is on, because
15190         the item control receives more than one MouseHover per Enter
15191         event, so we need to ensure only the "first" hover gets forwarded.
15192         Opening a minor bug for that.
15193
15194 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
15195
15196         * CheckedListBox.cs: Fixed SelectionMode to match MS.
15197         * ListControl.cs: Implemented AllowSelection property. Removed extra
15198         tabs.
15199         * ListBox.cs: Implemented AllowSelection property.
15200
15201 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
15202
15203         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
15204         SelectedItem, it prevent for errors when you must disable item
15205         before perform click. Fixes #80409.
15206
15207 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
15208
15209         * MenuAPI.cs: Prevent second level and beyond submenus to close
15210         until first level when move out side of popup.
15211         
15212 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
15213
15214         * MenuAPI.cs:
15215         - Down submenu positin in three pixels.
15216         - Closes sub menu when mouse leaves from menu. Fixes #80402.
15217
15218 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
15219
15220         * ThemeWin32Classic.cs:
15221         - Fix popup menu size adding one pixel on the top.
15222         - Down menu item border from two to one to mimic Win32.
15223         - Some source identation fixes. 
15224
15225 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
15226
15227         * ThemeWin32Classic.cs: Use float numbers to calculate size and
15228         position of menu arrows, it fix wrong arrow size.
15229
15230 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
15231
15232         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
15233         instead of line, it simplify draw operation and fix it using 3D
15234         borders to mimic Win32.
15235
15236 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
15237
15238         * StatusStrip.cs: Add implementation of the sizing grip.
15239
15240         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
15241         StatusStrip rendering.
15242
15243 2006-12-31  Chris Toshok  <toshok@ximian.com>
15244
15245         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
15246         override the layout style (anchor/dock) of the control.  assign to
15247         Dock instead.  Fixes bug #80416.
15248
15249         * ToolStrip.cs: same.
15250
15251 2006-12-31  Andreia Gaita  <avidigal@novell.com>
15252
15253         * ContainerControl.cs: Use ContainerSelected flag to check if 
15254         a Container is directly selected, or if Select is called on a 
15255         non-container. If a container is directly selected, focus events 
15256         should not be raised.
15257         Apply #80411 patch to throw exception on set_ActiveControl if 
15258         control is the same as the current one.
15259         
15260         * Control.cs: Use ContainerSelected flag (see above).
15261         Add invalidation check to raise event but not invalidate if 
15262         dimensions are 0.       
15263         Apply #80411 patch.
15264         
15265
15266 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
15267
15268         * MenuAPI.cs: After click, dont close popup menu when menu is
15269         ContextMenu. Fixes #80399.
15270
15271 2006-12-30  Chris Toshok  <toshok@ximian.com>
15272
15273         * ContainerControl.cs: make sure we throw the exception if the
15274         container control doesn't contain the control we're setting
15275         ActiveControl to.
15276
15277 2006-12-30  Chris Toshok  <toshok@ximian.com>
15278
15279         * Control.cs (SetTopLevel): fix the exception raised by
15280         SetTopLevel for child controls.
15281         (set_Anchor): call UpdateDistances when setting the anchor type.
15282         This fixes bug #80336.
15283
15284 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
15285
15286         * Theme.cs: For now, revert back to 8pt font.
15287
15288 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
15289
15290         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
15291         Fixes #80395.
15292
15293 2006-12-29  Chris Toshok  <toshok@ximian.com>
15294
15295         * Control.cs: reorder the code in OnResize to give the same event
15296         ordering as MS.
15297
15298 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15299
15300         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
15301         TileHorizontally and TileVertically.
15302         
15303 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
15304
15305         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
15306         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
15307         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
15308         Corrected copyright and email adress.
15309
15310 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
15311
15312         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
15313         of Exception in FullPath property if no TreeView is associated with
15314         the TreeNode.
15315
15316 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
15317
15318         * Theme.cs: Marked default_font as private, and initialize it in ctor
15319         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
15320         on 2.0 profile.
15321         * ThemeGtk.cs: Removed default_font intialization.
15322         * ThemeWin32Classic.cs: Removed default_font initialization.
15323
15324 2006-12-28  Chris Toshok  <toshok@ximian.com>
15325
15326         * Control.cs: fix a couple of place where we were creating handles
15327         more aggressively than we should be.  Fixes ControlRefresh unit
15328         tests.
15329
15330 2006-12-28  Chris Toshok  <toshok@ximian.com>
15331
15332         * Control.cs: contrary to what the comment said, Control.Dock does
15333         not supercede Control.Anchor - the last one you assign to decides
15334         the layout behavior.  so we need to keep track of which was the
15335         last set.  Also, fix some of the affected property arguments in
15336         PerformLayout calls, and remove an redundant parent.PerformLayout
15337         call in OnResized.
15338
15339         Add a VisibleInternal property, which returns is_visible.  We
15340         can/should get rid of all the usage of this field elsewhere.
15341
15342 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15343         
15344         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
15345         control style, not DoubleBuffer. Added UseDoubleBuffering property
15346         that indicates whether doublebuffering is enabled and supported.
15347         (comment from and code based on Gert Driesen's patch in #80324).
15348         Fixes #80324.
15349
15350 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15351         
15352         * Control.cs: Fixed a NRE.
15353
15354 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15355
15356         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
15357         for 2.0.
15358
15359 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15360
15361         * Control.cs: Rewrote double buffering, now a seperate
15362         class handles all the buffering, no Graphics is disposed of
15363         until the painting is finished (earlier implementation 
15364         would crash if the control was resized in the OnPaint, 
15365         since it would cause the double buffer to be recreated
15366         and the old one disposed), a separate Graphics is 
15367         created for every paint (MS behaviour and anyways the state
15368         of the Graphics would have to be saved and restored otherwise)
15369         
15370         * XplatUIDriver.cs: 
15371         * XplatUIX11.cs:
15372         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
15373         so that we can get the graphics for the back buffer without
15374         having to create a new one and remove the offscreen_dc parameter
15375         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
15376         
15377 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15378
15379         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
15380         Also make virtual all the key-related methods.
15381
15382         * ListViewItem.cs: Make virtual the key related methods for
15383         ListViewSubItemCollection.
15384
15385 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15386
15387         * ListView.cs:
15388         * ListViewItem.cs:
15389         * ThemeWin32Classic.cs:
15390         * Theme.cs: Initial support for Tile view in ListView,
15391         as well as the implementation of the required bits for it (Item
15392         and Subitem).
15393
15394 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
15395
15396         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
15397         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
15398         Provide useful exception messages.
15399
15400 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15401
15402         * TrackBar.cs: Remove a warning.
15403         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
15404         when used by DateTimePicker, fixes #80287. This also requires that 
15405         MonthCalendar implements it's own drawing for the yearly updown control,
15406         otherwise the Capture tracking would be too complicated. Removed the Click 
15407         and DoubleClick events (according to comments they were hiding the base class
15408         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
15409         raise these events, not that they cannot be raised. It is possible to raise 
15410         them by calling OnClick and OnDoubleClick). Added two internal fields in 
15411         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
15412         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
15413         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
15414         event, no longer needed.
15415         
15416 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
15417
15418         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
15419         true if new value differs from current value.
15420
15421 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
15422
15423         * Control.cs: ControlCollection.Count must be public. Fixed build of
15424         unit tests.
15425
15426 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
15427
15428         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
15429
15430 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
15431
15432         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
15433
15434 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
15435
15436         * Control.cs: Invalidates control including when Width and Height is 
15437         equal zero or is not visible, only Paint event must be care about 
15438         this. Fixes #79913.
15439
15440 2006-12-26  Chris Toshok  <toshok@ximian.com>
15441
15442         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
15443         more corcompare work.
15444
15445         * DataGridView.cs: fix compiler warning.
15446
15447         * ColumnHeader.cs: some corcompare work, and also take the
15448         opportunity to make the internal fields private.
15449
15450         * ListView.cs: fix the fallout from the above field change.
15451
15452 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
15453
15454         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
15455         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
15456         ToolStripTextBox.cs: Fixes to events and corcompare.
15457
15458 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
15459
15460         * ListView.cs: Call owner.OnMousexx event to propagate events from
15461         item to ListView. Fixes #80367.
15462
15463 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
15464
15465         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
15466         if value is less than one. ItemHeight should not be set to a value
15467         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
15468         Removed extra tabs.
15469
15470 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
15471
15472         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
15473         * ToolStripStatusLabel.cs: Add Spring for Moma.
15474
15475 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
15476
15477         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
15478         Fixed code formatting. Removed debug code.
15479         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
15480
15481 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
15482
15483         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
15484         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
15485         ArgumentOutOfRangeException if ColumnCount is negative. In 
15486         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
15487         less than 4 or higher than 32768.
15488         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
15489         Fixed FormatProvider to return CurrentCulture unless explicitly set.
15490         Fixed IsFormatProviderDefault to return true if FormatProvider has
15491         not been explicitly set.
15492
15493 2006-12-25  Chris Toshok  <toshok@ximian.com>
15494
15495         * Application.cs: add a couple of 2.0 events.
15496
15497 2006-12-25  Chris Toshok  <toshok@ximian.com>
15498
15499         * Control.cs: fix compiler warning.
15500
15501         * AxHost.cs: corcompare fixes.
15502
15503         * ApplicationContext.cs: corcompare fixes.
15504
15505 2006-12-25  Chris Toshok  <toshok@ximian.com>
15506
15507         * Control.cs: only update dist_right/dist_bottom if the
15508         width/height is > 0.  this fixes anchored controls being resized
15509         smaller until they disappear and then resized larger again.
15510
15511 2006-12-25  Chris Toshok  <toshok@ximian.com>
15512
15513         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
15514         since they're nothing more than X/Left and Y/Top, respectively.
15515
15516         Also, move back to a per-control Bitmap/Graphics for
15517         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
15518         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
15519         Height.
15520
15521 2006-12-25  Miguel de Icaza  <miguel@novell.com>
15522
15523         * MessageBox.cs: Implemented overload that takes a new "bool
15524         displayHelpButton" by adding a new internal field "show_help".
15525         When clicked this will raise the HelpRequested on the owner or the
15526         main form. 
15527
15528         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
15529         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
15530
15531         * ListView.cs: Add support ColumnWidthChanged and
15532         ColumnWidthChanging. 
15533
15534         Add support for ColumnReordered event.
15535         (ReorderColumn): Add NET_2_0 specific support for cancelling the
15536         reorder.
15537
15538         Very nice codebase!
15539
15540         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
15541
15542         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
15543
15544 2006-12-24  Chris Toshok  <toshok@ximian.com>
15545
15546         * GridTablesFactory.cs: 2.0 corcompare work.
15547
15548         * ToolStripContainer.cs: add "override" to
15549         ContextMenuStripChanged, and remove the local event object.
15550
15551         * ToolStripDropDown.cs: same with a couple properties.
15552
15553         * ToolStripPanel.cs: same with AutoSizeChanged event.
15554
15555         * TextBoxBase.cs: add "override" to AutoSizeChanged.
15556
15557         * Form.cs: add the remaining 2.0 events, and do some corcompare
15558         attribute work.
15559
15560         * DateTimePicker.cs: add "new" to padding.
15561
15562         * ButtonBase.cs: use Control's use_compatible_text_rendering.
15563
15564         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
15565
15566         * DataGridView.cs: PaddingChanged is overridden.
15567
15568 2006-12-24  Chris Toshok  <toshok@ximian.com>
15569
15570         * Control.cs: corecompare work here too.
15571
15572         * DataGridViewElement.cs, DataGridView.cs,
15573         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
15574         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
15575         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
15576         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
15577         work.
15578
15579 2006-12-24  Miguel de Icaza  <miguel@novell.com>
15580
15581         * Control.cs: Switched the error message on the console for a
15582         todo.  A review of the code will have to cope with this anyways
15583         (since its a large feature, it is in our radar) and it was
15584         producing too much output when running PDN.
15585
15586         * ToolStripComboBox.cs: Set the text when the SelectedIndex
15587         changes.  Applications depend on this (PDN 2.72)
15588
15589 2006-12-23  Chris Toshok  <toshok@ximian.com>
15590
15591         * TableLayoutSettings.cs: finish up the corcompare work for this
15592         class.
15593
15594 2006-12-23  Chris Toshok  <toshok@ximian.com>
15595
15596         * Control.cs: make SetImplicitBounds internal, do some futzing
15597         with LayoutEngine so that it's available in 1.1, and remove the
15598         entire duplicated code mess from PerformLayout.  Use
15599         System.Windows.Forms.Layout.DefaultLayout instead.
15600
15601         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
15602
15603 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
15604
15605         * Form.cs: Add MainMenuStrip property.
15606
15607 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
15608
15609         * Control.cs: Add ContextMenuStrip property and implementation.
15610         Fix ContextMenu implementation to show menu centered on control when
15611         activated using the keyboard instead of showing at screen (0,0).
15612
15613         * ToolStripDropDown.cs: Fix needed overload of Show ().
15614
15615 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
15616
15617         * Menu.cs: Name property added for 2.0 profile.
15618         
15619 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
15620
15621         * Menu.cs: Update information about FindMenuItem, method to be
15622         implemented soon.
15623
15624 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
15625
15626         * MenuAPI.cs: When deselect items deselect also selected subitems.
15627         
15628 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
15629
15630         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
15631         FindSubItemByCoord to found itens that is not active, also an
15632         cheking added to FindSubItemByCoord to search for items only 
15633         in visible popup windows. Fixes #80274.
15634
15635 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
15636
15637         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
15638         internal property, it be care about change ExStyle. 
15639
15640 2006-12-22  Andreia Gaita  <avidigal@novell.com>
15641
15642         * ContainerControl.cs: set activeControl for parent forms up the 
15643         tree when the new activecontrol is a container.
15644         When validating the active control, if it is a container, also
15645         raise up the validation for it's active control. Fixes #80280
15646         
15647         * Control.cs: Add internal property flag and check to prevent
15648         Focus events from getting raised when Select() is called for
15649         a ContainerControl. There are still too many focus events being
15650         raised at the moment though.
15651         Cleaned up the code a bit.
15652
15653 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15654
15655         * Control.cs: Added all missing 2.0 events.and
15656         fixed a couple of corcompare issues.
15657         * TrackBar.cs: Implemented missing 2.0 bits.
15658         * MonthCalendar.cs, 
15659         * DateTimePicker.cs, 
15660         * MdiClient.cs: Fixed some corcompare issues.
15661
15662 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
15663
15664         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
15665         SplitterPanel.cs: corecompare work.
15666
15667 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
15668
15669         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
15670         Clean up warnings for BackgroundImageChanged and PaddingChanged
15671         events now that they are implemented in Control.cs.
15672
15673 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
15674
15675         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
15676         
15677         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
15678         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
15679         of TableLayoutPanel and supporting cast.
15680
15681 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15682
15683         * XplatUIWin32.cs: 
15684         - GrabWindow now confines the mouse pointer to the confine window.
15685         - Added Win32ClipCursor and Win32GetClipCursor.
15686
15687         * Control.cs: 
15688         - Added CaptureWithConfine to be able to capture and confine 
15689         mouse pointer.
15690         
15691         * InternalWindowManager.cs: 
15692         - Call CaptureWithConfine instead of Capture if we're an
15693         MdiChild (fixes #79982).
15694
15695 2006-12-21  Chris Toshok  <toshok@ximian.com>
15696
15697         * DataGrid.cs: guard against the initial state of selection, where
15698         selection_start == -1.  make sure we only select from index >= 0.
15699         Fixes bug #80291.
15700
15701 2006-12-21  Chris Toshok  <toshok@ximian.com>
15702
15703         * Control.cs: we don't need to be so draconian with
15704         UpdateDistances, and we thusly don't need to call it before
15705         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
15706
15707 2006-12-21  Daniel Nauck  <dna@mono-project.de>
15708
15709         * ComboBox.cs,
15710         TextBox.cs: Implemented AutoComplete properties.
15711
15712 2006-12-20  Chris Toshok  <toshok@ximian.com>
15713
15714         * DataGridView*.cs: some corecompare work.
15715
15716 2006-12-20  Jackson Harper  <jackson@ximian.com>
15717
15718         * XplatUIX11.cs: We need to hide the caret when deleting it,
15719         otherwise you get carets left lying around everywhere.
15720         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
15721         prevents getting some weird half drawn caret tracers when
15722         scrolling.
15723         * TextControl.cs: Attempt to reduce the number of times we need to
15724         recreate the caret.
15725
15726 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
15727
15728         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
15729
15730 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15731
15732         * DateTimePicker.cs:
15733         - Implemented missing 2.0 bits.
15734         - Changed some default values to match MS.
15735         
15736 2006-12-20  Jackson Harper  <jackson@ximian.com>
15737
15738         * TextBoxBase.cs: When changing the font across the document we
15739         can't recalculate after changing each line, since that will cahnge
15740         the line count.
15741         - PreferredHeight is a little different than i thought.
15742         - When backspacing, move the caret before we do the actual char
15743         delete, because when that delete crosses a wrap boundary the
15744         positional information will change.
15745
15746 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15747
15748         * Control.cs: Added some missing 2.0 bits: 
15749         BackgroundImageLayout, BackgroundImageLayoutChanged, 
15750         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
15751         add IBindableComponent and IDropTarget implementation.
15752         
15753         * MonthCalendar.cs: 
15754         - Added all missing 2.0 features:
15755         BackgroundImageLayout, RightToLeftLayout, 
15756         OnHandleDestroyed, RightToLeftLayoutChanged, 
15757         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
15758         PaddingChanged.
15759         - Rewrote all the BoldDate code, it was completely broken.
15760         - Fixed all the tests (the tests can now be re-enabled, the
15761         problems were not with the tests, but with the control, it was
15762         mostly broken).
15763         
15764         * DateTimePicker.cs: Changed the location where the 
15765         MonthCalendar is shown.
15766         
15767 2006-12-19  Chris Toshok  <toshok@ximian.com>
15768
15769         * DataGridView.cs: add IDropTarget implementation.
15770
15771         * ToolStripPanel.cs: add IDropTarget implementation.
15772
15773 2006-12-19  Jackson Harper  <jackson@ximian.com>
15774
15775         * TextControl.cs: soft now means something different than what it
15776         used to mean, we want to move the caret regardless of whether or
15777         not this break was soft (would we really have wanted the caret
15778         to not move with the break in the old context?)
15779         * TreeView.cs: Make sure we factor in the vert scrollbar when
15780         calculating the horizontal scrollbar's maximum.
15781
15782 2006-12-19  Andreia Gaita  <avidigal@novell.org>
15783
15784         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
15785         check for keywords in alternate casing, close bug #80049.
15786
15787 2006-12-19  Chris Toshok  <toshok@ximian.com>
15788
15789         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
15790         methods (which all do nothing).
15791
15792         * IDropTarget.cs: add the 4 missing methods.
15793
15794 2006-12-19  Chris Toshok  <toshok@ximian.com>
15795
15796         * TableLayoutRowStyleCollection.cs: corcompare work.
15797         
15798         * TableLayoutSettings.cs: same.
15799
15800         * TableLayoutStyle.cs: same.
15801
15802         * TableLayoutColumnStyleCollection.cs: same.
15803
15804 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
15805
15806         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
15807         TableLayoutPanel I've had in my local tree for way too long.
15808
15809 2006-12-19  Miguel de Icaza  <miguel@novell.com>
15810
15811         * TableLayoutSettings.cs: Finish the public API (still needs all
15812         the logic to update on changes). 
15813
15814         * TableLayoutPanelCellPosition.cs: new file.
15815         
15816         * TableLayoutRowStyleCollection.cs,
15817         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
15818         TableLayoutSettings.cs: Track the final 2.0 table api.
15819
15820 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15821
15822         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
15823         and Image List 2.0 members for ColummnHeader.
15824         * ListView.cs: Add key-related 2.0 methods for
15825         ColumnHeaderCollection.
15826
15827 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
15828
15829         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
15830         ArgumentNullException if items argument is null. Ignore null item in
15831         arrays. Removed extra tabs.
15832
15833 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
15834
15835         * MonthCalendar.cs: Fixed InvalidCastException.
15836
15837 2006-12-19  Jackson Harper  <jackson@ximian.com>
15838
15839         * TextControl.cs: Don't increment the position here.
15840         - When calculating char positions only add in the line break size
15841         for hard line breaks.
15842
15843 2006-12-19  Andreia Gaita  <avidigal@novell.org>
15844
15845         * SendKeys.cs: Changed some things to match ms.net behaviour
15846         when parsing shifted capital letters.
15847         
15848         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
15849         Add window handle as parameter to SendInput. X11 needs the 
15850         window handle, and the handle being passed      to it in the keys 
15851         queue is the active control handle (which windows needs), not 
15852         the window handle.
15853         
15854         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
15855         to support SendKeys on X.       
15856         
15857         * X11Keyboard: Implement helper method to lookup a linux keycode
15858         given the virtual keycode. Added table of keycode-2-virtualkey
15859         values to support this.
15860
15861 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15862
15863         * ListView.cs: Add support for SelectedIndexCollection
15864         and SelectedItemCollection 2.0 methods. Implement support
15865         for ImageKey too.
15866         * ListViewItem.cs: Add support for ListViewSubItemCollection
15867         2.0 methods. Also, fix an incorrect behavior of AddRange method
15868         (it shouldn't call Clear).
15869         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
15870
15871 2006-12-19  Jackson Harper  <jackson@ximian.com>
15872
15873         * RichTextBox.cs: 
15874         * TextBoxBase.cs: New args for FormatText
15875         * TextControl.cs: Rewrote the main drawing method, this version
15876         feels a little easier to understand and debug to me.  Hopefully it
15877         does to others also
15878         - Fix FormatText to OR in the new formating values.  Added
15879         FormatSpecified param, basically this works in the same way as
15880         BoundsSpecified in Control.
15881         - Set the caret properties when the caret is positioned.
15882         - When wrapping text make sure that we calculate the width of the
15883         last character
15884         - when calculating alignments we might have wrapped down to the
15885         next line, so don't search for an individual tag, search for the
15886         end of the line
15887         - We need to invalidate the selection area when we replace the
15888         selection.
15889         
15890 2006-12-19  Daniel Nauck  <dna@mono-project.de>
15891
15892         * Application.cs: add Restart () 2.0 support
15893
15894 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
15895
15896         * MenuItem.cs: Invalidate menu item rectangle after change Enable
15897         property. Fixes #80268.
15898         
15899 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
15900
15901         * MenuAPI.cs: Dont trigger select event when closes top menu
15902         item. Fixes #80270.
15903
15904 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
15905
15906         * MenuAPI.cs: When you click on menuitem only trigger onselect
15907         event for top menu itens. Fixes #80271.
15908         
15909 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15910
15911         * MdiWindowManager.cs: Make IconicBounds depend on
15912         the bottom of MdiClient, not the top (fixes #80267)
15913         
15914 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15915
15916         * MdiClient.cs: Added missing 2.0 attribute
15917
15918 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15919
15920         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
15921         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
15922
15923 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
15924
15925         * MenuAPI.cs: Fix click when menuitem is not popup,
15926         this regression was caused by last commit (#80272).
15927
15928 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
15929
15930         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
15931         fire click event or close menu. Fixes #80272.
15932
15933 2006-12-17  Daniel Nauck  <dna@mono-project.de>
15934
15935         * ListViewHitTestInfo.cs: add
15936
15937 2006-12-17  Daniel Nauck  <dna@mono-project.de>
15938
15939         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
15940         * FlatButtonAppearance.cs: add
15941         * DockingAttribute.cs: add
15942
15943 2006-12-17  Chris Toshok  <toshok@ximian.com>
15944
15945         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
15946         and rebind our columns when it does - this way, if you make
15947         changes to the DataTable (or set the Table attribute on a DataView
15948         after setting it as the DataGrid's DataSource, the changes are
15949         made visible.)  Fixes bug #80107.
15950
15951 2006-12-17  Daniel Nauck  <dna@mono-project.de>
15952
15953         * ListViewGroup.cs: add internal Location property for layouting.
15954         * Theme.cs: add abstract ListViewGroupHeight function.
15955         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
15956
15957 2006-12-16  Andreia Gaita  <avidigal@novell.com>
15958
15959         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
15960         Added reset of selected index to 0 when adding first tab page.
15961         Fixes #80264
15962         
15963         * NumericUpDown.cs: Fix NET_2_0 check
15964
15965 2006-12-16  Daniel Nauck  <dna@mono-project.de>
15966
15967         * ListViewGroup.cs: fixed DefaultValueAttribute value
15968
15969 2006-12-16  Daniel Nauck  <dna@mono-project.de>
15970
15971         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
15972
15973 2006-12-15  Miguel de Icaza  <miguel@novell.com>
15974
15975         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
15976         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
15977         ScrollableControl.cs: Add a handful of methods that are
15978         overwritten in 2.0 
15979
15980 2006-12-15  Chris Toshok  <toshok@ximian.com>
15981
15982         * XplatUIWin32.cs: initial implementation of the Reversible
15983         drawing functions.  there are some problems.  DrawReversibleFrame
15984         doesn't seem to work at all for Dashed FrameStyle, and in the
15985         Thick case there are drawing errors at the corners (we probably
15986         need to bind Rectangle instead of doing moveto/lineto's.)
15987
15988 2006-12-16  Andreia Gaita  <avidigal@novell.com>
15989         
15990         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
15991         to send blocks of key messages. Send accumulates keys to send with Flush, 
15992         while SendWait sends all keys immediately.
15993                 
15994         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
15995         XplatUIX11.cs,  XplatUIX11-new.cs:
15996         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
15997         to Win32 SendInput.
15998         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
15999         
16000         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
16001         testing for ms.net on this class is very tricky, as the tests run too fast 
16002         to allow the hook to release, essentially freezing the keyboard and the 
16003         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
16004         category :p
16005
16006 2006-12-16  Daniel Nauck  <dna@mono-project.de>
16007
16008         * Padding.cs: fixed serialization compability to MS ("_var" field names),
16009                         added missing attributes.
16010  
16011 2006-12-15  Daniel Nauck  <dna@mono-project.de>
16012
16013         * ListViewGroup.cs: Added missing attributes.
16014         * ListViewGroupCollection.cs: Added missing attributes.
16015
16016 2006-12-15  Daniel Nauck  <dna@mono-project.de>
16017
16018         * ListViewItem.cs: fixed ListViewSubItem text property.
16019
16020 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16021         
16022         * Control.cs: Added missing 2.0 attributes
16023         
16024 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16025         
16026         * MdiClient.cs: Added missing 2.0 attribute.
16027         * MonthCalendar.cs: Added some missing 2.0 attributes 
16028         and properties.
16029         
16030 2006-12-15  Daniel Nauck  <dna@mono-project.de>
16031
16032         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
16033
16034 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
16035
16036         * MainMenu.cs: Add the new 2.0 constructor to help out people
16037         using the MainMenu in VS2005.
16038
16039 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16040         
16041         * MdiChildContext.cs: Removed it, no longer used.
16042         * MdiClient.cs: Added missing 2.0 attributes.
16043         
16044 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16045         
16046         * InternalWindowManager.cs: Fix a NullRef with previous 
16047         changes for toolwindows.
16048         
16049 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16050
16051         * Control.cs: 
16052         - Added AfterTopMostControl to allow for certain controls 
16053         to always stay on top when normal controls are brought to 
16054         front.
16055         
16056         * XplatUIWin32.cs: 
16057         - (DrawInversibleRectangle): Get window rectangle from Win32 
16058         in stead of from control, since Win32 doesn't calculate
16059         screen coords correctly from control's Location if it 
16060         have docked siblings.
16061         
16062         * MdiWindowManager.cs:
16063         - Correct the control menu popup location when clicked on
16064         the maximized form icon. (fixes #80223.1)
16065         - Don't show moving rectangle if mouse hasn't moved from
16066         the original clicked point.
16067         - Removed FormGotFocus handler (not used).
16068         - Calculate the control buttons location from the main
16069         window's size and not client size (fixes #79770).
16070         - Form is now closed when the form icon is double-clicked
16071         (fixes #79775). 
16072         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
16073         
16074         * InternalWindowManager.cs:
16075         - Moved some MDI-only methods to MdiWindowManager.
16076         - Removed unused properties and methods.
16077         - Unified method naming for methods handling wm messages.
16078         - Moved all message handling to seperate methods for
16079         each message.
16080         
16081         * ThemeWin32Classic.cs:
16082         - DrawManagedWindowDecorations now draws the title bar 
16083         with a gradient brush.
16084         - Add a CPDrawButtonInternal that allows us to specify
16085         light, normal and dark colors for the buttons (control 
16086         buttons for MDI children were drawn with the same light
16087         color as the background, therefore loosing the 3D effect).
16088         
16089         * SizeGrip.cs:
16090         - Add a CapturedControl property that is used to 
16091         determine the control to resize (defaults to parent). 
16092         Needed for MdiClient, since its SizeGrip's parent is
16093         MdiClient, but the control to resize is the main form.
16094         
16095         * MdiClient.cs:
16096         - Set SizeGrip's CapturedControl to the main form in order
16097         to resize the main form and not the MdiClient.
16098         - Override AfterTopMostControl to leave the scrollbars 
16099         always on top.
16100
16101 2006-12-15  Daniel Nauck  <dna@mono-project.de>
16102
16103         * ListView.cs: fixed ListViewItemCollection AddRange and
16104                         implemented ListViewItemCollection AddRange 2.0 support.
16105
16106 2006-12-15  Daniel Nauck  <dna@mono-project.de>
16107
16108         * ListViewGroup.cs: Add.
16109         * ListViewGroupCollection.cs: Add
16110         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
16111         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
16112                                 stub for ImageKey 2.0 support.
16113
16114 2006-12-14  Mike Kestner  <mkestner@novell.com>
16115
16116         * ListView.cs: add text padding to the autocalculation for columns
16117         of width -2.  Fixes #80207.
16118  
16119 2006-12-14  Mike Kestner  <mkestner@novell.com>
16120
16121         * ListView.cs: add some index guarding for partial row navigation 
16122         logic.  Fixes #80250.
16123
16124 2006-12-14  Mike Kestner  <mkestner@novell.com>
16125
16126         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
16127         are added or inserted to the collection.  Fixes #81099.
16128
16129 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
16130
16131         * MenuAPI.cs: Closes menu when right click out side of popup
16132         it fix problem in ContextMenu and MainMenu. Fixes #80252.
16133
16134 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16135
16136         * ListViewItem.cs: Fix dumb error.
16137
16138         * ListView.cs: Add Find and ContainsKey methods in 
16139         ListViewItemCollection, and also return true for IsReadOnly
16140         and IsFixedSize (changes for 2.0). 
16141
16142 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
16143
16144         * Control.cs: Allow Region to be set to null.
16145
16146 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16147
16148         * MdiWindowManager.cs: Remove unused (commented out) code.
16149         * Form.cs: When the MdiChild is maximized, the form needs 
16150         WM_NCMOUSELEAVE, so request it.
16151         * InternalWindowManager.cs: 
16152         - Added tooltips to control buttons.
16153         - Removed duplicated control button handling code.
16154         - Removed unused (commented out) code.
16155         
16156 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
16157
16158         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
16159         was used because we must set cursor without trigger ChangeCursor event
16160         and without change Cursor control property. Fixes #79963.
16161
16162 2006-12-12  Andreia Gaita  <avidigal@novell.com>
16163         
16164         * Control.cs: Check if Region setter value is null, and ignore
16165
16166 2006-12-12  Jackson Harper  <jackson@ximian.com>
16167
16168         * TextControl.cs: We were almost always drawing one more line then
16169         needed, since the GetLineByPixel will return the last line found
16170         at that pixel. In most cases though, we were invalidating up to
16171         the junction between two lines.
16172         - Improve debug code.
16173
16174 2006-12-12  Chris Toshok  <toshok@ximian.com>
16175
16176         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
16177         and FillReversibleRectangle.
16178
16179         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
16180         and FillReversibleRectangle.
16181
16182         * XplatUIWin32.cs: add stubs which do nothing for
16183         DrawReversibleFrame, DrawReversibleLine, and
16184         FillReversibleRectangle.
16185
16186         * XplatUIOSX.cs: add stubs which raise NIE for
16187         DrawReversibleFrame, DrawReversibleLine, and
16188         FillReversibleRectangle.
16189
16190         * XplatUIX11.cs: add working implementation for
16191         DrawReversibleFrame, DrawReversibleLine, and
16192         FillReversibleRectangle.
16193         
16194         * ControlPaint.cs: implement DrawReversibleFrame,
16195         DrawReversibleLine, and FillReversibleRectangle, by calling into
16196         the appropriate XplatUI method.
16197
16198 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16199
16200         * Form.cs: Make MdiClient have the focus even if it's
16201         not selectable, since it should receive WM_KEY* and WM_MOUSE 
16202         messages. Fixes #79907.
16203         
16204 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16205
16206         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
16207         queried after the window is created.
16208         
16209         * XplatUIX11.cs: Added SendParentNotify to implement 
16210         WM_PARENTNOTIFY logic. Fixes #79965.
16211         
16212         * Control.cs: Added MakeParam.
16213         
16214 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16215
16216         * MdiClient.cs: Resume Layout before setting window
16217         states (fixes #80201).
16218
16219 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16220
16221         * MenuAPI.cs: Deselect a menu item after performing
16222         the click (fixes #80197).
16223
16224 2006-12-11  Jackson Harper  <jackson@ximian.com>
16225
16226         * TextBoxBase.cs: We need to cap this value, since Maximum -
16227         ViewPortHeight can be less than zero.
16228         - Only do selection with the left mouse button.
16229         * TextBox.cs: Don't tell the world that we have a context menu.
16230         * Control.cs: New method so that we can control whether or not the
16231         context menu is visible outside MWF.
16232
16233 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
16234
16235         * ToolBarButton.cs: Fix text positon. 
16236
16237 2006-12-11  Miguel de Icaza  <miguel@novell.com>
16238
16239         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
16240
16241         * Control.cs (DoubleBuffered): Add implementation.
16242
16243         * Application.cs (OpenForms): Add.
16244
16245 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
16246
16247         * Form.cs: Use opacity instead of Opactiy to determine if we need
16248         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
16249
16250 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
16251
16252         * Control.cs: Fix NRE if Control.Site was set to null.
16253
16254 2006-12-11  Chris Toshok  <toshok@ximian.com>
16255
16256         * Control.cs: ControlCollection.Remove should return if the arg is
16257         null, and ControlCollection.SetChildIndex should raise a ANE.
16258
16259 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
16260
16261         * Control.cs: Verify value set for Dock property. Code formatting
16262         updates.
16263
16264 2006-12-11  Jackson Harper  <jackson@ximian.com>
16265
16266         * TextControl.cs: Draw the caret and the selection when a flag is
16267         set on the owner.
16268         * TextBoxBase.cs: We want to draw the caret and the selection for
16269         TextBox but not for TextBoxBase.
16270         - If the window is resized and scrolling is no longer needed (the
16271         whole doc is visible) set the scroll position to zero.
16272         - The default SelectWord (the one TextBox uses) should move the
16273         caret to the end of the word.
16274         - SelectAll moves the caret to the end of the selection.
16275         * TextBox.cs: We don't selectall on focus, we just do it when the
16276         control is created.
16277         
16278 2006-12-11  Mike Kestner  <mkestner@novell.com>
16279
16280         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
16281
16282 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16283
16284         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
16285         2.0 support.
16286         * ListViewItem.cs: Add Name 2.0 property.
16287
16288 2006-12-11  Andreia Gaita  <avidigal@novell.com>
16289
16290         * TabControl.cs: Set visibility on selected or default tab 
16291         when tabcontrol handle is created, so that it's contents
16292         actually show up (duh). Fixes #80193
16293         Don't redraw the control if there is no handle created, as
16294         the selected index might be completely invalid. Added some tests
16295         to check for this.
16296
16297 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
16298
16299         * ToolBar.cs: Uses maximun width and height of all buttons as 
16300         button rectangle when ButtonSize specified, it looks strange but
16301         is what happens in Win32. Fixes #80189.
16302
16303 2006-12-11  Jackson Harper  <jackson@ximian.com>
16304
16305         * TextControl.cs: Need to track undo levels ourself, since
16306         compound actions will mess them up.
16307
16308 2006-12-10  Andreia Gaita  <avidigal@novell.com>
16309
16310         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
16311         SelectedIndex value is changed (even if it's not valid).
16312         Reset SelectedIndex to 0 when the handle is created and if
16313         the current index is invalid.
16314         Fixes SelectdeIndex unit tests and #80128
16315
16316 2006-12-08  Chris Toshok  <toshok@ximian.com>
16317
16318         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
16319         calls EndEdit, it needs to be called before we set current_cell to
16320         its new value.  Otherwise, we end up committing the value in the
16321         textbox to the new cell as well.  Fixes bug #80160.
16322
16323 2006-12-08  Chris Toshok  <toshok@ximian.com>
16324
16325         * Form.cs (set_CancelButton): if the button's DialogResult is
16326         None, set it to Cancel.  Fixes bug 80180.
16327
16328 2006-12-08  Jackson Harper  <jackson@ximian.com>
16329
16330         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
16331         to watch ourselves when setting the canvas size and setting the
16332         scrollbar values.
16333
16334 2006-12-08  Chris Toshok  <toshok@ximian.com>
16335
16336         * DataGrid.cs: comment out the two MakeTransparent calls for the
16337         time being so people using trunk (and not 1.2.2) on windows can
16338         actually use the datagrid.  This deals with bug #80151.
16339
16340 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
16341
16342         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
16343         Graphics.DrawImage (image, int, int, int, int) overload instead
16344         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
16345         the dpi difference and was blurring images it drew.
16346         [Fixes bug #79960]
16347
16348 2006-12-08  Chris Toshok  <toshok@ximian.com>
16349
16350         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
16351         rowcnt is 0 (such as with an empty datasource), and make sure we
16352         initialize not_usedarea.Y to cells.Y, so we don't draw over the
16353         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
16354
16355 2006-12-08  Chris Toshok  <toshok@ximian.com>
16356
16357         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
16358         grid.
16359
16360 2006-12-08  Chris Toshok  <toshok@ximian.com>
16361
16362         [ Fixes bug #80167 ]
16363         
16364         * ThemeWin32Classic.cs: don't draw the image if the button's flat
16365         style is FlatStyle.System.
16366
16367         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
16368         ButtonBase.flat_style private, and switch uses of it to the public
16369         property.
16370         
16371 2006-12-08  Chris Toshok  <toshok@ximian.com>
16372
16373         [ Fixes bug #80121 ]
16374         
16375         * ThemeWin32Classic.cs: center the caption text in the datagrid
16376         when we draw it.
16377
16378         * DataGrid.cs: lessen the amount we add to the caption height from
16379         6 to 2.  6 was making it huge.
16380
16381 2006-12-08  Andreia Gaita  <avidigal@novell.com>
16382
16383         * UpDownBase: Handle MouseWheel call directly instead of capturing
16384         the inner textbox's OnMouseWheel. Fixes #80166
16385
16386 2006-12-08  Jackson Harper  <jackson@ximian.com>
16387
16388         * TextControl.cs: We need to invalidate the textbox when we empty
16389         it (how had this not been discovered before?)
16390
16391 2006-12-08  Jackson Harper  <jackson@ximian.com>
16392
16393         * TextBoxBase.cs: Reworked the mouse down code so I could get it
16394         to behave like MS, we now ignore the eventargs.Click and just
16395         track state ourself, which we were already doing anyways.
16396         - Constrain the double click handler to the double click size.
16397         
16398 2006-12-08  Chris Toshok  <toshok@ximian.com>
16399
16400         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
16401         direction if that scrollbar isn't shown.  fixes bug #80158.
16402
16403 2006-12-08  Andreia Gaita  <avidigal@novell.com>
16404
16405         * NumericUpDown.cs: Update value on getter. Fixes #79950
16406
16407 2006-12-08  Chris Toshok  <toshok@ximian.com>
16408
16409         * MenuItem.cs: add back in the event cloning code.  I didn't know
16410         how to do it in the face of the EventHandlerList work i'd done
16411         last week.  Fixes bug #80183.
16412
16413 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
16414
16415         * Control.cs: Add an invalidate to the BackgroundImage setter.
16416         [Fixes 80184]
16417
16418 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
16419
16420         * ToolStrip*: Add some small properties reported by MoMA, fix event
16421         firing and default properties based off of unit tests, and add some
16422         attributes based off of the class status page.
16423
16424 2006-12-07  Jackson Harper  <jackson@ximian.com>
16425
16426         * TextBoxBase.cs: Take HideSelection into account when determining
16427         whether or not to show the selection.
16428         * RichTextBox.cs: After inserting the RTF into the document move
16429         the cursor to the beginning of the document.
16430
16431 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
16432
16433         * Control.cs: Remove static ArrayList "controls" which maintained
16434         a reference to every control created.
16435         * Application.cs: Create a static FormCollection to maintain a reference
16436         to every form created.  Use it in places that formerly enumerated through
16437         the controls one looking for forms.
16438         * Form.cs: Add and remove self from above FormCollection.
16439
16440 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
16441
16442         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
16443           not libgdk (though it makes me wonder why I didn't have any
16444           problems)
16445
16446 2006-12-07  Chris Toshok  <toshok@ximian.com>
16447
16448         [ you had to know this was coming after that last commit...]
16449         
16450         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
16451         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
16452         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
16453         XCopyArea).
16454
16455 2006-12-07  Chris Toshok  <toshok@ximian.com>
16456
16457         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
16458         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
16459         all the behavior we need for double buffering.
16460
16461         * XplatUIDriver.cs: implement the 3 double buffer methods using a
16462         client side Bitmap, just like the old Control-based double buffer
16463         code did.  The methods are virtual, so each XplatUI driver
16464         subclass can replace the implementation to use a faster, platform
16465         specific approach.
16466
16467         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
16468         double buffer code, and clean things up a bit in the process.
16469
16470 2006-12-06  Chris Toshok  <toshok@ximian.com>
16471
16472         * Control.cs: reindent WndProc.
16473
16474 2006-12-06  Chris Toshok  <toshok@ximian.com>
16475
16476         [ I wanna be like BenM when I grow up ]
16477         
16478         * Hwnd.cs: create a single static Graphics object on the static
16479         Bitmap we create.  use this for our text measurements.
16480
16481         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
16482         This was causing us to allocate a backbuffer for every control,
16483         even when it wasn't flagged as double buffered.  Instead use the
16484         single graphics instance.  This might have implications for
16485         multithreaded applications.  If we run into problems we can switch
16486         to creating 1 Graphics per control, on the static Hwnd bitmap.
16487
16488         this change nets us a 7M savings in private dirty mappings when
16489         running FormsTest.exe.
16490
16491 2006-12-06  Chris Toshok  <toshok@ximian.com>
16492
16493         * ListView.cs: the BackgroundImage override is just to set
16494         attributes.  chain up to base.BackgroundImage.
16495
16496         * RichTextBox.cs: same.
16497
16498         * ToolBar.cs: same, but we need to also redraw the toolbar when it
16499         changes, so instead a handler for BackgroundImageChanged.
16500         
16501         * Control.cs: make background_image private.
16502
16503 2006-12-06  Chris Toshok  <toshok@ximian.com>
16504
16505         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
16506         sure we even need this assignment, but roll with it for now.
16507
16508         * Control.cs: make the cursor field private.
16509
16510 2006-12-06  Chris Toshok  <toshok@ximian.com>
16511
16512         * Form.cs: we don't need to explicitly set ImeMode to
16513         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
16514         behavior in the face of ImeMode.Inherit.
16515
16516         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
16517         change the ctor's assignment to use ImeMode instead of ime_mode.
16518
16519         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
16520         ImeModeInherit.  Only check for the parent's imemode (and return
16521         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
16522         This fixes the button unit test, which sets both ImeMode and
16523         DefaultImeMode to ImeMode.Disable.
16524
16525         also make the ime_mode field private.
16526
16527 2006-12-06  Chris Toshok  <toshok@ximian.com>
16528
16529         * Control.cs: make control_style private.
16530
16531         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
16532         setting the styles to true, then setting them to false instead of
16533         reverting to their previous values.
16534
16535         also, call SetStyle on the scrollbars instead of using
16536         control_style directly.
16537
16538 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
16539
16540         * FormCollection.cs: Implement. [2.0]
16541
16542 2006-12-06  Chris Toshok  <toshok@ximian.com>
16543
16544         * Control.cs: make tab_stop private.
16545
16546         * Label.cs: set TabStop, not tab_stop.  reformat some event
16547         add/remove methods to make them more compact.
16548
16549 2006-12-06  Chris Toshok  <toshok@ximian.com>
16550
16551         * RadioButton.cs: fix TabStop handling.
16552
16553 2006-12-06  Chris Toshok  <toshok@ximian.com>
16554
16555         * TextBox.cs: remove the explicit assignments to has_focus.
16556         Control does that.
16557
16558         * ButtonBase.cs: remove the assignment to has_focus.  Control will
16559         manage that.
16560         
16561 2006-12-06  Chris Toshok  <toshok@ximian.com>
16562
16563         * ButtonBase.cs: remove all uses of is_enabled from this code.
16564         it's always true when any of the code containing the checks is
16565         executed.
16566
16567 2006-12-06  Chris Toshok  <toshok@ximian.com>
16568
16569         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
16570         with different semantics (some are present in both 1.1 and 2.0
16571         profiles) so that we match MS's behavior in our unit tests.
16572
16573 2006-12-06  Jackson Harper  <jackson@ximian.com>
16574
16575         * TextControl.cs: Make this operation undoable.
16576         * TextBoxBase.cs: Factor the border width into the preferred
16577         height.
16578         - implement Modified as per the spec.
16579
16580 2006-12-06  Chris Toshok  <toshok@ximian.com>
16581
16582         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
16583
16584 2006-12-06  Chris Toshok  <toshok@ximian.com>
16585
16586         * Control.cs: make right_to_left and context_menu fields private.
16587
16588 2006-12-06  Chris Toshok  <toshok@ximian.com>
16589
16590         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
16591         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
16592         Control.child_controls private.  switch all uses over to
16593         Control.Controls.
16594
16595 2006-12-06  Chris Toshok  <toshok@ximian.com>
16596
16597         * System.Windows.Forms/GroupBox.cs,
16598         System.Windows.Forms/AccessibleObject.cs,
16599         System.Windows.Forms/ErrorProvider.cs,
16600         System.Windows.Forms/Control.cs,
16601         System.Windows.Forms/UpDownBase.cs,
16602         System.Windows.Forms/ScrollBar.cs,
16603         System.Windows.Forms/DateTimePicker.cs,
16604         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
16605         System.Windows.Forms/ToolTip.cs,
16606         System.Windows.Forms/RadioButton.cs,
16607         System.Windows.Forms/LinkLabel.cs,
16608         System.Windows.Forms/Splitter.cs,
16609         System.Windows.Forms/TextBoxBase.cs,
16610         System.Windows.Forms/ToolStripTextBox.cs,
16611         System.Windows.Forms/ContainerControl.cs,
16612         System.Windows.Forms/ThemeWin32Classic.cs,
16613         System.Windows.Forms/SizeGrip.cs,
16614         System.Windows.Forms/ToolStripDropDown.cs,
16615         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
16616         private.  switch all uses over to Control.Parent.
16617
16618 2006-12-06  Chris Toshok  <toshok@ximian.com>
16619
16620         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
16621         Control does this before calling emitting these events.
16622
16623         * TabControl.cs: same.
16624
16625         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
16626         Control.client_rect.
16627
16628         * ButtonBase.cs: use the ClientSize property instead of the
16629         client_size field.
16630
16631         * ScrollableControl.cs: same.
16632
16633         * Control.cs: another pass at making properties private.  also,
16634         move the initialization of tab_stop to the ctor.
16635
16636 2006-12-05  Andreia Gaita <avidigal@novell.com>
16637
16638         * TabControl.cs: Let the selected index be set freely if the 
16639         control handle is not yet created.
16640
16641 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
16642
16643         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
16644         internal until I can rewrite DefaultLayout.
16645         * ToolStrip.cs: Fix build error and some general cleaning.
16646         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
16647         Fix build errors caused by making some of Control's fields private.
16648
16649 2006-12-05  Jackson Harper  <jackson@ximian.com>
16650
16651         * TextControl.cs: Redo Insert a little so that it use IndexOf
16652         instead of Split, this prevents it from messing up on things like
16653         \n\n\n. Also more effecient since the split array doesn't need to
16654         be created.
16655         * TextBoxBase.cs: AppendText doesnt handle multiline and non
16656         multiline text differently, this is the first of many fixes that
16657         will make multiline/non-multiline the same thing as far as the
16658         TextBoxBase is concerned.
16659         - Don't split the text and insert lines, this can lose some line
16660         endings (like is the last line a soft or hard break). Instead use
16661         the new Insert.
16662         - Fix an off by one when combining all the lines in the Text
16663         getter.
16664         - Remove separate multiline handling from the Text getter/setter.
16665
16666 2006-12-05  Chris Toshok  <toshok@ximian.com>
16667
16668         * ButtonBase.cs: a few changes:
16669
16670         - don't reinitialize internal Control fields in the ctor when they
16671         have the same values as Control sets them.
16672
16673         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
16674         this before calling those methods.
16675
16676         - we don't need to call Refresh for anything.  use Invalidate
16677         instead.
16678
16679         - OnEnabledChanged doesn't need to redraw at all - Control.cs
16680         calls Refresh in its OnEnabledChanged.
16681         
16682         - several of the events we were registered for in the ctor to
16683         redraw ourselves already include calls to Invalidate in the
16684         property setters that raise the events.  remove the extra
16685         invalidation.
16686
16687         - reformat a switch statement that was 83274658 columns wide.
16688         
16689 2006-12-05  Mike Kestner  <mkestner@novell.com>
16690
16691         * ComboBox.cs: fix a unit test regression from a TextBox
16692         SelectionLength return of -1 when there's no selection.  
16693
16694 2006-12-05  Chris Toshok  <toshok@ximian.com>
16695
16696         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
16697         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
16698         cleaning up some of the internal Control fields being used by
16699         subclasses.
16700
16701 2006-12-05  Mike Kestner  <mkestner@novell.com>
16702
16703         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
16704         listbox after AddImplicit calls since it defaults to hidden. Add a 
16705         hack to preserve requested heights across DropDownStyle changes.
16706
16707 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
16708
16709         * PropertyGrid.cs: Hide FindFirstItem method from public API.
16710
16711 2006-12-05  Chris Toshok  <toshok@ximian.com>
16712
16713         * DataGridView.cs: fix compiler warnings.
16714
16715         * PrintControllerWithStatusDialog.cs: same.
16716
16717         * ToolBar.cs: same.
16718
16719         * FolderBrowserDialog.cs: same.
16720
16721         * Splitter.cs: same.
16722
16723         * DataGridViewComboBoxCell.cs: same.
16724
16725         * XplatUIWin32.cs: same.
16726
16727         * PictureBox.cs: same.
16728
16729         * Win32DnD.cs: same.
16730
16731         * PageSetupDialog.cs: same.
16732
16733         * FileDialog.cs: same.
16734
16735         * PrintDialog.cs: same.
16736
16737         * DataGridTextBoxColumn.cs: same.
16738
16739         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
16740
16741 2006-12-05  Chris Toshok  <toshok@ximian.com>
16742
16743         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
16744         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
16745         System.ComponentModel.EventHandlerList work.
16746
16747 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
16748
16749         * DrawTreeNodeEventArgs.cs: Added.
16750
16751 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16752         
16753         * InternalWindowManager.cs: Remove an unused field.
16754         
16755 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16756
16757         * InternalWindowManager.cs:
16758         - Save the point where the title bar is clicked.
16759         
16760         * MdiWindowManager.cs:
16761         - Only allow moving of the window as long as the 
16762         clicked point on the title bar does not get out of
16763         MdiClient's rectangle. Fixes #79982.
16764         
16765         * MdiClient.cs:
16766         - Added Horizontal/VerticalScrollbarVisible.
16767         - Simplified the scrollbar sizing algorithm.
16768         - Cache the difference in scrolled value in
16769         H/VBarValueChanged and move the calculation out
16770         of the for loop.
16771
16772 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16773
16774         * Control.cs: Make the Console.WriteLine in WndProc 
16775         write more info.
16776
16777 2006-12-05  Chris Toshok  <toshok@ximian.com>
16778
16779         * ToolStripManager.cs, ToolStripButton.cs,
16780         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
16781         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
16782         ToolStripSplitButton.cs, ToolStripSeparator.cs,
16783         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
16784         ToolStripProgressBar.cs, ToolStripContainer.cs,
16785         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
16786         to using System.ComponentModel.EventHandlerList.
16787
16788 2006-12-04  Chris Toshok  <toshok@ximian.com>
16789
16790         * LinkLabel.cs: fix up compiler warnings.
16791
16792         * TableLayoutSettings.cs: same.
16793
16794         * TreeView.cs: same.
16795
16796         * ToolBar.cs: same.
16797
16798         * TabControl.cs: same.
16799
16800         * RichTextBox.cs: same.
16801
16802         * ListViewItem.cs: same.
16803
16804         * PropertyGrid.cs: same.
16805
16806         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
16807
16808         * ToolTip.cs same.
16809
16810         * TextRenderer.cs: fix up compiler warnings.
16811
16812         * Label.cs: same.
16813
16814         * Form.cs: corcompare fixes.
16815
16816         * PictureBox.cs: fix up compiler warnings.
16817
16818         * ImageListStreamer.cs: same.
16819
16820         * TrackBar.cs: corcompare fix.
16821
16822         * Control.cs: fix up compiler warnings.
16823
16824         * SplitterPanel.cs: same.
16825
16826         * NumericTextBox.cs: same.
16827
16828         * ImageList.cs: same.
16829
16830         * StatusStrip.cs: same.
16831
16832         * ProgressBar.cs: corcompare fix.
16833
16834         * ToolStripButton.cs: fix up compiler warnings.
16835
16836         * ToolStripStatusLabel.cs: same.
16837
16838         * ToolStripSplitButton.cs: same.
16839
16840         * ToolStripSeparator.cs: same.
16841
16842         * ToolStripProgressBar.cs: same.
16843
16844         * ToolStripDropDownMenu.cs: same
16845
16846         * ToolStripDropDown.cs: same.
16847
16848         * ToolStripDropDownButton.cs: same.
16849
16850         * ToolStrip.cs: same.
16851
16852         * ToolStripControlHost.cs: same.
16853
16854         * ToolStripContentPanel.cs: same.
16855
16856         * ToolStripDropDown.cs: same.
16857
16858         * ToolStripContainer.cs: same.
16859
16860         * ToolStripPanel.cs: same, and add "new" where we need it to work
16861         with the new ArrangedElementCollection.
16862
16863         * ToolStripItemCollection.cs: add "new" where we need it to work
16864         with the new ArrangedElementCollection.
16865
16866 2006-12-04  Andreia Gaita <avidigal@novell.com>
16867
16868         * TabControl.cs: Fix default tab selection to after TabControl
16869         gets focus and not before. Fixes #80128
16870
16871 2006-12-04  Chris Toshok  <toshok@ximian.com>
16872
16873         * DataGridTableStyle.cs: remove the gross calling of
16874         datagrid.Refresh from here.  It's a broken idea and it doesn't
16875         work anyway.
16876
16877         * DataGrid.cs: instead, just register/unregister from the
16878         DataGridTableStyle events in CurrentTableStyle.  we play it
16879         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
16880         even though some would most likely not require it.  Fixes bug
16881         #80115 (and one portion of #80117 as a side effect).
16882
16883 2006-12-04  Chris Toshok  <toshok@ximian.com>
16884
16885         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
16886         so the textbox (if any) goes away.  Fixes bug #80117.
16887
16888 2006-12-04  Chris Toshok  <toshok@ximian.com>
16889
16890         * DataGridColumnStyle.cs: set the column's readonly property
16891         initially based on the property descriptor's IsReadOnly.  Fixes
16892         bug #80044.
16893
16894 2006-12-04  Chris Toshok  <toshok@ximian.com>
16895
16896         * ComboBox.cs: wrap the dropdown style changing work in
16897         SuspendLayout/ResumeLayout.  Fixes bug #79968.
16898
16899 2006-12-04  Jackson Harper  <jackson@ximian.com>
16900
16901         * TextBoxBase.cs: Fix off by one, since these are one-based.
16902         * TextBox.cs: Select all the text when we get focus.  The TextBox
16903         does this but the RTB does not.
16904
16905 2006-12-04  Chris Toshok  <toshok@ximian.com>
16906
16907         * DataGridTextBoxColumn.cs: remove some spew.
16908
16909         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
16910         but some part of me is saying "it shouldn't be here.."  At any
16911         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
16912         setting the value.
16913
16914 2006-12-04  Chris Toshok  <toshok@ximian.com>
16915
16916         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
16917         to reassign the propertydescriptor.
16918
16919 2006-12-04  Jackson Harper  <jackson@ximian.com>
16920
16921         * TextBoxBase.cs:
16922         * TextControl.cs: Remove some unused variables.  Maybe this will
16923         patch things up between mike and I.
16924         - don't split lines less then one char wide, if the viewport is
16925         that small text won't be visible anyways.
16926         
16927 2006-12-04  Jackson Harper  <jackson@ximian.com>
16928
16929         * TextBoxBase.cs: Default selection length is -1, need to do some
16930         more testing on windows to see when this is used for the property.
16931         - Redid the Lines [] property to that we properly remove soft line
16932         breaks
16933         - added support for preserving carriage returns
16934         -  CanUndo is not a variable like 'is undo enabled' it just returns
16935         true if there is undo operations available.
16936         - AppendText doesn't need to grab the last tag itself anymore,
16937         this happens automatically when we move the cursor.
16938         * TextControl.cs: Add CompoundActions to the undo class. This
16939         allows combining the other operations into one big option.  ie a
16940         paste will combine { delete old, insert new, move cursor }
16941         - Add InsertString undo operation
16942         - New method for deleting multiline text
16943         - Add carriage returns to lines. So we can preserve carriage
16944         returns when text is 'roundtripped'
16945
16946 2006-12-04  Chris Toshok  <toshok@ximian.com>
16947
16948         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
16949         minimum 0.  Fixes the scrollbar exception in bug #80136.
16950
16951 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16952
16953         * MdiClient.cs: 
16954         * MdiWindowManager: Removed unused fields and methods.
16955         
16956 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16957         
16958         * StatusBar.cs: Update all panels when a AutoSize=Contents
16959         panel needs updating.
16960         
16961         * StatusBarPanel.cs: Remove twidth and only use initialize.
16962         Fixes #80031.
16963                 
16964 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16965
16966         * Form.cs: When a form's MdiParent is set add it directly
16967         on top of the z-order in stead of relying on MdiClient's
16968         ActivateChild to do it. Fixes #80135.
16969         
16970         * MdiClient.cs: 
16971         - Remove original_order, mdi_child_list is already doing
16972         the same thing.
16973         - Create mdi_child_list on construction in
16974         stead of first use (avoids a few null checks).
16975
16976         * MenuItem.cs: Use an already existing list of mdi children
16977         to get the correct order of children and remove the other
16978         redundant list.
16979
16980 2006-12-04  Chris Toshok  <toshok@ximian.com>
16981
16982         * PropertyGridView.cs: cached_splitter_location is only used in
16983         !DOUBLEBUFFER code.
16984
16985         * PropertyGrid.cs: implement the ComComponentNameChanged event
16986         using Events, hoping that would fix the warning.  Looks like a
16987         compiler bug instead (#80144).
16988
16989         * PropertyManager.cs: remove unused method.
16990
16991 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
16992
16993         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
16994         include parentesis to fix expression evaluation. Fixes #79634.
16995
16996 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
16997         
16998         * MenuAPI.cs:
16999         - Changes to fix behavior in Menu control, some reported in #80097
17000         and other detected during behavior refactory like a select event
17001         problems.
17002         - Remove unneded "if's" conditions.
17003         - Created an internal to flag when popup is active in control, we need 
17004         it because in .NET you can have menu active but without popup active
17005         when you active menu using popup without visible items.
17006         - Mimic win32 behavior for Select and Popup events.  
17007         - Dont open popup menu when you dont have visible subitems.
17008         - Do nothing when click on disabled menu item.
17009         - Some small changes to follow the coding style guidelines.
17010         - Unselect menu only when another control gives focus. Fixes #80097.
17011         - Remove unused code.
17012         
17013         * MenuItem.cs: internal VisibleItems method to check if menu
17014         theres visible subitems, it will be usefull to fix some 
17015         behavior in Menu control.
17016         
17017 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
17018         
17019         * Timer.cs: Tag property for 2.0 profile.
17020         
17021 2006-12-01  Chris Toshok  <toshok@ximian.com>
17022
17023         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
17024         
17025         * Win32DnD.cs: comment out some unused fields.
17026
17027         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
17028         some unused properties/methods.
17029
17030         * XplatUIX11.cs: fix MousePosition so we override the base class's
17031         property instead of conflicting with it.
17032
17033         * PictureBox.cs: comment out some unused fields
17034
17035         * OSXStructs.cs: make some struct fields public.
17036
17037         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
17038         MousePosition so we override the base class's property instead of
17039         conflicting with it.
17040
17041         * X11Dnd.cs: comment out some unused fields
17042
17043         * X11DesktopColors.cs: fix some struct field visibility to quiet
17044         the compiler.
17045
17046         * X11Dnd.cs: remove some debug code.
17047
17048         * ThemeClearlooks.cs: comment out unused field.
17049
17050         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
17051
17052         * ThemeGtk.cs: comment out some unused pinvokes.
17053
17054         * Timer.cs: remove some unused fields.
17055
17056         * ThemeClearlooks.cs: comment out unused field.
17057
17058         * UpDownBase.cs: comment out unused field.
17059
17060         * DataObject.cs: comment out unused field.
17061
17062         * DataGridBoolColumn.cs: reomve unused field.
17063
17064         * DataGrid.cs: remove unused field.
17065
17066         * Cursor.cs: remove old ToBitmap code.
17067
17068         * ControlPaint.cs: remove unused method.
17069
17070         * ScrollBar.cs: remove unused fields.
17071
17072         * ComboBox.cs: remove unused field, and chain up to
17073         AccessibleObject ctor.
17074
17075         * ListBox.cs: remove unused field.
17076
17077         * ButtonBase.cs: wrap a couple fields in NET_2_0.
17078
17079         * GridEntry.cs: remove unused fields.
17080
17081         * Binding.cs: remove unused fields.
17082
17083         * AxHost.cs: remove unused method.
17084
17085         * ContainerControl.cs: remove unused field.
17086
17087         * ScrollableControl.cs: remove unused fields.
17088
17089 2006-12-01  Chris Toshok  <toshok@ximian.com>
17090
17091         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
17092         the Where/WhereString stuff.  it's easy enough to CWL
17093         Environment.StackTrace.
17094
17095         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
17096         unused private fields.
17097
17098 2006-12-01  Jackson Harper  <jackson@ximian.com>
17099
17100         * TextControl.cs: Do not update the view while inserting multiline
17101         text. If we update the view we might wrap lines, before entering
17102         the new lines, which causes the new line insertion calculations to
17103         be totally fubared.
17104         - Remove an old TODO
17105         - Make debug output a little nicer
17106         
17107 2006-12-01  Chris Toshok  <toshok@ximian.com>
17108
17109         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
17110
17111 2006-12-01  Chris Toshok  <toshok@ximian.com>
17112
17113         [ fix the majority of the CS0108 warnings we've been suppressing ]
17114         
17115         * TreeView.cs: mark BackgroundImageChanged as 'new'.
17116
17117         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
17118         to "LayoutToolBar" to quiet mcs.
17119         
17120         * TabControl.cs: mark our ControlCollection class as 'new'.
17121
17122         * TextBoxBase.cs: mark some events as 'new'.
17123
17124         * Splitter.cs: TabStop is 'new'.
17125
17126         * ControlBindingsCollection.cs: mark a few methods as new since
17127         they change the visibility from protected to public.
17128
17129         * RadioButton.cs: DoubleClick -> base class, and remove unused
17130         HaveDoubleClick.
17131
17132         * MonthCalendar.cs: ImeMode property -> base class, and mark many
17133         events as new.
17134
17135         * NumericUpDown.cs: TextChanged -> base class.
17136
17137         * CheckedListBox.cs: mark our ObjectCollection class as new to
17138         quiet mcs.
17139
17140         * FolderBrowserDialog.cs: make HelpRequest event new and have it
17141         muck with the base class.
17142
17143         * StatusBar.cs: fix some mcs warnings about Update being the same
17144         name as a base class method.
17145
17146         * RichTextBox.cs: mark some events as new, and make them do things
17147         to the base class impl.
17148
17149         * UserControl.cs: mark TextChanged as new, and have it manipulate
17150         base.TextChanged.
17151
17152         * UpDownBase.cs: mark some things new.
17153
17154         * CheckBox.cs: mark DoubleClick "new", and add some text about
17155         what we need to look at.
17156
17157         * Panel.cs: make the events "new", and manipulate the base
17158         version.  these are just here for attributes.
17159
17160         * AccessibleObject.cs: make owner private.
17161
17162         * Control.cs: deal with AccessibleObject.owner being private.
17163         cache our own copy if we need it.
17164
17165         * Button.cs: add "new" to the DoubleClickEvent.
17166
17167         * ListBox.cs: no need to track our own has_focus here.  let
17168         Control.has_focus do it for us.  Also some other work to clear up
17169         warnings about not overriding base class methods of the same name.
17170         
17171         * ComboBox.cs: clear up some warnings about not override base
17172         class methods of the same name.
17173
17174 2006-12-01  Chris Toshok  <toshok@ximian.com>
17175
17176         * Form.cs: flag a few things as "new" to quiet some of the mcs
17177         warnings.
17178
17179         * AxHost.cs: same.
17180
17181         * PrintPreviewDialog.cs: same.
17182
17183         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
17184         now DGV isn't so horrible on the class status page.  also, move
17185         all events to using System.ComponentModel.EventHandlerList.  my
17186         wrists hurt.
17187
17188 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17189
17190         * MdiWindowManager.cs:
17191         - Set form to active mdi child if shown,
17192         and update the active mdi child to the next 
17193         remaining child in the z-order if the form is hidden.
17194
17195         * Form.cs: 
17196         - Track if the form has been visible and if its 
17197         visibility is beeing changed, so that the MdiClient
17198         can properly decide the ActiveMdiChild. The MdiClient 
17199         cannot track this since the form can change visibility 
17200         before MdiClient is created.
17201
17202         * MdiClient.cs:
17203         - Don't activate anything of the parent form is changing
17204         its visibility.
17205         - Rework ActiveMdiChild to only return visible mdi 
17206         children and take into account several other corner 
17207         cases.
17208
17209 2006-12-01  Chris Toshok  <toshok@ximian.com>
17210
17211         * IBindableComponent.cs: new 2.0 interface.
17212
17213 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
17214
17215         * DataGrid.cs: Font for caption area is bold by default.
17216
17217 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
17218
17219         * Menu.cs: Tag property for 2.0.
17220         
17221 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
17222
17223         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
17224         
17225 2006-12-01  Chris Toshok  <toshok@ximian.com>
17226
17227         * TreeView.cs: doh, the Begin* events should be
17228         TreeViewCancelEventHandler.
17229
17230 2006-12-01  Chris Toshok  <toshok@ximian.com>
17231
17232         * Form.cs: Form.ControlCollection already stores off the
17233         form_owner field.  don't access the base class's internal "owner"
17234         field.
17235
17236         * Control.cs: make all the fields in Control.ControlCollection
17237         private.  there's no need for any internal fields here.
17238
17239 2006-12-01  Chris Toshok  <toshok@ximian.com>
17240
17241         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
17242         OnHandleCreated.  Fixes bug #80109.
17243
17244 2006-12-01  Chris Toshok  <toshok@ximian.com>
17245
17246         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
17247         SplitContainer.cs, Control.cs, StatusStrip.cs,
17248         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
17249         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
17250         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
17251         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
17252         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
17253         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
17254         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
17255         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
17256         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
17257         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
17258
17259         do most of the work to convert our code over to use
17260         System.ComponentModel.Component.Events for
17261         adding/removing/dispatching events.
17262
17263
17264 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
17265
17266         * DataGridView.cs: Fix an ArgumentNullException reported 
17267         twice today in IRC.
17268
17269 2006-11-30  Mike Kestner  <mkestner@novell.com>
17270
17271         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
17272         grabbed listbox.  Fixes #80036 and #80101.
17273
17274 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
17275
17276         * Message.cs: Changed ToString() to match MS.
17277         
17278 2006-11-30  Jackson Harper  <jackson@ximian.com>
17279
17280         * TextBoxBase.cs: You can still change the selected text on a read
17281         only textbox.
17282         * TextControl.cs: Lower magic number for wrap calculations. This
17283         lets text get closer to the right (far) edge.
17284
17285 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
17286
17287         * Control.cs: Tweak 2.0 layout properties.
17288         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
17289         * TextRenderer.cs: Add a new overload.
17290         * ToolStrip*: Huge amount of changes and new features.
17291
17292 2006-11-30  Mike Kestner  <mkestner@novell.com>
17293
17294         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
17295         scroll range correct.  Fixes #79994.
17296
17297 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
17298
17299         * MdiWindowManager.cs: Update main form's text when
17300         a form is closed. (fixes #80038)
17301         
17302 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
17303
17304         * ToolBar.cs:
17305         - Fix an regression in ButtonSize.
17306         - Get ImeMode default value change to "Disable".
17307         - Get ShowTooltips default value change to true, default value is 
17308         "false" but after make a test in .NET we get "true" result as default.
17309         
17310 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
17311
17312         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
17313
17314 2006-11-29  Chris Toshok  <toshok@ximian.com>
17315
17316         * XplatUIWin32.cs (GetWindowTransparency): check return value of
17317         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
17318         SetWindowTransparency hasn't been called.
17319
17320 2006-11-29  Chris Toshok  <toshok@ximian.com>
17321
17322         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
17323         if it's supported.
17324         (set_AllowTransparency): reorder things a little so that the
17325         WS_EX_LAYERED style is removed properly.
17326
17327 2006-11-29  Chris Toshok  <toshok@ximian.com>
17328
17329         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
17330         
17331         * Form.cs: only call the XplatUI transparency method (get/set) if
17332         SupportsTransparency says it's supported. Otherwise fallback to
17333         doing nothing (in the set case) or returning the instance field we
17334         cache (in the get case).
17335
17336         * XplatUIStructs.cs: add TransparencySupport flag enum.
17337         
17338         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
17339         change to SupportsTransparency.
17340
17341         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
17342         TransparencySupport.None from SupportsTransparency.
17343
17344         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
17345         TransparencySupport.Set from SupportsTransparency.
17346
17347         * XplatUIWin32.cs: implement GetWindowTransparency calling
17348         GetLayeredWindowAttributes, and implement SupportsTransparency by
17349         checking whether or not both
17350         GetWindowTransparency/SetWindowTransparency are available
17351         entrypoints.  We need to do this since SetWindowTransparency is
17352         available as of win2k, but GetWindowTransparency requires winxp.
17353         yay win32 api.
17354
17355         * XplatUI.cs: Add GetWindowTransparency, and change
17356         SupportsTransparency to allow for either/both Get/Set.
17357
17358 2006-11-29  Chris Toshok  <toshok@ximian.com>
17359
17360         * DataGrid.cs: keep from going into an infinite loop redrawing a
17361         datagrid that has no datasource.  Fixes bug #80033.
17362
17363 2006-11-29  Chris Toshok  <toshok@ximian.com>
17364
17365         * MenuItem.cs: fix the NRE when we assign text (and therefore call
17366         Invalidate) before the mainmenu has been assigned to a control.
17367
17368 2006-11-29  Chris Toshok  <toshok@ximian.com>
17369
17370         * DataGrid.cs: detect when we should be double the double click
17371         row/column autosize stuff, although that codepath has yet to be
17372         written.  part of the work for bug #79891.
17373
17374 2006-11-29  Chris Toshok  <toshok@ximian.com>
17375
17376         * Binding.cs (SetControl): fix unit test.
17377
17378 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17379
17380         * PageSetupDialog.cs: Validate the margins and set them in
17381         PageSettings. 
17382         * NumericTextBox.cs: New class to mimic the behavior of the
17383         textboxes used in the printing dialogs.
17384
17385 2006-11-29  Andreia Gaita  <avidigal@novell.com>
17386         
17387         * Form.cs: Revert previous change (remove call UpdateBounds
17388         from form constructor), because it messes with the handle creation
17389         order, and that one needs lots and lots of love.
17390         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
17391         for valid printer and throw InvalidPrinterException if document
17392         is set but printer not valid), adding a MonoTODO. Once 
17393         handle creation is done properly, we can put this back in.
17394
17395 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
17396
17397         * MenuItem.cs: Create a invalidate method for menu item, to be
17398         calling from set text, it make text changes to imadiate update
17399         on screen. Fixes #80013. 
17400         
17401 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
17402
17403         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
17404         fixes bug #80070 and some other problem on toolbar buttons
17405         layout.
17406
17407 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
17408
17409         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
17410         with dotted brush.      Fixes #79564
17411         
17412 2006-11-28  Andreia Gaita  <avidigal@novell.com>
17413
17414         * Form.cs: Removed call to UpdateBounds on Form
17415         constructor, it was causing a call to CreateHandle
17416         before it was supposed to.
17417         * PrintControllerWithStatusDialog: Applied patch
17418         by Chris Toshok to hide controller when there are
17419         no printers available.
17420         PrintDialog.cs: initialize printer settings to 
17421         null - correct DefaultValues test #5
17422         * PrintPreviewControl.cs: Move PrintController
17423         initialization to GeneratePreview
17424         * PrintPreviewDialog.cs: 
17425         - Remove Preview generation     from Document_set(). It is 
17426         called on OnPaint
17427         - Throw InvalidPrinterException on CreateHandle if
17428         a Document is set but there are no printers or 
17429         printer is not valid.
17430         * ThemeWin32Classic: don't paint PrintPreviewControl
17431         if there is nothing to paint    
17432
17433 2006-11-28  Miguel de Icaza  <miguel@novell.com>
17434
17435         * Form.cs: Add another popular method.
17436
17437         * TabPage.cs: ditto.
17438
17439 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17440
17441         * MenuItem.cs: Fixed a warning.
17442         * InternalWindowManager: Fixed a warning.
17443
17444 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17445
17446         * MenuItem.cs:
17447         - When cloning a menu also clone MdiList and clone the 
17448           window menu items properly (as the forms and menuitems
17449           are kept in an internal hashtable, these need updating 
17450           as well)
17451         - Rewrote the window menu code, menu items are added in the
17452           order the forms were added to their parent, and they are
17453           updated every time the window menu is shown (before the
17454           list was only generated once, in the current order of the
17455           forms, and would never be updated). A checkmark is shown
17456           next to the item corresponding to the active mdi child.
17457
17458 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17459
17460         * XplatUIStructs.cs: 
17461         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
17462         
17463         * XplatUIWin32.cs: 
17464         - Added TME_NONCLIENT to TMEFlags.
17465         - Handles WM_NCMOUSEMOVE in GetMessage to 
17466           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
17467
17468         * MdiWindowManager:
17469         - Now merges mdi child menu to parent menu when maximized.
17470         - Recalculate NC areas of both mdi child and mdi parent. 
17471           Fixes #79757 (4).
17472           on window state and size changes.Fixes #79844 (3).
17473         - Handle WM_NCCALCSIZE to properly calculate borders.
17474
17475         * Form.cs:
17476         - Add/remove to the mdi containers list of mdi children 
17477           in the order they are added.
17478         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
17479           to the maximized mdi child.
17480         
17481         * InternalWindowManager.cs:
17482         - Only execute a click on the control buttons on the mouse up,
17483           not on the mouse down. Show the state of the button 
17484           (was only showing Normal state, never Pressed state). The
17485           pressed button now follows the mouse (if you click the Close 
17486           button and move the mouse over the Maximize button, the 
17487           Maximize button will be shown as pressed). Since Win32 does
17488           not generate WM_NCLBUTTONUP if you release the button outside
17489           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
17490           it as a mouse up.
17491         
17492         * ThemeWin32Classic.cs:
17493         - Draw a missing border around mdi child forms. Fixes #79844 (2).
17494
17495         * MdiClient.cs:
17496         - Added a list of forms which contains the order the forms are
17497           added to the mdi parent.
17498         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
17499         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
17500         - If the active form changes set the scrollbars to the top
17501           of the Z order, otherwise the form could hide them.
17502         - Scrollbars are now sized according to ClientSize, not 
17503           to Size, and they take into account the other scrollbar
17504           to determine maximum.
17505         
17506 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
17507         
17508         * XplatUI.cs:
17509         * XplatUIDriver.cs:
17510         * XplatUIX11.cs:
17511         * XplatUIWin32.cs:
17512         * XplatUIOSX.cs:
17513         - Added RequestAdditionalWM_NCMessages for windows to 
17514           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
17515           Currently only implemented in XplatUIWin32.
17516
17517 2006-11-27  Chris Toshok  <toshok@ximian.com>
17518
17519         * Hwnd.cs: only add the hwnd to the windows hash in
17520         set_WholeWindow and set_ClientWindow if whole_window/client_window
17521         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
17522
17523 2006-11-27  Mike Kestner  <mkestner@novell.com>
17524
17525         * ComboBox.cs: remove redundant OnDropDown call.  It is called
17526         from the ComboListBox.ShowWindow code. Fixes #79969.
17527
17528 2006-11-27  Chris Toshok  <toshok@ximian.com>
17529
17530         * Hwnd.cs: remove the setters for ExposePending and
17531         NCExposePending - noone uses them.
17532
17533 2006-11-27  Jackson Harper  <jackson@ximian.com>
17534
17535         * TextControl.cs: new param for ReplaceSelection which determines
17536         whether we select the new selection, or set the cursor to the end
17537         of the new selection.
17538         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
17539         pasting, select the new text.
17540         * RichTextBox.cs: Use new param for ReplaceSelection.
17541
17542 2006-11-27  Jackson Harper  <jackson@ximian.com>
17543
17544         * TextBoxBase.cs: Set the selection to the caret after the caret
17545         is moved, otherwise they get out of sync.
17546
17547 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
17548
17549         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
17550         it fixes #80015
17551
17552 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
17553
17554         * ThemeWin32Classic.cs: 
17555         - Fix toolbar drop down arrow position.
17556         - Fix drop down appearance when ToolBar.Appearance is normal,
17557         it fixes #80018.
17558         
17559 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
17560
17561         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
17562         * Control.cs: Same.
17563         * UpDownBase.cs: Same.
17564         * ButtonBase.cs: Same.
17565         * ScrollBar.cs: Same.
17566         * TrackBar.cs: Same.
17567         * PictureBox.cs: Same.
17568         * UserControl.cs: Same.
17569         * Label.cs: Same.
17570         * ListControl.cs: Same.
17571         * TextBoxBase.cs: Same.
17572         * ListView.cs: Same.
17573         * RichTextBox.cs: Same.
17574         * TreeView.cs: Same.
17575
17576 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
17577
17578         * PrintDialog.cs:
17579         - Text label for where 
17580         - Text label comment was not shown
17581
17582 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
17583
17584         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
17585
17586 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
17587
17588         * InternalWindowManager.cs: 
17589         - Handle WM_PARENTNOTIFY to activate the form
17590         if any child control is clicked.
17591         - The form is only sizable if not minimized.
17592
17593         * MdiWindowManager.cs:
17594         - Save the IconicBounds if the form is moved.
17595         - Rework SetWindowState, now the window bounds 
17596         are stored only if the old window state is Normal.
17597         
17598         * MdiClient.cs:
17599         - In SetWindowStates store the old window state if 
17600         the window is maximized and restore window state if
17601         the window looses focus.
17602         - Don't handle any scrollbar value changes if 
17603         initializing the scroll bars. Fixes #79771.
17604         - Reworked ArrangeIconicWindows. Current algorithm
17605         tests bounds agains all other minimized windows, if
17606         any intersections create new bounds (going left to 
17607         right, bottom to top) and then test again. When 
17608         successful the bounds are saved and never computed
17609         again. Fixes #79774.
17610
17611 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
17612
17613         * InternalWindowManager.cs: Added HandleTitleBarUp.
17614
17615 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
17616
17617         * NumericUpDown.cs: In .NET 1.1, user entered text is still
17618         hexadecimal in ParseUserEdit.
17619
17620         
17621 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
17622
17623         * MdiWindowManager.cs: 
17624         - Handle a click on the form's icon to show the 
17625         system menu (when maximized). Fixes #79775.
17626         - Change the existing click handler for the form's
17627         icon when not maximized to show on MouseUp.
17628         Fixes #79776.
17629
17630         * Form.cs: In OnResize only layout the mdi child's
17631         parent if it actually has a parent. Might not if
17632         the window is closing.
17633
17634
17635 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
17636
17637         * MdiClient.cs: Ignore active MDI client for text of parent, if
17638         child has no text set.
17639
17640 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
17641
17642         * ToolBar.cs: Fixed ToString to match MS.
17643
17644 2006-11-22  Andreia Gaita  <avidigal@novell.com>
17645
17646         * NumericUpDown: 
17647         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
17648         update inner values on set. Fixes #79966.
17649         - Override OnLostFocus to update value on NET 2. Fixes #79950.
17650         - Fix hexadecimal parsing.
17651         
17652         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
17653         parent. Fixes #79957
17654
17655 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17656
17657         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
17658         the actual size has to be queried, since if height /
17659         width is negative Win32 changes it to 0. 
17660         Fixes #79999 on Windows.
17661         
17662         * XplatUIX11.cs: Set height / width to 0 if negative
17663         in SetWindowPos. Fixes #79999 on Linux.
17664         
17665 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
17666
17667         * ThemeWin32Classic.cs: Fix text redenring when button is
17668         pressed.
17669
17670 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
17671
17672         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
17673         and later navigate by mouse. Fixes #79528.
17674
17675 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
17676
17677         * ToolBar.cs: Set default value for TabStop to false in
17678         constructor, it fixes remaining behavior of bug #79863.
17679
17680 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17681
17682         * MdiWindowManager.cs:
17683         * InternalWindowManager.cs:
17684         - Moved a few methods specific to Mdi from 
17685         InternalWindowManager to MdiWindowManager.
17686         Fixes #79996.
17687         
17688 2006-11-21  Chris Toshok  <toshok@ximian.com>
17689
17690         * XplatUIOSX.cs: stub out InvalidateNC.
17691
17692         * XplatUIWin32.cs: implement InvalidateNC using the call I found
17693         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
17694
17695         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
17696
17697         * XplatUIDriver.cs: add InvalidateNC abstract method.
17698
17699         * XplatUI.cs: add InvalidateNC.
17700
17701 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
17702
17703         * ToolBar.cs: Invalidate complete button area when pressed status 
17704         was changed.
17705         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
17706         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
17707         by 1 when button is pressed.
17708
17709 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
17710
17711         * ToolButton.cs: Invalidate middle of DropDown button when
17712         ToolBar theres DropDownArrows.
17713         * ThemeWin32Classic.cs: Change position of DropDown arrow and
17714         fix DropDown drawing operations.
17715
17716 2006-11-20  Chris Toshok  <toshok@ximian.com>
17717
17718         * NativeWindow.cs: fix the formatting of functions ('{' on the
17719         following line), and enable the thread exception dialog.
17720
17721         * Application.cs: remove the duplicate exception catching from
17722         here.
17723
17724 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
17725
17726         * Toolbar.cs: Triggers button click event when click on icon
17727         of dropdown ToolBarButton. Fixes #79912.
17728         
17729 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17730
17731         * Theme.cs:
17732         * ThemeWin32Classic.cs:
17733         - Added a property WindowBorderFont to enable themeing
17734           of mdi child windows' Text.
17735           
17736 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17737
17738         * InternalWindowManager.cs:
17739         * Form.cs:
17740         * MdiClient.cs:
17741         * MdiWindowManager.cs: 
17742         - If mdi child is maximized, set mdi parent's
17743           text to "Parent - [Child]". Fixes #79770.
17744         - If there is any maximized mdi child windows, only the active 
17745           window (and any new windows) is maximized, the rest are normal.
17746         - On a WindowState change only save mdi child's window bounds 
17747           if the old window state was normal. Fixes #79774.
17748         - The scroll bars are now calculated on hopefully all
17749           necessary events. Fixed #79771 / #79844->6 / #79906.
17750         - MdiClient.SizeScrollBars() now takes into account docked 
17751           controls in the parent when calculating available space.
17752         - InternalWindowManager now always repaints the entire title
17753           area. Fixes #79844->1/4/5.
17754         - Added RequestNCRecalc on mdi child windowstate changes.
17755           Fixes #79772.
17756
17757 2006-11-20  Mike Kestner  <mkestner@novell.com>
17758
17759         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
17760         in the MouseUp handler of the listbox and move the return handling
17761         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
17762
17763 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
17764
17765         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
17766
17767 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
17768
17769         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
17770           working in 1.2.x anymore. So, updated.
17771
17772 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
17773
17774         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
17775         NumberGroupSeparator of current culture instead of assuming en-US.
17776         Fixed bug #79967.
17777
17778 2006-11-17  Mike Kestner  <mkestner@novell.com>
17779
17780         * Control.cs: Add the concept of implicit bounds setting so that
17781         dock/undock round trips preserve explicitly set size/locations.
17782         Fixes #79313.
17783
17784 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
17785
17786         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
17787           can't handle those filters. (Fixes bug #79961)
17788
17789 2006-11-17  Chris Toshok  <toshok@ximian.com>
17790
17791         [ fixes the exit/crashes associated with #79835.  it's clearly
17792         suboptimal though, we need to figure out a better way to solve
17793         this. ]
17794         
17795         * PrintPreviewControl.cs: deal with the new invalid printer
17796         exceptions.
17797
17798         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
17799         and return false (so CommonDialog.ShowDialog doesn't actually show
17800         the form.)
17801
17802         * PrintDialog.cs: enable/disable the Ok button depending on
17803         whether or not the printer is valid.
17804
17805         * CommonDialog.cs (ShowDialog): only actually show the form if
17806         RunDialog returns true.
17807
17808 2006-11-17  Jackson Harper  <jackson@ximian.com>
17809
17810         * TextControl.cs: When soft splitting a line, mark it as a soft
17811         split line. Also carry over the current line break to the next
17812         line.
17813
17814 2006-11-17  Chris Toshok  <toshok@ximian.com>
17815
17816         * XplatUIX11.cs: when scrolling a window with an invalid area, we
17817         only want to shift the part of the invalid area that overlaps the
17818         area we're scrolling.  we also don't want to clear the invalid
17819         area unless the invalid area was entirely contained within the
17820         scrolling area.
17821
17822 2006-11-16  Chris Toshok  <toshok@ximian.com>
17823
17824         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
17825         also make sure to free the memory returned by XGetWindowProperty
17826         in GetText().
17827
17828         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
17829
17830 2006-11-16  Chris Toshok  <toshok@ximian.com>
17831
17832         * XplatUI.cs: add a new super secret way to get at the totally
17833         unsupported X11 backend.
17834
17835 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
17836
17837         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
17838
17839 2006-11-16  Jackson Harper  <jackson@ximian.com>
17840
17841         * TreeView.cs: Allow more explicit setting of top node position
17842         for scrollbars. Slower algo, but more accurate.
17843         - CollapseAll should maintain the current top node.
17844         * TextBoxBase.cs: When positioning the caret, use the line, pos
17845         method, since the x, y method does not grab the correct tag, and
17846         the caret height never gets set correctly. (Maybe I should just do
17847         away with the caret having its own height, and always use the
17848         carets current tag for height).
17849
17850 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
17851
17852         [Fixes 79778, 79923]
17853
17854         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
17855         Parent to the FosterParent instead.
17856
17857 2006-11-16  Jackson Harper  <jackson@ximian.com>
17858
17859         * TreeView.cs: Need to recalc the topnode when we expand or
17860         collapse. The scrolling methods can't handle this on their own,
17861         since they use differences between the last scroll position, and
17862         those difference get completely messed up since we are expanding
17863         nodes.  This problem should probably be fixed in the scrolling
17864         methods, so they can figure out exactly where they are, but this
17865         will slow things down a little.
17866         * ThemeWin32Classic.cs: Special case for groupboxes with empty
17867         strings, makes nunit-gui look a lot nicer.
17868
17869 2006-11-16  Chris Toshok  <toshok@ximian.com>
17870
17871         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
17872         the broken multithreaded event handling we have in here.  File
17873         this entry under "Why we should move to the new X11 backend".
17874
17875         Any thread can make it into UpdateMessageQueue, which gets events
17876         from the X socket - some of which could belong to hwnds being
17877         managed by a different thread.  We can also have multiple threads
17878         in UpdateMessageQueue at the same time, with each one reading from
17879         the X socket.  This leads to many problems, with the following
17880         solutions:
17881
17882         We can't use hwnd.Queue.Enqueue anywhere in here and must use
17883         EnqueueLocked.
17884
17885         The MotionNotify compression we do can't work across threads
17886         (without locking the entire queue, perhaps) since we call
17887         hwnd.Queue.Peek, so we just punt and don't compress motion events
17888         unless the owning thread is the one which got the X event.
17889
17890         ConfigureNotify is another fun one, since it modifies the hwnd's
17891         bounds and then enqueues the event.  We add a lock to Hwnd which
17892         is held when setting configure_pending to true (and enqueuing the
17893         event).
17894
17895         There is a race wrt the wake socket.  we need to make sure that
17896         only 1 thread is waiting on that socket, or else a thread could
17897         sleep waiting for data that never comes.  It's difficult (but not
17898         impossible) to make happen, because it seems to require something
17899         like the following:
17900
17901             1. Thread 1 polls on wake_receive
17902         
17903             2. poll returns saying there's data to be read on
17904                wake_receive.
17905         
17906             3. Thread 2 polls on wake_receive and immediately returns
17907                saying there's data to be read.
17908
17909             4. Thread 2 reads the wakeup byte from wake_receive
17910
17911             5. Thread 1 attempts to read the wakeup byte from
17912                wake_receive.
17913
17914             6. Thread 2 exits (due to a form closing, perhaps).
17915
17916             7. Thread 1 blocks forever.
17917         
17918         Fun, eh?
17919
17920         Fixing the Expose handling isn't done yet, and the races inherent
17921         in that piece of code are responsible for the drawing mistakes you
17922         see when generating expose events in a MT app (like NPlot).  This
17923         one is the likely to be the hardest to bandaid, and it doesn't
17924         appear to cause anything but drawing problems.  The other issues
17925         caused apps to exit or hang.
17926
17927         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
17928         called from a different thread than the one that should be calling
17929         these functions.
17930
17931         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
17932
17933 2006-11-15  Chris Toshok  <toshok@ximian.com>
17934
17935         * Application.cs: null out the context's MainForm when we exit
17936         RunLoop.  Fixes a newly checked in unit test as well as the last
17937         ODE from bug #79933.
17938
17939 2006-11-15  Chris Toshok  <toshok@ximian.com>
17940
17941         * Form.cs (set_Owner): allow a null value so we can clear the
17942         form's owner.
17943         (Dispose): set all our owned_form's Owner properties to null, and
17944         clear the owned_forms collection.
17945         (WM_CLOSE): clean up this a little bit.. still not right though.
17946
17947         * ApplicationContext.cs: OnMainFormClosed should only call
17948         ExitThreadCore if the main form isn't recreating.  Fixes unit
17949         test.
17950
17951 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
17952
17953         [Fixes 78346]
17954
17955         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
17956
17957 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
17958
17959         [Fixes 79433]
17960
17961         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
17962         keep popup window types from stealing focus from the main form
17963         on Windows.
17964
17965         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
17966
17967         * MenuAPI.cs: Set above flag to true.
17968
17969 2006-11-15  Chris Toshok  <toshok@ximian.com>
17970
17971         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
17972         the button being released is not in wParam.
17973
17974 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
17975
17976         * Form.cs: Add the released button to MouseEventArgs.Button
17977         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
17978         on Win32.
17979
17980 2006-11-15  Chris Toshok  <toshok@ximian.com>
17981
17982         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
17983         GetText().  untested because it's unused in our implementation.
17984         Control.Text always caches the text, even if
17985         ControlStyles.CacheText is not set.
17986
17987         fixes bug #79939.
17988
17989 2006-11-15  Chris Toshok  <toshok@ximian.com>
17990
17991         [ fixes #79933 ]
17992         
17993         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
17994         message.  no hiding, no disposing.
17995
17996         in the WM_CLOSE handler, hide the form if it's modal.
17997
17998 2006-11-15  Chris Toshok  <toshok@ximian.com>
17999
18000         * XplatUIX11.cs: use AddExpose instead of sending a message.
18001         fixes textbox border drawing.
18002
18003 2006-11-15  Chris Toshok  <toshok@ximian.com>
18004
18005         * PropertyGridView.cs: keep from crashing on mouse move/down when
18006         the property grid is empty.
18007
18008 2006-11-14  Jackson Harper  <jackson@ximian.com>
18009
18010         * TextControl.cs: Make PageUp and PageDown more like the MS
18011         versions.
18012         * TextBoxBase.cs: When we set the text property position the
18013         cursor at the beginning of the document.
18014
18015 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18016
18017         * Form.cs: if a mdi child's WindowState has changed
18018         before it's creation, it would display wrong control
18019         buttons.
18020         
18021 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
18022
18023         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
18024           (Fixes bug #79927)
18025
18026 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
18027
18028         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
18029         the window gets to paint its borders even if the window is
18030         getting smaller.
18031         
18032         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
18033         otherwise the old control buttons would still be painted 
18034         if the window gets bigger.
18035         
18036         * PaintEventArgs.cs: add an internal method so that the clip 
18037         rectangle can be changed.
18038         
18039 2006-11-13  Chris Toshok  <toshok@ximian.com>
18040
18041         [ fixes bug #79745 ]
18042         
18043         * NotifyIcon.cs: lots of cleanup.
18044
18045         * X11Structs.cs: add an enum for XEMBED messages.
18046
18047         * XplatUIX11.cs: reindent one of the giant switch statements, it
18048         was taking up an additional tab stop, and this file is already way
18049         too wide for my laptop's screen.
18050
18051         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
18052         we get it, resize the hwnd to the WMNormalHints max_width/height.
18053
18054 2006-11-13  Jackson Harper  <jackson@ximian.com>
18055
18056         * TextBoxBase.cs: Compute the value changes for the mouse wheel
18057         teh simple way.
18058
18059 2006-11-13  Chris Toshok  <toshok@ximian.com>
18060
18061         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
18062         #79898.  force a reference to the Region to stick around so the
18063         unmanaged object isn't collected (rendering our handle in the MSG
18064         stale).
18065
18066 2006-11-13  Chris Toshok  <toshok@ximian.com>
18067
18068         * XplatUIX11.cs: fix #79917 for window managers which support
18069
18070         using XStoreName on the raw utf8, and we need to convert to
18071         COMPOUND_TEXT if it's non-latin1.
18072
18073 2006-11-13  Chris Toshok  <toshok@ximian.com>
18074
18075         * Form.cs (set_DialogResult): we need to set closing to false if
18076         we're setting our result to None.  fixes bug #79908.
18077
18078 2006-11-13  Jackson Harper  <jackson@ximian.com>
18079
18080         * TextControl.cs: When formatting text, compute the adjusted tag
18081         lengths correctly, using FindTag for the end tag instead of trying
18082         to figure it out outselves.
18083         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
18084         the item, ItemHeight doesn't work, because trees with large
18085         imagelists use those for their height
18086         * TreeView.cs: ActualItemHeight factors in the image height
18087         - compute left edge of checkboxes correctly
18088         - when expanding/collapsing move the bottom down one pixel, so we
18089         aren't moving part of the node
18090
18091 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18092
18093         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
18094         stack in PaintEventStart so that it won't get disposed by the gc
18095         before reaching PaintEventEnd.
18096
18097 2006-11-13  Jackson Harper  <jackson@ximian.com>
18098
18099         * TextBoxBase.cs: Don't select the word if we are on a line with
18100         no text.
18101         - We don't need to position the caret on mouse up, since the mouse
18102         move handler should be doing this
18103         - When double clicking a blank line, the caret is advanced to the
18104         next line.
18105
18106 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
18107
18108         * TreeNodeCollection.cs: Avoid duplicating indexer code.
18109
18110 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
18111
18112         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
18113         Fixes part of bug #79910.
18114
18115 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
18116
18117         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
18118           (bug #79903). Some minor string updates to match ms.
18119
18120 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
18121
18122         * FileDialog.cs: Don't add an extension if the filename
18123           already ends with that extension.
18124
18125 2006-11-10  Jackson Harper  <jackson@ximian.com>
18126
18127         * TreeView.cs: Use the currently highlighted node for the
18128         BeforeSelect event.
18129         * TextBoxBase.cs: There is no need to expand selection on
18130         MouseMove.
18131         - CanUndo means 'is there any undo operations', not 'is undo
18132         allowed on this textcontrol. Fixed ClearUndo unit test.
18133
18134 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
18135
18136         * Button.cs: only perform click when button is Selectable (so as 
18137         not to activate default buttons when they're disabled)
18138         
18139         * Control.cs: Rewrite of the SelectNextControl and related 
18140         methods. HandleClick now selects next control if the current one
18141         is being disabled.
18142         
18143         * Form.cs: OnActivated selects next active control only if Load 
18144         has already occurred. If Load hasn't run, there's no point in 
18145         selecting here, Load might change the state of controls.
18146         
18147         * FocusTest.cs: Tests marked as working again for these fixes
18148
18149 2006-11-10  Chris Toshok  <toshok@ximian.com>
18150
18151         * XplatUIX11.cs: a couple of fixes.
18152
18153         - use XInternAtoms with almost all the atoms we need to register,
18154         instead of many, many calls to XInternAtom.  should help a bit on
18155         startup time, at the expense of making the code look a little
18156         worse.
18157
18158         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
18159         isn't reparented (which seems to be a clue that we're running fon
18160         compiz) and they have an Owner form.  This fixes the tool windows
18161         in paint.net when running under compiz.
18162
18163         - when setting the opacity of a window, support both the case
18164         where the window has been reparented and also when it hasn't been.
18165         Since compiz/beryl doesn't seem to reparent windows, and these are
18166         the only window managers which support translucency, I'm not sure
18167         why we need the hwnd.reparented case at all.. but leave it in.
18168         now we get translucent windows in paint.net under compiz/beryl.
18169
18170 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
18171
18172         * FileDialog.cs: Always return the value for FilterIndex that
18173           was set. Internally convert it to values that make sense.
18174
18175 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
18176         
18177         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
18178
18179 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
18180
18181         * Toolbar.cs: Change default value of DropDownArrows to true, the 
18182         signature still using false to make it compatible with MS but the 
18183         initial value is true. Fixes #79855.
18184
18185 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
18186
18187         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
18188           only available on Linux.
18189
18190 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
18191
18192         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
18193         reduce number of calls to redraw method during toolbar creation.
18194
18195 2006-11-09  Mike Kestner  <mkestner@novell.com>
18196
18197         * ListView.cs : raise SelectedIndexChanged when an item is selected
18198         programmatically via the Item.Selected property.  Gert's nice 
18199         ListViewSelectedIndexChanged test fixture now runs clean.
18200
18201 2006-11-09  Mike Kestner  <mkestner@novell.com>
18202
18203         * ListView.cs : raise SelectedIndexChanged when a selected item is
18204         removed from the item collection using Remove or RemoveAt.
18205
18206 2006-11-09  Mike Kestner  <mkestner@novell.com>
18207
18208         * ListView.cs : raise SelectedIndexChanged once per selected item
18209         for compat with MS.  Fixes #79849+.
18210
18211 2006-11-09  Chris Toshok  <toshok@ximian.com>
18212
18213         * TabControl.cs: initialize row_count to 0, and set it to 1 when
18214         we need to (if we have any tab pages).  Fixes unit test.
18215
18216 2006-11-09  Chris Toshok  <toshok@ximian.com>
18217
18218         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
18219         width is 0, not 3.  Fixes a unit test.
18220
18221 2006-11-09  Mike Kestner  <mkestner@novell.com>
18222
18223         * ListView.cs : use Implicit scrollbars so that focus isn't 
18224         stolen from the listview when they are clicked. Fixes #79850.
18225
18226 2006-11-09  Chris Toshok  <toshok@ximian.com>
18227
18228         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
18229         have a root item.  Fixes #79879.
18230
18231 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
18232
18233         * FileDialog.cs:
18234           - Fix ToString ()
18235           - An ArgumentException is now thrown if a wrong filter
18236             is applied (matches ms). The previous filter doesn't change
18237             anymore if an exception is thrown.
18238           - Changing the FileName property also affects FileNames
18239         * ColorDialog.cs: The length of the CustomColors array is always
18240           16. It doesn't matter if we use a smaller array or null to update
18241           or change the custom colors property.
18242         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
18243           for RootFolder if we get a undefined value.
18244
18245 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18246
18247         * StatusBarPanel.cs: 
18248         - Width is set to MinWidth if Width is smaller than
18249         MinWidth. Fixes #79842.
18250         - MinWidth now always overrides Width (MSDN says MinWidth
18251         is set to Width when AutoSize = None, but they do not 
18252         behave like that).
18253         - Style has now the the correct default value.
18254         
18255 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18256  
18257         * TrackBar.cs: 
18258         - The control is completely invalidated on 
18259         Got/LostFocus to draw the focus rectangle correctly.
18260         - When AutoSize then height is always 45 (width for 
18261         vertical controls).
18262         
18263         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
18264         on the mouse when moved and it doesn't move when grabbed
18265         until the mouse moves as well. Also fixed some wrong 
18266         calculations when clicking on the thumb (control thought
18267         click was outside of thumb and didn't grab it).
18268         Fixes some of the issues in #79718.
18269
18270 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
18271
18272         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
18273
18274 2006-11-08  Chris Toshok  <toshok@ximian.com>
18275
18276         * PropertyGridView.cs: only call ToggleValue if the item is not
18277         readonly.
18278
18279 2006-11-08  Jackson Harper  <jackson@ximian.com>
18280
18281         * TextBoxBase.cs: The RichTextBox and textbox have very different
18282         word selection methods.  Implement the textbox's simple word
18283         selection here, and let the RichTextBox override and provide it's
18284         own.
18285         - Don't do extra selection on mouseup
18286         * RichTextBox.cs: Use the documents word selection algorithm, I
18287         think ideally, this function will be pulled into the
18288         RichTextBox.cs code someday.
18289
18290 2006-11-08  Chris Toshok  <toshok@ximian.com>
18291
18292         * RootGridEntry.cs: new class to represent GridItemType.Root.
18293
18294         * CategoryGridEntry.cs: reformat, and add boilerplate.
18295         
18296         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
18297         returns the UI parent anyway, and we need special handling to
18298         implement the GetTarget method in the face of it.  Also, implement
18299         Select().
18300
18301         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
18302         a root grid item, and use that instead of PropertyGrid.grid_items.
18303         Also, make use of TypeConverters (and add limitted support for
18304         ICustomTypeDescriptors) when initially populating the grid.
18305         Arrays now show up more or less properly.
18306
18307 2006-11-08  Chris Toshok  <toshok@ximian.com>
18308
18309         * Application.cs: set the modal dialog to non modal after we close
18310         it.  Fixes bug #79866.
18311
18312 2006-11-08  Jackson Harper  <jackson@ximian.com>
18313
18314         * TextControl.cs: When combining lines carry over the line end
18315         style from the end line.
18316         - Invalidate the selected area when setting it, if it is visible.
18317         * TextBoxBase.cs: Only rich text box can do full line selects.
18318         - Make sure to set the cursor position when there is a click,
18319         otherwise two clicks in separate areas could cause a large chunk
18320         to be selected.
18321
18322 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
18323
18324         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
18325         Fixes #79863.
18326
18327 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
18328
18329         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
18330         time. Remove tooltips when ToolButton click events.  Fixes #79856.
18331
18332 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
18333
18334         * MenuAPI.cs: Ignore right click for menu actions and fixes
18335         menu border when clicked.  Fixes #79846.
18336
18337 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
18338
18339         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
18340         MouseState after create wParam for message, this fixes mouse button 
18341         equal none in mouse up events.
18342         
18343 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
18344
18345         * Control.cs : Focus() now calls Select to set the Container's
18346         Active Control and to give it focus. To avoid infinite recursion
18347         (because ActiveControl also calls Focus at one point), a check 
18348         is made in Focus with the help of a new internal variable
18349         is_focusing.
18350
18351 2006-11-07  Mike Kestner  <mkestner@novell.com>
18352
18353         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
18354         if there's a selection.  Fixes #79849.
18355
18356 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
18357
18358         * PropertyGrid.cs: Avoid fixed height of help description label.
18359         Fixes part of bug #79829.
18360
18361 2006-11-07  Chris Toshok  <toshok@ximian.com>
18362
18363         * XplatUIX11.cs: fix #79790 again, by using the
18364         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
18365
18366 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
18367
18368         * ToolBar.cs: Fix left click checking.
18369
18370 2006-11-07  Chris Toshok  <toshok@ximian.com>
18371
18372         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
18373
18374 2006-11-07  Chris Toshok  <toshok@ximian.com>
18375
18376         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
18377         PropertyManager unit tests.
18378
18379         * PropertyManager.cs: make property_name internal.
18380
18381 2006-11-07  Chris Toshok  <toshok@ximian.com>
18382
18383         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
18384         pass a unit test.  Also, don't set image_index to anything in
18385         response to setting the ImageList property.
18386
18387 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
18388
18389         * ToolBar.cs: Ignore click events when mouse button is not a
18390         left button, only accepts other button for dropdown menus.  
18391         Fixes #79854.
18392
18393 2006-11-07  Chris Toshok  <toshok@ximian.com>
18394
18395         * DataGrid.cs: make the back and parent row buttons a little less
18396         ugly.
18397
18398 2006-11-07  Jackson Harper  <jackson@ximian.com>
18399
18400         * TextBoxBase.cs: When converting to Text don't put line breaks in
18401         for soft line breaks.
18402         * TextControl.cs: There is an initial "fake" line in the document,
18403         this is now a soft break line, so that an extra line feed doesn't
18404         get added to the end of documents.
18405
18406 2006-11-07  Chris Toshok  <toshok@ximian.com>
18407
18408         [ fix bug #79778 ]
18409         
18410         * CurrencyManager.cs: if the list is readonly, don't bother
18411         checking if IBindingList.AllowNew is true.
18412
18413         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
18414         for non-DataRowView datasources..  or rather, make it not crash.
18415         (DataGridPaintRelationRow): make sure we limit the row painting to
18416         the area not covered by the row header, and make our cell width at
18417         least large enough to cover the relation area.  This allows grids
18418         that have relations but no rows to render correctly.
18419         (DataGridPaintRowContents): same type of changes here.
18420         (SetDataSource): move back to always calling
18421         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
18422         navigating back through relations.
18423         (HitTest): handle the case where we have no cells but have
18424         relations.  Right now we generate a hit in cell 0 of whatever the
18425         row is, not sure if this is strictly correct, but it works for our
18426         purposes.
18427         
18428         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
18429         bother doing anything.
18430
18431 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
18432
18433         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
18434         early version of StatusStrip.  Not responsible for eaten
18435         application or firstborn children.
18436
18437 2006-11-06  Chris Toshok  <toshok@ximian.com>
18438
18439         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
18440         call GetTabRect with a -1 index.  Fixes #79847.
18441
18442 2006-11-06  Jackson Harper  <jackson@ximian.com>
18443
18444         * TreeNodeCollection.cs: Update scrollbars after clearing.
18445
18446 2006-11-06  Chris Toshok  <toshok@ximian.com>
18447
18448         * NumericUpDown.cs: fix the ToString method for some unit test
18449         love.
18450
18451 2006-11-06  Chris Toshok  <toshok@ximian.com>
18452
18453         * PropertyGrid.cs:
18454         - set the initial SelectedGridItem if we can.
18455
18456         - Exclude non-mergable properties only if we're merging > 1
18457         object.  Merging 1 object isn't really merging, obviously.
18458
18459         - Handle PropertySort.NoSort just like Alphabetical, which is
18460         wrong of course, but at least gets things on the screen.
18461         
18462         * PropertyGridView.cs:
18463         - Add method "FindFirstItem" which finds the first property grid
18464         item, so we can select it by default.
18465
18466         - make use of GridEntry.CanResetValue.
18467
18468         - Don't call RedrawBelowItemOnExpansion here anymore, the
18469         individual GridEntry's will do that.
18470
18471         - Remove the ITypeDescriptorContextImpl internal class.
18472         
18473         * GridEntry.cs:
18474         - this class needs to implement ITypeDescriptorContext, as it's
18475         what MS's PropertyDescriptorGridEntry does, which means we can
18476         remove the ITypeDescriptorContextImpl internal class from
18477         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
18478
18479         - keep a reference to our PropertyGridView, and move the call to
18480         RedrawBelowItemOnExpansion here from PGV.  This means
18481         programmaticly setting Expanded actually does something visible.
18482
18483         - add a CanResetValue() function which takes into account our
18484         possibly multiple "selected_objects" in the merged case.  Shifting
18485         PropertyGridView to use this method fixes another unreported
18486         crasher found running the test for #79829.
18487
18488         - when Top or Bounds is updated, make sure the PropertyGridTextBox
18489         is updated to reflect this.
18490
18491         * CategoryGridEntry.cs: the ctor takes the PGV now.
18492         
18493 2006-11-06  Jackson Harper  <jackson@ximian.com>
18494
18495         * TextControl.cs: These are 1 based.
18496         * TextBoxBase.cs: When setting the selected text, don't change the
18497         selected text tags, this is done by ReplaceText, just position the
18498         cursor at the end of the new text.
18499
18500 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
18501
18502         * ListView.cs: Allow label edit only when, when LabelEdit is
18503           set to true.
18504
18505 2006-11-06  Jackson Harper  <jackson@ximian.com>
18506
18507         * TextControl.cs: If a suitable wrapping position isn't found,
18508         just wrap right in the middle of a word.
18509
18510 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
18511
18512         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
18513           bug #79820.
18514
18515 2006-11-06  Jackson Harper  <jackson@ximian.com>
18516
18517         * TreeView.cs: Can't use the VisibleCount property when setting
18518         scrollbar heights, because this doesn't take into account whether
18519         or not the horz scrollbar just came visible.
18520
18521 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
18522
18523         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
18524         activated.  Fixes #79369, #79832.
18525
18526 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
18527
18528         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
18529           had to remove support for links that point to a directory. FileInfo
18530           returns no usefull information (means, the directory they point to)
18531           for such links. Replaced some empty string ("") with String.Empty.
18532
18533 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
18534
18535         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
18536         NullReferenceException when attempting to remove node that is not in
18537         collection. Throw NullReferenceException when null is passed to 
18538         Remove. Allow first element of the collection to be removed. Fixes
18539         bug #79831.  In GetEnumerator ().Current return null if positioned 
18540         before the first element of the collection. In GetEnumerator ().Reset,
18541         position before first element of the collection.
18542
18543 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
18544
18545         * PropertyGrid.cs: To match MS, remove default title and description
18546         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
18547         buttons.
18548
18549 2006-11-04  Chris Toshok  <toshok@ximian.com>
18550
18551         * Theme.cs: add a Clamp method, just for kicks.
18552
18553         * ThemeWin32Classic.cs: clamp all color components to [0..255].
18554
18555 2006-11-04  Chris Toshok  <toshok@ximian.com>
18556
18557         * Form.cs: if the form isn't visible, Close() does nothing.
18558
18559 2006-11-03  Chris Toshok  <toshok@ximian.com>
18560
18561         * Form.cs (Close): if the form is modal, don't Dispose of it, only
18562         Hide it.
18563         (WndProc): don't Dispose after handling the WM_CLOSE message.
18564
18565         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
18566         them as such, instead of using casts from Control to Form.  Also,
18567         don't Dispose of the modal dialog when we fall out of the loop -
18568         Close() it instead.
18569
18570         fixes bug #79813.
18571
18572 2006-11-03  Chris Toshok  <toshok@ximian.com>
18573
18574         * Control.cs (Dispose): only go through the dispose thing if we're
18575         @disposing, and we haven't already been disposed.  Fixes bug
18576         #79814.
18577
18578         * Form.cs: no reason to call "base.Dispose()" here instead of
18579         "Dispose()".
18580
18581 2006-11-03  Mike Kestner  <mkestner@novell.com>
18582
18583         * ComboBox.cs : use ToString instead of casts in AddItem for
18584         sorting functionality.  Fixes #79812.
18585
18586 2006-11-03  Chris Toshok  <toshok@ximian.com>
18587
18588         * Application.cs: pave the way for actually using the thread
18589         exception dialog.  it's ifdefed out at the moment.
18590
18591 2006-11-03  Chris Toshok  <toshok@ximian.com>
18592
18593         * ThreadExceptionDialog.cs: until we get a better layout, actually
18594         hide the details textbox and label when we shouldn't see them.
18595
18596 2006-11-03  Jackson Harper  <jackson@ximian.com>
18597
18598         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
18599         multiline textboxes anymore.  This method also determines the
18600         width/height of a textboxes canvas area.
18601         - Sorta a revert of the last patch.  For multiline just position
18602         the controls, then bail.  This way the scrollbar width won't be
18603         altered.
18604
18605 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
18606
18607         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
18608         it dont need.  Fixes #79537.
18609
18610 2006-11-02  Jackson Harper  <jackson@ximian.com>
18611
18612         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
18613         send the status after firing the DndOver event.
18614
18615 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18616
18617         * TrackBar.cs: Now orientation only switches height / width if
18618         the control's handle is created (Win32 does it like this). Also 
18619         fixed a typo in ToString() for a test to pass, changed the 
18620         exception thrown in set_LargeChange and set_SmallChange to 
18621         match Win32 behaviour, and added TrackBar tests to the unit 
18622         tests.
18623
18624 2006-11-02  Chris Toshok  <toshok@ximian.com>
18625
18626         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
18627         not _NET_WM_STATE_NO_TASKBAR.
18628
18629 2006-11-02  Jackson Harper  <jackson@ximian.com>
18630
18631         * TextControl.cs: Increment count by one, since in the update view
18632         count - 1 is used.
18633
18634 2006-11-02  Jackson Harper  <jackson@ximian.com>
18635
18636         * TextBoxBase.cs: Use client rectangle not bounds for checking if
18637         the mouse is in the client rectangle (duh).
18638
18639 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18640         
18641         * TrackBar.cs: Fixed trackbar jumping around when clicking
18642         on it - the trackbar was not detecting correctly at which
18643         side of the thumb the click was done. (fixes #79718)
18644
18645 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
18646
18647         * ListBox.cs: scroll visible area when change SelectedIndex to
18648         a non visible area.  Fixes #79481.
18649
18650 2006-11-01  Jackson Harper  <jackson@ximian.com>
18651
18652         * TextControl.cs: When replacing the selection move the selection
18653         start/end/anchor to the end of the new text.
18654
18655 2006-11-01  Jackson Harper  <jackson@ximian.com>
18656
18657         * XplatUIWin32.cs: When setting the parent change the controls
18658         visibility to it's visibility flag, not to it's old parents
18659         visibility (.Visible walks the parent chain).
18660
18661 2006-11-01  Chris Toshok  <toshok@ximian.com>
18662
18663         * XplatUIX11.cs: revert the #79790 fix, as the simple.
18664         XSetTransientForHint fix breaks paint .net's tool windows.  more
18665         work needed for that one.
18666
18667 2006-11-01  Chris Toshok  <toshok@ximian.com>
18668
18669         * ScrollBar.cs: throw ArgumentException instead of Exception in
18670         LargeChange/SmallChange setters.  fixes unit tests.
18671
18672 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
18673
18674         * ContainerControl.cs: reverted rev.67183 (which was itself
18675         a reversion of rev.66853... eh).
18676         
18677         * Control.cs: Fixes Reflector hang by changing Focus() call
18678         to what it was before rev.66643 (calling Select() here sets 
18679         ActiveControl, which in some situations calls back Focus and 
18680         eventually does a stack overflow). Temp fix.    
18681         Changes to GetNextControl() to not look for children to select when
18682         parent cannot be selectable (so it looks for siblings instead)  
18683         
18684 2006-10-31  Mike Kestner  <mkestner@novell.com>
18685
18686         * CheckedListBox.cs : off by one error in returned index from
18687         ObjectCollection.Add.  Fixes #79758.
18688
18689 2006-10-31  Chris Toshok  <toshok@ximian.com>
18690
18691         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
18692         calls for the textbox/spinner, to keep from recursing to the point
18693         where we crash.  Fixes #79760.
18694
18695 2006-10-31  Chris Toshok  <toshok@ximian.com>
18696
18697         * ListControl.cs (set_SelectedValue): don't throw exceptions on
18698         null/"" value, just return.  matches ms's behavior and fixes some
18699         failing tests.
18700
18701 2006-10-31  Chris Toshok  <toshok@ximian.com>
18702
18703         * Control.cs (set_Capture): make a logic a little easier to
18704         follow.
18705
18706         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
18707         if it's being destroyed.  A necessary fix surely, but a bandaid
18708         also, to fix the stuck capture problem in bug #78413.
18709
18710 2006-10-31  Chris Toshok  <toshok@ximian.com>
18711
18712         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
18713         convention of clearing hwnd.ClientRect when we set the
18714         width/height (so it'll be recalculated by Hwnd).
18715
18716 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
18717
18718         * ContainerControl.cs: reversed Contains check from
18719         ActiveControl due to hanging problems. This fix
18720         partly regresses #79667 (button does not have
18721         initial focus), so this might be a symptom for 
18722         a larger parenting problem (set_ActiveControl
18723         is being called but the child control does
18724         not have the parent set yet?)   
18725         
18726 2006-10-31  Mike Kestner  <mkestner@novell.com>
18727
18728         * MenuAPI.cs : fix keynav when menu is click activated.
18729
18730 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
18731
18732         * ToolStrip*: Version 0.2.
18733
18734         * MenuStrip.cs: Version 0.1.
18735
18736         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
18737
18738 2006-10-30  Chris Toshok  <toshok@ximian.com>
18739
18740         [ fixes the oversized notify icon issue in bug #79745 ]
18741         
18742         * NotifyIcon.cs: scale the icon down to the size we're given by
18743         the XplatUI layer (this would be faster if we did it once instead
18744         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
18745         since it's never invoked.
18746
18747         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
18748         pixels high by default, so let's hardcode our systray icon to that
18749         size.  The SYSTEM_TRAY protocol should really have a way for
18750         client apps to query for the correct icon size.. but oh well.  A
18751         couple of patches to deal with the screwy client_window ==
18752         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
18753         instance, and also make sure we don't XSelectInput twice).
18754
18755 2006-10-30  Chris Toshok  <toshok@ximian.com>
18756
18757         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
18758         recreating forms.  Control recreation is the bane of my existence.
18759         Fix it in a way that keeps everyone happy.
18760
18761 2006-10-30  Chris Toshok  <toshok@ximian.com>
18762
18763         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
18764         just non-CHILD ones.  otherwise sometimes scrollbars end up with
18765         client_windows not being resized to the proper size (ReportBuilder
18766         shows this extremely well).
18767
18768 2006-10-30  Chris Toshok  <toshok@ximian.com>
18769
18770         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
18771         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
18772         showing up in the gnome taskbar.  Fixes bug #79790.
18773
18774 2006-10-30  Chris Toshok  <toshok@ximian.com>
18775
18776         * ApplicationContext.cs: guard against a NRE.
18777
18778         * Application.cs: null out the old MainForm for the context, so we
18779         don't try to use it again once it's disposed.  Fixes bug #79783.
18780
18781 2006-10-30  Chris Toshok  <toshok@ximian.com>
18782
18783         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
18784         BindingContext, set the data source directly, otherwise do the
18785         lazy approach - the actual ListManager will be created when we get
18786         a BindingContext. Fixes bug #79700.
18787
18788 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
18789
18790         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
18791           XplatUIX11.cs: Remove old 2 parameter SetVisible.
18792
18793         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
18794
18795 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
18796
18797         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
18798         of SetVisible that allows a window to be shown, but not activated.
18799         This is needed on Windows for MenuStrip, and can probably be used
18800         with MainMenu and ComboBox to fix the focus stealing issues on
18801         Windows.
18802
18803         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
18804
18805 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
18806
18807         * PictureBox.cs: Fix the output of the ToString method.
18808
18809 2006-10-29  Chris Toshok  <toshok@ximian.com>
18810
18811         * Control.cs (get_TopLevelControl): fix bug #79781.
18812
18813 2006-10-29  Chris Toshok  <toshok@ximian.com>
18814
18815         * ListControl.cs (set_DataSource): throw Exception here, not
18816         ArgumentException, to match MS behavior.
18817
18818 2006-10-29  Chris Toshok  <toshok@ximian.com>
18819
18820         * Form.cs: remove the try-catch's around calls to GetWindowState.
18821         We can just check the return value.
18822
18823         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
18824         Instead return -1.
18825
18826         * XplatUI.cs: Add note about additional return value for
18827         GetWindowState.
18828
18829 2006-10-29  Chris Toshok  <toshok@ximian.com>
18830
18831         * Control.cs (CreateHandle): when we create our handle, we also
18832         create the handles of our child controls.  Fixes one of the
18833         Control unit tests (CH11).
18834
18835 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
18836
18837         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
18838
18839 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
18840
18841         * ThemeClearlooks.cs: A little speedup.
18842
18843 2006-10-27  Chris Toshok  <toshok@ximian.com>
18844
18845         * Control.cs: implement Control.FromChildHandle in a way that
18846         matches the docs (and fixes the failed test.)
18847
18848 2006-10-27  Chris Toshok  <toshok@ximian.com>
18849
18850         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
18851         comments).
18852
18853         * DataGrid.cs: implement ResetForeColor such that the tests
18854         succeed.
18855         
18856 2006-10-27  Chris Toshok  <toshok@ximian.com>
18857
18858         * ToolBarButton.cs: setting text/tooltiptext to null results in it
18859         being set to "".  Fixes bug #79759.
18860
18861 2006-10-27  Jackson Harper  <jackson@ximian.com>
18862
18863         * TextControl.cs: We need to clear the entire selection area when
18864         setting the start, otherwise multiline selections are still
18865         visible.
18866
18867 2006-10-26  Chris Toshok  <toshok@ximian.com>
18868
18869         * PropertyGridView.cs: 
18870
18871         - ifdef all the code specific to the double
18872         buffer case, and provide some alternatives in the non-doublebuffer
18873         code, which makes heavy use of XplatUI.ScrollWindow to move things
18874         around without having to invalidate (and cause flicker).  There
18875         are still some drawing problems in the non-doublebuffered case, so
18876         DOUBLEBUFFER is defined by default.
18877
18878         - Fix the way dropdowns are handled.  now we explicitly watch for
18879         the events which might cause the dropdown to close, and break out
18880         of the nested event loop there.  This gets rid of all Capture
18881         code, at the expense of the Msg special casing.  Seems to work,
18882         though, and fixes bug #79743.
18883
18884 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
18885         * Control.cs: SetIsRecreating now recreates implicitly added
18886         child controls as well. Finally fixes #79629. The flag passed to 
18887         SetIsRecreating has also been removed since it wasn't used.
18888         
18889 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18890
18891         * PageSetupDialog.cs: Clean some code, fix some bits, 
18892         add some checks, and add a printer sub-dialog.
18893
18894 2006-10-26  Chris Toshok  <toshok@ximian.com>
18895
18896         * PropertyGrid.cs: make set_SelectedObject call
18897         set_SelectedObjects, and move the duplicate logic to the
18898         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
18899
18900         * PropertyGridView.cs: hide the textbox when we get a
18901         SelectedObjectsChanged event.
18902
18903         Fixes bug #79748.
18904
18905 2006-10-26  Chris Toshok  <toshok@ximian.com>
18906
18907         * PropertyGridView.cs: deal with the type converter not supporting
18908         GetStandardValues() or GetStandardValues() returning null, which
18909         is does in the default case.  Fixes #79742.
18910
18911 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
18912
18913         * CheckedListBox.cs: nunit no longer crashes when selecting 
18914         Project/Edit menu option
18915         
18916 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
18917
18918         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
18919         is no menu selected. fixes #79739
18920
18921 2006-10-25  Chris Toshok  <toshok@ximian.com>
18922
18923         * PropertyGridView.cs: factor out the splitter invalidation code
18924         into the SplitterPercent setter, and for kicks implement the
18925         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
18926         amount in either direction.
18927
18928 2006-10-25  Chris Toshok  <toshok@ximian.com>
18929
18930         * PropertyGridView.cs: do some cleanup of the brush used to draw
18931         text - read only fields should be grayed out.  not sure how to do
18932         this with the textbox, though.  but the textbox's should also be
18933         readonly now at least.  Also, hide/show the textbox when resizing
18934         the control.
18935         
18936         * CursorConverter.cs: use System.Reflection when getting the
18937         properties of Cursors, as TypeDescriptor.GetProperties isn't
18938         returning static properties.
18939
18940 2006-10-25  Chris Toshok  <toshok@ximian.com>
18941
18942         * PropertyGridView.cs: factor out the up/down handling, and reuse
18943         it for page up/down.  also add End/Home support.
18944
18945 2006-10-25  Chris Toshok  <toshok@ximian.com>
18946
18947         * PropertyGridView.cs:
18948
18949         - ensure the selected grid item is visible in the scrolled area,
18950         fixes bug #79572.
18951
18952         - fix Keys.Down handling when you're on the last item in the
18953         propertygrid.
18954
18955 2006-10-25  Mike Kestner  <mkestner@novell.com>
18956
18957         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
18958         clicks too.  Fixes #79725.
18959
18960 2006-10-24  Chris Toshok  <toshok@ximian.com>
18961
18962         * PropertyGrid.cs: use property.Converter instead of
18963         TypeDescriptor.GetConverter(property.PropertyType), so we catch
18964         TypeConverters declared on the property as well as on the
18965         PropertyType.  Fixes bug #79678.
18966
18967 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
18968
18969         * MimeIcon.cs, Mime.cs:
18970           Fallback to the default platform handler if no shared mime info
18971           stuff exists (fixes #79693).
18972
18973 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
18974         * ContainerControl.cs: Incorrect contains check in ActiveControl 
18975         from previous fix (duh).
18976
18977 2006-10-20  Chris Toshok  <toshok@ximian.com>
18978
18979         * PropertyGridView.cs: the dropdown should be MIN(number of items
18980         in list, 15).  Fixes #79551.
18981
18982 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
18983         Fixes #79384, #79394, #79652, #79667
18984         * Application.cs: 
18985         
18986         - Modal windows are now destroyed in the proper order for windows
18987         
18988         * ContainerControl.cs:
18989         
18990         - ActiveControl setter has more conditions on when to return:
18991                 - if we're reselecting the active control, but it actually
18992                 didn't have focus (window hidden or some such), it runs
18993                 - if the active control being selected doesn't actually 
18994                 exist in the container, it returns
18995         
18996         * Form.cs
18997         
18998         - The ShowDialog now gets the current form as the owner when
18999         invoking without parameters, and correctly activates the owner 
19000         when returning
19001         
19002         * MessageBox.cs
19003         
19004         - MessageBox now catches the Escape key to exit
19005
19006 2006-10-20  Chris Toshok  <toshok@ximian.com>
19007
19008         * PropertyGridView.cs: fix a number of issues (bug #78565, and
19009         most of bug #79676):
19010
19011         - you can navigate around the property grid with the arrow keys.
19012
19013         - the dropdown is sized properly when the pg has a vertical
19014         scrollbar.
19015
19016         - fix the indentation for subentries, and properly select the
19017         entire label rect.
19018
19019         - fix the gray bar's drawing (only draw it to the last element,
19020         not for the height of the control.  Also make sure we draw that
19021         last horizontal grid line.
19022
19023         - use the same mechanism the datagrid uses wrt the editing textbox
19024         when scrolling/resizing/etc.  Namely, we hide it first, do the
19025         operation, then show it again (if it's still visible).
19026         
19027         - aggressively remove a lot of unnecessary refreshes (and also
19028         calls to Invalidate(). call more limited variants, and only redraw
19029         what we need.)
19030         
19031         * PropertyGrid.cs:
19032
19033         - when we're populating the merged collection, fill in the UI
19034         parent with either the passed in item, or the category item we
19035         create.
19036
19037         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
19038
19039         * GridItem.cs: drop some fully qualified names.
19040         
19041         * GridEntry.cs: add a "UIParent", which is basically the parent
19042         treenode.
19043
19044         * GridItemCollection.cs: add an IndexOf method.
19045
19046 2006-10-20  Mike Kestner  <mkestner@novell.com>
19047
19048         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
19049         a working win32 NC invalidation mechanism, we can't invalidate
19050         menus.  [Fixes #79705]
19051
19052 2006-10-20  Mike Kestner  <mkestner@novell.com>
19053
19054         * ListBox.cs : don't update the VScrollbar if the list is empty,
19055         just hide it.  [Fixes #79692]
19056
19057 2006-10-20  Jackson Harper  <jackson@ximian.com>
19058
19059         * RichTextBox.cs: Handle some special chars better, and don't skip
19060         the entire group when we encounter a special char that we don't
19061         handle correctly.
19062
19063 2006-10-18  Chris Toshok  <toshok@ximian.com>
19064
19065         * PropertyGridView.cs: address a number of issues from bug #79676,
19066         mostly of the cosmetic variety.
19067
19068         - The highlight rectangle for indented items not extends all the
19069         way to the left.
19070
19071         - Indented items aren't indented so much.
19072
19073         - the dropdown is properly sized width-wise if the pg has a
19074         vertical scrollbar.
19075
19076 2006-10-18  Chris Toshok  <toshok@ximian.com>
19077
19078         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
19079         systray stuff is rather convoluted to begin with.
19080
19081         systray icons are a single window for some reason (that I haven't
19082         figured out yet), and for them, client_window == whole_window.
19083         Given the way the tests are structured elsewhere to determine
19084         which paints are pending (client vs. nc), that situation will
19085         always yield PAINT, not NCPAINT.  So, if we have a pending
19086         nc_expose and no pending expose, remove the hwnd from the paint
19087         queue, and also set nc_expose_pending to false, to keep us from
19088         blocking further expose's adding the hwnd to the paint queue.
19089
19090         phew.  like i said, a rather convoluted change.  Fixes the
19091         notifyicon repaint issues in bug #79645.
19092
19093 2006-10-18  Chris Toshok  <toshok@ximian.com>
19094
19095         * Form.cs: when getting the backcolor of the form, don't get
19096         base.BackColor, as this allows parents to influence the background
19097         color.  This breaks mdi forms.  Instead, if the background_color
19098         is empty, return the default.
19099
19100 2006-10-18  Chris Toshok  <toshok@ximian.com>
19101
19102         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
19103         to being private instead of internal static.
19104
19105         * Control.cs: remove all the stupid ParentWaitingOnRecreation
19106         crap, it wasn't working for more deeply nested controls anyway,
19107         and we already have the is_recreating flag - use that instead.
19108         Before calling DestroyHandle in RecreateHandle, recurse through
19109         the control tree setting it to true.  this returns the recreate
19110         code to much of its original simplicity, while now guaranteeing we
19111         actually recreate everything we're supposed to.  This change gets
19112         fyireporting actually showing mdi children.
19113
19114 2006-10-17  Chris Toshok  <toshok@ximian.com>
19115
19116         * Form.cs: remove some debug spew, and collapse some duplicate
19117         code at the end of SetClientSizeCore.
19118
19119         * XplatUIX11.cs: 
19120         - add some more debug spew here too wrt Destroy handling.
19121         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
19122         in Control's handling of WM_DESTROY.
19123         - Remove the handling of zombie window DestroyNotifies from the
19124         event loop - we don't need it.  Now the only DestroyNotifies we
19125         actually handle are ones generated by X.
19126         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
19127         match gtk's (functioning) handling of this. This keep metacity
19128         from leaving droppings in the form of wm borders with no window
19129         contents all over the place.
19130
19131         * Control.cs:
19132         - add a bunch of debug spew wrt control recreation.
19133         - fix a bug where we weren't tracking Visible properly on
19134         recreated hwnds.
19135         - fixed the WM_PAINT double buffer handling to support re-entrant
19136         calls (yes, i know it's gross, but it's happening to us).
19137
19138 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
19139         * ThemeWin32Classic.cs: changed drawing of selected days
19140         to make them look better.
19141
19142 2006-10-16  Chris Toshok  <toshok@ximian.com>
19143
19144         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
19145         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
19146
19147         * XplatUIX11.cs: move away from using hwnd.client_dc and
19148         hwnd.non_client_dc and on to a stack of dc's (and in window's
19149         case, PAINTSTRUCT's), so we can deal with nested Paint calls
19150         without puking or not disposing of Graphics objects.
19151
19152         * XplatUIOSX.cs: same.
19153
19154         * XplatUIWin32.cs: same.
19155
19156 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
19157
19158         * FileDialog.cs: Don't call on_directory_changed inside
19159           OnSelectedIndexChanged (it changes the SelectedIndex too).
19160           Instead move it to OnSelectionChangeCommitted.
19161
19162 2006-10-13  Chris Toshok  <toshok@ximian.com>
19163
19164         * XplatUIX11.cs: more Destroy work.  the current code does the
19165         following things, in order:
19166
19167         1. Enumerates all handles of all controls at or below the one
19168         being destroyed, in pre-order.  As it is doing this, it marks the
19169         handles as zombie and clears all references to them.
19170         
19171         2. calls XDestroyWindow on the window passed in.
19172
19173         3. SendMessage's WM_DESTROY to all he handles in the accumulated
19174         list.
19175
19176 2006-10-13  Chris Toshok  <toshok@ximian.com>
19177
19178         * XplatUIX11.cs: set hwnd.zombie to true before calling
19179         SendMessage (WM_DESTROY).  this keeps us from marking the new
19180         window a zombie, and also keeps us from calling sendmessage at
19181         all.
19182
19183 2006-10-13  Jackson Harper  <jackson@ximian.com>
19184
19185         * TextControl.cs: Do not show the caret and selection at the same
19186         time.  Reduces ugliness by 35%.
19187
19188 2006-10-13  Chris Toshok  <toshok@ximian.com>
19189
19190         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
19191         zombie after we do the recursive call, so we actually do call
19192         SendMessage on the children controls.
19193         (GetMessage): if we find a pending paint event for a zombie hwnd,
19194         remove the hwnd from the paint queue, or else it will always be
19195         there (and we'll effectively loop infinitely)
19196
19197 2006-10-13  Mike Kestner  <mkestner@novell.com>
19198
19199         * MenuItem.cs : add Selected format under keynav too.
19200         Fixes #79528.
19201
19202 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
19203
19204         * PropertyGrid.cs: Fixed some NRE's and small difference between our
19205         implementation and that of MS.
19206
19207 2006-10-13  Chris Toshok  <toshok@ximian.com>
19208
19209         * Control.cs (OnInvalidated) only futz with the invalid_region if
19210         the control is double buffered.  this fixes the apparent hang in
19211         the ListView unit tests.  Someone needs to make the
19212         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
19213
19214 2006-10-13  Chris Toshok  <toshok@ximian.com>
19215
19216         * PropertyGridView.cs:
19217
19218         - do a little refactoring so that only one place calls
19219         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
19220         else call that.  Also make it Refresh, since there are redraw bugs
19221         otherwise (we should take a look at that...)
19222
19223         - do a little more refactoring work to share the body of code
19224         involved with the drop down.  it was duplicated in the code
19225         dealing with the listbox handling and in the code dealing with the
19226         UITypeEditors.
19227
19228         - add a Capture to the dropdown form's control once it's
19229         displayed, and add a MouseDown handler that checks to make sure
19230         the position is inside the control.  If it's not, close the
19231         dropdown.  This fixes #78190.
19232
19233         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
19234         if the value is different than the initial value.
19235         
19236 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
19237
19238         * Control.cs: see #78650
19239         - Fixed GetNextControl for several cases:
19240                 - Changed FindFlatForward to return 
19241                 correct sibling control when more than one
19242                 control has same TabIndex as the currently 
19243                 focused one.
19244                 - Changed FindFlatBackward to loop children
19245                 from last to first and apply same logic as in
19246                 FindFlatForward
19247                 - Changed FindControlForward to search for
19248                 children when control is not a container
19249                 but has children, or search for siblings if
19250                 control is a container...
19251                 - Changed FindControlBackward   to continue
19252                 searching for child controls when hitting 
19253                 Panel-like parents
19254                 
19255         - Fixed Focus method to update ActiveControl
19256         (FocusTest.FocusSetsActive failure)
19257         
19258         * TabControl.cs:
19259         - Focus rectangle now refreshes when gaining
19260         or losing focus
19261         - Removed grab for Tab key on IsInputKey that 
19262         was keeping tab navigation from working (#78650)
19263
19264 2006-10-13  Chris Toshok  <toshok@ximian.com>
19265
19266         * PropertyGridView.cs:
19267         - Rewrite SetPropertyValue to loop over SelectedGridItem's
19268         SelectedObjects.
19269
19270         - Deal with GridItem.Value == null a few places.
19271
19272         * PropertyGrid.cs: 
19273         - replace the PopulateGridItemCollection with a pair of methods
19274         which compute the intersection of all the properties in the
19275         SelectedObjects array.  Fixes #79615.
19276
19277         - Throw ArgumentException from set_SelectedObjects if there's a
19278         null in the array.
19279
19280         - Add GetTarget method which can be used to traverse up the
19281         GridItem.Parent chain.  It depends on the assumption that
19282         selected_objects for different GridEntries are always in the same
19283         order (a safe assumption).  Use this method and loop over all the
19284         selected objects in the entry when calling RemoveValueChanged and
19285         AddValueChanged.
19286         
19287         * GridEntry.cs: Make this handle multiple selected objects.
19288         .Value returns null if not all the selected objects share the same
19289         value.
19290
19291 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
19292         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
19293           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
19294           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
19295           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
19296           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
19297         add additional functionality.
19298
19299 2006-10-12  Mike Kestner  <mkestner@novell.com>
19300
19301         * ErrorProvider.cs : new ToolTipWindow ctor sig.
19302         * HelpProvider.cs : new ToolTipWindow ctor sig.
19303         * ToolTip.cs : remove ToolTip param from Window sig since it is
19304         not used.
19305         * ToolBar.cs : add tooltip support.  Fixes #79565.
19306
19307 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
19308
19309         * ComboBox.cs: move the events in set_SelectedIndex to 
19310         after the call to HighlightIndex in order to avoid 
19311         possible recursion and subsequent problems with the call
19312         to HighlightIndex and include a range check in 
19313         set_HighlightIndex. Fixes #79588
19314         
19315 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
19316
19317         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
19318         to ui thread's settings instead of sunday. 
19319         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
19320
19321 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
19322
19323         * DateTimePicker.cs
19324         * MonthCalendar.cs
19325         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
19326         and implement missing functionality (selecting different parts 
19327         of the date and edit them individually with the keyboard).
19328         
19329 2006-10-11  Chris Toshok  <toshok@ximian.com>
19330
19331         * Control.cs (OnInvalidated): fix NRE relating to last change.
19332
19333 2006-10-11  Chris Toshok  <toshok@ximian.com>
19334
19335         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
19336         atoms in _NET_WM_STATE here if the window is maximized.  We need
19337         to do this because we're *replacing* the existing _NET_WM_STATE
19338         property, so those atoms will be lost otherwise, and any further
19339         call to GetWindowState will return Normal for a window which is
19340         actually maximized.  Fixes #79338.
19341
19342 2006-10-11  Jackson Harper  <jackson@ximian.com>
19343
19344         * TextControl.cs: Special case for setting selection end to
19345         selection start, we basically kill the anchor.
19346         - some todo comments.
19347
19348 2006-10-11  Chris Toshok  <toshok@ximian.com>
19349
19350         * Control.cs: switch to using an "invalid_region" to track which
19351         parts of the image buffer need updating.  This is more code than
19352         the simple fix from r66532.  That version just attempted to always
19353         fill the entire buffer on redraw, which turns out to be
19354         inefficient when invalidating small rectangles.  This version
19355         simply adds the invalid rectangle to the invalid region.  When we
19356         get any WM_PAINT message we see if it can be filled using the
19357         image buffer, and if it can't (if the paint event's clip rectangle
19358         is visible in the invalid region) we first fill the image buffer.
19359         So, the image buffer is still a cache, we just fill it lazily.
19360
19361         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
19362         need it any longer.
19363
19364 2006-10-11  Chris Toshok  <toshok@ximian.com>
19365
19366         * XplatUIX11.cs (SetWindowPos): we need to update both position as
19367         well as size after calling XMoveResizeWindow.  This keeps us from
19368         ignoring future SetWindowPos calls.  Fixes the disappearing
19369         DateTimePicker in the ToolBarDockExample from bug #72499.
19370
19371 2006-10-11  Chris Toshok  <toshok@ximian.com>
19372
19373         * TextBoxBase.cs: reorder things a bit when it comes to
19374         resizing-causing-recalculation.  we were recalculating the
19375         document when our position was changed, which shouldn't happen.
19376         We only care about size changes.  Clear up some more redundant
19377         recalculation calls while I'm at it.  This makes the toolbar dock
19378         example snappy when you're just dragging toolbars around (since it
19379         causes a relayout whenever you move one.)
19380
19381 2006-10-11  Chris Toshok  <toshok@ximian.com>
19382
19383         * ToolBarButton.cs (get_Rectangle): this only returns
19384         Rectangle.Empty if Visible == false, or Parent == null.
19385         Parent.Visible doesn't matter.
19386
19387 2006-10-10  Chris Toshok  <toshok@ximian.com>
19388
19389         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
19390         by .net 1.1, so switch to an internal method instead.
19391
19392 2006-10-10  Chris Toshok  <toshok@ximian.com>
19393
19394         * Control.cs (WM_PAINT): when a control is double buffered we draw
19395         initially to the ImageBuffer and then copy from there.  But when a
19396         parent control which has child controls is double buffered, the
19397         initial drawing doesn't encompass the entire ClientRectangle of
19398         the parent control, so we end up with uninitialized bits (this is
19399         easily seen by dragging the top toolbar in
19400         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
19401         manually set the ClipRectangle of the paint_event (only the one we
19402         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
19403         of the nastiness in bug #72499.
19404
19405         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
19406         which we use in Control.cs's WM_PAINT handling.
19407
19408 2006-10-10  Jackson Harper  <jackson@ximian.com>
19409
19410         * TextBoxBase.cs: Finish off the autoscrolling stuff.
19411
19412 2006-10-10  Chris Toshok  <toshok@ximian.com>
19413
19414         * Cursor.cs: Apply a slightly different patch to the one suggested
19415         in #79609.
19416
19417 2006-10-10  Jackson Harper  <jackson@ximian.com>
19418
19419         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
19420         not the parent form.
19421         * TextControl.cs: use difference in old line count vs new count to
19422         calculate how many lines were added, this takes into account soft
19423         line breaks properly.
19424
19425 2006-10-10  Chris Toshok  <toshok@ximian.com>
19426
19427         * LinkLabel.cs: don't call MeasureCharacterRanges against a
19428         rectangle located at 0,0 and the size of the text.  Use
19429         ClientRectangle instead.  This fixes rendering of non-left aligned
19430         link labels.
19431
19432 2006-10-10  Jackson Harper  <jackson@ximian.com>
19433
19434         * TextBoxBase.cs: When we set the selection start position the
19435         caret.
19436         * TextControl.cs: Need to update the caret when we decrement it to
19437         zero.
19438         - Make sure that the selection_visible flag gets reset to false if
19439         the selection isn't visible.  Before this you could get it set to
19440         visible by changing the selection start, then changing the end to
19441         equal the start.
19442
19443 2006-10-09  Jackson Harper  <jackson@ximian.com>
19444
19445         * TreeView.cs: Don't update scrollbars when we aren't visible.
19446         * TreeNodeCollection.cs: Only need to update scrollbars if being
19447         added to an expanded visible node or the root node.
19448
19449 2006-10-09  Chris Toshok  <toshok@ximian.com>
19450
19451         * XplatUIX11.cs (SendMessage): fix NRE.
19452
19453 2006-10-09  Jackson Harper  <jackson@ximian.com>
19454
19455         * TextBoxBase.cs: Implement horizontal autoscrolling.
19456         * TextControl.cs: Add a movement types that allows moving forward
19457         and backwards without wrapping.
19458
19459 2006-10-09  Mike Kestner  <mkestner@novell.com>
19460
19461         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
19462         with focus "expansion" of labels.  Fixes #79532 and then some.
19463         * ThemeWin32Classic.cs : add LineLimit to ListView label format
19464         when wrapping.
19465
19466 2006-10-09  Jackson Harper  <jackson@ximian.com>
19467
19468         * TextBoxBase.cs: Set the default max values to MaxValue since
19469         we use the scrollbar for autoscrolling and the default value is
19470         100.  If we don't do this the caret won't keep up with typing
19471         after about 18 characters.
19472         * TextControl.cs: Make sure the selection is offset by the
19473         viewport x.  This fixes selection when using auto scrolling.
19474
19475 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
19476         
19477         * Form.cs: The active control should be selected after the 
19478         OnLoad so that any child control initialization that affects
19479         the selection is done. Fixes #79406
19480
19481 2006-10-06  Chris Toshok  <toshok@ximian.com>
19482
19483         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
19484         to have no evil effects.
19485
19486         - Stop selecting StructureNotifyMask on non-toplevel windows.
19487
19488           The only way children should be resized is by using the SWF api,
19489           and we already send WM_WINDOWPOSCHANGED messages in those cases.
19490           Toplevel windows can be interacted with via the window manager,
19491           and so we keep the input mask there.
19492
19493           The other event StructureNotifyMask gives us (that we care
19494           about) is DestroyNotify.  The code is already structured such
19495           that it assumes we won't be getting a DestroyNotify event for
19496           the window we pass to XDestroyWindow (which is what
19497           StructureNotifyMask is supposed to guarantee.)  So, that code
19498           shouldn't be affected by this either.
19499
19500         - Stop selecting VisibilityChangeMask altogether.
19501
19502           We weren't doing anything with the resulting events anyway.
19503         
19504         This vastly reduces the number of X requests and events we see
19505         when resizing/laying out a large ui.
19506
19507 2006-10-06  Chris Toshok  <toshok@ximian.com>
19508
19509         * ScrollableControl.cs (DisplayRectangle): we need to take into
19510         account the DockPadding regardless of whether or not auto_scroll
19511         == true.  rework this slightly to this effect, and fix bug #79606,
19512         and part of #72499 (you can now see the drag handles and drag
19513         toolbars around).
19514
19515 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
19516
19517         * ListViewItem.cs: Collections of selected and checked items are now
19518         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
19519         we mark the collection "dirty".
19520         * ListView.cs: Marked collections readonly. Modified UpdateSelection
19521         to only clear SelectedItems when a new item is selected and MultiSelect
19522         is enabled. CheckedItems and SelectedItems now subscribe to Changed
19523         event of ListViewItemCollection, and mark its list dirty whenever
19524         that event is fire. This allows us to return selected/checked items 
19525         in the same order as they are in the Items collection. This matches
19526         the MS behavior.
19527
19528 2006-10-06  Chris Toshok  <toshok@ximian.com>
19529
19530         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
19531         right mouse clicks.  Fixes bug #79593.
19532
19533 2006-10-06  Chris Toshok  <toshok@ximian.com>
19534
19535         * Splitter.cs: doh, fix splitters that don't want to cancel the
19536         movement when you drag them.  Also, impose the limits on the
19537         values we send to the SplitterMovingEvent.  Fixes #79598.
19538
19539 2006-10-06  Jackson Harper  <jackson@ximian.com>
19540
19541         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
19542         since we use this for auto scrolling also.
19543
19544 2006-10-05  Chris Toshok  <toshok@ximian.com>
19545
19546         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
19547         beginning to think that most datagrid column types don't need this
19548         method.  Fixes bug #79392.
19549
19550 2006-10-05  Chris Toshok  <toshok@ximian.com>
19551
19552         * DataGrid.cs: move back to a more lazy scheme for creating the
19553         CurrencyManager, so we aren't updating it every time you set
19554         either DataSource or DataMember.  Also, don't call
19555         RecreateDataGridRows if the currency manager hasn't changed.
19556
19557 2006-10-05  Chris Toshok  <toshok@ximian.com>
19558
19559         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
19560         emitted, SelectedIndex should already be updated.  Fixes bug
19561         #78929.
19562
19563 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
19564
19565         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
19566           ToolStripTextBox.cs: Initial commit.
19567         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
19568
19569 2006-10-05  Jackson Harper  <jackson@ximian.com>
19570
19571         * TabControl.cs: We need to invalidate the tab control area when
19572         new ones are added (duh).
19573
19574 2006-10-03  Chris Toshok  <toshok@ximian.com>
19575
19576         * Form.cs (ProcessDialogKey): if the focused control is in this
19577         form and is a button, call its PerformClick method here.  Fixes
19578         #79534.
19579
19580 2006-10-04  Jackson Harper  <jackson@ximian.com>
19581
19582         * TabPage.cs: Ignore setting of Visible, and add an internal
19583         method for setting the controls visibility.  TabPage's Visible
19584         property is a little strange on MS, this seems to make us
19585         compatible, and fixes cases where people set all the tab pages to
19586         visible.
19587         * TabControl.cs: Use the new internal setting on tab pages
19588         visibility.
19589
19590 2006-10-03  Mike Kestner  <mkestner@novell.com>
19591
19592         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
19593
19594 2006-10-03  Mike Kestner  <mkestner@novell.com>
19595
19596         * ListView.cs : use is_visible instead of Visible to check if 
19597         scrollbars should be placed/sized.  Also some max_wrap_width
19598         love for LargeIcon view.  [Fixes #79533]
19599
19600 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
19601
19602         * TextControl.cs :
19603           Make set_TextAlign() do actually update the align. Fixed #78403.
19604
19605 2006-10-03  Chris Toshok  <toshok@ximian.com>
19606
19607         * DataGrid.cs: fix a crash when switching datasources if the
19608         vertical scrollbar is at someplace other than Value = 0.  Also,
19609         reduce the number of recalculation passes we do in SetDataSource
19610         from 2 to 1.
19611
19612 2006-10-03  Jackson Harper  <jackson@ximian.com>
19613
19614         * TextBoxBase.cs: Move the if value the same bail check up, we
19615         don't want to empty the document if it is already empty, this
19616         seems to severly mess up the caret.  TODO: I should probably fix
19617         the empty statement to update teh caret somehow.
19618
19619 2006-10-03  Chris Toshok  <toshok@ximian.com>
19620
19621         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
19622         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
19623         reflection, an internal row type, properties on said type, etc.)
19624         will work with our datagrid.  Fixes #79531.
19625
19626 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
19627
19628         * FileDialog.cs: Don't crash if a path is not accessible
19629           (System.UnauthorizedAccessException). Fixes #79569.
19630         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
19631           a ':' too. Return unknown icon for those paths/files.
19632
19633 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
19634
19635         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
19636         GetContainerControl returns null.
19637
19638 2006-10-02  Chris Toshok  <toshok@ximian.com>
19639
19640         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
19641         call to XGetWindowAttributes instead of "handle".  fixes an X
19642         error using notifyicon after the NotifyIconWindow to Form base
19643         class switch.
19644
19645 2006-10-02  Chris Toshok  <toshok@ximian.com>
19646
19647         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
19648         server grab and looping we need to do to get down to the most
19649         deeply nested child window.
19650         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
19651         QueryPointer again after the WarpPointer so we can generate a
19652         proper (fake) MotionNotify event to be enqueued in the destination
19653         window's queue.
19654         (GetCursorPos): call QueryPointer.
19655
19656         Fixes #79556.
19657
19658 2006-10-02  Jackson Harper  <jackson@ximian.com>
19659
19660         * NotifyIcon.cs: Derive the notify icon from a form, so things
19661         like FindForm work on it.
19662         - Swallow the WM_CONTEXTMENU message, since that is generated on
19663         mouse down, and context menu is a mouse up kinda guy.  I believe
19664         the correct fix here is probably to make the notify icon entirely
19665         NC area, but this seems to work fine for anyone not manipulating
19666         WndProc.
19667
19668 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
19669
19670         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
19671           ToolStripItemCollection.cs, ToolStripLabel.cs,
19672           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
19673           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
19674           Initial implementation.
19675         * TextRenderer.cs: Provide padding to MeasureText.
19676
19677 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
19678
19679         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
19680         of ButtonBaseAccessibleObject. Fix bug #79552.
19681
19682 2006-10-02  Jackson Harper  <jackson@ximian.com>
19683
19684         * MdiWindowManager.cs: When maximizing use the containers client
19685         rect, not it's bounds, so nc area is accounted correctly.
19686         - Use the parent form's size for the menu position, since the
19687         client isn't always the full form size.
19688
19689 2006-10-01  Chris Toshok  <toshok@ximian.com>
19690
19691         * ScrollableControl.cs: make sure neither right_edge or
19692         bottom_edge are < 0, since they're used as LargeChange for the
19693         horiz/vert scrollbars respectively.  Fixes #79539.
19694
19695 2006-10-01  Chris Toshok  <toshok@ximian.com>
19696
19697         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
19698         the xplatuix11 code can cause us to destroy/recreate our handle.
19699
19700         * XplatUIX11.cs
19701         (SystrayAdd):
19702         - this code can be invoked many times for the same Hwnd.  Make
19703           sure we only destroy the client window once (the first time this
19704           method is called).  This fixes bug #79544.
19705         - Remove the call to the improperly bound XSync.  why we had two
19706           bindings to this, I will never know, but this call resulted in
19707           events being discarded from the queue(!).
19708         - correct a misunderstanding of _XEMBED_INFO - the second atom is
19709           not our current state but the state we wish to be in.  So, 0 if
19710           we don't want to be mapped.  Change it to 1.
19711         (SystrayRemove): The XEMBED spec makes mention of the fact that
19712         gtk doesn't support the reparent of client windows away from the
19713         embedder.  Looking at gtksocket-x11.c seems to agree with this.
19714         The only avenue we have for removing systray icons is to destroy
19715         them.  We don't want the handle to go away for good, though, so
19716         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
19717         #79545.
19718         
19719 2006-10-01  Chris Toshok  <toshok@ximian.com>
19720
19721         * Form.cs (WndProc): inline the native_enabled variable usage into
19722         the cases in which it's used.  Fixes #79536.
19723
19724 2006-09-29  Mike Kestner  <mkestner@novell.com>
19725
19726         * ListView.cs : toggle the selection state for ctrl clicks in 
19727         multiselect mode. [Fixes #79417]
19728
19729 2006-09-29  Mike Kestner  <mkestner@novell.com>
19730
19731         * ListView.cs : kill CanMultiSelect and refactor the selection
19732         code to support multiselection in the absence of mod keys. Steal
19733         arrow/home/end keys by overriding InternalPreProcessMessage to
19734         restore regressed keynav behavior.
19735         [Fixes #79416]
19736
19737 2006-09-29  Jackson Harper  <jackson@ximian.com>
19738
19739         * MdiClient.cs: Repaint the titlebars when the active window is
19740         changed.
19741
19742 2006-09-29  Chris Toshok  <toshok@ximian.com>
19743
19744         * Application.cs: when entering a runloop with a modal, make sure
19745         the hwnd is enabled.  Fixes #79480.
19746
19747 2006-09-29  Chris Toshok  <toshok@ximian.com>
19748
19749         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
19750         when ListManager.CanAddRows == false, bump us back one.
19751
19752         * DataGridColumnStyle.cs (ParentReadOnly): remove the
19753         listmanager.CanAddRows check.  This makes ArrayLists uneditable
19754         using a datagrid, which is not right.
19755         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
19756         is an IEditable, but call property_descriptor.SetValue regardless.
19757         fixes #79435.
19758
19759 2006-09-29  Chris Toshok  <toshok@ximian.com>
19760
19761         * DataGridBoolColumn.cs: we need to test equality in the face of
19762         possible null values (as is the case with the default NullValue).
19763         This patch keeps us from crashing in that case.
19764
19765 2006-09-29  Jackson Harper  <jackson@ximian.com>
19766
19767         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
19768         here, since it will get called for every node collection in the
19769         tree. This is now done in the treeview once the sorting is
19770         finished.
19771         * TreeView.cs: Recalculate the visible order, and update the
19772         scrollbars after sorting, set the top nope to the root so that the
19773         recalc actually works.
19774
19775 2006-09-29  Chris Toshok  <toshok@ximian.com>
19776
19777         * LinkLabel.cs: more handling of the default link collection in
19778         the face of LinkArea manipulation.  The default link collection
19779         contains 1 element (start=0,length=-1).  If the user sets LinkArea
19780         to anything and the links collection is the default, clear it.
19781         Then only add the link if its nonempty.  Fixes #79518.
19782
19783 2006-09-29  Chris Toshok  <toshok@ximian.com>
19784
19785         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
19786         piece correctly when we hit a '\n'.  Fixes #79517.
19787
19788 2006-09-29  Chris Toshok  <toshok@ximian.com>
19789
19790         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
19791         change the binding of gdk_init_check to take two IntPtr's, and
19792         pass IntPtr.Zero for both of them.  Fixes #79520.
19793
19794 2006-09-29  Mike Kestner  <mkestner@novell.com>
19795
19796         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
19797         [Fixes #78779]
19798
19799 2006-09-28  Jackson Harper  <jackson@ximian.com>
19800
19801         * XplatUIX11.cs: When translating NC messages make sure we go from
19802         whole window to screen, not client window to screen.
19803         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
19804         method doesn't exist
19805         - Skip over controls that aren't forms when arranging.
19806
19807 2006-09-28  Jackson Harper  <jackson@ximian.com>
19808
19809         * XplatUIWin32.cs: Clip the rect to the parent window.
19810         * XplatUIStructs.cs: Add clipping modes struct.
19811         * InternalWindowManager.cs: New private method that factors title
19812         bar heights in when calculating the pos of an NC mouse message.
19813         - Use SendMessage to force a paint when the form's size is changed
19814         instead of painting the decorations immediately.
19815         - Don't let the NC button click messages get to DefWndProc,
19816         because they will attempt to handle windowing themself, and this
19817         messes up z-order (it will put them in front of the scrollbars).
19818         * XplatUIX11.cs: Make sure that we don't reset window managers if
19819         we already have one (ie the window is an MDI window).
19820
19821 2006-09-28  Chris Toshok  <toshok@ximian.com>
19822
19823         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
19824         menu code really needs going over.
19825
19826 2006-09-27  Chris Toshok  <toshok@ximian.com>
19827
19828         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
19829         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
19830         window is maximizable.  So, we need to make sure that even if we
19831         clear the border/wm frame of those functions, they're still
19832         available (basically, we remove the decoration without removing
19833         the function).  Half the fix for #79338.
19834
19835 2006-09-27  Chris Toshok  <toshok@ximian.com>
19836
19837         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
19838         Fixes bug #79515.
19839
19840 2006-09-27  Chris Toshok  <toshok@ximian.com>
19841
19842         * Splitter.cs: reorder things a bit so that we don't actually
19843         draw/move the splitter until after calling OnSplitterMoving.  This
19844         lets users cancel/disallow the movement by explicitly setting
19845         event.SplitX/SplitY.  Fixes #79372.
19846
19847 2006-09-27  Jackson Harper  <jackson@ximian.com>
19848
19849         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
19850         because it is most likely on a window being destroyed, and that
19851         will give us an X11 error.
19852
19853 2006-09-27  Chris Toshok  <toshok@ximian.com>
19854
19855         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
19856         the dropdown button now toggles between showing and hiding the
19857         dropdown.  Also, get rid of dropdown_form_showing and just use
19858         dropdown_form.Visible.  We still don't do a grab, but I'll leave
19859         that part to someone who has handled Capture-fu before.
19860
19861 2006-09-27  Chris Toshok  <toshok@ximian.com>
19862
19863         * DataGrid.cs: return false if alt isn't pressed when '0' is
19864         pressed.  this keeps the '0' key from being swallowed, and fixes
19865         bug #79350.
19866
19867 2006-09-27  Chris Toshok  <toshok@ximian.com>
19868
19869         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
19870         Calling Refresh (in response to a scrollbar event) screws up the
19871         scrollbar painting.  Fixes bug #78923.
19872
19873 2006-09-27  Chris Toshok  <toshok@ximian.com>
19874
19875         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
19876         then insert into hashtable" blocks threadsafe.
19877
19878 2006-09-27  Chris Toshok  <toshok@ximian.com>
19879
19880         * MessageBox.cs (CreateParams): the styles should be |'ed with our
19881         baseclass's, since otherwise the
19882         ControlBox/MinimizeBox/MaximizeBox assignments above have no
19883         effect.  This gets the close button back in messageboxes.
19884
19885 2006-09-27  Chris Toshok  <toshok@ximian.com>
19886
19887         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
19888         flag, not just != 0.  this makes flags that are actually multiple
19889         bits (like WS_CAPTION) work.  fixes bug #79508.
19890
19891 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
19892
19893         * PageSetupDialog.cs: add support for getting and settings the 
19894         paper size, source and orientation.
19895
19896 2006-09-26  Chris Toshok  <toshok@ximian.com>
19897
19898         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
19899         and caption == "", we need to remove the resize handles as well as
19900         the title bar.
19901
19902         * Control.cs (set_Text): turns out that setting Text on a form
19903         should change the WM styles on the window, since if ControlBox ==
19904         false, the only way to get a window border is to have a non-""
19905         Text property.  check winforms/forms/text.cs for an example.  so,
19906         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
19907         update both window styles and title.  This fixes a lot of dialogs
19908         (including the preferences dialog in MonoCalendar.)
19909
19910 2006-09-26  Chris Toshok  <toshok@ximian.com>
19911
19912         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
19913         control isn't a Form), call Win32ShowWindow to hide the window,
19914         but don't update the control Visible property.  When we reparent
19915         back to a parent control, call SetVisible in order for the
19916         window's visibility to be reinstated.
19917
19918         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
19919         the FosterParent.
19920
19921         * Control.cs (ControlCollection.Remove): remove that value.Hide()
19922         call for good, since it breaks MonoCalendar (and other things I'm
19923         sure.) Also, set all_controls to null *after* the owner calls,
19924         which end up regenerating it.
19925         (ChangeParent): allow new_parent to be == null, passing
19926         IntPtr.Zero down to XplatUI.
19927
19928         this fixes #79294 the right way.
19929
19930 2006-09-26  Mike Kestner  <mkestner@novell.com>
19931
19932         * GridEntry.cs : internal SetParent method.
19933         * PropertyGrid.cs : attach to property changed on the proper
19934         target if we have a hierarchical grid with subobjects. Setup
19935         GridItem.Parent for hierarchical items.
19936         * PropertyGridView.cs : Set value on the correct target for
19937         hierarchical grids. [Fixes #78903]
19938
19939 2006-09-26  Chris Toshok  <toshok@ximian.com>
19940
19941         * Control.cs (ChildNeedsRecreating): this should return true if
19942         either we're being recreated and the child is in our list, or our
19943         parent is waiting for our recreation.
19944
19945 2006-09-26  Chris Toshok  <toshok@ximian.com>
19946
19947         * Control.cs (ControlCollection.Remove): reinstate the
19948         value.Hide() call as suggested in bug #79294.
19949
19950 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
19951
19952         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
19953         coordinates (versus a relative move).
19954
19955 2006-09-26  Chris Toshok  <toshok@ximian.com>
19956
19957         * Control.cs: rework child recreation a little bit.  It turns out
19958         that we race between the DestroyNotify the WM_DESTROY message.  If
19959         the parent gets its DestroyNotify before the child gets the
19960         WM_DESTROY message, the child ends up not recreating (since the
19961         parent finishes its recreation on DestroyNotify, and the child
19962         checks ParentIsRecreating.)
19963
19964         So, instead we store off a list of all the child controls which
19965         need to be recreated when the parent control starts to recreate
19966         itself.  Then, when child controls get their WM_DESTROY message we
19967         check to see if they're in the parent's pending recreation list,
19968         and if so, we recreate.  This removes all dependency on ordering
19969         from the code and fixes the initial MonoCalendar upgrade dialog.
19970         
19971 2006-09-26  Jackson Harper  <jackson@ximian.com>
19972
19973         * TextControl.cs: Use the Line to get the length of the line,
19974         since soft line breaks can change the end line.
19975
19976 2006-09-26  Chris Toshok  <toshok@ximian.com>
19977
19978         * Control.cs (ControlCollection.AddImplicit): don't add the
19979         control again if it's already in one of our lists.  This keeps us
19980         from adding controls over and over again for comboboxes when their
19981         handle gets recreated (as the combobox adds implicit controls in
19982         OnHandleCreated).  Fixes the X11 errors in bug #79480.
19983
19984 2006-09-26  Jackson Harper  <jackson@ximian.com>
19985
19986         * TextControl.cs: When deleting characters make sure that any
19987         orphaned zero lengthed tags get deleted.
19988         - Fix ToString for zero lengthed tags.
19989
19990 2006-09-25  Jackson Harper  <jackson@ximian.com>
19991
19992         * TextControl.cs: When getting a tag at the location there can be
19993         multiple tags at the same spot, these are 0-lengthed tags that
19994         appear when extra formatting has been stuck in a location.  We
19995         need to pull out the last of these 0 lengthed tags.
19996
19997 2006-09-25  Jackson Harper  <jackson@ximian.com>
19998
19999         * TextControl.cs: Fix print out in debug method.
20000         * TextBoxBase.cs: When text is set bail if we are setting to the
20001         previous value.
20002         
20003 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
20004
20005         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
20006           It is now possible to change the selected index in a FontXXXListBox
20007           with the up and down arrow keys from the FontXXXTextBoxes.
20008           Also, send the FontXXXTextBox mouse wheel event to the corresponding
20009           FontXXXListBoxes to match ms.
20010
20011 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
20012
20013         * SystemInformation.cs: Return a clone of the theme's MenuFont because
20014         anyone can dispose it, anytime. All other properties returns enums, 
20015         structs or basic types so they don't need such tricks.
20016
20017 2006-09-22  Jackson Harper  <jackson@ximian.com>
20018
20019         * XplatUI.cs:
20020         * XplatUIWin32.cs:
20021         * Clipboard.cs:
20022         * DataFormats.cs:
20023         * XplatUIOSX.cs:
20024         * XplatUIDriver.cs: Update interface to add a primary selection
20025         flag, so the driver can use the primary selection buffer if
20026         needed.
20027         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
20028
20029         * RichTextBox.cs: We need to supply the data object to paste now
20030         (so we can choose to supply CLIPBOARD or PRIMARY).
20031         * TextBoxBase.cs: Supply data object to paste (see above).
20032         - Middle click uses the primary selection data object.
20033         
20034 2006-09-21  Chris Toshok  <toshok@ximian.com>
20035
20036         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
20037         of SetWMStyles.  It's still a rat's nest and is largely
20038         order-dependent which I dislike immensely.  This also fixes the X
20039         button disappearing from toplevel forms.
20040
20041 2006-09-21  Mike Kestner <mkestner@novell.com>
20042
20043         * ListBox.cs: move Jordi's click/dblclick raising code to the
20044         mouse up handler.
20045
20046 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
20047
20048         * ListBox.cs: Fixes 79450
20049
20050 2006-09-21  Mike Kestner <mkestner@novell.com>
20051
20052         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
20053         to deal with people updating the TreeNodeCollection after the tree
20054         is disposed.  "Fixes" 79330.
20055
20056 2006-09-20  Jackson Harper <jackson@ximian.com>
20057
20058         * TextControl.cs: Push the cursor record onto the undo stack
20059         before the delete action. This fixes 78651.
20060
20061 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
20062
20063         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
20064         CreateParams. Fixes 79329.
20065
20066 2006-09-19  Chris Toshok  <toshok@ximian.com>
20067
20068         * XplatUIX11.cs: a couple of blanket code massage passes to clean
20069         things up a bit.  First, get rid of the NetAtoms array (and the NA
20070         enum), and just embed the atoms as static fields.  Also, add a
20071         couple of functions (StyleSet and ExStyleSet) to clean up all the
20072         bitmask testing of styles.
20073
20074         * X11Structs.cs: remove the NA enum, not needed anymore.
20075         
20076 2006-09-19  Chris Toshok  <toshok@ximian.com>
20077
20078         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
20079         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
20080         added cleanup to get MessageBox titles appearing again, which were
20081         broken by my earlier fix for caption-less/ControlBox-less windows.
20082
20083 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
20084
20085         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
20086           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
20087           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
20088           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
20089           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
20090           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
20091           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
20092           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
20093           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
20094           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
20095           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
20096             Inital import.
20097         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
20098           ToolStripButton.cs: Stubs needed for above.
20099         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
20100
20101 2006-09-15  Chris Toshok  <toshok@ximian.com>
20102
20103         * XplatUIX11.cs:
20104         - make the MessageQueues hashtable Synchronized.
20105         
20106         - SendMessage: if the Hwnd is owned by a different thread, use the
20107         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
20108         thread.  Fixes bug #79201.
20109
20110 2006-09-15  Chris Toshok  <toshok@ximian.com>
20111
20112         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
20113         ControlBox == false, we disallow maximize/minimize/close.  If the
20114         form Caption is "" we also disallow move (and get rid of the Title
20115         decoration).  Unfortunately, regardless of how things are set,
20116         we're stuck with the Title and WM menu.
20117
20118 2006-09-15  Chris Toshok  <toshok@ximian.com>
20119
20120         * Application.cs: add locking around the static message_filters
20121         ArrayList, part of #79196.
20122
20123 2006-09-15  Chris Toshok  <toshok@ximian.com>
20124
20125         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
20126         Form.ControlBox == false, the window has no titlebar nor resize
20127         handles.  fixes bug #79368.
20128
20129 2006-09-15  Chris Toshok  <toshok@ximian.com>
20130
20131         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
20132         >= 0.  Fixes bug #79370.
20133
20134 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
20135         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
20136         * Control.cs:
20137             Add properties: LayoutEngine, Margin, DefaultMargin.
20138             Add method: GetPreferredSize.
20139             Move layout logic from PerformLayout to layout engines. 
20140
20141 2006-09-13  Chris Toshok  <toshok@ximian.com>
20142
20143         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
20144         fix for #79326 broke #78718, so this change addresses that.
20145
20146         - in SendWMDestroyMessages remove the call to
20147         CleanupCachedWindows, since we might be recreating the control and
20148         need to maintain the references to right Hwnd handles.  Also, set
20149         the zombie flag to true for each of the children in the hierarchy
20150         instead of calling hwnd.Dispose.  This will cause GetMessage to
20151         ignore all events for the window except for DestroyNotify.
20152
20153         - In GetMessage, ignore messages except for DestroyNotify for
20154         zombie hwnds.
20155         
20156         * Control.cs: revert the is_recreating fix from the last
20157         ChangeLog.  It's definitely "right", but it breaks switching from
20158         an MDI form to a non-MDI form.  Will need to revisit that.
20159
20160         * Hwnd.cs: add a zombie flag, which means "the
20161         client_window/whole_window handles are invalid, but we're waiting
20162         for the DestroyNotify event to come in for them".  Set the flag to
20163         false explicitly if setting WholeWindow/ClientWindow, and also
20164         when Disposing.
20165         
20166 2006-09-13  Chris Toshok  <toshok@ximian.com>
20167
20168         * XplatUIX11.cs: rework window destruction slightly.
20169
20170         - when destroying the windows associated with a control, we don't
20171         need 2 separate XDestroyWindow calls.  Just the one for the
20172         whole_window (or for client_window if whole_window is somehow
20173         IntPtr.Zero -- can this happen?) is enough.
20174
20175         - reworked SendWMDestroyMessages slightly, so we always dispose
20176         the child control hwnd's after sending the messages.
20177         
20178         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
20179         the two places it was used (one was even using hwnd.Handle and the
20180         other hwnd.client_window.  ugh), adding another call in
20181         SendWMDestroyMessages.  We need this new call because now the
20182         DestroyNotify events in the queue will be ignored for the child
20183         controls (as their hwnd's were disposed, and the window id's
20184         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
20185
20186         - this fixes bug #79326.
20187
20188 2006-09-13  Chris Toshok  <toshok@ximian.com>
20189
20190         * Control.cs: don't always set is_recreating to false at the end
20191         of RecreateHandle, since sometimes we're not done (and won't be
20192         until WndProc handles the WM_DESTROY message).  Also, set
20193         is_recreating to false in the WM_DESTROY handling code.  Part of
20194         the fix for bug #79326.
20195
20196 2006-09-13  Miguel de Icaza  <miguel@novell.com>
20197
20198         * X11DesktopColors.cs: Start the droppage of debugging messages.
20199
20200         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
20201
20202 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
20203
20204         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
20205
20206 2006-09-12  Chris Toshok  <toshok@ximian.com>
20207
20208         * DataGrid.cs (get_ListManager): if the list_manager is null, try
20209         to create it using SetDataSource.  Fixes bug #79151.
20210
20211 2006-09-11  Chris Toshok  <toshok@ximian.com>
20212
20213         * XEventQueue.cs: add a DispatchIdle property.
20214
20215         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
20216         either the queue is null, or the queue has DispatchIdle set to
20217         true.
20218         (DoEvents): set queue.DispatchIdle to false around the
20219         peek/translate/dispatch message loop in this method.  This keeps
20220         Application.Doevents from emitting idle events.  Part of the fix
20221         for #78823.
20222
20223 2006-09-11  Chris Toshok  <toshok@ximian.com>
20224
20225         * DataGrid.cs (set_DataSource): make this work for both the
20226         winforms/datagrid test and ReportBuilder.  It seems as though when
20227         we've created a ListManager (or maybe it's if we have a
20228         BindingContext?), when we set the DataSource it clears the
20229         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
20230         #79333.
20231
20232 2006-09-11  Chris Toshok  <toshok@ximian.com>
20233
20234         * XplatUIX11.cs: deal with queue being null, which happens in all
20235         the Clipboard functions.  Fixes one of the two problems mentioned
20236         in #78612.
20237
20238 2006-09-11  Chris Toshok  <toshok@ximian.com>
20239
20240         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
20241         button on various spots (including outside the menu) works closer
20242         to MS, and doesn't crash.  Fixes #79343.
20243
20244 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
20245
20246         * ListView.cs: Do not initialize item_sorter in init. To match MS,
20247         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
20248         and the internal comparer is set. When a new ListViewItemSorter is set,
20249         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
20250         was specified. No further processing is necessary if SortOrder is set
20251         to it's current value. If Sorting is modified to None, and View is
20252         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
20253         (either custom or our internal ItemComparer) to null, on 1.0 profile
20254         only set item_sorter to null if its our internal IComparer. If Sorting
20255         is modified to Ascending or Descending, then use our internal IComparer
20256         if none is set, and if the current IComparer is our internal one then:
20257         on 2.0 profile always replace it with one for new Sorting, and on 1.0
20258         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
20259         Enum.IsDefined to verify whether a valid View value is specified in
20260         its setter. Automatically sort listview items when listview is
20261         created. In Sort, do nothing if ListView is not yet created, or if
20262         no item_sorter is set (no Sorting was set, Sorting was explicitly set
20263         to None or ListViewItemSorter was set to null). Added Sort overload
20264         taking a bool to indicate whether the ListView should be redrawn when
20265         items are sorted (we use this in ListViewItemCollection to avoid double
20266         redraws). Modified our internal IComparer to take the sort order into
20267         account. In Add and AddRange methods of ListViewItemCollection, also
20268         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
20269         view), but use overload with noredraw option to avoid double redraw.
20270         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
20271         true when View is Tile, and do the same when attempting to set View to
20272         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
20273         for selected/checked indices, as it involves overhead when sorting is
20274         done while these collections are not used all that often. Instead
20275         we'll build the indices on demand. Modified IList implementation of
20276         CheckedIndexCollection to use public methods if object is int.
20277         Modified CheckedListViewItemCollection to hide checked items if
20278         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
20279         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
20280         IList implementation in SelectedIndexCollection to use public methods
20281         if object is int. Modified SelectedListViewItemCollection to hide
20282         selected items if listview is not yet created.
20283         * ListViewItem.cs: CheckedIndices list no longer needs to be
20284         maintained separately (see ListView changes). Also clone font, fixes
20285         test failure.
20286
20287 2006-09-11  Mike Kestner  <mkestner@novell.com>
20288
20289         * ComboBox.cs: if we are updating the contents of the currently
20290         selected index, refresh the control or the textbox selection.
20291         [Fixes #79066]
20292
20293 2006-09-11  Mike Kestner  <mkestner@novell.com>
20294
20295         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
20296         the 'specified' logic has been moved there.  This seems like a bug 
20297         in Control.cs, since our current SetBoundsCore completely ignores 
20298         the specified parameter.  Peter's commit seems to indicate that is 
20299         the way the MS control implementation works.  [Fixes #79325]
20300
20301 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
20302
20303         * XplatUI.cs: Set default_class_name to be composed
20304         of current domain id. This allows MWF to be loaded in multiple
20305         domains on Win32.
20306
20307 2006-09-09  Miguel de Icaza  <miguel@novell.com>
20308
20309         * X11Keyboard.cs: If we are unable to obtain the input method, do
20310         not call CreateXic to create the input context.   Should fix
20311         #78944/79276.
20312
20313 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
20314
20315         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
20316           Simplified gnome support by adding more pinvokes to get the
20317           icon for a file or mime type.
20318
20319 2006-09-08  Jackson Harper  <jackson@ximian.com>
20320
20321         * MenuAPI.cs: Deslect popup context menu items before closing the
20322         window, so that you don't see the previously selected item
20323         selected when you reopen the menu.
20324         * TextControl.cs: Update the cursor position even if we don't have
20325         focus.  This fixes typing in things like the ComboBox.  I'm not
20326         totally sure we should always set the visibility if we don't have
20327         focus, but couldn't find any corner cases where the cursor showed
20328         up when it shouldn't.
20329
20330 2006-09-08  Chris Toshok  <toshok@ximian.com>
20331
20332         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
20333         our arrays are length 256.  & 0xff before indexing.  Fixes the
20334         crash in bug #78077.
20335         
20336 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20337
20338         * ThemeWin32Classic.cs: 
20339         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
20340         is true. Handle that check box too.
20341
20342 2006-09-07  Chris Toshok  <toshok@ximian.com>
20343
20344         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
20345         79244.
20346
20347 2006-09-07  Chris Toshok  <toshok@ximian.com>
20348
20349         * Control.cs: in set_BackColor only do the work if
20350         background_color != value.
20351
20352         * XplatUIX11.cs: move the clearing of invalid areas (both client
20353         and nc) to the same block of code where we set (nc_)expose_pending
20354         to false.  That is, move it from PaintEventEnd to PaintEventStart,
20355         so things that cause invalidates from within OnPaint will trigger
20356         another call to OnPaint.  Fixes bug #79262.
20357
20358 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
20359
20360         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
20361         * FileDialog.cs: Fix typo
20362
20363 2006-09-07  Jackson Harper  <jackson@ximian.com>
20364
20365         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
20366         for tab pages if they have any.
20367
20368 2006-09-06  Mike Kestner  <mkestner@novell.com>
20369
20370         * Splitter.cs: use the "current" rect when finishing drag handle
20371         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
20372
20373 2006-09-06  Mike Kestner  <mkestner@novell.com>
20374
20375         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
20376         support offset splitters. [Fixes #79298]
20377
20378 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
20379
20380         * Mime.cs: Fixed a bug that could override the global mime type
20381           result.
20382
20383 2006-09-05  Jackson Harper  <jackson@ximian.com>
20384
20385         * TabControl.cs: Better calculation method for setting the slider
20386         pos. Prevents crashes on really wide tabs.
20387         - Draw Image on tab pages if an image list is used.
20388
20389 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20390
20391         * MonthCalendar.cs: When Font changes, the Size should be
20392         updated to fit the new font's space requirements.
20393
20394 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
20395
20396         * ListBox.cs: If the items are cleared with Items.Clear set
20397           top_index to 0.
20398
20399 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20400
20401         * MonthCalendar.cs: Handle arrow keys as input keys. Also
20402         fire DateChanged event instead of DateSelected event when
20403         the date was changed by keyboard interaction.
20404
20405 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20406
20407         * DateTimePicker.cs: Handle DateChanged for the associated
20408         month_calendar control, and set month_calendar.Font from 
20409         OnFontChanged method, as well as resize the height of the
20410         control when needed. Make PreferredHeight proportional.
20411
20412 2006-09-01  Chris Toshok  <toshok@ximian.com>
20413
20414         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
20415         properties.
20416
20417         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
20418
20419 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
20420
20421         * FileDialog.cs: Set ClientSize instead of window size, to allow space
20422           for decorations (Fixes #79219)
20423
20424 2006-09-01  Mike Kestner  <mkestner@novell.com>
20425
20426         * ComboBox.cs: first stab at sorting plus some selection handling
20427         fixes to bring us more in line with MS behavior.  Also switches back
20428         to index based selection.  Alternative patches for index-based 
20429         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
20430         and latency@gmx.de on bug 78848.  I assume they were similar to this
20431         code I've had simmering in my tree forever.
20432         [Fixes #78848]
20433
20434 2006-09-01  Chris Toshok  <toshok@ximian.com>
20435
20436         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
20437         when setting list position guard against ending up with a -1 index
20438         (the other part of the fix for #78812).  Should probably make sure
20439         we don't need the analogous fix in the ItemDeleted case.
20440
20441         * DataGrid.cs:
20442         - in SetDataSource, work around the fact that the way
20443         OnBindingContextChanged is invoked will cause us to re-enter this
20444         method.  I'll remove the hack once I investigate
20445         OnBindingContextChanged.
20446
20447         - fix the logic in set_DataSource and set_DataMember (basically
20448         what to do if the other of the two is null.)
20449         
20450         - in OnListManagerItemChanged, we need to take into account the
20451         edit row when deciding whether or not to call RecreateDataGridRows
20452         (part of the fix for #78812).
20453
20454 2006-09-01  Jackson Harper  <jackson@ximian.com>
20455
20456         * Splitter.cs: Don't do anything if there is no control to affect
20457         (prevents us from crashing in weird tet cases).
20458         * TreeView.cs: Bounding box for the mouse movement reverting
20459         focus/selection back to previously selected node.  This matches
20460         MS, and makes the tree a lot more useable.
20461         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
20462         use clipping so they are not drawn.  This fixes when the control
20463         is set to have a transparent background, or if it was over an
20464         image.
20465
20466 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
20467
20468         * MimeIcon.cs: Improved handling for reading default icons when
20469           using gnome (2.16 made it necessary). Check and read svg icons
20470           first, then 48x48 and then 32x32 icons.
20471
20472 2006-08-31  Chris Toshok  <toshok@ximian.com>
20473
20474         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
20475         visible.
20476
20477         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
20478         ProcessKeyPreview.  Fixes part of #77806.
20479
20480         * DataGrid.cs: big patch.
20481
20482         - revert the queueing up of DataSource/DataMember if inside
20483         BeginInit/EndInit calls.  That's not the way the datagrid achieves
20484         its delayed databinding.  Instead, call SetDataSource in
20485         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
20486         #78811.
20487
20488         - Also, it wasn't mentioned in #78811, but the test case exhibits
20489         behavior that was lacking in our datagrid implementation - Columns
20490         that have mapping names that don't exist in the datasource's
20491         properties aren't shown.  Yuck.  To fix this I added the bound
20492         field to the column style, and basically any calculation to figure
20493         out anything about columns uses a loop to find the bound columns.
20494         still need to investigate if I can cache an array of the bound
20495         columns or if the indices must be the same.
20496
20497         - When setting CurrentCell, we no longer abort if the cell being
20498         edited was in the add row.  This fixes the other part of #77806.
20499
20500         - The new code also fixes #78807.
20501         
20502         * ThemeWin32Classic.cs: perpetrate the same disgusting
20503         column.bound field hack, and only render bound fields.
20504
20505 2006-08-31  Chris Toshok  <toshok@ximian.com>
20506
20507         * DataGridColumnStyle.cs: add bound field.  this field is true if
20508         the datasource has a property corresponding to the mapping name.
20509
20510         * DataGridTableStyle.cs: set the bound field on the column styles
20511         depending on whether or not we have a column for that property.
20512
20513 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
20514
20515         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
20516           splitter control (fixes #79228)
20517
20518 2006-08-31  Chris Toshok  <toshok@ximian.com>
20519
20520         * DataGridColumnStyle.cs: we need to delay the assignment of
20521         property descriptor until the last possible moment due to the lazy
20522         databinding stuff in the datagrid.  Also, fix the exceptions
20523         thrown by CheckValidDataSource to match MS.
20524
20525 2006-08-31  Jackson Harper  <jackson@ximian.com>
20526
20527         * Form.cs: When activated select the active control, if there is
20528         no active control, we select the first control.
20529         * XplatUIX11.cs: If there is no focus control when we get a
20530         FocusIn event, find the toplevel form and activate it.  This
20531         occurs when you popup a window, it becomes the focus window, then
20532         you close that window, giving focus back to the main window.
20533
20534 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20535
20536         * MonthCalendar.cs: 
20537         * ThemeWin32Classic.cs: Cache Font in bold style, as well
20538         as StringFormat with Center alignments in MonthCalendar,
20539         instead of creating new ones when drawing the control. 
20540         Also, draw the month name in bold style.
20541
20542 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
20543
20544         * Control.cs:
20545           - PerformLayout(): It would seem MS performs the fill even if the 
20546             control is not visible (part of #79218 fix)
20547           - ResetBackColor(): Use the setter to reset the color, to allow
20548             overriders to catch the change.
20549         * Form.cs:
20550           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
20551           - CreateHandle(): dito (part of $79218 fix)
20552           - Don't set an icon if we have a dialog
20553         * ScrollableControl.cs:
20554           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
20555           - ScrollIntoView(): No need to scroll if control is already visible
20556             (resolves fixme and fixes #79218)
20557
20558 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20559
20560         * MonthCalendar.cs: Change proportions in SingleMonthSize
20561         to match the aspect of the original control.
20562
20563 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
20564
20565         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
20566           get updated when they get maximized.
20567
20568 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
20569
20570         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
20571
20572 2006-08-29  Chris Toshok  <toshok@ximian.com>
20573
20574         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
20575
20576 2006-08-29  Jackson Harper  <jackson@ximian.com>
20577
20578         * TreeView.cs: Need to track selected node and highlighted node,
20579         they aren't always the same thing, when the mouse is down on a
20580         node it is hilighted, but not selected yet.
20581         - Do the HideSelection stuff right
20582         - Need to focus on rbutton mouse down. And redraw selection when
20583         right click is mouse upped.
20584
20585 2006-08-29  Mike Kestner  <mkestner@novell.com>
20586
20587         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
20588         when SubItems.Count < Columns.Count.  [Fixes #79167]
20589
20590 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
20591
20592         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
20593
20594 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
20595
20596         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
20597           from X. Only send based on ConfigureNotify if we don't have the
20598           correct location in hwnd (if the window manager moved us)
20599
20600 2006-08-28  Mike Kestner  <mkestner@novell.com>
20601
20602         * ListView.cs: remove a TODO. 
20603         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
20604         [Fixes ListView part of #79166]
20605
20606 2006-08-28  Mike Kestner  <mkestner@novell.com>
20607
20608         * ListView.cs: move wheel handler to parent since it is focused
20609         instead of the item_control now.  [Fixes #79177]
20610
20611 2006-08-28  Mike Kestner  <mkestner@novell.com>
20612
20613         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
20614         when the control is focused. [Fixes #79171]
20615
20616 2006-08-28  Mike Kestner  <mkestner@novell.com>
20617
20618         * ListView.cs: size the item and header controls for empty and
20619         unscrollable views.
20620         * ThemeWin32Classic.cs: draw disabled backgrounds.
20621         [Fixes #79187]
20622
20623 2006-08-28  Chris Toshok  <toshok@ximian.com>
20624
20625         * Form.cs: remove unused "active_form" static field.
20626
20627         * Hwnd.cs: lock around accesses to static windows collection.
20628
20629         * Application.cs: lock threads in Exit ().
20630
20631 2006-08-28  Chris Toshok  <toshok@ximian.com>
20632
20633         * NativeWindow.cs: lock around accesses to window_collection.
20634         
20635 2006-08-28  Chris Toshok  <toshok@ximian.com>
20636
20637         * Control.cs: err, fix this the right way, by locking on controls
20638         when using it.  not by making it synchronized.
20639
20640 2006-08-28  Chris Toshok  <toshok@ximian.com>
20641
20642         * Control.cs: make the static "controls" field synchronized, as it
20643         gets updated from multiple threads.
20644
20645 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
20646
20647         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
20648           Prevent other threads from exiting when calling thread sets quit state.
20649         * XEventQueue.cs: Added PostQuitState property
20650
20651 2006-08-27  Chris Toshok  <toshok@ximian.com>
20652
20653         * AsyncMethodData.cs: add a slot for the window handle.
20654
20655         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
20656         window (the destination control's window, not the foster window).
20657
20658         * Control.cs (BeginInvokeInternal): store the window's handle in
20659         the AsyncMethodData.
20660         
20661
20662 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
20663
20664         * XplatUIX11.cs:
20665           - PostQuitMessage: Removed resetting S.D display handle, we might have
20666             another loop started after calling PostQuitMessage (Fixes #79119)
20667           - Created destructor to reset S.D handle
20668
20669 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
20670
20671         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
20672
20673 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
20674
20675         * TextControl.cs (Insert): Update the caret position even if we don't
20676           have a handle yet, just don't call the driver in that case.
20677         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
20678           to the end of the new selection text (Fixes #79184)
20679
20680 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
20681
20682         * Form.cs (Activate): Only activate if the handle is created)
20683         * Control.c:
20684           - Mark window as invisible when it's disposed
20685           - Check if window handle is created when setting window visible, 
20686             instead of relying just on the is_created variable
20687           - Check if object is disposed when creating the control (Fixes #79155)
20688
20689 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
20690
20691         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
20692           when allowing layout again. Otherwise we re-generate the anchoring 
20693           distance to the border again and actually alter what the user wanted
20694           This is ugly, it'd be better if we used DisplayRectangle instead of
20695           ClientRectangle for Control.UpdateDistances, but that causes us to
20696           have other problems (initial anchoring positons would be wrong)
20697           (Fixes #78835)
20698
20699 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
20700
20701         * Control.cs:
20702           - The size and location setters shouldn't go directly to 
20703             SetBoundsCore, but to SetBounds, which triggers layout on the
20704             parent, then calls SetBoundsCore. (Related to fix for #78835)
20705           - SetBounds: Moved actual location update code into this function
20706             from SetBoundsCore, to match MS. Added call to PerformLayout if
20707             we have a parent (to trigger resizing of anchored parents if the 
20708             child size has changed (see testcase for #78835) 
20709         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
20710           new control code
20711         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
20712
20713 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
20714
20715         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
20716           System.Drawing when a toplevel window gets closed; there might
20717           be other toplevel windows belonging to the same app (Fixes #78052)
20718
20719 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
20720
20721         * FileDialog.cs: After reading FileDialog settings from mwf_config
20722           use Desktop prefix only if a real folder doesn't exist anymore.
20723         * FontDialog.cs: Added char sets.
20724           It is now possible to select the font, size or style with the
20725           textboxes.
20726
20727 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
20728
20729         * PrintPreviewDialog.cs: Use assembly name constants.
20730
20731 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
20732
20733         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
20734           scrollbar from whacking it's buttons)
20735
20736 2006-08-24  Chris Toshok  <toshok@ximian.com>
20737
20738         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
20739         in this patch (aggregating setting Left/Top/Width/Height to
20740         setting Bounds on the scrollbars), but the crux of the fix is in
20741         Recalculate, where we scroll by the remaining scroll_position if
20742         we're hiding a scrollbar.  The 2*$5 reward in the comment is
20743         serious.
20744
20745 2006-08-24  Jackson Harper  <jackson@ximian.com>
20746
20747         * MdiClient.cs:
20748         * MdiWindowManager.cs: If the form is made a non-mdi window we
20749         need to remove the form closed event so that closing forms works
20750         correctly.
20751
20752 2006-08-24  Jackson Harper  <jackson@ximian.com>
20753
20754         * Control.cs: Make IsRecreating internal so that the driver can
20755         check it
20756         - Temporarily remove the Hide when controls are removed, its
20757         making a whole bunch of things not work because visibility isn't
20758         getting reset elsewhere correctly
20759         * Form.cs: Need to do a full handle recreation when the mdi parent
20760         is set.
20761         * XplatUIX11.cs: If we are recreating handles don't dispose the
20762         HWNDs.  What was happening is the handles were being recreated in
20763         SendWMDestroyMessages, but then flow continued on in that method
20764         and destroyed the new handles.
20765
20766 2006-08-23  Jackson Harper  <jackson@ximian.com>
20767
20768         * Form.cs: MdiClient is always at the back of the bus
20769         * Control.cs: When the order of items in the collection is changed
20770         we need to reset the all_controls array
20771         - do the same sorta setup thats done when adding a control when a
20772         control is set on the collection.
20773
20774 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
20775
20776         * TextBoxBase.cs (get_Text): Return an empty array if our document
20777           is empty (fixes #79052)
20778
20779 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
20780
20781         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
20782           on WM_SYSCHAR messages (fixes #79053)
20783
20784 2006-08-23  Chris Toshok  <toshok@ximian.com>
20785
20786         * DataGrid.cs: fix flickering when scrolling vertically.
20787
20788 2006-08-23  Chris Toshok  <toshok@ximian.com>
20789
20790         * DataGrid.cs (EndEdit): only invalidate the row header when we
20791         need to.
20792
20793 2006-08-23  Chris Toshok  <toshok@ximian.com>
20794
20795         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
20796         methods.  fixes the flicker when scrolling around.
20797
20798 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
20799
20800         * FileDialog.cs: Making sure the control is created before we get a 
20801           chance to use it with BeginInvoke (Fixes #79096)
20802
20803 2006-08-23  Chris Toshok  <toshok@ximian.com>
20804
20805         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
20806         width to use when painting the rows.
20807
20808 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
20809
20810         * TextBoxBase.cs:
20811           - Throw ArgumentException if a negative value is passed to SelectionLength
20812           - Update the selection end if start is moved. end needs to be always
20813             after start. (Fixes #79095)
20814           - Track selection length; MS keeps the selection length even if start
20815             is changed; reset on all other operations affection selection
20816
20817 2006-08-22  Jackson Harper  <jackson@ximian.com>
20818
20819         * TreeView.cs: Make sure both scrollbars get displayed and sized
20820         correctly when the other bar is visible.
20821         - Use the original clip rectangle for checking if the area between
20822         the two scrollbars is visible, not the viewport adjusted clipping
20823         rectangle.
20824
20825 2006-08-22  Jackson Harper  <jackson@ximian.com>
20826
20827         * Binding.cs: We don't use IsBinding because it requires the
20828         control to be created, which really shouldn't be necessary just to
20829         set a property on the control.
20830
20831 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20832
20833         * ComboBox.cs: Some CB.ObjectCollection methods must throw
20834         ArgumentNullReferenceException when the argument is null.
20835
20836 2006-08-21  Jackson Harper  <jackson@ximian.com>
20837
20838         * Timer.cs: Track the thread that the timer is started in (NOT
20839         CREATED), this way messages for it will only be triggered on its
20840         queue.
20841         * XEventQueue.cs: Track the timers here, this makes timers per
20842         thread, like MS.
20843         * XplatUIX11.cs: The timers are moved to the XEventQueue.
20844
20845 2006-08-19  Chris Toshok  <toshok@ximian.com>
20846
20847         * XplatUIX11.cs: after further communication with pdb, we get the
20848         best of both worlds.  SetZOrder working for un-Mapped windows, and
20849         no X errors for un-mapped windows.
20850
20851 2006-08-19  Chris Toshok  <toshok@ximian.com>
20852
20853         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
20854         as it was causing pdn toolbars to not have the correct stacking.
20855
20856 2006-08-18  Mike Kestner  <mkestner@novell.com> 
20857
20858         * ListView.cs : guard against negative ClientArea.Width in scrollbar
20859         calculation.  Not sure why control should ever be setting a negative
20860         width though.  Fixes #78931.
20861
20862 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20863
20864         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
20865         null items in ObjectCollection class.
20866         * ListBox.cs.: Likewise.
20867
20868 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
20869
20870         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
20871           as the base method in ThemeWin32Classic should work fine.
20872           Fixed bug #78607.
20873
20874 2006-08-18  Jackson Harper  <jackson@ximian.com>
20875
20876         * Binding.cs: When validating if the value entered doesn't convert
20877         properly reset to the old value.
20878         * RadioButton.cs: Don't fire click when we get focus.
20879
20880 2006-08-18  Jackson Harper  <jackson@ximian.com>
20881
20882         * FileDialog.cs: Paint the selection on the directory combobox the
20883         same way as on MS. 
20884
20885 2006-08-17  Jackson Harper  <jackson@ximian.com>
20886
20887         * ErrorProvider.cs: Don't allow the error control to be selected.
20888         * Control.cs: Don't send the SetFocus messages, the control
20889         activation will do this, and if we do it blindly here validation
20890         does not work.
20891
20892 2006-08-17  Jackson Harper  <jackson@ximian.com>
20893
20894         * Control.cs:
20895         * ContainerControl.cs: Make validation events fire in the correct
20896         order.  TODO: For some reason the first validation event is not
20897         getting fired.
20898
20899 2006-08-17  Mike Kestner  <mkestner@novell.com> 
20900
20901         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
20902
20903 2006-08-17  Mike Kestner  <mkestner@novell.com> 
20904
20905         * ComboBox.cs : implement scroll wheel support for popped-down
20906         state. Fixes #78945. 
20907
20908 2006-08-17  Jackson Harper  <jackson@ximian.com>
20909
20910         * TreeView.cs: Specify treeview actions (old patch that didn't get
20911         committed for some reason).
20912         - Don't let the mouse wheel scroll us too far.  Just want to make
20913         the bottom node visible, not scroll it all the ways to the top.
20914
20915 2006-08-17  Jackson Harper  <jackson@ximian.com>
20916
20917         * XplatUIX11.cs: Mouse wheel events go to the focused window.
20918
20919 2006-08-17  Mike Kestner  <mkestner@novell.com> 
20920
20921         * ComboBox.cs : don't do mouseover selection in simple mode.
20922
20923 2006-08-16  Jackson Harper  <jackson@ximian.com>
20924
20925         * Form.cs: Fire the closing events for all the mdi child windows
20926         when a window is closed.  If the cancel args are set to true, the
20927         main window still gets the event fired, but it doesn't not close.
20928         * MdiWindowManager.cs: Do this closing cleanup in a Closed
20929         handler, instead of when the button is clicked, so cancelling the
20930         close works correctly.
20931         * ComboBox.cs: Send the mouse down to the scrollbar.
20932
20933 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20934
20935         * ListBox.cs: When passing 'null' to SelectedItem,
20936         set SelectedIndex to -1, to unselect items. This is the
20937         observed behaviour in .Net.
20938
20939 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
20940
20941         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
20942           MS flags saying there won't be any. (fixes #78800)
20943         * Control.cs (HandleClick): Made virtual
20944
20945 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
20946
20947         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
20948           cultures. Fixed bug #78399.
20949
20950 2006-08-16  Jackson Harper  <jackson@ximian.com>
20951
20952         * Form.cs: Use the MdiClients MdiChildren property to access
20953         MdiChildren instead of creating the array from the child controls.
20954         * MdiClient.cs: Maintain a separate array of the mdi children, so
20955         that insertion order is maintained when the Z-order is changed.
20956
20957 2006-08-16  Mike Kestner  <mkestner@novell.com> 
20958
20959         * ListView.cs : add an ItemComparer and default to it for sorting.
20960         Fixes #79076, but sorting needs a complete overhaul to be compat with
20961         MS.
20962
20963 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
20964
20965         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
20966
20967 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
20968
20969         * Hwnd.cs (Mapped): Properly traverse the tree
20970
20971 2006-08-15  Chris Toshok  <toshok@ximian.com>
20972
20973         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
20974         pass manager.Current.GetType() to ParseData.  It has to be the
20975         property type.  So, hold off doing the ParseData until we're in
20976         SetPropertyValue where we know the type.  This fixes the crash in
20977         #78821 but the textbox is still empty.
20978
20979 2006-08-15  Chris Toshok  <toshok@ximian.com>
20980
20981         * DataGrid.cs:
20982         - when we're scrolling, only call Edit() again if the
20983         current cell is still unobscured. Fixes bug #78927.
20984         - when handling mousedown on a cell, ensure the cell is visible
20985         before calling Edit.
20986         - remove the properties from DataGridRow, and remove the
20987         DataGridParentRow class altogether.
20988         
20989
20990 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
20991
20992         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
20993           fire OnTextChanged by ourselves. There's no point calling base,
20994           we don't set the base value anywhere else. Fixes #78773.
20995
20996 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20997
20998         * ListBox.cs: Call CollectionChanged when modifying
20999         an item from Items indexer, to update the actual items
21000         in the list box.
21001
21002 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21003
21004         * PrintDialog.cs: Small fixes for focus and a pair of checks,
21005         to match .Net behaviour.
21006
21007 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
21008
21009         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
21010
21011 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
21012
21013         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
21014
21015 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
21016
21017         * MessageBox.cs: Prevent potential NRE exception.
21018         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
21019
21020 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
21021
21022         * MessageBox.cs: Calculate the owner of a messagebox, also make
21023           it topmost. Fixes #78753
21024
21025 2006-08-14  Chris Toshok  <toshok@ximian.com>
21026
21027         * XplatUIX11.cs: A couple of fixes so that metacity will let us
21028         programmatically move windows.  first, set the PPosition hint as
21029         well as the USPosition hint.  Second include some code from pdb
21030         that sets the window type to NORMAL when we set the transient for
21031         hint.  This is because, in the absence of a window type, metacity
21032         thinks any window with TransientFor set is a dialog, and refuses
21033         to let us move it programmatically.  fascists.
21034
21035 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
21036
21037         * XplatUIX11.cs: When setting normal hints, take into consideration
21038           an different hints previously set so we don't delete them (fixes #78866)
21039
21040 2006-08-12  Chris Toshok  <toshok@ximian.com>
21041
21042         * ToolBarButton.cs: make Layout return a boolean, if something to
21043         do with the button's layout changed.
21044
21045         * ToolBar.cs:
21046         - add another parameter to Redraw, @force, which all existing
21047           calls set to true.
21048         - make the Layout function return a boolean which is true if the
21049           layout has actually changed.  Redraw now uses this (and @force)
21050           to determine when to invalidate.  At present the only place
21051           where @force can be false is the call from OnResize, when
21052           background_image == null.  So, resizing a toolbar when the
21053           layout doesn't change results in no drawing.
21054
21055 2006-08-12  Chris Toshok  <toshok@ximian.com>
21056
21057         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
21058         the VScrollBar and HScrollbar reversed.  oops.
21059
21060         * DataGrid.cs: fix the logic that assigns sizes to the implicit
21061         scrollbars.  we were assigning them twice (once in
21062         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
21063         therefore causing two scrollbar resizes (and redraws?) to happen
21064         per grid resize.
21065
21066 2006-08-12  Chris Toshok  <toshok@ximian.com>
21067
21068         * ToolBarButton.cs: redraw the entire button if the theme tells us
21069         to.
21070
21071         * Theme.cs: add ToolBarInvalidateEntireButton.
21072
21073         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
21074         buttons, just the border.
21075
21076         * ThemeNice.cs: redraw the entire toolbar button since we need to
21077         draw the highlight image.
21078
21079         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
21080         we need to redraw the entire button (not just the border).
21081
21082 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
21083
21084         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
21085           for vertical bars. Fixes the mismatches shown by #78513
21086
21087 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
21088
21089         * FileDialog.cs: If a saved/remembered path doesn't exist
21090           anymore, fall back to "Desktop".
21091
21092 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
21093
21094         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
21095           parent. It's apparently legal to not have one
21096         * XplatUIX11.cs:
21097           - SetZOrder: Don't try to set Z-Order on an unmapped window
21098           - CreateWindow: 0,0 are legal coordinates for a window. don't move
21099             it unless the coordinates are negative
21100
21101 2006-08-10  Mike Kestner  <mkestner@novell.com>
21102
21103         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
21104         when setting to null per msdn docs.  Fixes #78854.
21105
21106 2006-08-10  Chris Toshok  <toshok@ximian.com>
21107
21108         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
21109         flickering by setting a clip rectangle on the Graphics when we
21110         need to redraw just a particular menuitem.  Also, rename "OnClick"
21111         to "OnMouseDown" to reflect what it actually is.
21112         
21113         * Form.cs: track the OnMouseDown change.
21114
21115 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
21116
21117         * CommonDialog.cs: Properly inherit the CreateParams from the form
21118           and only change what we need. Fixes #78865
21119
21120 2006-08-10  Chris Toshok  <toshok@ximian.com>
21121
21122         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
21123         flickering in flat mode (and most of the flickering in general) by
21124         only invalidating the button border (and not the entire rectangle)
21125         when the state changes.  A couple of cases still flicker:
21126         ToggleButtons, and the dropdown arrow case when the user mouse
21127         ups.
21128
21129 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
21130
21131         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
21132           for german keyboards. Numlock state shouldn't affect the behaviour
21133           of the Del key. Fixes bug #78291.
21134
21135 2006-08-10  Chris Toshok  <toshok@ximian.com>
21136
21137         * ListControl.cs: remove the items.Clear line from BindDataItems,
21138         as this is the first thing done by both subclasses in their
21139         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
21140         passed -1, refresh the list.  This gets databinding working when
21141         the datasource is set on the list before the datasource is
21142         populated (as in wf-apps/ReportBuilder.)
21143
21144         * ComboBox.cs: remove the argument to BindDataItems.  This call
21145         should really go away, and be initiated by the ListControl code.
21146
21147         * ListBox.cs: same.
21148
21149 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
21150
21151         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
21152           if no data is in the document when the control is displayed
21153
21154 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
21155
21156         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
21157           yes (fixes #78806)
21158         * TextControl.cs: 
21159           - PositionCaret: Allow positioning of caret but don't call methods 
21160             requiring a handle if the window isn't created yet
21161           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
21162           - owner_HandleCreated: Don't position the caret, just update it's 
21163             location. User might have already set a different position
21164
21165 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
21166
21167         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
21168           windows. Screws up the returned coordinates for child windows. 
21169           Fixes #78825. I'm hoping this doesn't break something, since the
21170           code was explicitly put in 8 months ago, but no bug was attached.
21171           Menus still seem to work properly.
21172
21173 2006-08-08  Chris Toshok  <toshok@ximian.com>
21174
21175         * DataGrid.cs: make BeginInit/EndInit actually do what they're
21176         supposed to do - delay data binding until the EndInit call.  Also,
21177         make the table style collection's CollectionChangeAction.Refresh
21178         work properly.
21179
21180         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
21181         (with action = Refresh) when a consituent table's MappingName is
21182         changed.
21183
21184 2006-08-08  Chris Toshok  <toshok@ximian.com>
21185
21186         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
21187         Invalidate, since changing the text can change the size of the all
21188         toolbar buttons.
21189
21190 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
21191
21192         * Form.cs (AddOwnedForm): Still need to add the form to our listif
21193           we don't have it yet
21194
21195 2006-08-08  Chris Toshok  <toshok@ximian.com>
21196
21197         * PrintControllerWithStatusDialog.cs: don't .Close() the status
21198         dialog, as this causes X errors later on, since we actually
21199         destroy the window.  Instead, .Hide() it.
21200
21201 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
21202
21203         * ComboBox.cs: Added focus reflection for popup window
21204         * XplatUIX11.cs: 
21205           - Removed transient setting for non-app windows for now, not sure it
21206             was needed
21207           - Fixed logic checking if we have captions when deciding 
21208             override_redirect, WS_CAPTION is two bits and a 0 check was not
21209             sufficient
21210           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
21211             complicated
21212         * Form.cs: 
21213           - AddOwnedForm: Don't just add the form to the list, call the property
21214             to ensure the driver is informed about the ownership as well
21215           - CreateHandle: Set the TopMost status in the driver if we have an owner
21216         * XplatUI.cs: Fixed debug statement
21217
21218 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
21219         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
21220           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
21221           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
21222           TrackBarRenderer.cs: Make constructor private.
21223         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
21224         * ProfessionalColorTable.cs: Make properties virtual.
21225
21226 2006-08-06  Duncan Mak  <duncan@novell.com>
21227
21228         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
21229         is not changing.
21230
21231 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
21232         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
21233           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
21234           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
21235           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
21236           Initial import of new 2.0 classes.
21237
21238 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
21239         * Application.cs: Add 2.0 VisualStyles properties.
21240
21241 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
21242         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
21243           XplatUIX11.cs: Create property to allow access to existing private
21244           variable "themes_enabled"
21245
21246 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21247
21248         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
21249         file size, as otherwise our class libraries fail using windows. Fixes
21250         bug #78759.
21251
21252 2006-08-04  Jackson Harper  <jackson@ximian.com>
21253
21254         * Form.cs:
21255         * XplatUIX11.cs: Move the toolwindow window manager creation into
21256         the X11 driver, this way on win32 we can let windows create/handle
21257         the toolwindows.
21258
21259 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21260
21261         * PrintDialog.cs: Remove some redundant checks, add some others,
21262         clean some code, and move the focus to the text boxes when the
21263         values are incorrect.
21264
21265 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
21266
21267         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
21268
21269 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
21270
21271         * NumericUpDown.cs: Setting the Minimum and Maximum is now
21272           handled correctly. Fixes bug #79001.
21273
21274 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21275
21276         * PrintDialog.cs: The "Copies" numeric up down must have
21277         set the Minimum property to 1; only if the value is bigger
21278         than 1, activate "Collate" check box. This is the behaviour of .Net.
21279         Also modify the Document elements only if it is not null.
21280
21281 2006-08-03  Jackson Harper  <jackson@ximian.com>
21282
21283         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
21284         length. (We have a larger array then actual node count).
21285                 
21286 2006-08-03  Jackson Harper  <jackson@ximian.com>
21287
21288         * ComboBox.cs: Don't show selection by default.
21289         - The SelectAll isn't needed here, since the focus code should do
21290         that
21291         - DDL style lists to manual selection drawing, so when they
21292         get/lose focus they have to invalidate.
21293
21294 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
21295
21296         * TextBoxBase.cs: Don't always show all selections by default.
21297
21298 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
21299         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
21300           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
21301           Fixed various typos.
21302
21303 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
21304
21305         * Control.cs: Removing the controls in a ControlCollection with
21306           Clear now hides the controls as expected. Fixes bug #78804. 
21307
21308 2006-08-03  Jackson Harper  <jackson@ximian.com>
21309
21310         * Control.cs: Revert previous focus patch, it breaks reflector.
21311
21312 2006-08-03  Jackson Harper  <jackson@ximian.com>
21313
21314         * ComboBox.cs: Cleanup selection and focus with the combobox.
21315         This also eliminates some duplicated keyboard code, since now
21316         everything is handled by the main class.
21317         - Make list selection work on mouse up instead of down, to match
21318         MS.
21319
21320 2006-08-02  Jackson Harper  <jackson@ximian.com>
21321
21322         * Control.cs: Setting focus needs to go through the whole
21323         selection mechanism.
21324
21325 2006-08-02  Chris Toshok  <toshok@ximian.com>
21326
21327         * PrintPreviewDialog.cs: change MinimumSize to use
21328         base.MinimumSize so it works.
21329
21330 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
21331
21332         * TextControl.cs:
21333           - UpdateCaret: Added sanity check in case caret isn't defined yet
21334           - Line.Delete: Now updating selection and caret markers if we're
21335             transfering a node (Properly fixes #78323)
21336           - SetSelectionEnd: Added sanity check
21337         * TextBoxBase.cs: Removed broken attempt to fix #78323
21338
21339 2006-08-01  Chris Toshok  <toshok@ximian.com>
21340
21341         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
21342         Close() call is handled in Form, not here.
21343
21344 2006-08-01  Chris Toshok  <toshok@ximian.com>
21345
21346         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
21347         layout/rendering.
21348
21349         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
21350         for sizes < 100% zoom.  The code now aggressively attempts to keep
21351         from calling document.Print (), and tries not to use the scaling
21352         g.DrawImage whenever possible (it still does if you scale to >
21353         100%, since usually that involves huge images).
21354
21355         * PrintPreviewControl.cs: hook up the close button.
21356
21357 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
21358         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
21359           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
21360           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
21361           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
21362           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
21363           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
21364           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
21365           Removed [Serializable] for 2.0 Event Handlers.
21366
21367 2006-07-31  Jackson Harper  <jackson@ximian.com>
21368
21369         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
21370         * TextControl.cs: Uncomment out the body of this method.
21371
21372 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
21373
21374         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
21375           standard cursors.
21376
21377 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
21378
21379         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
21380           that embed TextBox and need selections visible even if textbox is not
21381           focused to enforce that behaviour.
21382         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
21383           selection drawing
21384
21385 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
21386
21387         * TextControl.cs:
21388           - Added new SetSelectionStart/SetSelectionEnd overloads
21389           - Fixed viewport width assignment to be accurate
21390           - Adjusted alignment line shift calculations to allow cursor on right
21391             aligned lines to be always visible at the right border (like MS)
21392         * TextBoxBase.cs:
21393           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
21394           - TextBoxBase_SizeChanged: recalculating canvas on size changes
21395           - CalculateScrollBars: Use ViewPort size instead of window size, to
21396             properly consider space occupied by the border and scrollbars 
21397             (Fixes #78661)
21398           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
21399             calculations; no longer leaves artifacts
21400           - CaretMoved: Adjusted window scrolling to match MS and fixed several
21401             calculation bugs (Still missing right/center align calculations)
21402
21403 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
21404
21405         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
21406           use of both scroll rect and clip rect, as they do the same.
21407
21408 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
21409
21410         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
21411           in the event handler (fixes #78912)
21412
21413 2006-07-31  Chris Toshok  <toshok@ximian.com>
21414
21415         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
21416         grid.ListManager.Count, since grid.ListManager might be null.
21417         This of course begs the question "why are we drawing rows for a
21418         grid with no list manager (and therefor no rows)?"  Fixes the
21419         crash in bug #78929.
21420
21421 2006-07-31  Chris Toshok  <toshok@ximian.com>
21422
21423         * RelatedPropertyManager.cs: Don't always chain up to the parent
21424         ctor.  instead, call SetDataSource if the parent's position is !=
21425         -1.  Fixes the crash in #78822.
21426
21427 2006-07-31  Chris Toshok  <toshok@ximian.com>
21428
21429         * DataGrid.cs (get_ListManager): use field instead of property
21430         accessors for datasource and datamember.
21431         (RowsCount): make internal again.
21432         (OnMouseDown): end edits before resizing columns/rows.
21433         (OnMouseUp): restart edits after resizing columns/rows.
21434
21435 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
21436
21437         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
21438           This fixes the situation where the last set cursor is displayed
21439           whenever the mouse is over scrollbars.
21440
21441 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21442
21443         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
21444         Document properties, as well as initial values.
21445
21446 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
21447
21448         * XplatUIWin32.cs (SetBorderStyle): Setting both border
21449           and ClientEdge results in a 3-pixel border, which is
21450           wrong.
21451
21452 2006-07-28  Jackson Harper  <jackson@ximian.com>
21453
21454         * TreeNodeCollection.cs: Fix the clear method.
21455         - Fix the Shrink also
21456
21457 2006-07-27  Jackson Harper  <jackson@ximian.com>
21458
21459         * TreeView.cs: Make sure the visible order is computed when we
21460         attempt to size the scrollbars (for trees that mess with the
21461         scrolling when they shouldn't.
21462         - Make sure to give the scrollbars valid values.
21463
21464 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
21465
21466         * XplatUIX11.cs: Move motion compression code to where it
21467           has less performance impact
21468
21469 2006-07-26  Jackson Harper  <jackson@ximian.com>
21470
21471         * UpDownBase.cs: When the control is selected make the child
21472         controls non selectable, so that a click on them won't do a
21473         focus/unfocus cycle.
21474         - Don't give focus to the text box when the spinner is selected.
21475         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
21476
21477 2006-07-26  Chris Toshok  <toshok@ximian.com>
21478
21479         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
21480         satisfied with this solution.  If the bitmaps are small, we should
21481         just cache them in the PrintPreviewDialog and draw them here.
21482         Also, the layout is broken for the 2-up and 3-up cases.
21483
21484         * Theme.cs: add PrintPReviewControlPaint.
21485
21486         * PrintPreviewDialog.cs: first pass implementation.
21487
21488         * PrintPreviewControl.cs: first pass implementation.  No
21489         scrollbars yet.
21490
21491         * PrintDialog.cs: only validate fields if that particular portion
21492         of the UI is enabled.  Also, set the document's controller to a
21493         PrintControllerWithStatusDialog wrapping the document's print
21494         controller.
21495
21496         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
21497         bring up a SaveFileDialog (i hope we don't want to match the
21498         behavior of the crappy windows file entry) and set the
21499         PrinterSettings.PrintFileName accordingly.
21500
21501 2006-07-26  Jackson Harper  <jackson@ximian.com>
21502
21503         * ContainerControl.cs: Add a field that disables auto selecting
21504         the next control in a container when the container is activated.
21505         * UpDownBase.cs: Don't select the text box when the up down is
21506         selected.
21507
21508 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
21509
21510         * XEventQueue.cs: Added methods for peeking (used for compression
21511           of successive events)
21512         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
21513           mouse move events (fixes #78732)
21514
21515 2006-07-25  Jackson Harper  <jackson@ximian.com>
21516
21517         * UpDownBase.cs: Use an internal class for the textbox so that we
21518         can control focus.  the updown control should always have focus,
21519         if either the text area or the buttons are clicked.
21520         - Send the key messages to the textbox, since it never actually
21521         has focus
21522         - Activate and decativate the textbox caret.
21523
21524 2006-07-24  Jackson Harper  <jackson@ximian.com>
21525
21526         * Control.cs: Use the directed select when selecting a control,
21527         this way the container controls override will get called and the
21528         whole ActiveControl chain will get triggered.  TODO: probably need
21529         to make sure this gets done everywhere instead of the old
21530         Select(Control).
21531         * ContainerControl.cs: Implement the directed Select method to
21532         find and activate the correct child control.    
21533         
21534 2006-07-22  Mike Kestner  <mkestner@novell.com>
21535
21536         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
21537         menu handling code so that clicks without a grab work too.
21538         [Fixes #78914]
21539
21540 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
21541
21542         * FileDialog.cs: Enable the BackButton when dirstack has one element.
21543           Added some small optimizations.
21544
21545 2006-07-21  Matt Hargett  <matt@use.net>
21546
21547         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
21548
21549 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
21550
21551         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
21552           tests pass and match MS in some strange border cases.
21553
21554 2006-07-21  Chris Toshok  <toshok@ximian.com>
21555
21556         * ThemeWin32Classic.cs: handle drawing of the relation links and
21557         parent row buttons.
21558
21559         * Theme.cs: change args to DataGridPaintParentRow.
21560
21561         * DataGrid.cs: Don't use controls for the relation links and
21562         parent buttons, so we have to handle all their interactions in
21563         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
21564         when we're navigating through child tables, so we can reinstate
21565         selection, expanded state, current cell, etc.
21566
21567 2006-07-20  Chris Toshok  <toshok@ximian.com>
21568
21569         * ToolBar.cs: When we redraw a button, for whatever reason,
21570         there's no reason to redraw the entire toolbar.  Also, don't call
21571         Control.Refresh from within Redraw, as it's much heavier than
21572         Invalidate (which is really what we want).
21573
21574 2006-07-20  Chris Toshok  <toshok@ximian.com>
21575
21576         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
21577         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
21578         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
21579         traces from within a debug IBindingList datasource
21580         (in mono/winforms/datagrid) for *days*, I've finally gotten things
21581         to work in a similar fashion.
21582
21583 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21584
21585         * ListBox.cs: Don't call Sort () when setting 
21586         the Sorted property to false (avoid an unnecessary sort).
21587
21588 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21589
21590         * ListControl.cs: DataSource should throw an ArgumentException
21591         instead of a normal exception when the argument is not of the 
21592         correct type.
21593
21594 2006-07-20  Mike Kestner  <mkestner@novell.com>
21595
21596         * Control.cs: add InternalPreProcessMessage to allow us to steal
21597         key events before MWF gets its paws on them.  Adapted from a
21598         suggestion by eno.
21599         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
21600         up/down/left/right navigation. Override the new internal control
21601         method to steal the events since they never make it to WndProc.
21602         * ToolBarButton.cs: don't worry about pushed when setting hilight
21603         since the drawing code prefers pushed to hilight. Invalidate on 
21604         Hilight changes. Fixes #78547 and #78525.
21605
21606 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
21607
21608         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
21609           the canvas size. Fixes #78868
21610
21611 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
21612
21613         * Splitter.cs: Track requested split position until first layout
21614           is performed. Fixes #78871
21615
21616 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
21617
21618         * Application.cs: Removed code that forces 1.x for the version
21619           number if the version started with 0. Not sure why that code was
21620           there and I couldn't find any bugs that indicated we needed it.
21621           Fixes #78869
21622
21623 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
21624
21625         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
21626           ResetDefaults(), just write some output to the console until it's
21627           implemented. Fixes bug #78907 for now. Eliminated two warnings.
21628
21629 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
21630
21631         * PropertyGridView.cs: set StartPosition of drop down forms
21632         so they appear in correct initial spot.  Fixes #78190.
21633
21634 2006-07-19  Mike Kestner  <mkestner@novell.com>
21635
21636         * ThemeWin32Classic.cs: use parent background color when drawing
21637         flat toolbars.  Restructure the conditionals to make sure non-flat
21638         non-Divider toolbars are filled too.  Fixes #78837.
21639
21640 2006-07-19  Mike Kestner  <mkestner@novell.com>
21641
21642         * ListBox.cs: Sort on collection changes even if the handle
21643         isn't created yet.  Fixes #78813.
21644
21645 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21646
21647         * ListControl.cs: DisplayMember should never be null,
21648         and now we assign String.Empty when null is passed to it (this
21649         is the .Net way).
21650
21651 2006-07-17  Mike Kestner  <mkestner@novell.com>
21652
21653         * ListViewItem.cs: restructure Font and subitem Font handling 
21654         to hold a specific font and refer back to owner on null.
21655         Fixes #78761.
21656
21657 2006-07-17  Mike Kestner  <mkestner@novell.com>
21658
21659         * ToolBar.cs: bandaid for side-effect of previous patch which was
21660         discarding explicit heights for non-AutoSize toolbars.  Need to
21661         extend my format tester to deal with AutoSize=false. Fixes #78864.
21662
21663 2006-07-15  Jackson Harper  <jackson@ximian.com>
21664
21665         * LabelEditTextBox.cs:
21666         * TreeView.cs: Use a new LabelEdit class for node editing, this
21667         class automatically 'closes' itself when it gets the enter key or
21668         loses focus.
21669         - Use the client rectangle when setting the trees scrollbars, so
21670         border style is taken into account.
21671         
21672 2006-07-14  Jackson Harper  <jackson@ximian.com>
21673
21674         * TreeNode.cs:
21675         * TreeView.cs: Make the editing work similar to MSs, firing the
21676         events correctly and ending edits correctly.
21677
21678 2006-07-14  Mike Kestner  <mkestner@novell.com>
21679
21680         * ToolBarButton.cs:
21681         * ToolBar.cs: layout restructuring and redraw enhancements to support
21682         formatting changes gracefully, like setting TextAlign, ImageList, 
21683         ButtonSize, and Appearance.  Handles explicit button sizing quirks
21684         of the MS controls.  Things like flat toolbars ignoring button size
21685         but becoming constant sized at the largest button's size.  Normal
21686         toolbars with an image set cannot be shrunk smaller than the image,
21687         but text can be clipped/ignored.
21688         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
21689         is zero.  Seems like DrawString should be smart enough to not put
21690         anything on screen though. Also trim labels and ellipsize at the char
21691         boundary, not word.
21692         Fixes #78711 and #78483.
21693
21694 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
21695
21696         * FolderBrowserDialog.cs: Disable "New Folder" button and
21697           "New Folder" contextmenu menuitem if a folder like "My Computer"
21698           is selected.
21699
21700 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
21701
21702         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
21703         * FolderBrowserDialog.cs:
21704           - Use MWFConfig to store and read size and position settings
21705           - Added code to create a new folder (button or context menu).
21706             Use TreeView labeledit to change the name of the new folder.
21707
21708 2006-07-14  Jackson Harper  <jackson@ximian.com>
21709
21710         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
21711         when the tree is scrolled we end editing.
21712
21713 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
21714
21715         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
21716           Down arrows
21717
21718 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
21719
21720         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
21721         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
21722         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
21723         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
21724         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
21725         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
21726         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
21727         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
21728         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
21729         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
21730         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
21731         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
21732         ListViewItemSelectionChangedEventHandler.cs,
21733         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
21734         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
21735         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
21736         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
21737         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
21738         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
21739         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
21740         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
21741         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
21742         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
21743         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
21744         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
21745         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
21746         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
21747         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
21748         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
21749         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
21750         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
21751         WebBrowserNavigatingEventHandler.cs, 
21752         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
21753
21754 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
21755
21756         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
21757         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
21758         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
21759         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
21760         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
21761         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
21762         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
21763         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
21764         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
21765         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
21766         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
21767         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
21768         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
21769         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
21770         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
21771         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
21772         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
21773         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
21774         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
21775         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
21776         ListViewItemStates.cs, MaskFormat.cs: Added
21777
21778 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
21779
21780         * PropertyGridView.cs: Fix keyboard navigation of drop down.
21781         Patch from eno for bug 78558.
21782         
21783 2006-07-13  Jackson Harper  <jackson@ximian.com>
21784
21785         * TreeView.cs: When an edit is finished make sure that the
21786         selected node is visible.
21787         - When setting the top/bottom use the scrollbars is_visible, so
21788         everything will be set correctly even if the tree isn't visible
21789         yet.
21790
21791 2006-07-13  Jackson Harper  <jackson@ximian.com>
21792
21793         * ComboBox.cs: Revert the item->index part of my previous patch.
21794         * TreeView.cs: Use LostFocus instead of Leave for detecting when
21795         the edit box has lost focus (duh).
21796         - Just make the edit box not visible when we get return, that will
21797         take the focus, which will call EndEdit
21798         * TreeNode.cs When we start editing, notify the treeview.
21799
21800 2006-07-12  Jackson Harper  <jackson@ximian.com>
21801
21802         * ComboBox.cs: Clear out old items before setting the item list.
21803         This prevents databound controls from having their items added
21804         twice.
21805         - Switch the combobox to use indices whereever possible instead of
21806         using Item's.  This allows usto navigate through lists that have
21807         more then one item with the same string value (ie a, b, b, a).
21808         - Scroll the listboxes scrollbar when a non visible item is
21809         highlighted
21810         - Allow keypress to cycle through all the possible values. For
21811         example if you have b1, b2, b3 and hold down the B key all the
21812         values will be cycled through.
21813         
21814 2006-07-12  Jackson Harper  <jackson@ximian.com>
21815
21816         * TextBoxBase.cs:
21817         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
21818         this using the internal methods.
21819         * Control.cs: Add OnGotFocusInternal.  A new method that allows
21820         controls to "override" OnGotFocus and change focus behavior if
21821         needed.
21822         - Same thing for LostFocus
21823         * ComboBox.cs: Pass off focus to the text control properly.
21824
21825 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
21826
21827         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
21828         * FolderBrowserDialog.cs: Almost a complete rewrite.
21829           - Better support for Environment.Specialfolders
21830           - Added support for MWFVFS
21831           - Made setting SelectedPath work
21832
21833 2006-07-12  Jackson Harper  <jackson@ximian.com>
21834
21835         * Control.cs: Optimze getting all the controls.
21836
21837 2006-07-11  Jackson Harper  <jackson@ximian.com>
21838
21839         * ContainerControl.cs: Override SETFOCUS in the container control,
21840         so that it is not selected on mouse click.
21841
21842 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
21843
21844         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
21845           Hopefully we will have a better way once all of focus is complete.
21846
21847 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
21848
21849         * ThemeWin32Classic.cs: Commented out some debug code and fixed
21850           a compile error with csc.
21851
21852 2006-07-11  Jackson Harper  <jackson@ximian.com>
21853
21854         * Control.cs: When hiding a control only select the next control
21855         if the current control was focused.
21856         - Don't handle enter/leave when setting/killing focus, this is
21857         done by the container control.
21858         - Remove is_selected, it's not needed anymore.
21859         - Add utility methods for selecting a child control, and for
21860         firing the Enter/Leave events.
21861         * ContainerControl.cs: When a control is activated fire the
21862         enter/leave events.
21863         - Don't wrap when processing the tab key, so that focus can be
21864         moved outside of the container.
21865         - Use the correct active control
21866
21867 2006-07-11  Jackson Harper  <jackson@ximian.com>
21868
21869         * ComboBox.cs: Remove some debug code that was blinding me.
21870         * UpDownBase.cs: These controls actually aren't implicit, they are
21871         visible to the user.
21872
21873 2006-07-10  Chris Toshok  <toshok@ximian.com>
21874
21875         * DataGrid.cs: move back to the is_adding boolean field.  god i
21876         hate this is_editing/is_adding/is_changing stuff.
21877
21878 2006-07-10  Chris Toshok  <toshok@ximian.com>
21879
21880         * DataGridTableStyle.cs: just check if the property type is bool.
21881         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
21882         Don't use CanRenderType.
21883
21884         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
21885         if our text == NullText.  Remove CanRenderType.
21886
21887         * DataGridBoolColumn.cs: nuke CanRenderType.
21888
21889         * DataGrid.cs: reenable some code to end the current edit inside
21890         of set_CurrentCell.  This fixes the other 1.1.16 regression.
21891         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
21892         Also, remove the visible_row_count arg from CalcRowHeaders, since
21893         we don't need to worry about the actual height of the area.
21894
21895 2006-07-10  Chris Toshok  <toshok@ximian.com>
21896
21897         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
21898         mode, just return.
21899
21900         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
21901         the real sense of the IsInEditOrNavigateMode property (true =
21902         navigate, false = edit).  Also, update OnKeyPress to reflect this.
21903
21904         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
21905         column style exists, we still need to set its property descriptor
21906         to match up with our list manager.
21907
21908 2006-07-10  Chris Toshok  <toshok@ximian.com>
21909
21910         * ThemeWin32Classic.cs: implement the new row/header painting
21911         approach.  The parent row painting will likely go away and
21912         replaced with label controls, but the rest seems to work ok (and
21913         efficiently).
21914
21915         * Theme.cs: change the way we draw datagrid rows.  we don't draw
21916         the row headers as a block now.  Instead we draw them in the
21917         normal draw-row loop.  Add some calls for drawing parent rows and
21918         relation rows.
21919
21920         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
21921         a default table style.  Set the defaults from ThemeEngine.Current,
21922         not SystemColors.  Fix lots of misc issues with property setters.
21923
21924         * DataGrid.cs: move loads of style information out of this class
21925         as it's being duplicated with DataGridTableStyle.  keep track of a
21926         special DataGridTableStyle for the properties we used to mirror
21927         here.  Switch all the style properties to access this table style
21928         instead of instance fields of this class.  Also add a internal
21929         class to represent parent rows (more needs to be stored here, like
21930         the selection state from the parent table, as well as the
21931         expansion state.)  Also, for datasources with relations, do the
21932         right thing for collapse/expand, and add support for the
21933         navigation/parent row buttons.
21934
21935         Lastly, fix the crash in the 1.1.16 build.
21936
21937         * GridTableStylesCollection.cs: make the explicit interface
21938         implementations call the class's methods as opposed to duplicating
21939         them.
21940
21941         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
21942         0 so the text doesn't jump around when we move the cursor.
21943
21944 2006-07-10  Jackson Harper  <jackson@ximian.com>
21945
21946         * TextBoxBase.cs:
21947         * ListBox.cs: Match MS's ToString (this makes debugging focus
21948         stuff infinitely easier).
21949
21950 2006-07-10  Jackson Harper  <jackson@ximian.com>
21951
21952         * Control.cs (SelectNextControl): When checking the control's
21953         parent use this instead of ctrl.parent so that null can be passed
21954         to SelectNextControl. (I have unit tests for this).
21955         - Remove unused var.
21956
21957 2006-07-10  Chris Toshok  <toshok@ximian.com>
21958
21959         * CurrencyManager.cs: correct one regression, the removal of the
21960         finalType field.  Also, add a MonoTODO on CanAddRows, implement
21961         Refresh() correctly, and fix some event emission in
21962         ListChangedHandler.
21963
21964 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
21965
21966         * FileDialog.cs: Don't use brackets for new folders if they exist
21967           under *nix. Instead use -(number of existing folders +1).
21968
21969 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
21970
21971         * FileDialog.cs:
21972           - Fixed really nasty bug #78771
21973           - Don't block the whole GUI when reading directories with a lot of
21974             entries. Use an other thread instead and call BeginInvoke to
21975             update the ListView in MWFFileView
21976
21977 2006-07-07  Chris Toshok  <toshok@ximian.com>
21978
21979         * Control.cs (Dispose): release any Capture when disposing.
21980
21981 2006-07-07  Chris Toshok  <toshok@ximian.com>
21982
21983         * LinkLabel.cs (Select): if we chain up to the parent, set
21984         focused_index to -1 so we'll search for the first available link
21985         the next time the user tabs into us.  Also, if the direction is
21986         backward and focused_index == -1, start the search from the last
21987         element.
21988
21989 2006-07-07  Chris Toshok  <toshok@ximian.com>
21990
21991         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
21992         is beyond the end of the text, don't do anything.
21993         (CreateLinkPieces): set our ControlStyles.Selectable based on
21994         whether or not we have any links.
21995         (Link.Invalidate): use a loop instead of foreach.
21996         (Link.set_Start): null out owner.sorted_links so it'll be
21997         recreated by CreateLinkPieces.
21998
21999 2006-07-06  Chris Toshok  <toshok@ximian.com>
22000
22001         * LinkLabel.cs: revert the SetStyle change.
22002
22003 2006-07-06  Chris Toshok  <toshok@ximian.com>
22004
22005         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
22006         (OnEnableChanged): s/Refresh/Invalidate
22007         (OnGotFocus): if we have a focused index already, refocus it (so
22008         if we mouse out/in to the window it'll focus the right link).
22009         (OnKeyDown): move the tab handling out of here.
22010         (OnLostFocus): don't set focused_index to -1, so we can refocus it
22011         when we lose focus.
22012         (OnMouseDown): don't Capture here - Control handles it.  Also,
22013         focus the active link.
22014         (OnMouseUp): don't deal with Capture.
22015         (OnPaintBackgroundInternal): remove.
22016         (OnTextAlignChanged): CreateLinkPieces before calling the
22017         superclass's method.
22018         (OnTextChanged): call CreateLinkPieces before calling superclass's
22019         method.
22020         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
22021         move around.
22022         (Select): implement this, moving the selection between different
22023         links, and call parent.SelectNextControl if we don't have another
22024         link to focus in the given direction.
22025         (CreateLinkPieces): call Invalidate instead of Refresh.
22026         
22027 2006-07-06  Chris Toshok  <toshok@ximian.com>
22028
22029         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
22030         new LinkLabel internals.
22031
22032         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
22033         over pieces looking for active/focused/etc links.  also, deal with
22034         runs of text (and links) with embedded \n's in them, and use
22035         MeasureCharacterRanges instead of MeasureString to figure out the
22036         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
22037         two-step.
22038
22039 2006-07-04  Jackson Harper  <jackson@ximian.com>
22040
22041         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
22042         XKB or key auto repeat, do it manually.  Without key auto repeat,
22043         when a key is held down we get key press, key release, key press,
22044         key release, ... with auto repeat we get key press, key press, key
22045         press ..., and then a release when the key is actually released.
22046
22047 2006-07-03  Jackson Harper  <jackson@ximian.com>
22048
22049         * TabControl.cs:
22050         * ThemeWin32Classic.cs: Tabs do not obey normal background color
22051         rules, they are always control color regardless of the background
22052         color.
22053
22054 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
22055
22056         * FileDialog.cs: Added internal class MWFConfig.
22057           Removed Registry support and replaced it with support for the new
22058           MWFConfig class. See MWFConfig comments for more information.
22059
22060 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
22061
22062         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
22063           rectangle. Added some patches from eno from bug #78490 and fixed
22064           the arrow position for small up and down CPDrawScrollButtons.
22065
22066 2006-06-30  Jackson Harper  <jackson@ximian.com>
22067
22068         * InternalWindowManager.cs: Remove some debug code.
22069         * Form.cs: When an MdiParent is set to null, the window is
22070         "detatched" and becomes a normal window.
22071         * MdiClient.cs: Don't bring the new child form to the front until
22072         it is activated (setting it as active does this), this makes the
22073         previously active forms titlebar get redrawn as inactive.
22074
22075 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
22076
22077         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
22078           with later controls
22079
22080 2006-06-29  Mike Kestner  <mkestner@novell.com>
22081
22082         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
22083         arrow in keynav state.  Fixes #78682.
22084
22085 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
22086
22087         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
22088           order (fixes #78393)
22089
22090 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
22091
22092         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
22093           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
22094           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
22095           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
22096           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
22097           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
22098           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
22099           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
22100           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
22101           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
22102           enumerations (FlagsAttribute, SerializableAttribute, added/removed
22103           values)
22104
22105 2006-06-28  Mike Kestner  <mkestner@novell.com>
22106
22107         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
22108
22109 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
22110
22111         * PropertyGrid.cs,
22112           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
22113           item lines from other area (It also makes BackColor consistent and
22114           compatible with .NET). Fixed bug #78564.
22115
22116 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
22117
22118         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
22119         Patch from Eno for #78555.
22120
22121 2006-06-27  Chris Toshok  <toshok@ximian.com>
22122
22123         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
22124
22125         * DataGridColumnStyle.cs: same.
22126
22127         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
22128         
22129         * DataGridDrawingLogic.cs: nuke.
22130
22131 2006-06-27  Chris Toshok  <toshok@ximian.com>
22132
22133         * DataGridTableStyle.cs: clean up the constructors, and build the
22134         list of child relations for this table.  I have no idea if this is
22135         where we should be doing it (it probably isn't), but since we're
22136         already iterating over the properties..
22137
22138         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
22139         struct and array for keeping track of row information, similar to
22140         what's shown in a hack on
22141         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
22142
22143         * Theme.cs: be consistent about the naming of DataGrid methods,
22144         prefering ColumnWidths and RowHeights over columnsWidths and
22145         RowsHeights.
22146
22147         * ThemeWin32Classic.cs: same, and also add support for variable
22148         sized rows (and the +/- expansion icons for related rows).
22149
22150 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
22151
22152         * TextBoxBase.cs: Applied Eno's patch from #78660
22153
22154 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
22155
22156         * Form.cs (ScaleCore): We don't want to scale our form if it's
22157           state is minimized or maximized, but we still need to scale our
22158           child windows. Also, added try/finally block to ensure layout
22159           gets reset (Fixes #78697)
22160
22161 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
22162
22163         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
22164
22165 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
22166
22167         * Form.cs: Fixed c+p error and added check to resize form if minimum
22168           size is bigger than current size (Fixes #78709)
22169
22170 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
22171
22172         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
22173
22174 2006-06-26  Mike Kestner  <mkestner@novell.com>
22175
22176         * ComboBox.cs: only do Keypress handling in the combo when there  
22177         are items in the collection. Fixes #78710.
22178
22179 2006-06-26  Chris Toshok  <toshok@ximian.com>
22180
22181         * Binding.cs: make this work bi-directionally.  also, clear up
22182         other mixups between Push/Pull Data (e.g. we're supposed to pull
22183         data when validating).
22184
22185         * BindingManagerBase.cs: trim some fully qualified collection
22186         types.
22187
22188         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
22189
22190 2006-06-23  Chris Toshok  <toshok@ximian.com>
22191
22192         * PropertyManager.cs: It appears (according to the unit tests)
22193         that PropertyManager doesn't use
22194         PropertyDescriptor.AddValueChanged to track propery value changes
22195         in its datasource, but uses the same scheme as Binding, where it
22196         looks for a <Property>Changed event and binds to it.
22197
22198         Also, according to the docs, IsSuspended always returns false for
22199         a property manager with a non-null datasource.
22200
22201 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
22202
22203         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
22204           need to update the actual DialogResult. (Fixes #78613)
22205
22206 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
22207
22208         * Form.cs (ShowDialog): Release any captures before running the
22209           new message pump (fixes #78680)
22210
22211 2006-06-22  Mike Kestner  <mkestner@novell.com>
22212
22213         * ListView.cs: Layout column widths properly in details mode even 
22214         if HeaderStyle.None is set.  Fixes #78691.
22215
22216 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
22217
22218         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
22219
22220 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
22221
22222         * Control.cs (ContainsFocus): Using new driver method to get focused
22223           window, instead of trying to use internal tracking var, which can
22224           recursion issues (Fixes #78685)
22225         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
22226           XplatUIWin32.cs: Added GetFocus method to return focused window
22227
22228 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22229
22230         * ColorDialog.cs: when the mouse button is pressed inside the color
22231         matrix, don't let the cursor move out of it until the button is
22232         released, which is the behavior on windows. Changed 'colours' by
22233         'colors' to use the same word consistently.
22234
22235 2006-06-21  Chris Toshok  <toshok@ximian.com>
22236
22237         * DataGrid.cs: add in some basic navigation stuff (navigating to a
22238         child relation and back, using a stack).  Also, remove
22239         GetDataSource and the code that calls it - it's not needed.  Also,
22240         track CurrencyManager.ListName's removal.
22241
22242 2006-06-21  Chris Toshok  <toshok@ximian.com>
22243
22244         * CurrencyManager.cs: push some of the original type checking from
22245         BindingContext.CreateBindingManager to here, and remove some of
22246         the finalType stuff.  Need more tests to make sure I've got the
22247         ListName part right, and we might need more in SetDataSource.
22248
22249         * PropertyManager.cs: add a ctor that takes just the datasource,
22250         and no property name.  Make SetDataSource work with a null
22251         property_name, and make Current return the data_source if the
22252         property descriptor is null.  this makes 'string foo = "hi";
22253         BindingContext[foo].Current' return "hi" as it should.
22254
22255         * RelatedCurrencyManager.cs: make this code more generic - there's
22256         no reason the parent manager has to be CurrencyManager, and
22257         there's no reason to pass the DataRelation.  It suffices to use a
22258         BindingManagerBase and PropetyDescriptor.
22259
22260         * RelatedPropertyManager.cs: make a similar change here.
22261         
22262         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
22263         flower I knew it could be.
22264
22265 2006-06-20  Chris Toshok  <toshok@ximian.com>
22266
22267         * PropertyManager.cs: the PropertyChangedHandler is invoked when
22268         data in the source has changed and we need to update the control,
22269         so s/PullData/PushData.
22270
22271         * CurrencyManager.cs: Refresh is meant to update the control from
22272         data in the datasource.  So, s/PullData/PushData.
22273
22274         * BindingContext.cs: add more ugliness (we weren't handling the
22275         case where data_source = DataTable and data_member = column_name).
22276
22277         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
22278         from the perspective of the datasource.  PullData pulls from the
22279         control, PushData pushes to the control.
22280
22281 2006-06-20  Chris Toshok  <toshok@ximian.com>
22282
22283         * BindingContext.cs: rewrite the CreateBindingManager code to
22284         handle navigation paths more or less properly.  This could
22285         definitely stand some more work, in particular to push the
22286         recursion up to the toplevel.  But that relies on fixes in other
22287         places (System.Data comes to mind).
22288
22289         Also, move to a flat hashtable (and encode the twolevel nature of
22290         the dictionary into the hash key).  This lets us implement the
22291         IEnumerable.GetEnumerator method.
22292
22293         * RelatedCurrencyManager.cs: new class.  Update our view based on
22294         our relation and our parent CurrencyManager's position.
22295
22296         * CurrencyManager.cs: split out some logic from the ctor into
22297         SetView, so it can be called from the new RelatedCurrencyManager
22298         subclass.
22299
22300         * RelatedPropertyManager.cs: new class.  Update our datasource
22301         based on the position of our parent CurrencyManager.
22302
22303         * PropertyManager.cs: split out some logic from the ctor into
22304         SetDataSource, so it can be called from the new RelatedDataSource
22305         subclass.  Also, make the Current getter return the value
22306         of the PropertyDescriptor, not the data_source.
22307
22308         * Binding.cs: no need to duplicate the string splitting code here.
22309
22310 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
22311
22312         * Control.cs:
22313           - set_Enabled: OnEnabledChanged is not called if the inherited state 
22314             of the control is not altered, even though  we might be changing the
22315             internal state of the control (#78458)
22316           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
22317             OnEnabledChanged, to allow easy altering of any child window state
22318           - OnEnabledChanged: Added code to enable/disable driver window state
22319           - OnParentEnabledChanged: Instead of firing the event, call 
22320             OnEnabledChanged, which will fire the event and also a) set driver
22321             window state and pass the enabled state to any grandchildren (#78458)
22322
22323 2006-06-19  Jackson Harper  <jackson@ximian.com>
22324
22325         * InternalWindowManager.cs: We don't set the cursor explicitly
22326         thats done via the response to NCHITTESTs.
22327         - Don't need to adjust for titlebar heights anymore, the
22328         coordinates are coming in the correct coordinates now (see peters
22329         last patch).
22330
22331
22332 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
22333
22334         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
22335           being translated relative to whole window, instead of client window.
22336           That caused broken offsets on mouseclick (and caused gas for our
22337           InternalWindowManager)
22338
22339 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
22340
22341         * TextControl.cs:
22342           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
22343           - Undo(): Added replay of cursor move on DeleteChars action; added
22344             calling Undo() again if a recorded cursor move is invalid (to
22345             ensure that some action is performed on Undo)
22346         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
22347
22348 2006-06-16  Jackson Harper  <jackson@ximian.com>
22349
22350         * MdiClient.cs: Instead of just sizing maximized windows when
22351         there is a resize we also have to adjust the Y of minimized
22352         windows, so they stay pinned to the bottom of the mdi container.
22353         - Eliminate separate tracking of the active control, we can just
22354         get this from the controls collection.
22355         - Paint the decorations for the newly activated titlebar so we get
22356         a pretty blue bar.
22357         * InternalWindowManager.cs:
22358         * ThemeWin32Classic.cs: Minimized windows get all three buttons
22359         even if they are a tool window.
22360         
22361 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
22362
22363         * TextControl.cs (Undo): Handle non-existent cursor locations in the
22364           undo buffer, these can happen when text was deleted and the cursor
22365           was recorded first. Since we will also have a recorded cursor
22366           after the delete this is not an issue. (Fixes #78651)
22367
22368 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
22369
22370         * AccessibleObject.cs: Remove dependence on Control.is_selected;
22371           instead properly track control states internally (allows us to
22372           remove is_selected from Control)
22373
22374 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22375
22376         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
22377         whose width is not a multiple of 8.
22378
22379 2006-06-13  Jackson Harper  <jackson@ximian.com>
22380
22381         * MdiClient.cs:  Only maximize the next child if the current one
22382         is maximized.
22383
22384 2006-06-13  Chris Toshok  <toshok@ximian.com>
22385
22386         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
22387         modified.  Also, guard against grid or grid_drawing being null in
22388         Invalidate.
22389
22390         * DataGrid.cs: Reformat tons of getters/setters.  In the
22391         DataMember setter, just call SetNewDataSource instead of
22392         duplicating some of its functionality.  In SetNewDataSource, don't
22393         check ListManager for null, since the property getter creates the
22394         object if needed.
22395
22396         * DataGridTableStyle.cs: don't set TableStyle or call
22397         SetDataGridInternal on the column here, it's done in
22398         GridColumnStylesCollection.Add.
22399
22400         * GridColumnStylesCollection.cs: fix all the explicit interface
22401         implementations to just call our methods.  Nuke AddInternal() and
22402         move the body of it to Add().  Also, add a call to
22403         column.SetDataGridInternal to Add().
22404
22405         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
22406         base()+duplicate code.  Also, use the Format property instead of
22407         format to generate an Invalidate ala MS.  Lastly, create the
22408         textbox here, unconditionally.
22409         (set_Format): call Invalidate.
22410         (get_TextBox): no need to call EnsureTextBox.
22411         (Commit): remove the message box.
22412         (Edit) remove the call to EnsureTextBox.
22413         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
22414         (EnterNullValue): no need to check textbox for null.
22415         (HideEditBox): no need to check textbox for null.
22416         (SetDataGridInColumn): add the textbox to the grid's controls.
22417         (EnsureTextBox): nuke.
22418         
22419 2006-06-13  Jackson Harper  <jackson@ximian.com>
22420
22421         * MdiWindowManager.cs: Hook up to the maximized menus paint event
22422         and redraw the buttons when needed. Unhook when the window is
22423         unmaximized.
22424         * MainMenu.cs: Add an internal Paint event, the mdi window manager
22425         needs this so that it can redraw its buttons when the menu is
22426         repainted.
22427         * InternalWindowManager.cs:
22428         * Form.cs: The method order has changed for DrawMaximizedButtons,
22429         so that it can be a PaintEventHandler.
22430         
22431 2006-06-13  Jackson Harper  <jackson@ximian.com>
22432
22433         * MdiClient.cs: When we close a maximized mdi window, the next mdi
22434         window is activated and maximized, even if it wasn't before.
22435         - When  a new window is activated repaint the decorations of the
22436         old one, so that it no longer has the Active "look" (the blue
22437         titlebar).
22438         * InternalWindowManager.cs: Open up CreateButtons to base classes
22439         so they can recreate the buttons on state changes.
22440         - If a window is maximized give it all three buttons
22441         * MdiWindowManager.cs: Create the titlebar buttons when the state
22442         is changed, this is needed because a toolwindow will not have all
22443         three buttons until it is maximized.
22444
22445 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
22446
22447         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
22448           Fixed bug #78609.
22449
22450 2006-06-12  Jackson Harper  <jackson@ximian.com>
22451
22452         * KeysConverter.cs: Make sure we handle the Ctrl special case
22453         if its the only key.
22454         
22455 2006-06-12  Jackson Harper  <jackson@ximian.com>
22456
22457         * Theme.cs: Add a method to get the size of a managed window
22458         toolbar button.
22459         * InternalWindowManager.cs: Remove the ButtonSize property, this
22460         should be retrieved from the theme.
22461         * MdiWindowManager.cs: Get the button size from the theme
22462         * ThemeWin32Classic.cs: Make the method to get the managed window
22463         titlebar button size public.
22464         - Handle the different button sizes of maximized toolwindows
22465         (should match any maximized window).
22466         - Get the titlebar height from the theme, not the WM (which gets
22467         it from the theme).
22468
22469 2006-06-12  Jackson Harper  <jackson@ximian.com>
22470
22471         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
22472         event down to the mdi window manager.
22473         - Expose some extra stuff to base classes
22474         - Make sure to end the Capture on an NC Mouse up, so that we can
22475         get double clicks properly, and the sizing doens't stick.
22476         - When doing PointToClient contain it in the workable desktop
22477         area, this prevents windows from changing size when the cursor is
22478         pulled outside of the working area while sizing.
22479         * MdiWindowManager.cs: When we get a double click maximize the
22480         window.
22481         - Reset the cursor after handling mode changes.
22482
22483 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
22484
22485         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
22486           current desktop, instead of just assuming a 0, 0 origin. This
22487           is needed for our internal window manager, to know the top
22488           margin of the desktop
22489
22490 2006-06-12  Chris Toshok  <toshok@ximian.com>
22491
22492         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
22493         we need this to get rid of the selected background in the bool
22494         column.
22495         (CancelEditing): move the ConcedeFocus call to above the Abort
22496         call.  Also, set is_changing to false and invalidate the row
22497         header if we were changing before.
22498         (ProcessKeyPreviewInternal): remove, since noone outside this
22499         class calls it anymore.  Roll the code into ProcessKeyPreview.
22500         (EndEdit): remove the internal version.
22501         (InvalidateCurrentRowHeader): make private.
22502
22503         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
22504         Keys.Escape handling (and with it the last call to
22505         DataGrid.EndEdit from outside the class.)
22506
22507
22508 2006-06-12  Chris Toshok  <toshok@ximian.com>
22509
22510         * DataGridTextBox.cs (.ctor): isedit defaults to false.
22511         (OnKeyPress): set isedit to true.
22512         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
22513         already handled by the grid.
22514
22515         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
22516         right.  ugh.
22517         (set_DataSource): SetDataSource always returns true, so stop
22518         putting it in an if statement.
22519         (EndEdit): get rid of some {}'s
22520         (ProcessGridKey): return true in case Keys.Escape.
22521         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
22522         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
22523         PositionChanged, stopped connecting to CurrentChanged.
22524         (GetDataSource): simplify this a bunch.
22525         (SetDataSource): change return type from bool to void.
22526         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
22527         to this, and make sure we don't set ListManager.Position inside
22528         set_CurrentCell.
22529         (OnListManagerItemChanged): if we're passed an actual index,
22530         redraw that row.
22531
22532         * CurrencyManager.cs (set_Position): don't call PullData here.
22533
22534 2006-06-09  Jackson Harper  <jackson@ximian.com>
22535
22536         * TreeNode.cs:  Recalculate the visible order before doing the
22537         Expand/Collapse Below calls, because those calls generate an
22538         expose.
22539         - Reduce calls to the TreeView property, which is mildly expensive
22540         by using a local var.
22541         * Form.cs: Layout the MDI child windows when creating the parent
22542         form.
22543         - Don't use the internal constructor anymore
22544         * MdiClient.cs: use the parent form width/height (if available)
22545         when laying out the child windows, we do this because the
22546         mdiclient isn't docked yet when the initial layout is done.
22547         - Don't need an internal constructor anymore.
22548
22549 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22550
22551         * FileDialog.cs: handle access errors when trying to create a folder
22552         or changing to a directory. No need to initialize out parameters.
22553
22554 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
22555
22556         * FileDialog.cs: Append a number when creating a new folder if the
22557           folder already exists (use parenthesis instead of square brackets)
22558
22559 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
22560
22561         * FileDialog.cs:
22562           - Disabled registry support for windows and added better registry
22563             error checking for other systems (need to investigate why it
22564             works perfectly on my system)
22565           - If a folder already exist show an error MessageBox instead of
22566             trying to create an indexed name.
22567           - Fixed a non intentional typo.
22568
22569 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22570
22571         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
22572
22573 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
22574
22575         * FileDialog.cs: When creating a new folder don't crash if the
22576           folder already exists.
22577
22578 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
22579
22580         * FileDialog.cs: Allmost a complete rewrite.
22581           - added a "virtual" file system that handles the differences
22582             between unix and windows file systems (especially the directory
22583             structure). Moved most of the directory and file handling code
22584             into the vfs.
22585             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
22586             UnixFileSystem and FSEntry.
22587           - Recently used folder/directory, size, location and used file names
22588             (file name ComboBox) are now stored in the registry and get read
22589             before the dialog shows up (fixes part 6 of bug #78446).
22590           - Creation of new folders/directories is now possible (context menu
22591             or ToolBar). Added TextEntryDialog for this that fills in the gap
22592             until ListView.LabelEdit works.
22593           - Fixed cursor handling (bug #78527) and focus handling for
22594             PopupButtonPanel
22595           - Various "Search in" ComboBox enhancements. The content of the
22596             dropdown listbox now almost matches ms.
22597           - Changed the behaviour when the user switches to SpecialFolder
22598             Recent to show the ListView in View.Details.
22599           - Beside using the ToolBar to change the View property of the
22600             file ListView it is now possible to use the context menu too.
22601
22602 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
22603
22604         * ComboBox.cs: Don't create a new ObjectCollection when an item
22605           gets inserted. Just insert the item in the existing object_items
22606           ArrayList.
22607
22608 2006-06-08  Jackson Harper  <jackson@ximian.com>
22609
22610         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
22611         that the treeview and root node checks are done also, this fixes a
22612         regression i caused in the unit tests.
22613
22614 2006-06-07  Wade Berrier <wberrier@novell.com> 
22615
22616         * RichTextBox.cs: More ISO8859-1 -> unicode
22617
22618 2006-06-07  Mike Kestner  <mkestner@novell.com>
22619
22620         * ComboBox.cs : use items to hold highlight/selection so that
22621         collection insertions don't require synchronization.
22622
22623 2006-06-07  Jackson Harper  <jackson@ximian.com>
22624
22625         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
22626         routine.  We now always keep the sized edge at the cursor instead
22627         of computing movement and adjusting rects.  There is one buglet
22628         with this method though when the cursor is moved over area that
22629         the window can not expand too (such as the toolbars on the desktop).
22630
22631 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22632
22633         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
22634         here. Fixes crash on startup in AlbumSurfer.
22635
22636 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
22637
22638         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
22639           values
22640
22641 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22642
22643         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
22644         statement to avoid calling XNextEvent which will block if another thread
22645         took the event that we were expecting. Fixes bug #78605.
22646
22647 2006-06-07  Mike Kestner  <mkestner@novell.com>
22648
22649         * ListView.cs : isolated checkbox clicking from the selection logic.
22650         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
22651
22652 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22653
22654         * Form.cs: Check that the value passed to Form.DialogResult
22655         is a valid enum value.
22656
22657 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22658
22659         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
22660         Computer'. Clicking it in the network view goes to 'My Computer'.
22661         Added CIFS filesystem type. Display the mount point of filesystems.
22662         Avoid duplicate mount points (happens for me with CIFS);
22663
22664 2006-06-06  Jackson Harper  <jackson@ximian.com>
22665
22666         * InternalWindowManager.cs: Draw the maximized windows buttons
22667         when resizing.
22668
22669 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22670
22671         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
22672         all other dialogs. Fixes bug #78585.
22673
22674 2006-06-06  Mike Kestner  <mkestner@novell.com>
22675
22676         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
22677         Only invalidate checkbox on checkstate changes to avoid flicker.
22678         * ListBox.cs : avoid unselect/select when clicking selected item.
22679         avoid reselection flicker for already multiselected items.
22680         Fixes #78382.
22681
22682 2006-06-06  Jackson Harper  <jackson@ximian.com>
22683
22684         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
22685         the parent form so that the menu is removed if needed.
22686
22687 2006-06-06  Mike Kestner  <mkestner@novell.com>
22688
22689         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
22690         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
22691
22692 2006-06-06  Mike Kestner  <mkestner@novell.com>
22693
22694         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
22695
22696
22697 2006-06-06  Jackson Harper  <jackson@ximian.com>
22698
22699         * Control.cs: Use the property (instead of the field) to get the
22700         default cursor so it is instantiated correctly.
22701         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
22702         resizes so we need to manually repaint the window decorations here.
22703         - Set the titlebar button locations as soon as they are created,
22704         otherwise they are not set correctly on win32.
22705         
22706 2006-06-06  Chris Toshok  <toshok@ximian.com>
22707
22708         * CurrencyManager.cs (set_Position): call PullData before
22709         OnCurrentChanged.
22710         (AddNew): after calling IBindingList.AddNew, update our
22711         listposition, and call OnCurrentChanged/OnPositionChanged (without
22712         calling PullData).
22713         (OnCurrentChanged): remove the call to PullData from here.
22714         (OnItemChanged): remove the call to PushData from here.
22715         (OnPositionChanged): change the test from == null to != null to
22716         match the other methods.
22717         (ListChangedHandler): the grossest part of the patch.  Implement
22718         this such that it passes the unit tests in CurrencyManagerTest and
22719         the output more or less matches that of MS's implementation.
22720  
22721 2006-06-06  Mike Kestner  <mkestner@novell.com>
22722
22723         * ListView.cs : only update check state on single click.
22724         * ThemeWin32Classic.cs : fix focus drawing for details view without
22725         fullrowselect.  Fixes #78454.
22726         * XplatUIX11.cs : fix for double click emission.
22727
22728 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
22729
22730         * PropertyGridView.cs : Applied Atsushi's patch to fix
22731         font dialog bug  (#78197).
22732
22733 2006-06-05  Jackson Harper  <jackson@ximian.com>
22734
22735         * TreeNode.cs: Compute the next node for expanding/collapsing
22736         correctly. We now factor in nodes without a NextNode
22737         correctly. (Fixes somes cases in nunit-gui).
22738         * InternalWindowManager.cs: Set the bounds when updating the
22739         virtual position of a tool window.
22740         
22741 2006-06-05  Chris Toshok  <toshok@ximian.com>
22742
22743         * DataGrid.cs: rename cached_currencymgr to list_manager.
22744         (set_CurrentCell): move SetCurrentCell code here, and clean it up
22745         some.
22746         (CurrentRow, CurrentColumn): single accessors so we can make the
22747         cursor movement code a lot easier to understand.
22748         (CurrentRowIndex): implement this in terms of CurrentRow.
22749         (BeginEdit): clean this up a bit.
22750         (CancelEditing): sort out the is_editing/is_changing/is_adding
22751         stuff a little.
22752         (EndEdit): minor changes.
22753         (OnKeyDown): add a comment about a (most likely) unnecessary
22754         check.
22755         (OnMouseDown): cancel editing when we click on a row header.  And
22756         use the CurrentRow setter, not CurrentCell.
22757         (ProcessDialogKey): directly call ProcessGridKey.
22758         (UpdateSelectionAfterCursorMove): factor out this common block of
22759         code (it's used everywhere that we move the cursor by updating row
22760         or column).
22761         (ProcessGridKey): pretty substantial overhaul.  Use the
22762         CurrentRow/CurrentColumn properties to make the code a lot more
22763         readable.  Only use the CurrentCell property when we have to
22764         modify both row and column at once.  Tab behavior is still broken,
22765         and Delete is untested.
22766         (Select): if we have no selected rows, set selection_start to
22767         @row.
22768         (EditCurrentCell): rename EditCell this.  It was only ever invoked
22769         with CurrentCell as the arg, so drop the arg and rename it.
22770
22771         * DataGridColumnStyle.cs: clean up the constructors a little, and
22772         drop CommonConstructor().
22773
22774         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
22775         actually get notified when the user hits it.
22776         (ProcessKeyMessage): *substantially* simplify this method.
22777         There's no reason (that I can see) for the textbox to be making
22778         calls into the datagrid at all.  Remove all of them but the ones
22779         for Enter handling.  those will take some more work.
22780
22781         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
22782         calling HideEditBox.
22783         (HideEditBox): if we have an active textbox, render it invisible
22784         without causing a re-layout of the datagrid.
22785
22786 2006-06-05  Mike Kestner  <mkestner@novell.com>
22787
22788         * ListView.cs : fix NRE crasher when focuseditem is cleared by
22789         collection changes by resetting it to Items[0].  Fixes #78587.
22790
22791 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22792
22793         * MessageBox.cs: if the height of the text is larger than the icon_size,
22794         use that. Fixes bug #78575.
22795
22796 2006-06-05  Jackson Harper  <jackson@ximian.com>
22797
22798         * TreeView.cs: Fix line drawing when scrolling.  To do this each
22799         node is basically responsible for drawing its entire horizontal
22800         area.  When drawing a node it draws its parent node lines if
22801         needed.
22802         - Adjust the clip area to the viewport rectangle
22803         - Fix Left/Right key handling to match MS. (It expand/collapses
22804         and moves to parents/first child but does not move selection to
22805         sibling nodes).
22806         - Fix SetTop to work with new bound calculation code
22807         - When scrollbars are no longer needed we need to reset scrolling
22808         vars and recalculate the visible order so the redraw is correct
22809         * TreeNode.cs: We can't expand/collapse nodes with no children.
22810
22811 2006-06-03  John Luke  <john.luke@gmail.com> 
22812
22813         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
22814         so the colors work without dev packages
22815         
22816 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
22817
22818         * Control.cs 
22819           - Select: Implemented to just use activate. Seems to match MS 
22820             behaviour closest. Documented to only do actual control walking 
22821             based on it's parameters if in a container control so I moved 
22822             the code there.
22823           - Removed selection check logic from our internal Select() method
22824         * ContainerControl.cs:
22825           - Select: Moved selection logic from Control here, since MS documents
22826             that containers obey the bool arguments. No longer calling base
22827
22828 2006-06-02  Jackson Harper  <jackson@ximian.com>
22829
22830         * TreeView.cs: If the selected node isn't changed when we get
22831         focus update the previously selected node so that we see the
22832         selection box.
22833
22834 2006-06-02  Mike Kestner  <mkestner@novell.com>
22835
22836         * ComboBox.cs: restructure grab and general mouse event handling.
22837         Make the composite control raise mouse events like it was a single
22838         control for leaves/enters/motion/up/down events.  fix dropdown list
22839         coordinate mangling and refactor it into the scrollbar subclass to
22840         reduce code duplication.  Fixes #78282 #78361 and #78457.
22841
22842 2006-06-02  Mike Kestner  <mkestner@novell.com>
22843
22844         * ScrollBar.cs: remove Capture setting/clearing, as it happens
22845         automatically in the Control.WndProc.
22846
22847 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22848
22849         * FileDialog.cs: fix crash when running SharpChess, which sets the
22850         FilterIndex to 2 with only one Filter.
22851
22852 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22853
22854         * ToolBar.cs: add SizeSpecified property.
22855         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
22856         try to figure out our real size, otherwise fallback to what the
22857         container says.
22858
22859 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
22860
22861         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
22862         * Control.cs (WndProc): MS always calls the DefWndProc to pass
22863           up the event
22864
22865 2006-06-01  Mike Kestner  <mkestner@novell.com>
22866
22867         * ListView.cs: revamp the focus management in ListView.  It still
22868         causes churn of LostFocus/GotFocus emissions on clicks, but it's
22869         better than not handling focus at all.  Will revisit when pdb feels
22870         the general focus handling is solid.  Fixes #78526.
22871
22872 2006-06-01  Jackson Harper  <jackson@ximian.com>
22873
22874         * TreeView.cs: Set the default border style in the constructor.
22875         - Move painting to use OnPaintInternal instead of capturing
22876         WM_PAINT, this is the correct way of doing things
22877         - UpdateBelow shouldn't invalidate the scrollbar area
22878         - Cap the top on update below in case the node was above the top
22879         of the viewport rectangle.
22880         - ExpandBelow and Collapse below need to obey Begin/End Update.
22881         * TreeNode.cs: Make is_expanded internal so the treenode
22882         collection can change it without firing the whole event chain.
22883         * TreeNodeCollection.cs: When clearing all the child nodes make
22884         sure to recalc the visible order.
22885         - Improve algo for remove the top node
22886
22887 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
22888
22889         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
22890           SendMessage directly calling window procedures, which in turn might
22891           call SetFocus()
22892
22893 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
22894
22895         * Control.cs: Don't handle WM_SETFOCUS if the same window already
22896           has focus (works around X11 sending a FocusIn after our SetFocus)
22897         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
22898
22899 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
22900
22901         * Mime.cs: Fix for the NET_2_0 build.
22902           NameValueCollection needs StringComparer now.
22903
22904 2006-05-31  Chris Toshok  <toshok@ximian.com>
22905
22906         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
22907         return (via an out parameter) the starting X of the column.
22908         (UpdateVisibleColumn): track change to FromPixelToColumn.
22909         (HitTest): add a ColumnResize case here.
22910         (DrawResizeLine): new function, probably poorly named.
22911
22912         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
22913         only need to keep one reference.
22914         (set_ListManager): same.
22915         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
22916         Also, add support for HitTestType.ColumnResize.
22917         (OnMouseMove): add column resize behavior here, and change the
22918         cursor to the correct one as we move around the datagrid.
22919         (OnMouseUp): terminate the column resize if we're resizing.
22920         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
22921         for the current cell.
22922         (ConnectListManagerEvents): use cached_currencymgr.
22923         (DisconnectListManagerEvents): fill this in, using
22924         cached_currencymgr.
22925         (SetCurrentCell): remove cached_currencymgr_events handling.
22926         (SetDataMember): only call DisconnectListManagerEvents if
22927         cached_currencymgr is != null.
22928         (SetDataSource): same.
22929         (OnListManagerCurrentChanged): cached_currencymgr_events ->
22930         cached_currencymgr.
22931
22932 2006-05-31  Jackson Harper  <jackson@ximian.com>
22933
22934         * BindingManagerBase.cs: Remove somedebug code that creeped into
22935         SVN.
22936         * TreeNode.cs: We get the indent level dynamically right now, so
22937         don't track it as a member.
22938         * TreeNodeCollection.cs: Make sure all nodes added to the list
22939         have parents, treeviews/topnodes setup properly.
22940         - Don't attempt to track indent level.
22941
22942 2006-05-30  Jackson Harper  <jackson@ximian.com>
22943
22944         * BindingContext.cs: Create the currency manager tables here.
22945         This allows us to more easily create null tables (when bad data
22946         members are used), and more easily create related currency
22947         managers.
22948         * CurrencyManager.cs: All the table creation stuff is done by the
22949         binding context now.
22950         - Current should throw an exception if listposition is -1.
22951         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
22952         been bound yet.
22953
22954 2006-05-30  Mike Kestner  <mkestner@novell.com>
22955
22956         * ListView.cs: allow reexpansion of zero-width column headers.
22957         Fixes #78528.
22958
22959 2006-05-28  Chris Toshok  <toshok@ximian.com>
22960
22961         * CurrencyManager.cs (get_Current): after the late binding
22962         listposition = -1 fix, we need to guard against it here and return
22963         null, otherwise we raise an exception (which is swallowed
22964         elsewhere, and breaks datagrid databinding.)
22965
22966 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
22967
22968         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
22969           than WM_SYSKEY, don't throw if get something unexpected (#78507)
22970
22971 2006-05-26  Jackson Harper  <jackson@ximian.com>
22972
22973         * ControlPaint.cs:
22974         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
22975         values, it's faster and it's all we care about (we don't care if
22976         the names aren't equal).
22977         * KeyboardLayouts.cs: Eliminate some dead code.
22978         - Lazy init things
22979         * X11Keyboard.cs: Lazy init keyboard detection.
22980         - Cleanup access modifiers a little.
22981
22982 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
22983
22984         * XplatUIX11.cs: Once again, attempting to get layout just right.
22985
22986 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
22987
22988         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
22989           the sizes of each link section, that will result in sizes that
22990           match DrawString's layout (Fixes #78391)
22991
22992 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
22993
22994         * FileDialog.cs: If AddExtension property is true autocomplete the
22995           extensions in SaveFileDialog correctly. Fixes bug #78453.
22996           Set MyNetwork and MyComputer to "C:\" for windows. This should
22997           fix part 8 of bug #78446 for now.
22998
22999 2006-05-26  Chris Toshok  <toshok@ximian.com>
23000
23001         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
23002         invalidate the current row header if we need to, but presumably
23003         we'll invalidate the row corrsponding to the bounds or
23004         editingControl.
23005         (GridHScrolled): switch back to this method, as it's part of the
23006         public api.  *sigh*.
23007         (GridVScrolled): same.
23008         (OnMouseWheel): hack up something that more or less works.  Call
23009         GridHScrolled/GridVScrolled directly, instead of duplicating much
23010         of their code here.
23011         (EnsureCellVisibility): reinstate a bunch of this code, since we
23012         can't just set the scrollbar Value and expect to do all the work
23013         in the ValueChanged handler.  Also, Call Update() after scrolling
23014         in one direction so the other XplatX11.ScrollWindow call has the
23015         proper stuff in the proper places.
23016         (EditCell): set is_editing to true before calling .Edit.
23017
23018         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
23019         don't bother comparing first.
23020         (OnKeyPress): call grid.ColumnStartedEditing before calling
23021         base.OnKeyPress.  this will set is_changing and invalidate the row
23022         header if necessary.
23023         (ProcessKeyMessage): for WM_CHAR messages, call
23024         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
23025         and WM_KEYDOWN.
23026         
23027         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
23028         it's done in the DataGrid.
23029         (NextState): call grid.ColumnStartedEditing, which takes care of
23030         invalidating the row header (and setting is_changing).
23031
23032         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
23033         here.  it's done in the DataGrid.
23034
23035 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23036
23037         * Control.cs: allow changing the cursor when the mouse position is
23038         out of bounds but Capture is set.
23039         * LinkLabel.cs: handle the case when the mouse button is pressed on the
23040         linklabel but released somewhere else.
23041
23042 2006-05-25  Jackson Harper  <jackson@ximian.com>
23043
23044         * TreeView.cs: When we get focus if there is no selected node make
23045         it the top node
23046         - Remove some uneeded setup code from Draw.
23047         * TreeNodeCollection.cs: If the tree doesn't have a top node when
23048         a new node is inserted make the new node the top.
23049         * XplatUIX11.cs:
23050         * Timer.cs: Use Utc time so that no local time zone stuff needs to
23051         be used (should be faster).
23052         
23053 2006-05-25  Chris Toshok  <toshok@ximian.com>
23054
23055         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
23056         problem with the last commit.
23057
23058 2006-05-25  Chris Toshok  <toshok@ximian.com>
23059
23060         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
23061         need the invalidate call here, while scrolling right-to-left via
23062         the left arrow key (i.e. moving the editing cell while scrolling).
23063
23064         * DataGrid.cs (.ctor): remove the initialization of
23065         ctrl_pressed/shift_pressed.  We no longer track them using key
23066         up/down handlers, but by using Control.ModifierKeys.  Also, switch
23067         to using ValueChanged handlers on the scrollbars instead of
23068         Scrolled event handlers.  This simplifies a bunch of the scrolling
23069         code.
23070         (GridHValueChanged): rename from GridHScrolled, and change it to
23071         work with the new event args.
23072         (GridVValueChanged): same.
23073         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
23074         (OnMouseWheel): actually scroll the datagrid.  Don't change the
23075         selected cell.
23076         (ProcessGridKey): correct all the keyboard navigation stuff I
23077         could find.  Ctrl up/down/left/right/home/end work now.
23078         (EnsureCellVisibility): correct method name spelling.  Also,
23079         simplify this a touch by not explicitly calling the
23080         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
23081         scrollbar value.
23082         (OnKeyUpDG): no need for this method now.
23083         
23084 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23085
23086         * LinkLabel.cs: display the OverrideCursor when hovering the label.
23087         Fixes bug #78392.
23088
23089 2006-05-25  Chris Toshok  <toshok@ximian.com>
23090
23091         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
23092         r61019.
23093
23094 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
23095
23096         * Application.cs: Moved setting of is_modal and closing to before
23097           we create the control, to allow the event handlers called as a
23098           result of creation affect closing. Also removed Gonzalo's previous
23099           change to setting DialogResult, the behaviour has been moved to 
23100           Form.ShowDialog()
23101         * Form.cs: 
23102           - ShowDialog(): Removed explicit creation of the form, let RunLoop
23103             handle it instead
23104           - ShowDialog(): If no dialog result is set, we need to return Cancel
23105           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
23106             the close is cancelled
23107
23108 2006-05-25  Jackson Harper  <jackson@ximian.com>
23109
23110         * StatusBar.cs: We only need to update the sizes of the other
23111         panels when we have auto size contents.  Also we are only updating
23112         the contents of the panel, not the borders, so compensate for the
23113         border width (TODO: get this width from the theme somehow).
23114         * TreeView.cs: Scrollable is true by default
23115         - Use invalidate instead of refresh where needed
23116         - Factor the scrollable value into scrollbar updating
23117         - Update the scrollbars if the Scrollable property is altered
23118         - Update the selected node if its ImageIndex is changed
23119         - Handle null nodes in UpdateNode (mainly so we don't have to
23120         check if selected is null when updating it
23121         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
23122         are factored into the visible count
23123         - Use VisibleCount for clarity in the code
23124         - When the font is changed we need to recurse through all the
23125         nodes and invalidate their sizes
23126         
23127 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23128
23129         * Application.cs: set the DialogResult to fixed when the main form is
23130         hidden or destroyed while being modal.
23131
23132 2006-05-25  Miguel de Icaza  <miguel@novell.com>
23133
23134         * Theme.cs: Use Tangoified messagebox icons. 
23135
23136         (GetSizedResourceImage): Also cope with width = 0 and do not
23137         trigger a warning in that case (0 means "give me your icon from
23138         the resouce, no special size needed).
23139
23140 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
23141
23142         * Application.cs: Leave runloop if the the main modal form is 
23143           hidden (fixes #78484)
23144
23145 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
23146
23147         * BindingContext.cs : reject null datasource in Contains() and
23148           Item[].
23149         * CurrencyManager.cs : check data_member validity when data_source
23150           is dataset. When it is late binding, the initial position is -1.
23151
23152 2006-05-24  Jackson Harper  <jackson@ximian.com>
23153
23154         * TreeNodeCollection.cs: Dont't recalculate the visible order on
23155         inserted nodes that aren't visible.  This changes the
23156         max_visible_order which confuses scrollbar settings.
23157         - Use the enumerator to get the prev node instead of duplicating
23158         code.
23159         * TreeView.cs: Use new method for setting scrollbar values
23160         - Don't set the bounds every time the scrollbar is updated
23161         - When updating below the root node use an invalidate instead of a
23162         refresh to prevent the child controls (scrollbars) from being
23163         refreshed. (UpdateBelow still needs to be reworked anyways).
23164         - Reenable SetBottom now that visible orders are set correctly,
23165         added some debug code incase we ever get bad values there again.
23166         - Set the scrollbar max to 2 less then the max value, this
23167         compensates for the max value being one above the node count, and
23168         for scrollbars adding one extra "notch".
23169         - When drawing image nodes if there is an imagelist we draw the
23170         first image in the list if the supplied image index is out of the
23171         image list's bounds.
23172         
23173 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
23174
23175         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
23176           we receive a size change from the WM (Fixes #78503)
23177
23178 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
23179
23180         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
23181           rectangle (Fixes #78501)
23182
23183 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
23184
23185         * ButtonBase.cs: 
23186           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
23187             as a bitfield.
23188           - Fixed MouseMove to no longer switch pressed state unless the left
23189             mouse button is pressed. Atsushi provided the original patch (#78485)
23190           
23191 2006-05-24  Jackson Harper  <jackson@ximian.com>
23192
23193         * ScrollBar.cs: New internal methods that allow us to change a
23194         couple values on the scrollbar (the most common case is maximum
23195         and large change) without getting multiple invalidates.
23196
23197 2006-05-24  Chris Toshok  <toshok@ximian.com>
23198
23199         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
23200         (Edit): save off the original state in oldState, and set
23201         grid.is_editing to true.
23202         (OnKeyDown): abort editing if escape is pressed.  also, call
23203         NextState if space is pressed.
23204         (OnMouseDown): call NextState.
23205         (NextState): factor out shared code from OnKeyDown and OnMouseDown
23206         here.  Also, only invalidate the row header once (on the initial
23207         is_changing switch) to save on redraws.
23208
23209 2006-05-24  Chris Toshok  <toshok@ximian.com>
23210
23211         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
23212         if the value in the cell is different than it was before.  This
23213         keeps us from triggering a layout when we move around a datarid
23214         with a highlighted cell.
23215         (Edit): suspend layout when creating/positining the text box, and
23216         resume passing false so we don't ever actually re-layout.
23217         (ReleaseHostedControl): same.
23218         (EnsureTextBox): reformat slightly, and set WordWrap to false.
23219
23220         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
23221         control-key sequences should go to the datagrid - remove that
23222         lock.  Also, modify the conditions under which we move between
23223         cells when moving the cursor within a cell, and remove the "this"
23224         and "base" from field accesses.  We weren't even consistent, given
23225         they all were in the base class.
23226
23227 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
23228
23229         * Binding.cs : (.ctor)
23230           An obvious NRE fix for BindingTest.CtorNullTest().
23231
23232 2006-05-23  Chris Toshok  <toshok@ximian.com>
23233
23234         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
23235         them between lines.  This fixes some quirks editing cells in the
23236         datagrid.
23237
23238 2006-05-23  Jackson Harper  <jackson@ximian.com>
23239
23240         * TreeView.cs: Use begin/end update when doing expand/collapse all
23241         so that we don't get flicker on the scrollbar.
23242
23243 2006-05-23  Jackson Harper  <jackson@ximian.com>
23244
23245         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
23246         treenode calculations to be independant of the painting code. To
23247         do this nodes track a visible order which is calculated by the
23248         treeview.
23249         - Call new methods for expanding/collapsing nodes.  These methods
23250         use scrollwindow so we don't have to update everything below the
23251         node.
23252         * TreeView.cs: Refactored drawing and scrolling code.  We don't
23253         need to update nodes when drawing anymore or calculate scrollbar
23254         stuff.
23255         - Added new methods for expanding/collapsing nodes. These methods
23256         use ScrollWindow so as to not have to redraw all the nodes below.
23257         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
23258         we add/remove nodes or sort.
23259         - Handle removing the selected and the top node properly.
23260
23261 2006-05-23  Chris Toshok  <toshok@ximian.com>
23262
23263         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
23264         maybe this should actually happen in the datagrid code?
23265         (EndEdit): no need to invalidate anything, given that
23266         ReleaseHostedControl causes the datagrid to relayout, which
23267         invalidates everything anyway.
23268
23269         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
23270         in SetCurrentCell).
23271         (set_SelectionBackColor): call InvalidateSelection instead of
23272         Refresh.
23273         (set_SelectionForeColor): same.
23274         (BeginEdit): Flesh this out a bit.
23275         (CancelEditing): only do any of this if we're editing/adding.
23276         (EndEdit): same.
23277         (OnMouseDown): there's no need to cancel editing here, it's done
23278         in SetCurrentCell.
23279         (SetCurrentCell): only invalidate the current row header if it's a
23280         different row than the new one.
23281         (ShiftSelection): fix this to work like MS does.
23282         (ResetSelection): factor out the invalidation of selected_rows to
23283         InvalidateSelection.
23284         (SetDataSource): cancel any editing that's going on.
23285
23286         * DataGridColumnStyle.cs
23287         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
23288         call the non-interface version.
23289
23290         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
23291         header rectangle with the clip rectangle so we don't redraw the
23292         entire header for just a small area.  Gets rid of the last flicker
23293         when horizontally scrolling.
23294         (DataGridPaintRow): same.
23295
23296 2006-05-23  Mike Kestner  <mkestner@novell.com>
23297
23298         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
23299         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
23300         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
23301         Critical bug report.
23302
23303 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
23304
23305         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
23306           and this fixes #78493
23307
23308 2006-05-23  Miguel de Icaza  <miguel@novell.com>
23309
23310         * Theme.cs (GetSizedResourceImage): Scale images if the proper
23311         size is not found.  
23312         
23313         * FileDialog.cs: Do not change the background for the side bar as
23314         it wont work nicely with the theme, and also reduces the artifacts
23315         in rendering the icons (which I want to fix too).
23316
23317         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
23318         resources, not resgen resources. 
23319
23320         (PlatformDefaultHandler): Pull images using the new API.
23321
23322 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
23323
23324         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
23325           a reference to the hwnd and will not remove it unless there are
23326           no pending exposures (fixes #78341)
23327         * XplatUI.cs: Improved debug
23328
23329 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
23330
23331         * MenuAPI.cs : don't handle OnClick event when it was not the left
23332           button. Fixed bug #78487.
23333
23334 2006-05-23  Mike Kestner  <mkestner@novell.com>
23335
23336         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
23337         prefer submenus to the top menu for item lookup, to avoid popping down
23338         top-row items.
23339
23340 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
23341
23342         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
23343           Graphics.FillRectangle as the visual results are really bad (even
23344           on win). We now draw perfect arrows (and perfect shadows when the
23345           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
23346           Pen.DashPattern to draw the dots of each line.
23347
23348 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
23349
23350         * FileDialog.cs: Update the filename combobox when navigating through
23351           the ListView with the cursor keys. Fixes part 7 of bug #78446.
23352
23353 2006-05-22  Mike Kestner  <mkestner@novell.com>
23354
23355         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
23356         Fixes #78463.
23357
23358 2006-05-22  Mike Kestner  <mkestner@novell.com>
23359
23360         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
23361         requests. Fix a misspelled parameter and a copy paste exception error
23362         in Select.
23363
23364 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
23365
23366         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
23367           to get the same width/height (5/13) on X11 as the default font has on
23368           win32. This means that our DefaultFont emSize is smaller than the 
23369           the MS SWF equivalent (even thought the width/height stays the same)
23370
23371 2006-05-20  Jackson Harper  <jackson@ximian.com>
23372
23373         * MdiClient.cs:
23374         * MdiWindowManager.cs:
23375         * InternalWindowManager.cs: Make sure to use the border width from
23376         the theme.
23377
23378 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
23379
23380         * PrintDialog.cs: Implements printer details
23381
23382 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
23383
23384         * FileDialog.cs: Added focus handling for PopupButtonPanel.
23385           Fixes part 1 and 2 of bug #78446
23386
23387 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
23388
23389         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
23390           instead of sticking to the first ever calculated value
23391
23392 2006-05-19  Mike Kestner  <mkestner@novell.com>
23393
23394         * ComboBox.cs: fix mouse motion selection to use MousePosition and
23395         PointToClient, since Capture is set. Fixes #78344.
23396
23397 2006-05-19  Mike Kestner  <mkestner@novell.com>
23398
23399         * ListView.cs: match MS behavior in Details view where items are not
23400         drawn if Columns.Count == 0. 
23401         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
23402         Use a separate pen to draw the check, since changing the width affects
23403         the box as well.  Fixes #78454.
23404
23405 2006-05-18  Miguel de Icaza  <miguel@novell.com>
23406
23407         * ListView.cs: ArgumentOutOfRangeException, single versions of the
23408         exception should throw the name of the invalid argument.
23409
23410         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
23411         there are no files listed. 
23412
23413 2006-05-18  Jackson Harper  <jackson@ximian.com>
23414
23415         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
23416         up.
23417
23418 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
23419
23420         * Control.cs: Brought back our old UpdateZOrder method as a private
23421           function and switched our calls from UpdateZOrder to the new one.
23422           This fixes the Paint.Net canvas disappearing bug.
23423
23424 2006-05-18  Jackson Harper  <jackson@ximian.com>
23425
23426         * Theme.cs:
23427         * ThemeWin32Classic.cs:
23428         * InternalWindowManager.cs: Move the drawing into the theme,
23429         expose everything the theme should need from the window manager.
23430
23431 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
23432
23433         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
23434           from the call to NativeWindow to avoid walking up the parent chain
23435           further than needed (speeds up setting cursors and avoids setting
23436           the wrong cursor if a parent has another cursor defined)
23437         * Cursor.cs: When loading an icon as cursor, MS uses the center of
23438           the icon as hotspot, not what's contained as hotspot in the icon
23439           file. This fixes the perceived drawing offset seen with Paint.Net
23440         
23441 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
23442
23443         * XplatUIX11.cs: 
23444           - Store the calculated rectangle in Hwnd object and use it when 
23445             setting the client size
23446           - Force Toolwindows to always be type Dock, to ensure they're on top
23447
23448 2006-05-18  Mike Kestner  <mkestner@novell.com>
23449
23450         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
23451         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
23452         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
23453         Substantial refactoring to remove confusing nested classes. Coding
23454         standard and Get+Set->property refactorings.  Shift to index based
23455         highlighting in ComboListBox instead of constantly using IndexOf and
23456         Items[]. Add invalidations on resize for DropDownList to fix ugliness
23457         in FileDialog growth.  Draw borders manually since Simple mode needs
23458         to look like two independent controls.  Make listbox border
23459         conditional to DropDownStyle.  Improved OwnerDraw support.
23460
23461 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
23462
23463         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
23464         Don't set the disposed graphics to null, so we can throw the "right"
23465         exception if the graphics is reused later (added a flag to avoid 
23466         double disposing). Some behaviours are different under 2.0 and are
23467         filled under bug #78448.
23468
23469 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
23470
23471         * Control.cs: When double-buffering is enabled, we need to reset
23472           our graphics context between paint calls. Otherwise, any 
23473           transformations and other alterations on the context will 
23474           become cumulative (#77734)
23475
23476 2006-05-18  Mike Kestner  <mkestner@novell.com>
23477
23478         * ListView.cs: do focused item selection like MS on clicks. 
23479         Rework focus handling for ItemControl so LostFocus invalidates as
23480         well.
23481         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
23482         the ListView ItemControl has focus.
23483
23484 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
23485
23486         * XplatUIX11.cs: If client_window ends up being width or height zero
23487           due to border settings, move it off window inside whole_window (#78433)
23488
23489 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
23490
23491         * Mime.cs: Shrink the mime file cache correctly.
23492
23493 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
23494
23495         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
23496
23497 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
23498
23499         * XplatUIX11.cs (AddExpose): More sanity checks
23500
23501 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
23502
23503         * XplatUIX11.cs:
23504           - AddExpose: Don't add expose ranges outside the size of our
23505             window
23506           - Cast opacity values to Int32 to avoid crashes with certain
23507             values
23508           - Added disabled code paths that protect against illegal cross-
23509             thread painting (Developers.exe)
23510
23511 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
23512
23513         * ProgressBar.cs: Invalidate the control when it's resized
23514           since block size is based on control size. (#78388)
23515
23516 2006-05-16  Miguel de Icaza  <miguel@novell.com>
23517
23518         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
23519         of setting the incoming argument to the "reset" value, we set the
23520         this.datamember to string.empty (before we were invalidating the
23521         incoming data).   
23522
23523         Fixes 78420
23524
23525 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
23526
23527         * Form.cs: Only apply transparency settings after the form
23528           is created. (Fixes #77800)
23529
23530 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
23531
23532         * ApplicationContext.cs: Grab the HandleDestroyed event so
23533           we know when to fire OnMainFormClosed 
23534
23535 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
23536
23537         * Application.cs: Introduced sub-class to allow tracking of
23538           threads and centralized triggering of the event mess for
23539           ThreadExit, AppExit, etc..  (#76156)
23540
23541 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
23542
23543         * MimeIcon.cs:
23544           - Do not return a null icon index value for a mime subclass.
23545             Instead try the main mime type class too.
23546           - Seems that some newer distributions don't have a link to some
23547             gnome default icons anymore. So check the default gnome dir too.
23548           
23549
23550 2006-05-16  Jackson Harper  <jackson@ximian.com>
23551
23552         * MdiClient.cs: Don't paint the parent background image if we have
23553         our own background image.
23554
23555 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
23556
23557         * Control.cs:
23558           - PerformLayout: Do not shrink space filled by DockStyle.Fill
23559             controls, all filled controls are supposed to overlap (#78080)
23560           - UpdateZOrder is supposed to update the control's z-order in the
23561             parent's z-order chain. Fixed to behave like that
23562           - BringToFront: Removed obsolete code
23563           - SendToBack: Simplyfied
23564           - SetChildIndex: Trigger layout calculations when Z-order changes
23565             since layout is done by z-order
23566
23567 2006-05-16  Chris Toshok  <toshok@ximian.com>
23568
23569         [ fixes bug #78410 ]
23570         * DataGrid.cs (set_AlternatingBackColor): use
23571         grid_drawing.InvalidateCells instead of Refresh().
23572         (set_BackColor): call grid_drawing.InvalidateCells.
23573         (set_BackgroundColor): use Invalidate instead of Refresh.
23574
23575         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
23576         invalidate the cell area.
23577
23578 2006-05-15  Chris Toshok  <toshok@ximian.com>
23579
23580         [ fixes bug #78011 ]
23581         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
23582         on to DataGridPaintRow.
23583         (DataGridPaintRow): take a clip argument, and only draw the cells
23584         which intersect it.  same with the not_usedarea.
23585
23586         * Theme.cs (DataGridPaintRow) add @clip parameter.
23587
23588         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
23589         XplatUI.ScrollWindow.
23590         (ScrollToRow): same.
23591
23592         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
23593         with last column which was causing a gray swath to appear with the
23594         XplatUI.ScrollWindow code.
23595
23596 2006-05-15  Chris Toshok  <toshok@ximian.com>
23597
23598         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
23599         use XplatUI.ScrollWindow.
23600         (VerticalScrollEvent): use XplatUI.ScrollWindow.
23601
23602 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
23603
23604         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
23605
23606 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
23607
23608         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
23609           file since there are no equivalent X11 cursors
23610
23611 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
23612
23613         * MonthCalendar.cs : DateTimePicker should reflect selected date
23614           on mouse*up*, not mouse*down*. Fixed originally reported part of
23615           bug #76474.
23616
23617 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
23618
23619         * TabControl.cs : When argument index is equal or more than tab
23620           count, just ignore. Fixed bug #78395.
23621
23622 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
23623
23624         * Control.cs: Dispose all child controls when control is diposed (#78394)
23625
23626 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
23627
23628         * ColorDialog.cs: Finally it is possible to select the color with
23629           the text boxes
23630
23631 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
23632
23633         * PrintDialog.cs: Fix typo
23634
23635 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
23636
23637         * PrintDialog.cs: PrintDialog is not resizable
23638         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
23639           color. Made some ToolBar drawing methods protected virtual.
23640
23641 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
23642
23643         * PrintDialog.cs: Implementation of the PrintDialog
23644
23645 2006-05-12  Chris Toshok  <toshok@ximian.com>
23646
23647         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
23648         thumb, instead use MoveThumb.  This has the side effect of making
23649         most of the other thumb moving machinery use MoveThumb as well.
23650         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
23651         need to actually invalidate the rectangle where the new thumb will
23652         go.
23653         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
23654         We force an Update() after, so it's not as fast as it could be,
23655         but at least there's zero flicker and no droppings.
23656         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
23657         (UpdateThumbPos): add another argument (dirty), which says whether
23658         or not to calculate/add dirty regions which we later invalidate.
23659         For cases where we know we're going to use MoveThumb, we pass
23660         false for this.  Otherwise, pass true.
23661
23662 2006-05-12  Jackson Harper  <jackson@ximian.com>
23663
23664         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
23665         the status bar.
23666         
23667 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
23668
23669         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
23670           and GetClipRegion methods and UserClipWontExposeParent property.
23671         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
23672           overriding UserClipWontExposeParent property, setting to false, since
23673           Win32 handles the required expose messages to draw our clipped parent
23674           areas internally
23675         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
23676           PaintEventStart to set the user clip region if set.
23677         * Control.cs: 
23678           - Now internally tracking the Region for the control since we need to
23679             store it if the handle is not yet created and only set it when it
23680             becomes created. Before setting the region forced handle creation
23681           - Added code to draw the parents underneath a user-clipped region
23682         * Hwnd.cs: Added UserClip property
23683
23684 2006-05-12  Chris Toshok  <toshok@ximian.com>
23685
23686         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
23687         (set_Maximum): same.
23688         (set_Minimum): same.
23689         (set_SmallChange): same.
23690         (OnMouseUpSB): remove the call to refresh when releasing the
23691         thumb.  We shouldn't need it.
23692         
23693 2006-05-12  Miguel de Icaza  <miguel@novell.com>
23694
23695         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
23696         AutoSize set to None, we do not need to relayout everything, we
23697         just need to invalidate the current region.
23698
23699         (Draw): Do not draw the entire ClientArea, just redraw the
23700         clip area being passed.
23701
23702         * MdiClient.cs: Make MdiClient constructor with the Form argument
23703         internal. 
23704
23705 2006-05-12  Jackson Harper  <jackson@ximian.com>
23706
23707         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
23708         parents background image,  but strangely not their own.
23709         - (DrawStatusBarPanel): Take into account horizontal alignment
23710         when drawing the strings and icons.
23711
23712 2006-05-12  Mike Kestner  <mkestner@novell.com>
23713
23714         * ListBox.cs: avoid invalidations for focus when the collection is
23715         empty. 
23716
23717 2006-05-12  Chris Toshok  <toshok@ximian.com>
23718
23719         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
23720         invalidate the entire thumb area.  Call InvalidateDirty which
23721         limits the redraw to the thumb itself and surrounding pixels.
23722
23723         * XplatUIX11.cs (ScrollWindow): optimize copying.
23724         
23725 2006-05-12  Chris Toshok  <toshok@ximian.com>
23726
23727         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
23728         Figure out the positioning/layout in a single pass instead of
23729         multiple recursive invocations.  Speeds up the initial display of
23730         the data grid.  Also, make many things private that were
23731         originally public but unused outside this class.
23732
23733 2006-05-11  Jackson Harper  <jackson@ximian.com>
23734
23735         * MdiClient.cs: Improved layout code.
23736
23737 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
23738
23739         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
23740           not SelectedObject.
23741
23742 2006-05-11  Chris Toshok  <toshok@ximian.com>
23743
23744         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
23745         union of that will always be {0,0,width,height}.
23746
23747 2006-05-11  Jackson Harper  <jackson@ximian.com>
23748
23749         * Form.cs: Match MS's DefaultSize for forms (they must have
23750         changed the size in sp2).
23751
23752 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
23753
23754         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
23755
23756 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
23757
23758         * TextControl.cs : Fixed bug #78109. This incorrect position
23759           comparison caused crash on automatic line split.
23760         * TextBoxBase.cs : reduce duplicate code.
23761
23762 2006-05-10  Jackson Harper  <jackson@ximian.com>
23763
23764         * MdiClient.cs: Active form is only sent to the back when using
23765         the Next form functionality, when a form is clicked the current
23766         active shouldn't be sent to the back.
23767         - Layout the mdi windows when the container is first made visible.
23768         * Form.cs: Give the MdiClient a ref to the containing form when we
23769         create it.
23770         
23771 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
23772
23773         * LinkLabel.cs : link_font could be uninitialized, so populate one
23774           before actual use. Fixed bug #78340.
23775
23776 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
23777
23778         * XplatUIX11.cs : clipboard format native value is IntPtr.
23779           Fixed bug #78283.
23780
23781 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
23782
23783         * Control.cs: 
23784           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
23785             which is passed up the parent chain by DefWndProc
23786           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
23787             to DefWndProc (#77956)
23788         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
23789
23790 2006-05-10  Jackson Harper  <jackson@ximian.com>
23791
23792         * MdiClient.cs: We need to remove the controls from the mdi
23793         collection, when we close the window.
23794         * MdiWindowManager.cs: Special handling of closing mdi windows.
23795         * InternalWindowManager.cs: Make the close method virtual so the
23796         mdi window manager can handle it specially.
23797
23798 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
23799
23800         * DataGrid.cs:
23801           - Recalculate grid when the data source has changed
23802           - Matches styles provided by user from all data sources types
23803         * DataGridTableStyle.cs: For columns that provided by the user set the
23804         with the preferred value is there was unassigned.
23805         * CurrencyManager.cs: throw OnItemChanged event
23806
23807 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
23808
23809         * PictureBox.cs: Don't animate until handle is created. Start animation
23810           when handle is created.
23811
23812 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
23813
23814         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
23815           current codebase.
23816         * XEventQueue.cs: We don't need to provide the extra info
23817
23818 2006-05-10  Jackson Harper  <jackson@ximian.com>
23819
23820         * MdiClient.cs: If the mdi clients parent form has a background
23821         image set, we draw that background image for the mdi area's
23822         background.
23823
23824 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
23825
23826         * TextBoxBase.cs: Set IBeam cursor (#78347)
23827
23828 2006-05-10  Mike Kestner  <mkestner@novell.com>
23829
23830         * ToolBar.cs: fix some text padding issues with ButtonSize
23831         calculation. Update the default size to match MS documentation.
23832         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
23833         button size. Fixes #78296.
23834
23835 2006-05-10  Mike Kestner  <mkestner@novell.com>
23836
23837         * ListBox.cs: use is_visible for scrollbar positioning in case the
23838         control isn't on screen yet.  Fix off by one with Right vs Width
23839         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
23840         
23841 2006-05-10  Jackson Harper  <jackson@ximian.com>
23842
23843         * X11Dnd.cs: Drop to a control with another control on top of it.
23844         * ToolBar.cs: Work on a copy of the buttons list, so that it can
23845         be modified in click handlers. TODO: Look for similar problems in
23846         other controls.
23847
23848 2006-05-09  Jackson Harper  <jackson@ximian.com>
23849
23850         * Form.cs: Window managers need the old window state when setting
23851         window state now.
23852         * InternalWindowManager.cs: Allow the base mdi window manager to
23853         handle more of the MDI only stuff (like maximize buttons).
23854         * MdiWindowManager.cs: Fix some snafus in changing the window
23855         state.  Add all the menu functionality, for both popup and
23856         maximized menus.
23857         * MdiClient.cs: When a new form is selected the currently
23858         activated form is sent to the back, this matches MS.
23859         - Implement a new method to activate the next mdi child window.
23860
23861 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
23862
23863         * Control.cs: 
23864           - Added new InternalCapture method to allow controls to prevent
23865             the capture behaviour on the click handlers
23866           - Switched to use InternalCapture
23867         * ComboBox.cs:
23868           - Using InternalCapture to prevent mouse captures from being released
23869             on mouse button release (Fixes #78100)
23870         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
23871           returns Form borders if a caption is present. (Fixes #78310)
23872
23873 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
23874
23875         * TreeNode.cs: Changed serialization .ctor to not require every field
23876           to be present. (#78265)
23877         * OwnerDrawPropertyBag.cs: Added serialization .ctor
23878
23879 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
23880
23881         * MimeIcon.cs: for is faster than foreach for strings.
23882
23883 2006-05-05  Mike Kestner  <mkestner@novell.com>
23884
23885         * CheckedListBox.cs: update check handling code to not use selected.
23886         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
23887         behavior for visual feedback, motion response, shift/ctrl handling,
23888         and properly deal with all 4 selection modes. Updates to bounds
23889         handling logic.  Add scroll wheel support. [Fixes #77842]
23890
23891 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
23892
23893         * ListView.cs:
23894           - Moved adding of Implicit controls into .ctor. That way, subsequent
23895             creation of the controls will not cause them to think they are 
23896             toplevel windows (fixes #78200 header problem)
23897           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
23898           - Switched visibility setting of header control to use internal field
23899             to avoid triggering handle creation
23900           - Now checking if handle is created before causing a refresh when items
23901             are added (This makes us now match handle creation time with MS)
23902         * Splitter.cs: Removed loading of private splitter cursor, switched to
23903           Cursors version now that that is loading the right ones
23904         * Cursors.cs: Load proper splitter cursors from resources
23905         * Cursor.cs: Added second method of loading resource cursors for the 
23906           VS.Net users amongst us
23907
23908 2006-05-05  Mike Kestner  <mkestner@novell.com>
23909
23910         * ListView.cs: give header_control a minimum size based on the
23911         ListView size.
23912
23913 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
23914
23915         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
23916           window seems to do that with metacity, so set that type. (#78120)
23917
23918 2006-05-05  Mike Kestner  <mkestner@novell.com>
23919
23920         * ListViewItem.cs: fix Details mode checkbox layout bug.
23921         * ThemeWin32Classic.cs: draw a ListView column header for unused space
23922         at the end of the header, if it exists. [Fixes for #78200]
23923
23924 2006-05-04  Jackson Harper  <jackson@ximian.com>
23925
23926         * MdiClient.cs: Add a helper property to get the container form.
23927         * MdiWindowManager.cs: We have to make sure to use the menu origin
23928         when drawing the icons and buttons, this fixes maximized window
23929         icons/buttons on win32.
23930         * InternalWindowManager.cs: Reset the restore captions when a
23931         window goes from Maximized to Minimized and vice versa. Move the
23932         DrawMaximizedButtons into the MdiWindowManager source, tool
23933         windows can't be maximized. NOTE: This could use a little
23934         refactoring if time ever permits.
23935         
23936 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
23937
23938         * TextBox.cs: Add MWFCategoryAttributes
23939         * TextBoxBase.cs: Add MWFCategoryAttributes
23940         * Form.cs: Add MWFCategoryAttributes
23941
23942 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
23943
23944         * Control.cs: Add MWFCategoryAttributes
23945         * ScrollableControl.cs: Add MWFCategoryAttributes
23946
23947 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
23948
23949         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
23950           Divider is true. Fix a little glitch in PropertyToolBar
23951           drawing code
23952
23953 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
23954
23955         * Control.cs:
23956           - Dispose: Call base.Dispose, this causes the disposed event
23957             to be fired (and probably other, more important stuff)
23958           - SetVisibleCore: Set is_visible to true after creating the
23959             window so that the window still gets created invisible (if
23960             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
23961             to generate a WM_ACTIVE message
23962         * Form.cs: Call Dispose when we want to destroy the window, instead of
23963           just destroying the handle (Dispose will do that for us)
23964         * XplatUIX11.cs:
23965           - RootWindow also needs a queue, so we can properly process the
23966             property change events from RootWindow (like Activate)
23967           - Generatic synthetic WM_ACTIVE message when the active window is
23968             being destroyed
23969
23970 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
23971
23972         * LinkLabel.cs: Trigger a recalc of our label dimensions when
23973           bounds are changed
23974
23975 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
23976
23977         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
23978           for determining width and height (image might not be assigned if
23979           we're drawing an imagelist)
23980
23981 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
23982
23983         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
23984         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
23985           height from system
23986         * Theme.cs: No longer returns hardcoded menu height, instead calls
23987           new driver method
23988         * Form.cs (OnLoad): Scaling happens before triggering Load events 
23989           on MS (# 78257)
23990
23991 2006-05-01  Mike Kestner  <mkestner@novell.com>
23992
23993         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
23994
23995 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
23996
23997         * TextBoxBase.cs: Removed Fixme
23998         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
23999
24000 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
24001
24002         * XplatUIX11.cs:
24003           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
24004             the rectangle relative to the parent, considering borders. We
24005             don't really want that.
24006           - ScrollWindow: Fixed warning to be more understandable
24007         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
24008           scrollbars and scroll only the visible area
24009         * RichTextBox.cs: Removed debug output
24010
24011 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
24012
24013         * NumericUpDown.cs (Text): Just use base
24014         * UpDownBase.cs: Ensure txtView is created before using it
24015
24016 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
24017
24018         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
24019           casting to IntPtr to avoid 64bit overflow errors
24020
24021 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
24022
24023         * Control.cs:
24024           - AllowDrop: Don't force handle creation.
24025           - CreateHandle: Added call to tell driver if we're allowed to drop
24026
24027 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
24028
24029         * FileDialog.cs: Remember the last directory not only for the
24030           current instance but also for new FileDialog instances.
24031
24032 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
24033         
24034         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
24035           broke sending async messages
24036
24037 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
24038
24039         * XplatUIX11.cs:
24040           - ScrollWindow: Fixed method. We finally generate expose events again
24041             for scrolled areas. This was causing 'garbage' when scrolling
24042             textbox and other controls that used ScrollWindow
24043           - Switched from using the regular queue for paint events to the MS 
24044             model of 'generating' paint events when the queue is empty.
24045             We use the new XQueueEvent.Paint subclass to store which windows
24046             need painting.
24047           - AddExpose now takes the x/y/width/height of the exposed area
24048             and inserts the window into the paint queue if not already there
24049           - InvalidateWholeWindow: Switched to use new AddExpose method
24050           - UpdateMessageQueue: Added which queue to monitor for paint events
24051           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
24052             the unlikely case nothing above handles it. We reset the expose
24053             pending states to get them off the queue.
24054           - GetMessage: Now pulls a paint event if no other events are in the
24055             queue
24056           - Invalidate: Switched to new AddExpose method
24057           - PeekMessage: Updated to understand pending paint events
24058           - UpdateWindow: Fixed logic bug. We were only updating if the window
24059             didn't need updating. Also switched to sending WM_PAINT directly,
24060             like MS does.
24061         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
24062           and random access Remove(). The random access is needed to handle
24063           UpdateWindow() where a WM_PAINT is sent directly without accessing
24064           the queue.
24065         * ScrollBar.cs: Added Update() calls to cause immediate updates to
24066           allow for better feedback when scrolling. Scrollbars are small and
24067           the immediate update should make it 'feel' more responsive without
24068           slowing things down. ScrollBar still needs it's invaliate logic
24069           updated to not always invalidate the whole bar on certain changes.
24070
24071 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24072
24073         * Control.cs:
24074         (BackColor): if the control does not support a transparent background,
24075         return the default backcolor when the parent backcolor is transparent.
24076
24077 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
24078
24079         * Application.cs: Updated to new StartLoop/GetMessage API
24080         * RichTextBox.cs: Provide some output on RTF parsing errors
24081         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
24082           new queue_id argument to GetMessage and PeekMessage to allow faster
24083           handling of per-thread queues in drivers.
24084         * Hwnd.cs: Added Queue tracking and property
24085         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
24086         * XEventQueue.cs: Added thread trackingA
24087         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
24088         * XplatUIX11.cs:
24089           - Implemented new per-thread queue
24090           - GetMessage: Fixed return/break behaviour on several cases. We were
24091             returning stale messages in some cases, instead of just processing
24092             the next message
24093
24094 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
24095
24096         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
24097
24098 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
24099
24100         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
24101           fixed off-by-one comparisons between Width/Height and Right/Bottom.
24102
24103 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
24104
24105         * PropertyGridView.cs: Fix drop down width.
24106
24107 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
24108
24109         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
24110           a mess in DrawToolBar, so I removed one of them.
24111
24112 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
24113
24114         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
24115           needed (clip). Otherwise we get artifacts.
24116
24117 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
24118
24119         * FixedSizeTextBox.cs: Added constructor to allow specifying which
24120           dimension is fixed
24121         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
24122           and switched FixedSizeTextBox to only be fixed vertical (#78116)
24123         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
24124           if it matches the scale base font (avoids unneeded scaling)
24125
24126 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
24127
24128         * X11DesktopColors.cs: One gtk_init_check should be enough
24129
24130 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
24131
24132         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
24133           match MS behaviour
24134
24135 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
24136
24137         * TextBoxBase.cs: 
24138           - Generate OnTextChanged for Backspace even if we're only deleting
24139             the current selection
24140           - When setting the Text property, only select all text if the
24141             control does not have focus when it is being set. Otherwise
24142             just place the cursor at the beginning of the control
24143
24144 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
24145
24146         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
24147           Added a little helper to draw PropertyGrid ToolBar with a different
24148           border and a different BackColor.
24149         * PropertyGrid.cs: Some background parts didn't get painted with the
24150           correct background color. Added a class that helps us to draw the
24151           correct border for PropertyGridView and a class that helps us to
24152           draw ToolBars with a different backcolor
24153         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
24154
24155 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
24156
24157         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
24158         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
24159
24160 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
24161
24162         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
24163           into the palette entries. Also, since we're working on a copy
24164           we needed to copy the palette back onto the bitmap.
24165         * Cursor.cs: Same fix as XplatUIWin32.cs.
24166
24167 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
24168
24169         * ImageListStreamer.cs: Need to read the var (or we're off)
24170
24171 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
24172
24173         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
24174           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
24175           TextBoxBase.cs: Unused var fixes
24176         * AxHost.cs: Small 2.0 fix
24177         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
24178           as it seems that is what at least Metacity expects. This will make
24179           icons show up on 64bit platforms. We still have some 64bit size
24180           issues, though, since the startup app window size still won't match.
24181
24182 2006-04-25  Mike Kestner  <mkestner@novell.com>
24183
24184         * *.cs: cleanup newly reported exception var unused warnings.
24185
24186 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
24187
24188         * ThemeWin32Classic.cs: Button image alignment now matches exactly
24189           ms
24190
24191 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
24192
24193         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
24194           image. The image position is always the same, no matter if the
24195           button is pressed or not.
24196
24197 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
24198
24199         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
24200           selection and set the correct filename for SaveFileDialog.
24201           Patch by Emery Conrad.
24202
24203 2006-04-24  Mike Kestner  <mkestner@novell.com>
24204
24205         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
24206         check for item.X outside the ClientRect instead of item.Y. Fixes
24207         #78151.
24208
24209 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24210
24211         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
24212         trust that value blindly and do some sanity check. Fixes bug #77814.
24213
24214 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24215
24216         * ImageListStreamer.cs: save the mask as a 1bpp image.
24217
24218 2006-04-21  Mike Kestner  <mkestner@novell.com>
24219
24220         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
24221         pass Checked and Indeterminate to the Theme Engine. Improve
24222         encapsulation with ListBox.
24223         * ListBox.cs: Keep a StringFormat instead of calculating it every item
24224         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
24225         nested types.  Move all CheckState functionality to CheckedListBox.
24226         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
24227         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
24228         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
24229         single base list. Fix scrollbar sizing and placement to mirror MS.
24230         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
24231         used.
24232         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
24233         for CheckedListBox by using new DrawItemState info.  Center the
24234         checkboxes on the items. Use new StringFormat property.
24235
24236 2006-04-18  Jackson Harper  <jackson@ximian.com>
24237
24238         * Form.cs: MdiChildren don't do default locations the same way as
24239         regular forms.  This prevents a crash when trying to position the
24240         mdi windows.
24241
24242 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
24243
24244         * PropertyGridTextBox.cs: Formatting, copyright
24245         * PropertiesTab.cs: Formatting
24246         * PropertyGrid.cs: Formatting
24247         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
24248           click toggling of values
24249           
24250 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
24251
24252         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
24253         * Control.cs (.ctor): verify_thread_handle is static, don't reset
24254           every time a control is created
24255         * Application.cs: Removed obsolete EnableRTLMirroring method
24256
24257 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
24258
24259         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
24260         SelectedIndex to -1. Fixes bug #78121.
24261
24262 2006-04-17  Jackson Harper  <jackson@ximian.com>
24263
24264         * Binding.cs: Handle null values for Current and BindingContext.
24265         This occurs when binding is a little delayed.
24266         * CurrencyManager.cs: return null for Current when there are no
24267         items in the list.
24268         - Hookup to the listchanged event on the DataView and update
24269         bindings when the list is changed.  This fixes late binding of
24270         controls.
24271
24272 2006-04-17  Jackson Harper  <jackson@ximian.com>
24273
24274         * X11Dnd.cs:
24275         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
24276         Ringenbach.
24277
24278 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
24279
24280         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
24281           place
24282         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
24283           with the correct ButtonState
24284
24285 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
24286
24287         * XplatUIX11.cs: Improved distinguishing between window types to
24288           tell the WM a type closer to what the app wants (Fixes #78107)
24289
24290 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
24291
24292         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
24293           GrabHandle
24294
24295 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
24296
24297         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
24298           drawing code to reflect the size grip changes
24299
24300 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24301
24302         * ImageListStreamer.cs: fix handling of the mask that follows the main
24303         bitmap when deserializing and serialize it properly. The generated mask
24304         should better be a 1bpp image, but I'll do that later.
24305
24306 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
24307
24308         * FileDialog.cs: Show something in the DirComboBox on *nix if the
24309           path doesn't fit into some of our Current.Places
24310
24311 2006-04-13  Jackson Harper  <jackson@ximian.com>
24312
24313         * ComboBox.cs: Use borders instead of drawing our own decorations,
24314         try to obey correct rules for heights.
24315         * Theme.cs:
24316         * ThemeNice.cs:
24317         * ThemeClearLooks.cs:
24318         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
24319         this is now handled by borders.
24320         - Remove unused DrawListBoxDecorationSize method.
24321         
24322 2006-04-13  Mike Kestner  <mkestner@novell.com>
24323
24324         * MenuAPI.cs: null guarding for the disbled click check fixes crash
24325         reported by Alex.
24326
24327 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
24328
24329         * ThemeWin32Classic.cs: 
24330           - Fixed CPDrawStringDisabled
24331           - Corrected drawing of disabled menu items
24332           - Fixed drawing of disabled radio buttons (bug #78095)
24333           - Draw check in a disabled CheckBox with color ControlDark 
24334
24335 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
24336
24337         * Form.cs: Use the provided width when calculating the menu size;
24338           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
24339           and ClientSize.Width won't be updated yet
24340         * Application.cs: Use Visible instead of Show() to make form visible,
24341           this way we create the handle later and menusize is considered
24342
24343 2006-04-12  Mike Kestner  <mkestner@novell.com>
24344
24345         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
24346         reporting.
24347
24348 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
24349
24350         * TextBox.cs: Implemented context menu
24351
24352 2006-04-12  Mike Kestner  <mkestner@novell.com>
24353
24354         * ListView.cs: implement box selection. fixes #77838.
24355         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
24356
24357 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
24358
24359         * XplatUIX11.cs: Added setting of window type when transient window
24360           is created (metacity would move it otherwise)
24361         * X11Structs.cs: Added WINDOW_TYPE atoms
24362         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
24363           background (the control is Opaque but still wants transparent
24364           backgrounds)
24365
24366 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
24367
24368         * Control.cs: Added OnPaintBackgroundInternal to allow controls
24369           that set Opaque but don't mean it (like all ButtonBase-derived
24370           controls) to still draw their background
24371         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
24372           the background
24373
24374 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
24375
24376         * Control.cs (PaintControlBackground): Set the graphics object
24377           on our PaintEvent to null to prevent it from being disposed
24378           when the PaintEvent gets disposed
24379
24380 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
24381
24382         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
24383         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
24384
24385 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
24386
24387         * Control.cs: 
24388           - Added transparency check to BackColor property. Transparent
24389             backgrounds are only allowed if the control styles permit it
24390           - Added recursive painting of parent control background and
24391             foreground if a control with a transparent backcolor is drawn
24392             (Thanks to Tim Ringenback for providing his 'hack' as a base
24393              for this patch) Fixes #77985 and #78026.
24394           - Added Opaque style check before calling OnPaintBackground, no
24395             need to draw the background if the control is opaque
24396           - Removed ControlAccessibleObject owner variable (inherited from
24397             base, no need to define again)
24398           - Added some documentation links explaining the drawing events
24399             and styles
24400
24401 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
24402
24403         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
24404           that the affected control is the located at the left border of our
24405           parent (Fixes #77936)
24406
24407 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
24408
24409         * TextBoxBase.cs: When rendering disabled or readonly controls,
24410           draw the background with 'Control' instead of 'Window' color as
24411           long as the user hasn't specifically set a color
24412
24413 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
24414
24415         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
24416           since that won't be updated if the user types text (only if it's
24417           programatically set)
24418
24419 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
24420
24421         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
24422           layout changes do to app-triggered resizes will have the proper
24423           display rectangle for layout
24424
24425 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
24426
24427         * ThemeWin32Classic.cs:
24428           - Make use of the SystemBrushes and SystemPens wherever possible
24429           - Corrected some highlight colors
24430           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
24431             drawing
24432         * Theme.cs: Added Empty field to CPColor struct
24433
24434 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
24435
24436         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
24437           is displayed when calculating the display rectangle. Thanks to Mike
24438           for teaching me the err of my ways.
24439
24440 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
24441
24442         * ScrollableControl.cs:
24443           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
24444             (instead of 0,0) and we now return the real width/height instead of
24445             just the clientrectangle, adjusted for padding. The rectangle is
24446             now cached and created by the new CalculateDisplayRectangle method.
24447           - Created new CalculateDisplayRectange method, which basically does
24448             what get_DisplayRectangle() did originally, but now using the 
24449             right edge instead of DisplayRectangle to determine the size of
24450             our scrollbars
24451           - get_Canvas(): Fixed it to properly calculate canvas for 
24452             right/bottom controls which seem to be placed to the right/bottom
24453             of any controls that have a fixed location
24454           - Removed TODO that's taken care of
24455           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
24456             and SetDisplayRectLocation according to new MSDN2 docs
24457           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
24458             event when that is called, this is added for compatibility
24459           - ScrollControlIntoView(): Implemented.
24460           - Switched scrollbars to be implicit, they shouldn't be selectable
24461         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
24462           call it when the active control is set/changed
24463         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
24464         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
24465           implicit_control variable (used for native Win32 message generation)
24466         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
24467           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
24468         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
24469         * XplatUIStructs.cs: Added ScrollBarCommands enum
24470
24471 2006-04-10  Jackson Harper  <jackson@ximian.com>
24472
24473         * ButtonBase.cs:
24474         * CheckedListBox.cs:
24475         * ComboBox.cs:
24476         * DataGrid.cs:
24477         * DataGridView.cs:
24478         * Form.cs:
24479         * GroupBox.cs:
24480         * ListBox.cs:
24481         * PrintPreviewControl.cs:
24482         * ProgressBar.cs:
24483         * PropertyGrid.cs:
24484         * Splitter.cs:
24485         * StatusBar.cs:
24486         * TrackBar.cs:
24487         * UpDownBase.cs: Fixup base event overrides.
24488         
24489 2006-04-06  Mike Kestner  <mkestner@novell.com>
24490
24491         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
24492         all user-initiated value changes to min <= value <= max-thumbsz+1.
24493         (set_Value): check for vert/horiz when calculating new thumb position.
24494         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
24495         like MS does.
24496         (OnMouseMoveSB): refactor the thumb dragging code and refine
24497         invalidation logic to reduce flicker.
24498         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
24499         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
24500         (UpdateThumbPosition): small code readability cleanup
24501
24502 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
24503
24504         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
24505           different
24506
24507 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
24508
24509         * ThemeNice.cs: Use a better graphics effect when a button is pressed
24510
24511 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
24512
24513         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
24514         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
24515           This dramatically reduces the number of Pen.Dispose calls. 
24516           Where possible call ResPool methods only once instead of calling it
24517           over and over again (for example for the same color).
24518
24519 2006-04-06  Mike Kestner  <mkestner@novell.com>
24520
24521         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
24522         Also remove an unused private field on the collection. Fixes #77972.
24523
24524 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
24525
24526         * ThemeNice.cs: Added ToolBar drawing code
24527
24528 2006-04-06  Mike Kestner  <mkestner@novell.com>
24529
24530         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
24531         I'm assuming that means we need to look up the toplevel for the
24532         provided control. Fixes the crash trace in #77911 but exposes another
24533         crash in some strange reflection usage in NDocGui.
24534
24535 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
24536
24537         * ThemeNice.cs: Gave it a little silver touch and added Images
24538           method
24539         * FontDialog.cs: FontDialog is not resizable
24540         * FileDialg.cs: Added SizeGripStyle.Show
24541
24542 2006-04-05  Jackson Harper  <jackson@ximian.com>
24543
24544         * KeyboardLayouts.cs: Remove warning.
24545
24546 2006-04-05  Jackson Harper  <jackson@ximian.com>
24547
24548         * Control.cs: Enable OnPaintInternal so we can use it for drawing
24549         all of our controls instead of Paint +=.
24550         * ListBox.cs:
24551         * ListView.cs:
24552         * MenuAPI.cs:
24553         * MessageBox.cs:
24554         * NotifyIcon.cs:
24555         * ProgressBar.cs:
24556         * ScrollBar.cs:
24557         * Splitter.cs:
24558         * StatusBar.cs:
24559         * TabControl.cs:
24560         * TextBoxBase.cs:
24561         * ToolBar.cs:
24562         * TrackBar.cs:
24563         * UpDownBase.cs:
24564         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
24565         use OnPaintInternal. Remove Width/Height and Visible checks in
24566         paint handler, this is done at a higher level now.
24567         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
24568         * PaintEventArgs.cs: Add a handled flag so controls that don't
24569         want anymore painting after OnPaintInternal can make sure OnPaint
24570         isn't called.
24571
24572 2006-04-05  Mike Kestner  <mkestner@novell.com>
24573
24574         * Form.cs: fix the menu WndProc hacks to respect the native enabled
24575         state of the form, so that we don't process events when Modal dialogs
24576         are up. Fixes #77922.
24577
24578 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
24579
24580         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
24581           checking is done.
24582
24583 2006-04-05  Mike Kestner  <mkestner@novell.com>
24584
24585         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
24586
24587 2006-04-05  Mike Kestner  <mkestner@novell.com>
24588
24589         * ListView.cs (HeaderMouseMove): null guarding for the over column
24590         when setting up the drag_to_index.  Fixes #78015.
24591
24592 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
24593
24594         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
24595           in the taskbar. Transient windows seem to accomplish that.
24596
24597 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
24598
24599         * Form.cs:
24600           - Re-enabled CreateParams.X/Y code for FormStartPosition
24601           - Added code for manual placement when creating the Control
24602           - Incomplete patch to treat MDI forms differently when
24603             setting the ClientSizeCore. (Still need to figure out handling
24604             x/y coords there)
24605         * XplatUIX11.cs:
24606           - When we're explicitly setting the X/Y position of a non-Child
24607             window, let the WM know. Metacity really wants this.
24608
24609 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
24610
24611         * ThemeNice.cs: Added CPDrawButton
24612
24613 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
24614
24615         * ThemeNice.cs: Changed the color for focused buttons and activated
24616           the arrows for small scroll buttons.
24617
24618 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
24619
24620         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
24621           anymore. Changed some method modifiers to protected (virtual)
24622         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
24623           changes
24624         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
24625           Updated drawing of menus, buttons and progressbars; added
24626           CPDrawBorder3D 
24627
24628 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24629
24630         * ImageListStreamer.cs: implemented serialization/deserialization
24631         of the images.
24632
24633 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
24634
24635         * ThemeWin32Classic.cs:
24636           - Removed all the DrawFrameControl stuff; CPDrawButton,
24637             CPDrawCheckBox and CPDrawRadioButton are now handled directly
24638             inside the methods
24639           - Updated and corrected the drawing code of CPDrawButton,
24640             CPDrawCheckBox and CPDrawRadioButton to better match ms
24641           - Updated theme checkbox and radiobutton code to use the CP*
24642             methods
24643
24644 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
24645
24646         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
24647           bug is fixed
24648
24649 2006-03-31  Jackson Harper  <jackson@ximian.com>
24650
24651         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
24652         sometimes.
24653         * UpDownBase.cs: Don't CreateGraphics manually, use a
24654         Refresh. Ideally we would invalidate the correct areas here.
24655
24656 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
24657
24658         * XplatUIX11.cs: 
24659           - We now track the mapping state of windows. If a window (or 
24660             one of it's parents) is not mapped we no longer permit
24661             WM_PAINT messages to be generated since we'd otherwise get 
24662             lots of BadMatch X errors. Jackson did all the work figuring
24663             out the problem.
24664           - Destroying the caret if the window it's contained in is 
24665             destroyed. Can't use regular DestroyCaret method since it
24666             might fall into a drawing function (trying to remove the
24667             caret) and with that generate new BadMatch errors. Again,
24668             Jackson tracked this down.
24669           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
24670             make sure we send the messages to all windows. (The old code
24671             would send the WM_DESTROY to the window, and then all child
24672             windows would be 'gone' because the WM_DESTROY handle lookup
24673             would no longer find the destroyed window)
24674         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
24675         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
24676
24677 2006-03-31  Jackson Harper  <jackson@ximian.com>
24678
24679         * ScrollableControl.cs: Dont recalc if we are not visible.
24680
24681 2006-03-31  Mike Kestner  <mkestner@novell.com>
24682
24683         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
24684         the visibility branch.
24685
24686 2006-03-31  Jackson Harper  <jackson@ximian.com>
24687
24688         * ScrollBar.cs: Cap values when incrementing/decrementing.
24689
24690 2006-03-31  Mike Kestner  <mkestner@novell.com>
24691
24692         * MenuAPI.cs: setup menu.tracker for popup/context menus.
24693         * ToolTip.cs: guard against timer expirations with no active control.
24694         Not sure why it happened.
24695
24696 2006-03-31  Mike Kestner  <mkestner@novell.com>
24697
24698         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
24699         text.
24700         * ToolTip.cs: Position the tooltip based on where the cursor is at
24701         popup time, not at MouseEnter time.  Add a Down state so that we don't
24702         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
24703         positioning offset. Lookup DisplaySize at positioning time, since it
24704         can theoretically change during invocation.
24705         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
24706         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
24707
24708 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
24709
24710         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
24711           Fixes behaviour when the Text property of the box is String.Empty
24712
24713 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
24714
24715         * XplatUIX11.cs: Only send mouseleave for our client windows, not
24716           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
24717           a window)
24718
24719 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
24720
24721         * FileDialog.cs: Visual enhancement for the popup buttons in 
24722           PopupButtonPanel
24723
24724 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
24725
24726         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
24727           code
24728
24729 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
24730
24731         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
24732           highlighted menu items to match ms
24733
24734 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
24735
24736         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
24737
24738 2006-03-30  Mike Kestner  <mkestner@novell.com>
24739
24740         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
24741         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
24742         go active to account for HotLight to Selected transition.
24743         * MenuItem.cs: add internal Selected prop. Fill out the Status
24744         property by calculating it from item info. Add HotLight,
24745         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
24746
24747 2006-03-30  Mike Kestner  <mkestner@novell.com>
24748
24749         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
24750
24751 2006-03-29  Jackson Harper  <jackson@ximian.com>
24752
24753         * Form.cs: Implement TODO.
24754
24755 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
24756
24757         * PrintPreviewDialog.cs: Implemented missing methods and events; still
24758           missing proper dialog setup in the constructor
24759
24760 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
24761
24762         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
24763         * Control.cs:
24764           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
24765           - Fixed ResetBindings and removed TODO
24766           - Added check for cross-thread calls to get_Handle()
24767           - Added Marshaller attribute for set_Font to satisfy class status
24768         * FontDialog.cs: Removed TODOs that seemed implemented
24769         * UpDownBase.cs: Removed unneeded TODO and Fixme
24770         * MessageBox.cs: Implemented support for Default button and removed TODO
24771         * FileDialog.cs: Removed obsolete TODO
24772         * DomainUpDown.cs: Removed obsolete TODO
24773         * ButtonBase.cs: Removed obsolete TODO
24774         * XplatUIWin32.cs: Removed obsolete TODO
24775         * Form.cs:
24776           - Removed obsolete TODO
24777           - Calling CheckAcceptButton when the acceptbutton is changed to allow
24778             internal status updates
24779           - Making sure the active control is selected when the control is created
24780         * CurrencyManager.cs: Removed obsolete TODO
24781
24782 2006-03-29  Mike Kestner  <mkestner@novell.com>
24783
24784         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
24785         of PrintPreviewDialog and RichTextBox.
24786
24787 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
24788
24789         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
24790           DarkDark, Light and LightLight colors for a specific color
24791         * ThemeWin32Classic.cs:
24792           - Use Button drawing code to draw RadioButtons and CheckBoxes with
24793             Appearance = Button 
24794           - Make use of the new ResPool helper CPColor
24795           - Draw ProgressBar and StatusBar with correct 3D borders
24796
24797 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
24798
24799         * ColorDialog.cs: Return selected color. Fixes bug #77940.
24800
24801 2006-03-28  Mike Kestner  <mkestner@novell.com>
24802
24803         * ListView.cs: fix Icon layout to plan for scrollbar widths when
24804         calculating col/row counts.
24805
24806 2006-03-28  Mike Kestner  <mkestner@novell.com>
24807
24808         * ColumnHeader.cs:
24809         * ListView.cs:
24810         * ListViewItem.cs:
24811         * Menu.cs: 
24812         switch to explicit interface method implementation for some methods
24813         corcompare identifies as inconsistent with MS.
24814
24815 2006-03-28  Mike Kestner  <mkestner@novell.com>
24816
24817         * MainMenu.cs: 
24818         * Menu.cs:
24819         add a few missing methods from the class status output.
24820
24821 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
24822
24823         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
24824           correct.
24825
24826 2006-03-28  Mike Kestner  <mkestner@novell.com>
24827
24828         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
24829
24830 2006-03-27  Mike Kestner  <mkestner@novell.com>
24831
24832         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
24833         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
24834
24835 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
24836
24837         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
24838
24839 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
24840
24841         * ThemeWin32Classic.cs:
24842           - GroupBox: Inserted a little gap between the text and the lines
24843             on the right side
24844           - Made the code in CPDrawBorder3D more readable
24845           - Corrected the drawing location of the up and down arrows in 
24846             CPDrawScrollButton
24847
24848 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
24849
24850         * ControlPaint.cs: Corrected line widths in DrawBorder for
24851           ButtonBorderStyle Inset and Outset
24852
24853 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
24854
24855         * ThemeWin32Classic.cs:
24856           - Rewrote the totally broken CPDrawBorder3D method. That was
24857             one of the main problems for the terrific ThemeWin32Classic
24858             look
24859           - Updated and corrected Button drawing
24860           - Correct the dimensions of the SizeGrip to match ms ones
24861           - Removed a small drawing glitch in DrawComboBoxEditDecorations
24862         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
24863           Border3DStyle.Sunken to match ms.
24864
24865 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
24866
24867         * ThemeWin32Classic.cs: First small part of the "de-uglify
24868           ThemeWin32Classic" effort, SizeGrip
24869
24870 2006-03-24  Jackson Harper  <jackson@ximian.com>
24871
24872         * XplatUIX11.cs: Give a max idle time of one second, this matches
24873         MS and forces an Idle event every second when there are no other
24874         events in the queue.
24875
24876 2006-03-24  Mike Kestner  <mkestner@novell.com>
24877
24878         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
24879         * ListView.Item.cs: fix layout issues with null image lists and images
24880         smaller than checkbox size.
24881         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
24882         mode like MS does.  It's weird, but consistent.  ;-)
24883         Fixes #77890.
24884
24885 2006-03-24  Mike Kestner  <mkestner@novell.com>
24886
24887         * ListView.cs: Scroll wheel support for the item control.  Fixes
24888         #77839.
24889
24890 2006-03-23  Jackson Harper  <jackson@ximian.com>
24891
24892         * ScrollableControl.cs: Special case negative sized areas, not
24893         zero.
24894         * MonthCalendar.cs: Save the rect of the clicked date so we can
24895         use it for invalidation.
24896         - Try to cut down on the number of invalidates
24897         - Invalidate the rect the mouse is over and was over when moving
24898         the mouse, so we get the focus box following the cursor.
24899
24900 2006-03-23  Mike Kestner  <mkestner@novell.com>
24901
24902         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
24903         focus rectangle drawing. Fixes #77835.
24904
24905 2006-03-23  Mike Kestner  <mkestner@novell.com>
24906
24907         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
24908         the if and else if and reverting back to the original == check on the
24909         None conditional.
24910
24911 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
24912
24913         * FontDialog.cs: Update the example panel if the selected index of
24914           the fontListBox changes.
24915
24916 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
24917
24918         * FileDialog.cs: Make FileDialog remember which directory it was in
24919           last in the same execution.
24920
24921 2006-03-22  Mike Kestner  <mkestner@novell.com>
24922
24923         * FileDialog.cs: make the DropDownMenu on the toolbar display
24924         RadioChecks since they are mutually exclusive and that's what MS does.
24925
24926 2006-03-22  Mike Kestner  <mkestner@novell.com>
24927
24928         * Theme.cs: add Color param to CPDrawMenuGlyph.
24929         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
24930         checks and radio marks and arrows are visible on highlighted items.
24931         * ControlPaint.cs: update to use new Theme signature.
24932
24933 2006-03-22  Mike Kestner  <mkestner@novell.com>
24934
24935         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
24936         is active. Fixes #77870.
24937
24938 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
24939
24940         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
24941           to be focused/selected after startup
24942
24943 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
24944
24945         * ColorDialog.cs: 
24946           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
24947             CustomColors and ShowHelp properties
24948           - Some internal rewrites to get better results when using the
24949             ColorMatrix
24950
24951 2006-03-22  Mike Kestner  <mkestner@novell.com>
24952
24953         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
24954         HoverSelection.  Fixes #77836.
24955
24956 2006-03-22  Mike Kestner  <mkestner@novell.com>
24957
24958         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
24959         ToggleButtons.  (De)Sensitize the Back button around a stack count of
24960         1, not 0.  Update ButtonSize based on a pixel count of the win32
24961         control.  Adjust the toolbar size/location for new button size.
24962
24963 2006-03-22  Jackson Harper  <jackson@ximian.com>
24964
24965         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
24966         true.
24967         * ScrollBar.cs: When doing increments and decrements we need to
24968         set the Value property so that ValueChanged gets raised. A
24969         possible optimization here would be to make an internal SetValue
24970         that doesn't invalidate immediately.
24971         * ToolTip.cs: Tooltips get added to their container (when
24972         supplied) so they get disposed when the container is disposed.
24973         - Don't create tooltips for String.Empty. This prevents all these
24974         little 2-3 pixel windows from showing up when running nunit-gui
24975         and driving me mad.
24976         * Form.cs: Don't set topmost when setting the owner if the handles
24977         haven't been created yet.  The topmost set will happen when the
24978         handles are created.
24979
24980 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
24981
24982         * XplatUIX11.cs:
24983           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
24984           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
24985             visible (to allow them to recalculate their sizes)
24986
24987 2006-03-21  Mike Kestner  <mkestner@novell.com>
24988
24989         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
24990         methods. Removed a ton of redundant code.  Still not really happy with
24991         the border rendering, but I think that's mainly because of the
24992         ControlDarkDark being black instead of a dark grey. Depending on how 
24993         close we want to be, we might want to revisit those color choices.
24994         Among the new features added during the refactor were DropDownArrow
24995         pressed rendering, Disabled image rendering.  Proper flat appearance
24996         boundary rendering.  Removed the Divider and Wrapping dividers since I
24997         can't figure out any combination of themes and conditions to make the
24998         MS control draw a horizontal line on a toolbar despite what the
24999         Divider property docs indicate.
25000         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
25001         conditions and incorrect layout.  Updated to coding standard.
25002         * ToolBarButton.cs: refactored layout and positioning code from
25003         ToolBar to here.  Invalidate wherever possible instead of forcing
25004         redraws of the whole toolbar. 
25005         (Known remaining issues: explicit ButtonSize smaller than provided
25006         images.)
25007
25008 2006-03-21  Mike Kestner  <mkestner@novell.com>
25009
25010         * ContextMenu.cs (Show): use the position parameter instead of just
25011         showing at the MousePosition.
25012
25013 2006-03-21  Jackson Harper  <jackson@ximian.com>
25014
25015         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
25016         control handle this.
25017         * TreeNodeCollection.cs: If we are clearing the root node we need
25018         to reset top_node so calcs can still happen.
25019         * ThemeWin32Classic.cs: This is a Flags so we need to check
25020         properly.
25021         
25022 2006-03-21  Jackson Harper  <jackson@ximian.com>
25023
25024         * DataGrid.cs: Create columns when the binding context has been
25025         changed.
25026         * X11Structs.cs: Keysyms are uints.
25027         - Add size to fix build.
25028
25029 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
25030
25031         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
25032           XplatUIOSX.cs: 
25033           - Added ResetMouseHover method to allow controls to retrigger
25034             hovering if they need it more than once
25035           - Implemented MouseHoverTime and MouseHoverSize properties
25036         * Timer.cs: Start() must reset the interval
25037         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
25038           properties
25039
25040 2006-03-21  Jackson Harper  <jackson@ximian.com>
25041
25042         * X11Keyboard.cs: improved layout detection. Move the nonchar
25043         tables into this file.
25044         * KeyboardLayouts.cs: Move the tables into resource files.
25045
25046 2006-03-21  Mike Kestner  <mkestner@novell.com>
25047
25048         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
25049
25050 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
25051
25052         * Mime.cs: Various speed optimizations. Looking up mime types
25053           is now 2 times faster than before
25054
25055 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
25056
25057         * CreateParams.cs: Added internal menu field
25058         * Control.cs: 
25059           - Switched call order for UpdateBounds; now we always call
25060             the one that also takes ClientSize, and we're calculating the 
25061             client size via driver method in the others. The previous
25062             method of tracking client size by difference wasn't working
25063             for forms where even the starting client size wouldn't match
25064             the overall form size (due to borders) (Part of fix for #77729)
25065           - CreateParams(): Do not use parent.Handle unless the handle is
25066             already created. Causes havoc with Nexxia and throws off our
25067             creation of controls
25068         * XplatUIX11.cs:
25069           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
25070           - Switched handling of ConfigureNotify over to new PerformNCCalc 
25071             method (consolidates code)
25072           - Changed RequestNCRecalc to use new PerformNCCalc method
25073           - Added calls to RequestNCRecalc when menus and borders are changed
25074             to allow app to set NC size. (Part of fix for #77729) This matches
25075             when MS send a WM_NCRECALC on Win32 windows.
25076           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
25077             (Part of fix for #77729). This matches what MS does, they also
25078             send that message when the form is made visible.
25079           - XException.GetMessage: Improved usability of X errors by including
25080             a translation of the window into Hwnd and Control class
25081           - Improved debug info for window creation, reparenting and destruction
25082           - Created helper method WindowIsMapped() [Currently not used]
25083         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
25084         * Form.cs:
25085           - CreateParams: Now setting our menu on the new internal menu field
25086           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
25087             avoid calculating the same property twice
25088         * Hwnd.cs:
25089           - Improved usability of ToString() for debugging purposes
25090           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
25091             determine the height of the menu, instead of just the font. This
25092             required to also create a graphics context and to keep a bmp 
25093             around (for performance reasons)
25094
25095 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
25096
25097         * MenuAPI.cs: Added OnMouseUp method
25098         * Form.cs:
25099           - Now remembering the requested client size, avoids size errors
25100           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
25101             instead of base if the menu is active. This is required due to
25102             control now capturing and releasing on down/up and it would
25103             prematurely release our menu capture
25104
25105 2006-03-17  Jackson Harper  <jackson@ximian.com>
25106
25107         * KeyboardLayouts.cs: Add the czech layouts.
25108
25109 2006-03-16  Jackson Harper  <jackson@ximian.com>
25110
25111         * Control.cs: Use the viewport space when sizing not the controls
25112         client size, so things like ScrollableControl that effect the
25113         viewport size (when scrollbars are added) are computed correctly.
25114         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
25115         of ManagerEntrys.
25116         - Handle creating BindingManagers for null data sources.
25117         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
25118         source, otherwise when rows are added they are added to the 'fake'
25119         datasource and we will crash when trying to set the position in
25120         those rows.
25121         - Use Implicit scrollbars on the datagrid so they arent
25122         selectable.
25123         
25124 2006-03-16  Jackson Harper  <jackson@ximian.com>
25125
25126         * Binding.cs:
25127         * InternalWindowManager.cs:
25128         * MdiWindowManager.cs:
25129         * X11Keyboard.cs: I really want Mike to love me again (fix
25130         compiler warnings).
25131
25132 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
25133
25134         * DataGrid.cs:
25135           - OnMouseDown: Switch to editing mode when clicking on the cell
25136                          even if we're clicking on the cell that's currently 
25137                          selected
25138           - ProcessGridKey: Left/Right now wrap like MS.Net does
25139           - ProcessGridKey: Tab now knows to add a new row when tab is
25140                             pressed in the cell of the last column of the 
25141                             last row
25142           - ProcessGridKey: Enter now adds another row  if pressed in the last
25143                             row and selectes the new row, same column cell
25144           - ProcessGridKey: Home/End navigate columns, not rows, like 
25145                             originally implemented
25146           - Broke ProcessKeyPreview code out into an extra Internal method
25147             so it can be called from the edit code
25148         * DataGridTextBox.cs (ProcessKeyMessage):
25149           - Switched to accept Tab keypresses
25150           - Added F2 handling to allow jumping to the end of the edited cell
25151           - Added logic to allow moving caret left/right inside edited cell
25152             and making the edited cell jump when the caret hits cell borders
25153           - Tab and Enter are now passed to the datagrid after being handled
25154         * TextBoxBase.cs:
25155           - Removed capture code now that Control handles it
25156           - set_SelectionStart now ensures caret is visible
25157
25158 2006-03-16  Jackson Harper  <jackson@ximian.com>
25159
25160         * TrackBar.cs: Debackwards the increment/decrement for handling
25161         mouse clicks on the bar with vertical trackbars.
25162         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
25163         bottom to match MS.
25164
25165 2006-03-16  Mike Kestner  <mkestner@novell.com>
25166
25167         * ListView.cs: make shift/ctrl keyboard and mouse selection 
25168         consistent with the MS control. Fix a bug in
25169         SelectedListViewItemCollection.Clear that was pissing me off for the
25170         better part of a day because the collection was being altered
25171         underneath us as we walked the list.
25172
25173 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
25174
25175         * Control.cs: Not sure how we could miss this so long, but it seems
25176           that MS.Net has Capture set all the way from before calling 
25177           OnMouseDown through sending the mouse events until after
25178           OnMouseUp. This will fix DataGrid's selection being set to end
25179           at the location of the MouseUp.
25180
25181 2006-03-15  Jackson Harper  <jackson@ximian.com>
25182
25183         * BindingContext.cs: Check the binding after its added so that it
25184           can initialize the binding managers and hookup to events.
25185         * Binding.cs: Data members seem to sometimes include rows/cols in
25186           the format Row.Column we now take this into account.
25187           - Hookup to the position changed event so we can update the
25188           control when the position has changed in the data set.
25189         * CurrencyManager.cs: Take into account the row/col naming
25190           convention when creating dataset tables.
25191         * BindingContext.cs: Using a newer better way of storing
25192           datasource/datamember pairs.  Hopefully this better matches MS for
25193           looking up binding managers.
25194
25195
25196 2006-03-15  Jackson Harper  <jackson@ximian.com>
25197
25198         * BindingContext.cs: The currency manager needs the data member
25199         name, if the member is a data set we use the name to find the
25200         correct table.
25201         * CurrencyManager.cs: When creating the list prefer an IList over
25202         an IListSource.
25203         - Attempt to create a DataTable from a DataSet (TODO: might need
25204         some better error checking here, although MS doesn't seem to have much)
25205         - If we have a DataTable create a view and use it as our list.
25206
25207 2006-03-15  Mike Kestner  <mkestner@novell.com>
25208
25209         * ListView.cs: keep a matrix of the icon mode layout to facilitate
25210         keyboard navigation. Support Up/Down/Left/Right selection correctly
25211         for all 4 View modes.
25212         * ListViewItem.cs: add internal row/col fields for icon layouts.
25213
25214 2006-03-15  Jackson Harper  <jackson@ximian.com>
25215
25216         * TabControl.cs: Redraw the tabs when we resize so their newly
25217         calculated sizes are drawn on screen.
25218         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
25219         composite characters.
25220         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
25221         - filter events so that composite characters can be created
25222         patches by peter
25223         * X11Structs.cs: Add XIMProperties enum.
25224
25225 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
25226
25227         * Control.cs (BringToFront, SendToBack): Don't use window or handle
25228           unless it's created
25229
25230 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
25231
25232         * Control.cs (PerformLayout): We don't need to consider visiblity
25233           for anchoring, only for docking. This fixes 'whacky' alignment
25234           in listbox and other controls that use implicit scrollbars after
25235           the previous PerformLayout patch
25236         * ListBox.cs: Switched to use implicit scrollbars
25237           
25238 2006-03-14  Mike Kestner  <mkestner@novell.com>
25239
25240         * ToolBar.cs: 
25241         * VScrollBar.cs:
25242         - chain up the "new event" overrides to base and use
25243         OnEvent to raise them.  Part of fix for bug #76509.
25244
25245 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
25246
25247         * FileDialog.cs: Do not select an item in the parent directory
25248           on backspace
25249
25250 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
25251
25252         * Control.cs (PerformLayout): It would seem that we considered
25253           invisible windows for our layout. Not quite the right thing
25254           to do. Now we don't any longer, thereby fixing bug #76889.
25255
25256 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
25257
25258         * Control.cs (CanFocus): I goofed. A control can have focus 
25259           even though it's not selectable. Made it match MS docs.
25260
25261 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
25262
25263         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
25264           center by default (fixes #76895)
25265         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
25266           all uses of Border3DSides.All with the explicit ORd together
25267           Left|Right|Top|Bottom because I assume that nobody was aware 
25268           that All also implies a center fill. Most places I checked had
25269           a fill right above.
25270         * ProgressBarStyle.cs: Added
25271
25272 2006-03-13  Mike Kestner  <mkestner@novell.com>
25273
25274         * ListView.cs: fix breakage in drag shadow header positioning 
25275         from Peter's csc compilation fix.
25276
25277 2006-03-13  Mike Kestner  <mkestner@novell.com>
25278
25279         * ListView.cs: fix NRE produced by backspacing twice in a focused
25280         FileDialog.
25281
25282 2006-03-13  Mike Kestner  <mkestner@novell.com>
25283
25284         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
25285
25286 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
25287
25288         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
25289           be changed
25290         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
25291           the allowed size before making programmatic size changes
25292
25293 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
25294
25295         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
25296           set, metacity is broken and will still use the emty sizes in 
25297           the struct. (Fix for #77089)
25298
25299 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
25300
25301         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
25302           WindowExStyles and marked both enums as Flags
25303         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
25304           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
25305           to match WindowStyles split
25306         * XplatUIX11.cs:
25307           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
25308           - Updated to match WindowStyles split
25309         * XplatUIWin32.cs:
25310           - Fixed FosterParent creation, was using ExStyle on the Style field
25311             (This should help with Popup focus issues)
25312           - Updated to match WindowStyles split
25313
25314 2006-03-13  Jackson Harper  <jackson@ximian.com>
25315
25316         * MdiWindowManager.cs: Use the system menu height. Fixes some
25317         strange sizing issues.
25318
25319 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
25320
25321         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
25322         * TextBoxBase.cs:
25323           - Scroll to caret after inserting text (#77672)
25324           - Make scroll range one pixel higher, fixes off-by-one error (and
25325             makes underlines visible on the last line)
25326
25327 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
25328
25329         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
25330           the keyboard state from being stuck with keys in 'pressed' state when
25331           focus is switched away via keyboard
25332         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
25333           reset the keyboard if no X11 KeyUp events are expected to come
25334         * X11Structs.cs: Switched type of Visible to bool to match driver
25335
25336 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
25337
25338         * TextControl.cs:
25339           - Switched caret to be just 1 pixel wide, matches MS and looks less
25340             clunky
25341           - Moved caret display 1 pixel down from the top of the control
25342             to improve view
25343           - InsertCharAtCharet: Update the selection start if moving the caret
25344             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
25345           - No longer always creating the caret when the caret methods are
25346             called. Only the actual ShowCaret/HideCaret will do that now
25347           - Only setting caret visible if the owner control has focus
25348           - UpdateView: Added invalidation-shortcut logic for center and right 
25349             aligned text. Previously we'd update all according to the left
25350             logic which caused drawing errors. Also fixed height of invalidated
25351             areas, now properly invalidating the whole area (was off-by-one)
25352           - owner_HandleCreated: Always generate the document when the
25353             handle is created; this ensures that 
25354         * TextBoxBase.cs:
25355           - Fixed situation where caret would disappear under the right
25356             window border, also improved scrolling behaviour on left-
25357             aligned textboxes
25358           - Fixed right-aligned textboxes to have a border to the
25359             right instead of the caret being under the right border
25360         * XplatUIX11.cs:
25361           - Switched from 'nested' to simple visible/not visible tracking 
25362             for caret (part of fix for #77671)
25363           - No longer passing through translated FocusIn/FocusOut messages
25364             since we were notifying too often and the wrong windows. Instead
25365             we just notify our focussed window of receiving or loosing focus
25366         * XplatUIWin32.cs: Switched from 'nested' show/hide 
25367           counting for caret to simple visible yes/no behaviour (part of 
25368           fix for #77671)
25369
25370 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
25371
25372         * Mime.cs: Remove debug code...
25373
25374 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
25375
25376         * MimeGenerated.cs: Removed
25377         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
25378           and subclasses) from /usr/(local/)share/mime and
25379           $HOME/.local/share/mime.
25380
25381 2006-03-10  Jackson Harper  <jackson@ximian.com>
25382
25383         * MdiWindowManager.cs: Recalc the NC area when a window is
25384         maximized/restored so that the menu area is drawn on forms that
25385         don't have a menu.
25386
25387 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
25388
25389         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
25390           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
25391           us to force a WM_NCCALCRESIZE message being sent. This is needed
25392           for MDI maximizing.
25393
25394 2006-03-10  Jackson Harper  <jackson@ximian.com>
25395
25396         * Form.cs: We need to use the ActiveMenu when calculating menu
25397         height.
25398         - Fix nullref when the window manager hasn't been created yet.
25399         * Control.cs: Fix nullref when we try to bring a control to the
25400         front that has no parent.
25401         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
25402         height.
25403         - Add a dummy item to the maximized menu so it always has the
25404         correct height. Otherwise when there are no menus we don't get our
25405         icon and buttons.
25406         
25407
25408 2006-03-10  Jackson Harper  <jackson@ximian.com>
25409
25410         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
25411         stuff.
25412         * Form.cs: Make the window_state internal so the window managers
25413         can track it.
25414         - When an MDI child is maximized let its window manager create the
25415         main menu (so it can add its icon).
25416         - Notify the window managers of state changes
25417         - Let the window manager paint its buttons and handle button
25418         clicks on the menu when it is maximized.
25419         * InternalWindowManager.cs: Move the prev_bounds into the mdi
25420         window manager, since tool windows don't use it, only mdi windows.
25421         - Tell the main form that we don't want it to handle NCPAINT
25422         itself to avoid extra painting.
25423         - Handle clicks on a maximized windows menu.
25424         - Handle window state changes
25425         - Handle minimize/maximize clicks correctly by setting the window state.
25426         * MdiWindowManager.cs: Add an icon menu that (the menu you get
25427         when clicking on the forms icon).
25428         - New method to create a forms maximized menu. This is its normal
25429         menu + an icon.
25430         - Handle window state changes.
25431         - Handle sizing of maximized windows.  Maximized windows are just
25432         drawn bigger then the parent visible area. All controls are still
25433         there, they are just outside the visible area (this matches windows).
25434         * MdiClient.cs: No scrollbars when a child window is maximized.
25435         - Let the children windows figure out how big they should be when
25436         sizing maximized windows.
25437         - Implement a version of ArrangeIconicWindows somewhat similar to
25438         Windows version.  There are some little differences, but I don't
25439         think any app will rely on the layout of minimized mdi windows.
25440
25441 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
25442
25443         * Padding.cs: Several fixes to allow compiling with csc 2.0
25444
25445 2006-03-09  Jackson Harper  <jackson@ximian.com>
25446
25447         * Menu.cs:
25448         * MenuItem.cs: Cheap hack so we can add items to the list without
25449         the events being raised.  This allows adding mdi items during
25450         drawing. TODO: Should probably find a better time to add the items.
25451
25452 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
25453
25454         * ThemeWin32Classic.cs:
25455           - CheckBox_DrawText: Added logic to not wrap if not enough space
25456             is available (Fix for bug #77727)
25457           - RadioButton_DrawText: Added logic not to wrap if not enough
25458             space is available (Fix for bug #77727). Also removed some
25459             duplicate code, DrawString always drawing the regular text
25460             before hitting the if statement.
25461
25462 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
25463
25464         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
25465
25466 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
25467
25468         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
25469         * ContainerControl.cs: Partial implementation of some 2.0 scaling
25470           methods. Moved the new 2.0 properties into alphabetical order with
25471           other properties and added MonoTODO tags
25472
25473 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
25474
25475         * AutoScaleMode.cs: Added. Fix build.
25476
25477 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
25478
25479         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
25480           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
25481           and was requiring premature handle creation for calls from above
25482         * Form.cs, Control.cs: Removed handle arguments from calls to
25483           CalculateClientRect()
25484
25485 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
25486
25487         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
25488           drag_column.column_rect is MarshalByRef and can't be used that way
25489
25490 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
25491
25492         * AxHost.cs: Added deserialization constructor for 
25493           AxHost+State (fixes 77743)
25494
25495 2006-03-09  Mike Kestner  <mkestner@novell.com>
25496
25497         * ListView.cs: 
25498         - Added column drag reordering for details view.
25499         - fixed behavior when mouse is dragged off column and
25500         AllowColumnReorder is false.
25501         * ColumnHeader.cs: clone the format too in Clone.
25502         * Theme.cs: add DrawListViewHeaderDragDetails method.
25503         * ThemeWin32Classic.cs:
25504         - impl new method for drawing drag column shadows and targets.
25505         - support column offset for details mode in DrawListViewItem.
25506
25507 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
25508
25509         * TextControl.cs: Reset the char_count when the document is cleared
25510           (Fixes bug reported on mono-winforms mailing list)
25511
25512 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
25513
25514         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
25515           of calling base we simply process the key ourselves, since both
25516           DefWindowProc and the handled method would set m.Result. 
25517           (Fixes #77732)
25518
25519 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
25520
25521         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
25522           method also moves the window; instead implemented a copy of
25523           Control.ScaleCore (Part of fix for #77456)
25524         * TextBoxBase.cs: 
25525           - Created new CreateGraphicsInternal method to allow providing
25526             a graphics context when no handle is created without triggering
25527             handle creation. (Part of fix for #77456)
25528           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
25529         * TextControl.cs: 
25530           - Switched Constructor to require TextBoxBase instead of Control (to
25531             allow uncast access to CreateGraphicsInternal)
25532           - Safeguarded use of owner.Handle property. No longer accessing it
25533             unless the handle is already created.
25534           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
25535           - Now triggering a recalc when owning control becomes visible
25536         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
25537           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
25538           premature handle creation (Part of fix for #77456)
25539         * Control.cs:
25540           - We now only destroy our double-buffering buffers when the
25541             control is resized or disposed, but not when visibility
25542             changes. (The code even re-created them twice every time)
25543           - Now requiring a redraw of the buffer on visibility changes
25544             (fixes bug 77654 part 2)
25545           - Not passing OnParentVisibleChanged up unless the control
25546             is visible
25547           - CanFocus: Fixed to match MS documentation
25548           - Focus: Fixed to return actual focus state and to check if
25549             setting focus is legal before setting it
25550
25551 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
25552
25553         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
25554           when to draw focus rectangle by looking at parent focus and
25555           selected state instead. This fixes TabPages on Linux sometimes
25556           having none or multiple focus rectangles.
25557         * XplatUIX11.cs (SetFocus): 
25558           - Don't set the focus if the same window already has focus
25559           - Use SendMessage instead of PostMessage (like it's Win32
25560             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
25561             to match MS behaviour
25562         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
25563           are not selectable.
25564
25565 2006-03-07  Jackson Harper  <jackson@ximian.com>
25566
25567         * PictureBox.cs: Revert line I accidently committed last week.
25568
25569 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
25570
25571         * Control.cs: 
25572           - Added new IsRecreating and ParentIsRecreating properties to
25573             allow testing if RecreateHandle has been called on ourselves
25574             or one of our parents
25575           - WndProc(WM_DESTROY): If our control handle is being recreated
25576             we immediately need to create the handle when receiving the
25577             destroy, that way our child windows find a valid parent handle
25578             when they themselves are being recreated upon WM_DESTROY receipt
25579             (fix for bug #77654 part 1)
25580         * XplatUIX11.cs:
25581           - DestroyWindow: WM_DESTROY must be sent to our own window before
25582             notifying any child windows. MS documents that child windows
25583             are still valid when WM_DESTROY is received. (Control now relies on
25584             this behaviour)
25585           - Added some fine-grain debug options
25586
25587 2006-03-06  Jackson Harper  <jackson@ximian.com>
25588
25589         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
25590         box and base calculations off this.
25591         * MdiChildContext.cs:
25592         * MdiWindowManager.cs: Don't need to ensure scrollbars here
25593         anymore.
25594         
25595 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
25596
25597         * Splitter.cs: In situations where the affected control is added
25598           to the parent's control list after the splitter, we would not
25599           populate affected. Now we try populating it on mousedown, if
25600           it's not already set, and force it to be re-set whenever our
25601           parent changes.
25602
25603 2006-03-03  Matt Hargett  <matt@use.net>
25604
25605         * Control.cs: implement Control.Padding
25606         * Padding.cs: -Padding.All returns -1 when constructing with the
25607         implicit default ctor
25608         -Padding.ToString() matches MS.NET
25609         * ContainerControl.cs: implement
25610         ContainerControl.AutoScaleDimensions
25611         * ListControl.cs: implement ListControl.FormattingEnabled
25612         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
25613         * ButtonBase.cs:
25614         * TabPage.cs: Implement UseVisualStyleBackColor.
25615         * PictureBox.cs: Implement PictureBox.InitialImage.
25616
25617 2006-03-03  Mike Kestner  <mkestner@novell.com>
25618
25619         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
25620         event declarations to proxy to base event.
25621         * ListViewItem.cs: update to use ItemControl.
25622         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
25623         * ThemeWin32Classic.cs: update to new ListView theme API and fix
25624         column header label rendering for 0 width columns.
25625
25626 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
25627
25628         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
25629           that causes the control to be created. Fixes #77476.
25630
25631 2006-03-02  Jackson Harper  <jackson@ximian.com>
25632
25633         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
25634         expose_pending.
25635
25636 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
25637
25638         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
25639           passed in for the EventArgs (fixes #77690)
25640
25641 2006-03-01  Jackson Harper  <jackson@ximian.com>
25642
25643         * ScrollBar.cs: Refresh afterbeing resized.
25644
25645 2006-02-28  Mike Kestner  <mkestner@novell.com>
25646
25647         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
25648         Clean up a tracker compile warning.
25649         * MenuItem.cs: add internal PerformPopup method.
25650         [Fixes #77457]
25651
25652 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
25653
25654         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
25655           implicit expose) when the text is set to null
25656
25657 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
25658
25659         * RichTextBox.cs (FlushText): When newline is true, we always
25660           need to split the line, even if no text is on it and we may
25661           never eat newlines. (Fixes #77669)
25662
25663 2006-02-28  Mike Kestner  <mkestner@novell.com>
25664
25665         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
25666         and set Selected instead.
25667         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
25668         collections.
25669
25670 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
25671
25672         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
25673
25674 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
25675
25676         * FontDialog.cs:
25677           - Got rid of the panel. All controls are now directly added to
25678             the dialog form
25679           - It is now possible to set a font with the Font property
25680           - MinSize and MaxSize property do now what they should
25681           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
25682           - Searching and selecting a font with the font textbox works now,
25683             the same applies to the style and size textbox
25684           - Draw the correct 3D border in the example panel
25685           - Fixed a little mem leak (unused fonts didn't get disposed)
25686           - Many other internal updates/rewrites...
25687           - Fix typo
25688
25689 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
25690
25691         * TextControl.cs: 
25692           - InsertRTFFromStream: Added 'number of characters inserted' argument
25693           - set_SelectedRTF: Now using the number of characters to calculate
25694             the new location for the selection and cursor (x/y cannot be used
25695             due to potentially already wrapped text)
25696
25697 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
25698
25699         * TextControl.cs: Added property and implemented means to allow 
25700           disabling recalculation of a document (can be used to speed up
25701           multiple inserts and is needed to make RTF inserts predictable, see
25702           bug #77659)
25703         * RichTextBox.cs: Using the new NoRecalc property of Document to
25704           keep x/y insert locations predictable. Also makes it faster inserting
25705           large chunks of RTF
25706
25707 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
25708
25709         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
25710           it's easier for a child control to handle the other messages without
25711           having to duplicate the special functionality
25712         * TextBoxBase.cs
25713           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
25714             code to handle processing the key ourselves, in order to get 
25715             access to the result of KeyEventArgs.Handled. We now only call 
25716             ProcessKey if they key hasn't been handled already. Fixes #77526.
25717           - set_Text: If null or empty string is given, just clear the 
25718             document. Fixes part of #77526
25719
25720 2006-02-27  Jackson Harper  <jackson@ximian.com>
25721
25722         * SizeGrip.cs: Paint the background color before painting the grip
25723         so things look right.
25724         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
25725
25726 2006-02-27  Mike Kestner  <mkestner@novell.com>
25727
25728         * ListView.cs:
25729           - Restructure layout and invalidation model to remove a ton of
25730           flicker from the control and speed up performance in general.
25731           - Add manual column resize, flickers like crazy, but I already have
25732           some ideas on how I'll fix that. (#76822)
25733           - Merge the three Icon-based views into a single layout method.
25734           - Move item selection interaction logic from the item since 
25735           interaction with the collections is more appropriate to the view.
25736           - Deselection on non-item clicks.
25737         * ListViewItem.cs:
25738           - Encapsulate most of the layout. Add some internal props to trigger
25739           layout.  Move to a model where Items invalidate themselves instead
25740           of just invalidating the whole control every time something changes.
25741           - Invalidate on Text/Caption changes.
25742           - switch to an offset based layout model to avoid having to absolute
25743           position every element on item moves.
25744           - correct checkbox layout to conform to MS layout.
25745         * ThemeWin32Classic.cs:
25746           - refactor some column header drawing code.
25747           - fix string justification for column headers (#76821)
25748           - make SmallIcon labels top justified for compat with MS impl.
25749         * ThemeClearlooks.cs:
25750           - adjust to new ListViewItem internal checkbox bounds api.
25751
25752 2006-02-27  Jackson Harper  <jackson@ximian.com>
25753
25754         * Control.cs:  Change where implicit controls fall in the zorder.
25755         They are now on top of all children.
25756         - Synced AddImplicit code with Add
25757         - Removed unused enumerator.
25758         * SizeGrip.cs: Remove the TODO as its been TODONE.
25759
25760 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
25761
25762         * TextControl.cs(Insert): Combine the last lines unless the insertion
25763           string ends with \n\n, otherwise we leave one line too many (Fixes
25764           something I noticed with the testapp for #77526; the bug itself was
25765           already fixed in the previous checkin)
25766
25767 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
25768
25769         * RichTextBox.cs:
25770           - SelectionColor and SelectionFont methods no longer set absolute
25771             styles. Instead, the keep font or color respectively (This 
25772             resolves a long-standing FIXME in the code)
25773           - When flushing RTF text, the insert code now considers text trailing
25774             behind the insertion point (Fixes the bug where when replacing
25775             the selected text via SelectedRTF the remainder of the line behind 
25776             the selection would stay on the first insertion line)
25777         * TextBoxBase.cs:
25778           - AppendText now updates the selection points after inserting text
25779           - AppendText now ensures that the last tag (sometimes 0-length) of
25780             the document is used for the style information (Fixes part of 
25781             bug #77220)
25782         * TextControl.cs:
25783           - Created new FontDefiniton class to allow describing partial style
25784             changes
25785           - StreamLine() now takes a lines argument, to allow it to decide
25786             whether an encountered zero-length tag is the last in the document
25787             (which must be kept to not loose the font/color contained in it,
25788             for later appends)
25789           - Created Combine() and Split() methods for Marker structs, to 
25790             support marker updates due to reformatted documents (soft line
25791             wraps)
25792           - Implemented Document.CaretTag setter
25793           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
25794             of the last line (Not the cause, but also exposed by bug #77220)
25795           - Added LineTag argument to InsertString method, to allow callers
25796             to force a certain tag to be used (required to force use of the
25797             trailing zero-length tag of a document)
25798           - Now updating markers in Combine(), to avoid stale tag markers
25799           - Added some method descriptions to aid maintenance
25800           - Implemented new FormatText concept, allowing additive/subtractive
25801             formatting by only specifying the components that are to be 
25802             changed. This was needed for resolving the RTB.SelectedColor/
25803             RTB.SelectedFont fixmes
25804           - Added Break() support method to allow breaking up linetags (used
25805             for partial formatting)
25806           - Added GenerateTextFormat() method. It is used for partial 
25807             formatting and allows to generate a full font/color from given
25808             attributes and an existing tag.
25809
25810 2006-02-26  Jackson Harper  <jackson@ximian.com>
25811
25812         * XplatUIX11.cs:  Use the correct caption height.
25813         - Translate hittest coordinates to screen coords to match MS.
25814         * XplatUIWin32.cs: When we create MDI windows we need to reset
25815         some of the style flags, so we get a nice blank window, and can
25816         draw all the decorations ourselves.
25817         - Set a clipping rectangle on the non client paint event, the
25818         window manager drawing code needs one.
25819         * Form.cs: The window manager needs to know when the window state
25820         has been updated.
25821         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
25822         don't need to factor in border and title sizes in these
25823         methods. TODO: Remove the args and fix the call points.
25824         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
25825         properly.
25826         - Let the driver set the cursors.
25827         - Improve active window handling
25828         - Correct sizes for title bars and buttons.
25829         - Match MS drawing better
25830         * MdiWindowManager.cs: We don't need to handle border style
25831         updates specially anymore.
25832         - Check for scrollbars when windows are done moving
25833         - Handle Active properly.
25834         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
25835         correctly. I am spewing the exception though, so we don't hide the
25836         bugs.
25837         
25838 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
25839
25840         * DataGridViewRowPostPaintEventArgs.cs,
25841           DataGridViewCellPaintingEventArgs.cs,
25842           DataGridViewRowCollection.cs,
25843           DataGridViewRowPrePaintEventArgs.cs,
25844           DataGridViewCell.cs: Clear a few warnings and implement a few
25845           exceptions that should be thrown.
25846
25847 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
25848
25849         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
25850           'inheriting' our parent's (non-default) cursor. (Part of
25851            the fix for #77479)
25852
25853 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
25854
25855         * XplatUIX11.cs: Fixed cast to make csc happy
25856
25857 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
25858
25859         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
25860           it's for the client area (part of fix for #77479 and needed
25861           for MDI window cursor handling)
25862         * XplatUIX11.cs
25863           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
25864             the appropriate default cursors and also passing the message
25865             up the parent chain 
25866           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
25867             for non-client areas
25868
25869 2006-02-15  Jackson Harper  <jackson@ximian.com>
25870
25871         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
25872         is a real MDI window
25873
25874 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
25875
25876         * X11DesktopColors.cs: Instead of checking the desktop session
25877           string for "KDE" check if it starts with "KDE"
25878
25879 2006-02-10  Jackson Harper  <jackson@ximian.com>
25880
25881         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
25882         systems).
25883
25884 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
25885
25886         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
25887           errors
25888         * ColorDialog.cs:
25889           - Got rid of the panel. All controls are now directly added to
25890             the dialog form
25891           - Changed to mono coding style
25892
25893 2006-02-10  Jackson Harper  <jackson@ximian.com>
25894
25895         * InternalWindowManager.cs: We don't need the set visibility to
25896         false hack anymore now that peter has written beautiful shutdown
25897         code.
25898
25899 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
25900
25901         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
25902           where already explicitly destroyed
25903
25904 2006-02-10  Jackson Harper  <jackson@ximian.com>
25905
25906         * MdiClient.cs: Handle the case where windows are too high or to
25907         the left and we need scrollbars.
25908
25909 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
25910
25911         * MimeIcon.cs: Added some icons
25912         * FileDialog.cs:
25913           - Fixed bug #77477
25914           - Got rid of the panel. All controls are now directly added to
25915             the dialog form
25916           - Changed to mono coding style
25917           - On Linux "My Computer" and "My Network" will now show some
25918             more usefull information. A new class, MasterMount, gathers
25919             this information from /proc/mount. Updated MWFFileView to make
25920             use of this information
25921           - Fixed a bug that caused FileDialog to crash when
25922             ".recently_used" file had a zero size
25923           - FilterIndex does now what it should
25924           - Some Refactoring
25925         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
25926             FileDialog changes
25927
25928 2006-02-09  Jackson Harper  <jackson@ximian.com>
25929
25930         * ComboBox.cs: Don't touch if null.
25931
25932 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
25933
25934         * Cursor.cs: 64bit safeness fix
25935         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
25936
25937 2006-02-09  Jackson Harper  <jackson@ximian.com>
25938
25939         * Form.cs: If a form is made into an MDI form update the styles so
25940         all the props can get set correctly.
25941         - Kill the mdi_container when we dont need it anymore.
25942         * InternalWindowManager.cs: Add missing NOT
25943
25944 2006-02-08  Jackson Harper  <jackson@ximian.com>
25945
25946         * InternalWindowManager.cs: Respek clipping when drawing MDi
25947         decorations.
25948
25949 2006-02-08  Jackson Harper  <jackson@ximian.com>
25950
25951         * Hwnd.cs: Add bits to track non client expose events.
25952         * XplatUIX11.cs: Track non client expose events on the hwnd. This
25953         gives us a proper invalid rect and will allow for some nice
25954         optimizations with NC client drawing
25955         - MDI windows are children windows, so move their style handling
25956         into the child window block.
25957         * InternalWindowManager.cs: Remove a state reset that was
25958         getting invoked at the wrong time. Fixes managed windows getting
25959         into a 'stuck' captured state.
25960
25961 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
25962
25963         * TextControl.cs (Document.ctor): Now initializing 
25964           selection_anchor. Fixes #77493
25965
25966 2006-02-07  Jackson Harper  <jackson@ximian.com>
25967
25968         * TrackBar.cs: The increment/decrements were backwards.
25969
25970 2006-02-07  Mike Kestner  <mkestner@novell.com>
25971
25972         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
25973         to the instance itself.
25974
25975 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
25976
25977         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
25978           on ulongs and pointers, the size differs between 32bit and 64bit
25979           systems. 
25980
25981 2006-02-07  Mike Kestner  <mkestner@novell.com>
25982
25983         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
25984         for 64 bit platforms to work around a metacity bug. 
25985
25986 2006-02-07  Jackson Harper  <jackson@ximian.com>
25987
25988         * TrackBar.cs: Process the input keys we need, and hookup to
25989         KeyDown instead of using WndProc, so we get key messages.
25990
25991 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
25992
25993         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
25994           machine we're on. 
25995         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
25996           we need to translate the XdndVersion atoms array before sending it
25997
25998 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
25999
26000         * XplatUIX11.cs: 
26001           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
26002             number of bits for the property, not the number of bytes. The
26003             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
26004             but would not crash since it specified 8 bits instead of 4 bits)
26005           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
26006             defined as XID -> long in the C headers)
26007           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
26008             references since those are now IntPtr to begin with
26009           - Switched all Atom.XXX 'int' casts to IntPtr casts
26010           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
26011           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
26012           - Added XChangeActivePointerGrab DllImport (for X11DnD)
26013         * X11Structs.cs:
26014           - Changed 'int' type for Atoms in XEvent structures to IntPtr
26015           - Changed atom in HoverStruct to be IntPtr
26016         * X11DnD.cs:
26017           - Removed local DllImports, switched code to use those from XplatUIX11
26018           - Removed/fixed casts related to the switch of Atom to be a IntPtr
26019
26020 2006-02-06  Mike Kestner  <mkestner@novell.com>
26021
26022         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
26023         method signatures in the import region.  There may still be some
26024         lingering struct marshaling issues, as I didn't drill down into those.
26025         Yet.
26026
26027 2006-02-06  Jackson Harper  <jackson@ximian.com>
26028
26029         * ComboBox.cs: Dont manually set the top_item, this is computed
26030         when the scrollbar position is set.
26031
26032 2006-02-06  Mike Kestner  <mkestner@novell.com>
26033
26034         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
26035         startup crashes on amd64.  There's other fixes needed.  All pinvoke
26036         usage of Atom needs to be mapped to IntPtr for example.  And there are
26037         likely other int/long issues to be addressed.
26038
26039 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
26040
26041         * FileDialog.cs: One more...
26042
26043 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
26044
26045         * FileDialog.cs: Next try
26046
26047 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
26048
26049         * FileDialog.cs: First part of fix for #77464
26050
26051 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
26052
26053         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
26054           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
26055           AcceptButton border drawing.
26056
26057 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
26058
26059         * Form.cs: Moved positioning of form after auto scaling is applied,
26060           otherwise it would possibly use wrong form size.
26061
26062 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
26063
26064         * Control.cs (RecreateHandle): No need to re-create any child
26065           controls, the child windows will get destroyed automatically by
26066           the windowing system or driver, and re-created when the handle
26067           is being accessed the first time. Fixes #77456
26068         * Form.cs: No longer setting the form to closing if the handle is 
26069           being recreated. This seems like the right thing to do, don't
26070           have a bug or testcase for this, though.
26071
26072 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
26073
26074         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
26075           controls to avoid unwanted side effects
26076
26077 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
26078
26079         * Control.cs: 
26080           - ScaleCore needs to scale the bounds, not the ClientSize of the 
26081             control. Fixes #77416.
26082           - DefaultSize is 0,0 for control
26083         * TextBoxBase.cs: 
26084           - DefaultSize is 100, 20
26085           - SetBoundsCore: Now enforcing the height, no matter if the provided
26086             height is more or less than the preferred one, as long as AutoSize
26087             is on
26088         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
26089
26090 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
26091
26092         * Control.cs:
26093           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
26094             call unless both performLayout is true *and* we have a pending
26095             layout change
26096           - ResumeLayout: MS does not completely nest Suspend and Resume,
26097             they bottom out at 0, fixed our code to match that.
26098           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
26099             SetBoundsCore, we were updating even when we shouldn't. This fixes
26100             swf-anchors mis-anchoring when resizing the app fast and lots.
26101           - UpdateDistances: Now only setting the left and top distance if 
26102             we have a parent and are not suspended, this is based on
26103             a suggestion by Don Edvaldson in bug #77355.
26104           - OnVisibleChanged: Fixed logic when to create the control. We may
26105             not create the control if we have no parent or if it's not visible;
26106             switched to using Visible property instead of is_visible field 
26107             since the property also considers parent states. This fixes a bug
26108             when starting Paint.Net
26109
26110 2006-02-02  Jackson Harper  <jackson@ximian.com>
26111
26112         * Form.cs: If the forms handle hasn't been created yet don't call
26113         into xplatui to make it top most, just set the topmost flag on the
26114         form in CreateParams
26115         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
26116
26117 2006-02-01  Jackson Harper  <jackson@ximian.com>
26118
26119         * ScrollableControl.cs: Refactored the Recalculate method a
26120         little, this wasn't handling all the variants of bottom and right
26121         bars needed to be added and added/removed based on their
26122         counterparts being added/removed (which changes the drawable
26123         size). Also we special case client widths and heights of 0 and
26124         don't add the scrollbar for those.
26125
26126 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
26127
26128         * XplatUIX11.cs: 
26129           - Added method to get AbsoluteGeometry(); currently unused, but might
26130             be used in the future, if we try again to figure out toplevel
26131             coordinates with some more crappy window managers
26132           - Added FrameExtents() method to retrieve the WM set decoration size
26133           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
26134             to deal with at least KDE, FVWM and metacity (Fixes #77092)
26135         * Hwnd.cs: 
26136           - Added whacky_wm tracking var for metacity
26137           - Added logic to have default menu height if the actual menu height
26138             has not yet been calculated (part of fix for #77426)
26139         * Form.cs: Keep track whether client size has been set and re-set 
26140           it if a menu is added/removed afterwards (Fixes #77426)
26141
26142 2006-01-31  Jackson Harper  <jackson@ximian.com>
26143
26144         * Control.cs: When a new Site is set on the component attempt to
26145         pull the AmbientProperties from it.
26146
26147 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
26148
26149         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
26150           in the background of the owning form. Fixes #77332
26151
26152 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
26153
26154         * MimeIcon.cs: Fix for #77409
26155
26156 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
26157
26158         * XplatUIX11GTK.cs: Initial import
26159
26160 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
26161
26162         * FixedSizeTextBox: fixes class signature
26163
26164 2006-01-30  Jackson Harper  <jackson@ximian.com>
26165
26166         * FixedSizeTextBox.cs: New internal class that represents a
26167         textBox that will not be scaled.
26168         * TreeView.cs:
26169         * ComboBox.cs:
26170         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
26171         standard TextBox.
26172                 
26173 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
26174
26175         * XplatUIX11.cs: Retrieve default screen number instead of
26176           assuming 0. Attempted fix for #77318
26177
26178 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
26179
26180         * XplatUIWin32.cs: 
26181           - GetWindowPos: When a window is parented by FosterParent, use 
26182             the desktop instead of FosterParent as the base to get coordinates
26183           - CreateWindow: Don't make FosterParent the parent window for Popups
26184             if we don't want a taskbar entry, Popups automatically don't get one
26185         * Hwnd.cs: Need to call remove to actually remove the key from the
26186           hash table
26187
26188 2006-01-30  Mike Kestner  <mkestner@novell.com>
26189
26190         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
26191
26192 2006-01-30  Jackson Harper  <jackson@ximian.com>
26193
26194         * TreeView.cs:
26195         * TreeNode.cs: Raise events no matter how the treenode is
26196         checked. Patch by Don Edvalson.
26197
26198 2006-01-30  Jackson Harper  <jackson@ximian.com>
26199
26200         * TreeNode.cs: Signature fix.
26201
26202 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
26203
26204         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
26205
26206 2006-01-20  Mike Kestner  <mkestner@novell.com>
26207
26208         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
26209         event forwarding when menus are active.
26210         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
26211         Most of the patch is pdb's with a little rework.
26212
26213 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
26214
26215         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
26216           Removed GetMenuDC and ReleaseMenuDC methods; replaced
26217           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
26218         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
26219         * InternalWindowManager.cs: Added use of PaintEventStart/End to
26220           handling of WM_NCPAINT message, now passing the PaintEventArgs to
26221           the PaintWindowDecorations method
26222         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
26223         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
26224         * MenuAPI.cs: Made tracker window invisible
26225         * XplatUIWin32.cs:
26226           - Removed GetMenuDC and ReleaseMenuDC methods
26227           - Implemented the client=false path for PaintEventStart and
26228             PaintEventEnd
26229
26230 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
26231
26232         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
26233         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
26234           styles
26235         * Form.cs: 
26236           - MaximizeBox, MinimizeBox: Recreate the handle when setting
26237             the style
26238           - CreateParams: Reworked the styles to match MS look'n'feel,
26239             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
26240             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
26241
26242 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
26243
26244         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
26245           window is not mapped, since otherwise every form that's being 
26246           created is considered minimized, which is wrong.
26247         * Form.cs: Catching the exception and returning our internal value
26248           instead
26249
26250 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
26251
26252         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
26253           SetWindowMinMax() to have means to tell the driver about the minimum,
26254           maximum and maximized state window sizes. (Part of the fix for #76485)
26255         * Form.cs:
26256           - Implemented tracking of minimum and maximum window size, now calling
26257             new SetWindowMinMax() driver method to tell the driver (Part of the
26258             fix for #76485)
26259           - Finished handling of WM_GETMINMAXINFO method, now setting all values
26260             (Completes fix for #76485)
26261           - Calling new SetWindowMinMax driver method when the handle for a 
26262             form is created, to make sure the driver knows about it even if
26263             the values have been set before the window was created
26264           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
26265             to avoid messing up our anchoring calculations (partial fix
26266             for #77355)
26267         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
26268         * XplatUIX11.cs:
26269           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
26270           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
26271             (and presumably other freedesktop.org compliant WMs). Left the
26272             assumption unmapped=minimized, needed for SetVisible to work.
26273           - Now setting the window state when creating windows
26274           - Fixed SetVisible to consider/set the window state when mapping
26275             a Form. We cannot set the state before it's mapped, and we cannot
26276             use Form.WindowState once it's mapped (since it would ask the
26277             driver and get 'normal'. Therefore, we grab the state before
26278             mapping, map, and then set state.
26279           - Implmemented SetWindowMinMax method; Metacity does not seem to
26280             honor the ZoomHints, though.
26281         * XplatUIWin32.cs:
26282           - Removed MINMAXINFO (moved to XplatUIStructs)
26283           - Added SetWindowMinMax stub (on Win32 the only way to set that
26284             information is in response to the WM_GETMINMAXINFO message, which
26285             is handled in Form.cs)
26286           - Added logic to SetVisible to set the proper window state when a 
26287             form is made visible (fixes #75720)
26288
26289 2006-01-26  Jackson Harper  <jackson@ximian.com>
26290
26291         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
26292         same way we handle them with Invoke.
26293
26294 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
26295
26296         * Form.cs:
26297           - Added tracking of window state so CreateParams can return
26298             the appropriate style
26299           - Moved setting of WS_CAPTION style in CreateParams to allow
26300             styles without caption
26301         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
26302           control if the TextBox property is accessed. Fixes #77345
26303         * Control.cs:
26304           - get_Created: now uses is_disposed and is_created to determine
26305             return value (suggested by Jackson)
26306           - CreateHandle: No longer exits if the handle is being recreated
26307           - RecreateHandle: If the handle is not yet created call the 
26308             appropriate method to create either control or handle. If the
26309             control is already created CreateHandle will simply exit instead
26310             of just creating the handle
26311         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
26312           now SendMessage WM_DESTROY directly to the control when DestroyWindow
26313           is called.
26314         * XplatUIX11.cs: 
26315           - When DestroyWindow is called, instead of waiting for the 
26316             DestroyNotification from X11, we directly post it to the WndProc
26317             and immediately dispose the hwnd object.
26318             Same applies to DestroyChildWindows, and this obsoletes the
26319             expose_pending tracking. Contrary to Win32 behaviour we destroy our
26320             child windows before our own, to avoid X11 errors.
26321           - Removed the direct sending of WM_PAINT on UpdateWindow
26322         * XplatUIWin32.cs:
26323           - Reworked DoEvents and GetMessage to allow access to internal queue
26324             even when trying non-blocking access to the queue.  Fixes #77335. 
26325             Based on a patch suggestion by Don Edvalson. The new private
26326             GetMessage can now also be used as a backend for a PeekMessage
26327             frontend version.
26328         * XplatUI.cs: Improved debug output for CreateWindow
26329
26330 2006-01-25  Jackson Harper  <jackson@ximian.com>
26331
26332         * Help.cs: Allow param to be null. Patch by Don Edvalson.
26333
26334 2006-01-24  Jackson Harper  <jackson@ximian.com>
26335
26336         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
26337         when we have a MaxDropItems lower then the selected index.
26338
26339 2006-01-24  Jackson Harper  <jackson@ximian.com>
26340
26341         * Control.cs: Don't allow selection of non visible controls, allow
26342         selection of controls without parents.
26343
26344 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
26345
26346         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
26347         * DataGridDrawingLogic.cs: Add editing row only when is necessary
26348
26349 2006-01-23  Jackson Harper  <jackson@ximian.com>
26350
26351         * UpDownBase.cs: Make the textbox handle all the selection and
26352         tabbing. This fixes tabing to updown controls.
26353
26354 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
26355
26356         * TextBoxBase.cs: fixes exception thown the object was null
26357
26358 2006-01-23  Jackson Harper  <jackson@ximian.com>
26359
26360         * ButtonBase.cs: Just use the base CreateParams. They set
26361         visibility and enabled correctly.
26362         * ComboBox.cs:
26363         * TrackBar.cs:
26364         * MonthCalendar.cs: Lets let the base set as much of the
26365         createparams as possible so we don't have duplicate code all over
26366         the place.
26367
26368 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
26369
26370         * ThemeGtk.cs: Added TrackBar and some experimental code to
26371           get double buffering back
26372
26373 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
26374
26375         * DataGrid.cs: Allows row number set internally higher than the last
26376         when creating a new row. Restores the editing functionality.
26377
26378 2006-01-20  Mike Kestner  <mkestner@novell.com>
26379
26380         * MimeIcon.cs: delay Image creation until the icons are accessed
26381         instead of creating 190 scaled images on GnomeHandler startup.
26382
26383 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
26384
26385         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
26386           first call base before processing the event. Fixes #77279
26387
26388 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
26389
26390         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
26391           that the stride for the GDI bitmap would match the stride of
26392           a DIB or a Cursor.
26393
26394 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
26395
26396         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
26397
26398 2006-01-19  Jackson Harper  <jackson@ximian.com>
26399
26400         * ComboBox.cs: Hookup the text controls keydown event so we get
26401         those when the text control has the focus.
26402
26403 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
26404
26405         * Label.cs: Now using the base events instead of defining new ones;
26406           this allows us to just call the base properties without having to
26407           duplicate all base property logic 
26408
26409 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
26410
26411         * Label.cs: A label by default is not a tabstop (Fixes one of our
26412           failing nunit tests)
26413
26414 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
26415
26416         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
26417         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
26418
26419 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
26420
26421         * Cursor.cs: Reimplemented creating cursor bitmaps without using
26422           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
26423           This fixes #77218
26424         * XplatUIWin32.cs: 
26425           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
26426             constructor creates images that can't be saved. Part of the fix
26427             for #76103
26428           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
26429           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
26430             bug fix for handling window state in forms properly)
26431
26432 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
26433
26434         * ThemeGtk.cs: Simplify ScrollBar drawing
26435
26436 2006-01-18  Jackson Harper  <jackson@ximian.com>
26437
26438         * Splitter.cs: Set the default dock style for the splitter control
26439         in the constructor.
26440
26441 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
26442
26443         * ThemeGtk.cs: Corrected StateType and ShadowType for
26444           gtk_paint_box
26445
26446 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
26447
26448         * Control.cs: Make use of Theme.DoubleBufferingSupported
26449         * ThemeGtk.cs:
26450           - Added drawing for flat style buttons
26451           - Added ScrollBar drawing
26452
26453 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
26454
26455         * ThemeClearlooks.cs: Removed some unneeded code.
26456         * ThemeGtk.cs: First part of ThemeGtk enhancements.
26457
26458 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
26459
26460         * LinkLabel.cs: We need to update the hover drawing when
26461           leaving the control as well.
26462
26463 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
26464
26465         * DataGrid.cs: Clicking on non empty areas in the columns
26466            area was giving an exception
26467
26468 2006-01-17  Jackson Harper  <jackson@ximian.com>
26469
26470         * ThemeWin32Classic.cs:
26471         * ListView.cs: Do not draw/clip the headers when the header style
26472         is None.
26473
26474 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
26475
26476         * DataGrid.cs: Fixes 77260
26477         
26478 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
26479
26480         * DataGrid.cs: Clicking on a column on a empty grid was giving
26481           an exception
26482
26483 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
26484
26485         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
26486           or any keypress will crash the grid.
26487
26488 2006-01-17  Mike Kestner  <mkestner@novell.com>
26489
26490         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
26491         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
26492         invisible/previously-visible items.
26493         [Fixes #76909]
26494
26495 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
26496
26497         * ThemeClearlooks.cs:
26498         - Added CL_Draw_Button method; now other theme controls that are 
26499           not derived from button or do not have a button can draw buttons
26500           too
26501         - Updated ComboBox drawing
26502         - Beautified RadioButton drawing
26503         - Corrected drawing of bottom and left tabs
26504         - Beautified DateTimePicker and MonthCalendar
26505         - Added CPDrawButton and CPDrawRadioButton
26506
26507 2006-01-16  Jackson Harper  <jackson@ximian.com>
26508
26509         * ComboBox.cs: Set the initial value of the scrollbar to the
26510         current index. Reduce the numbers of refreshs and IndexOfs called.
26511
26512 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
26513
26514         * FileDialog.cs: When the file listview is focused hitting the
26515           backspace key moves the fileview to the parent directory
26516
26517 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
26518
26519         * Form.cs: 
26520           - Added RecreateHandle call when changing taskbar visibility to 
26521             trigger reparenting in Win32 driver (Fixes #75719)
26522           - If a window has minimize or maximize buttons, it cannot have
26523             a help button
26524         * XplatUIWin32.cs:
26525           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
26526             the toplevel form with FosterParent (A toolwindow not on the
26527             taskbar) (Fixes #75719)
26528           - Made FosterParent a toolwindow
26529
26530 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
26531
26532         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
26533
26534 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
26535
26536         * ToolTip.cs: If SetToolTip is called from a control and the mouse
26537           is currently over that control, make sure that tooltip_window.Text
26538           gets updated
26539
26540 2006-01-13  Mike Kestner  <mkestner@novell.com>
26541
26542         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
26543
26544 2006-01-13  Jackson Harper  <jackson@ximian.com>
26545
26546         * TreeView.cs: On MS GetNodeAt never actually factors in the X
26547         value passed.  Also redraw the selected node when we recieve
26548         focus, so tabbing between trees works correctly.
26549
26550 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
26551
26552         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
26553           ~/.gconf/%gconf-tree.xml, so use
26554           .gconf/desktop/gnome/interface/%gconf.xml
26555
26556 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
26557
26558         * TextControl.cs: Draw text in gray if control is disabled
26559
26560 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
26561
26562         * TreeView.cs: Draw the focus rectangle outside the highlight, to
26563           make sure it's always visible. Fixes #76680.
26564
26565 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
26566
26567         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
26568
26569 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
26570
26571         * PageSetupDialog.cs: Added.
26572         * PrintDialog.cs: Attributes.
26573         * PrintPreviewControl.cs: Updates.
26574         * PrintPreviewDialog.cs: Updates.
26575         
26576 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
26577
26578         * Control.cs: Undid my selection check fix, since it's not needed
26579         * TextBoxBase.cs:
26580           - Now considering the presence of hscroll/vscroll when sizing
26581             vscroll/hscroll respectively. Fixed bug #77077
26582           - Added Left/Up/Down/Right to IsInputKey list to prevent
26583             ContainerControl from stealing them. This fixes what I broke
26584             with my last checkin.
26585
26586 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
26587
26588         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
26589           I finally understand how the property can be set without a setter :-)
26590
26591 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
26592
26593         * Application.cs:
26594           - Switched RunLoop to use static Message.Create to create a 
26595             Message object
26596           - Added PreProcessMessage call in runloop for keyboard events; this
26597             is part of the fix for #77219, I overlooked this originally in the
26598             MSDN doc for PreProcessMessage
26599         * Control.cs:
26600           - Removed call to PreProcessMessage from handling of keyboard 
26601             messages; it's supposed to be done in the message pump
26602           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
26603             per MSDN documentation.
26604           - IsInputChar: All chars are input chars by default; removed the 
26605             parent calling chain, MS does not document that
26606           - PreProcessMessage: If IsInputChar is true, we want to return false
26607             to allow dispatching of the message
26608           - When selecting the next control, now also check that we're not
26609             selecting ourselves again and therefore return a false positive.
26610         * TextBoxBase.cs:
26611           - Tried to match return values for IsInputKey and ProcessDialogKey
26612             to what MS returns; moved processing of our special keys outside
26613             ProcessDialogKey since MS does not seem to return true on those.
26614           - Moved code that previously was in ProcessDialogKey into new private
26615             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
26616           - Reworked handling of WM_CHAR to not have to duplicate code from
26617             Control.cs anymore, instead we simply call down to base.
26618            
26619 2006-01-12  Jackson Harper  <jackson@ximian.com>
26620
26621         * ComboBox.cs: We always need to refresh the text area when
26622         EndUpdate is called. Fixes the combobox in the file dialog.
26623         * Control.cs: Don't create the creator_thread until the controls
26624         handle is created.  Also in InvokeRequired we check if the
26625         creator_thread is null. This gives the effect of InvokeRequired
26626         returning true if the controls handle is not created yet, and
26627         matches MS.
26628
26629 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
26630
26631         * XplatUI.cs:
26632           - Added StartLoop() driver method. This is used to allow drivers to
26633             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
26634             loop for a particular thread
26635           - Added EndLoop() driver method. This is called once the message
26636             pump for the thread is shut down
26637           - Added SupportsTransparency method to allow the driver to indicate
26638             opacity support for windows
26639         * Form.cs:
26640           - Removed TODO attribute, completed AllowTransparency property
26641           - Added documented logic to Opacity
26642         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
26643           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
26644           versions of CompatibleTextRendering
26645         * X11Structs.cs: Added opacity atom to our atom enumeration
26646         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
26647           of a form might be set before it's reparented by the WM, and we need
26648           the opacity value without calling up to Form)
26649         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
26650           SupportsTransparency() driver methods
26651         * Application.cs: Now calling StartLoop and EndLoop driver methods
26652         * XplatUIX11.cs:
26653           - Added opacity atom registration
26654           - Added StartLoop()/EndLoop() methods. They're empty right now but
26655             will need to get implemented when we switch to a per-thread queue
26656           - Implemented SupportsTransparency() method
26657           - Implemented SetWindowTransparency() method
26658           - Added support for setting the opacity value when a window is
26659             reparented (since the opacity needs to be set on the WM frame)
26660         * XplatUIOSX.cs, XplatUIWin32.cs:
26661           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
26662
26663 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
26664
26665         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
26666
26667 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
26668
26669         * FileDialog.cs: Added ToolTip for MWFFileView
26670         * MimeIcon.cs: Rewrote GnomeHandler.
26671           - Get currently used gnome icon theme from
26672             ($HOME)/.gconf/%gconf-tree.xml
26673           - Make use of inherited icon themes
26674           - Support SVG icon themes like Tango via librsvg
26675
26676 2006-01-12  Miguel de Icaza  <miguel@novell.com>
26677
26678         Revert's Jackson's revert which broke 2.0 builds.   Fix both
26679         builds. 
26680         
26681         * Application.cs: Move the use_compatible_text_rendering outside
26682         the NET_2_0 define.  If we ever need to use the
26683         use_compatible_text_rendering on the individual controls they will
26684         access the variable from the common shared code paths.
26685
26686 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
26687
26688         * XplatUI.cs:
26689           - Added more granular debug options
26690           - Added method to print both window text and id
26691           - Switched debug output to use new Window() debug method
26692           - Added IsEnabled() driver method
26693           - Added EnableWindow() driver method
26694         * Form.cs:
26695           - Removed end_modal; no longer needed, new loop handles termination
26696             via 'closing' variable
26697           - If form is modal, setting DialogResult will now initiate loop
26698             termination via 'closing' variable
26699           - Added support for is_enabled/WS_DISABLED to CreateParams
26700           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
26701             does all the work
26702           - Removed code that's now in RunLoop from ShowDialog()
26703           - Added various documented sanity checks to ShowDialog()
26704           - Added handling of WM_DESTROY message; we set 'closing' on getting
26705             the message to indicate the message pump to terminate
26706           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
26707             send by the Application.ExitThread method. (We send the message
26708             to destroy the window after all other events have been
26709             processed through the queue, instead of destroying the handle 
26710             directly)
26711           - Moved code from Close() method to WM_CLOSE handler; added logic
26712             to only send close-related events if the form is not displayed
26713             modal
26714         * Splitter.cs (..ctor): Fixed typo in resource name
26715         * Control.cs:
26716           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
26717             brush now
26718           - set_Cursor: Now only setting calling into XplatUI if the handle for
26719             the control is already created; this avoids implict handle creation
26720             or crashes if it's not created
26721           - set_Enabled: Now setting the enabled state via the new driver method
26722             instead of just tracking it
26723           - CreateParams: Added logic to set WS_DISABLED based on enabled state
26724           - CreateControl: Reordered event firing and method calls to more
26725             closely fire events in the order MS does. Now setting the
26726             enabled state in the driver when creating the control.
26727           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
26728             match MS order
26729         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
26730           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
26731         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
26732         * Hwnd.cs:
26733           - Added tracking of window enabled state (get_Enabled/set_Enabled)
26734           - Added EnabledHwnd property to easily allow a driver to find the
26735             handle of the first enabled window in the parent chain (this is
26736             used by drivers to pass up input events of disabled windows)
26737         * XplatUIDriver.cs: Added IsEnabled() method
26738         * Application.cs:
26739           - Removed crude and obsolete exiting tracking variable
26740           - Removed internal ModalRun(); replaced by RunLoop()
26741           - Implemented private CloseForms() method to allow closing all 
26742             windows owned by a particular (or all) threads
26743           - Exit() now properly closes all windows without forcing the message
26744             pump to quit
26745           - Removed obsolete InternalExit() method
26746           - Changed Run() methods to use new RunLoop() message pump
26747           - Implemented new RunLoop() method for both modal and non-modal forms
26748         * CommonDialog.cs:
26749           - get_CreateParams: Added setting of WS_DISABLED
26750           - Simplified ShowDialog(); now all the work is done in RunLoop(),
26751             invoked via Form.ShowDialog()
26752         * NativeWindow.cs: We don't remove the window from the collection when
26753           the handle is destroyed; there might still be messages for it in the
26754           queue (mainly the resulting WM_DESTROY); instead it will be removed
26755           when Control calls InvalidateHandle in the WM_DESTROY handler
26756         * XplatUIX11.cs:
26757           - CreateWindow: Added logic to handle the WS_DISABLED window style
26758           - EnableWindow: Implemented based on Hwnd.Enabled
26759           - GetMessage: Reset PostQuitState so the method can be called again
26760           - Implemented support for disabled windows (passing messages to the
26761             first enabled parent) in handling all input messages
26762           - Added optimizations for handling Expose events
26763           - Implemeted new driver method IsEnabled()
26764           - Now always resetting paint pending tracking vars when we start paint
26765           - Re-implemented UpdateWindow via just sending a WM_PAINT message
26766         * XplatUIOSX.cs: Added IsEnabled method stub
26767         * XplatUIWin32.cs: Implemented new IsEnabled() method
26768
26769 2006-01-11  Jackson Harper  <jackson@ximian.com>
26770
26771         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
26772         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
26773         variables a little.
26774         * ColorDialog.cs: Clear out the old form before adding the new
26775         panel.  
26776
26777 2006-01-11  Jackson Harper  <jackson@ximian.com>
26778
26779         * X11Dnd.cs: Make sure to add all the text formats when adding
26780         strings to the data object.
26781         * TreeNodeCollection.cs: When adding to a sorted tree we need to
26782         do some redrawing too.  Also change the UpdateNode to an
26783         UpdateBelow so the newly added node gets painted.
26784         
26785 2006-01-11  Miguel de Icaza  <miguel@novell.com>
26786
26787         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
26788         LinkLabel.cs, PropertyGrid.cs: Implement the
26789         UseCompatibleTextRendering property for 2.x
26790
26791         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
26792
26793 2006-01-11  Jackson Harper  <jackson@ximian.com>
26794
26795         * TreeView.cs: Use the property for setting the selected node so
26796         the correct events get raised.
26797         * TreeNode.cs: Update the tree when the fore/back colours of a
26798         node are set.
26799
26800 2006-01-10  Jackson Harper  <jackson@ximian.com>
26801
26802         * TreeView.cs: Allow setting SelectedNode to null.
26803
26804 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
26805
26806         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
26807
26808 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
26809
26810         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
26811
26812 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
26813
26814         * PrintDialog.cs: Added attributes and set default property values.
26815
26816 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
26817
26818         * PrintControllerWithStatusDialog.cs: 
26819         Added PrintControllerWithStatusDialog.
26820
26821 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
26822
26823         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
26824         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
26825
26826 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
26827
26828         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
26829
26830 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
26831
26832         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
26833         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
26834
26835 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
26836
26837         * MimeIcon.cs: Added internal class SVGUtil.
26838
26839 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
26840
26841         * FileDialog.cs: Don't crash if there are two files with the
26842           same name but different locations.
26843
26844 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
26845
26846         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
26847         dates across multiple month grids. Used to not highlight entire 
26848         month, but does now.
26849         
26850 2006-01-06  Jackson Harper  <jackson@ximian.com>
26851
26852         * MonthCalendar.cs: Removed DoEvents call to prevent a running
26853         message loop. Change timer intervals to numbers that seem more
26854         natural.
26855
26856 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
26857
26858         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
26859           object for location info since screen object is now implemented.
26860
26861 2006-01-05  Jackson Harper  <jackson@ximian.com>
26862
26863         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
26864         * AsyncMethodResult.cs: We no longer use a WeakReference for the
26865         AsyncMethodResult, this is because we ALWAYS want the
26866         ManualResetEvent to get set.
26867         * Control.cs: When disposing use an async invoke to call shutdown
26868         code, so that thigns don't block on the finalizer thread.  Also
26869         check if we even have a message loop before trying to send
26870         messages, if we don't then don't bother sending messages.
26871         - No more weak references for async methods
26872         * XplatUIDriver.cs: No more weak references for async methods.
26873
26874 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
26875
26876         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
26877           returns two FontFamily with the same name
26878
26879 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
26880
26881         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
26882           drawing disabled text. Instead using the ColorGrayText color
26883
26884 2006-01-04  Jackson Harper  <jackson@ximian.com>
26885
26886         * TreeNode.cs: redraw the node when its image index is changed.
26887
26888 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
26889
26890         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
26891           time I checked there are no others like it.
26892
26893 2006-01-04  Jackson Harper  <jackson@ximian.com>
26894
26895         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
26896         this gives the behavoir I was looking for.
26897         * Control.cs: Special case Invoking EventHandlers, this matches MS
26898         and fixes part of bug #76326.
26899
26900 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
26901
26902         * ThemeClearlooks.cs, FileDialog.cs:
26903           - Reflect the latest Theme class changes
26904           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
26905             with DateTime
26906             
26907 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
26908
26909         * Theme.cs: Cache UI resource images and resize them if needed
26910
26911 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
26912
26913         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
26914           is called. This fixes the crash in Nexxia when setting the font
26915           attributes in the chat. [However, RTF needs a look-over to make sure
26916           that all SelectionXXX methods handle the special case that selection
26917           is empty and therefore the change must be applied to all text starting
26918           at the cursor/selection start]
26919
26920 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
26921
26922         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26923           XplatUIOSX.cs: Added SendMessage and PostMessage methods
26924         * X11Keyboard.cs: Switched to new way of calling PostMessage
26925
26926 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
26927
26928         * Theme.cs: Added theme interface for images to allow the theme to
26929           control what images are used for things like FileDialog, MessageBox
26930           icons, etc.
26931         * MessageBox.cs: Now uses the new Theme icon/image interfaces
26932
26933 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
26934
26935         * FileDialog.cs:
26936           - Removed some dead code
26937           - Opening a recently used file does work now
26938           - Small UI enhancements
26939           - Refactoring
26940
26941 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
26942
26943         * FileDialog.cs: Forgot too add __MonoCS__
26944
26945 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
26946
26947         * FileDialog.cs: We are able to read recently used files now let's
26948           go on and write them.
26949
26950 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
26951
26952         * FileDialog.cs: Breathe some life into "last open"/"recently used"
26953           button
26954         * MimeIcon.cs: Do a check for the top level media type also
26955
26956 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
26957
26958         * ThemeClearlooks.cs:
26959           - Added CPDrawStringDisabled
26960           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
26961             some chars if the text doesn't fit into text_rect
26962           - DrawListViewItem: If View = View.LargeIcon center the image;
26963             rewrote the drawing of ListViewItem.Text if View = 
26964             View.LargeIcon
26965
26966 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
26967
26968         * MimeIcon.cs: Use default KDE icon theme if there is no
26969           "48x48" directory for the current icon theme, fixes #77114
26970         * Mime.cs: Disable not working and actually not used code. 
26971         * ThemeWin32Classic.cs:
26972           - Replace "new SolidBrush" in GetControlBackBrush and
26973             GetControlForeBrush with ResPool.GetSolidBrush
26974           - Changed DrawListViewItem from private to protected virtual
26975         * FileDialog.cs:
26976           - Added form.MaximizeBox = true
26977           - Don't throw an exception if there is a broken symbolic link
26978
26979 2005-12-23  Jackson Harper  <jackson@ximian.com>
26980
26981         * TabControl.cs: Give the panels focus, keyboard navigation is
26982         fixed so this works correctly now.
26983         - We need these key events also.
26984         * ToolBar.cs: Remove some of the poor mans double buffering.
26985         
26986 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
26987
26988         * ComboBox.cs: The internal TextBox now returns the focus.
26989
26990 2005-12-23  Jackson Harper  <jackson@ximian.com>
26991
26992         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
26993
26994 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
26995
26996         * Control.cs: Removed debug code
26997         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
26998           implicit children
26999
27000 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
27001
27002         * Control.cs: When creating the control, update the Z-order after
27003           all it's children are created, too. (Fixes nexxia not showing
27004           picturebox bug)
27005
27006 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
27007
27008         * Control.cs: Do not update the anchoring distances if layout is
27009           suspended, instead do it once layout is resumed
27010
27011 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
27012
27013         * Control.cs: 
27014           - After many hours of debugging, for both Jackson and
27015             myself, it turns out that it helps to set the parent of a control
27016             if you want to actually see it onscreen. In the spirit of that
27017             discovery, we're now setting the parent of the control and
27018             it's children when the control's handle is created. This fix
27019             will make Lutz Roeder's Reflector run happily. 
27020           - now just creating the handle instead of the whole control when
27021             getting a graphics context for the control.
27022
27023 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
27024
27025         * ScrollableControl.cs: When calculating the canvas, don't consider
27026           the scrollbar widths. Instead, predict if horizontal scrollbar
27027           will affect canvas when deciding on vertical display and vice versa.
27028
27029 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
27030
27031         * RichTextBox.cs: Set default RTF font for documents that don't
27032           have a font table (Fixes #77076)
27033
27034 2005-12-22  Jackson Harper  <jackson@ximian.com>
27035
27036         * TextBoxBase.cs: It's difficult to do, but you can have an empty
27037         clipboard. This prevents a NullRef in that case.
27038         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
27039         clipboard. PRIMARY is for the currently selected text only. (We
27040         should implement PRIMARY at some point.
27041
27042 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
27043
27044         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
27045           a Unicode function with a structure that was defined in Ansi way.
27046           This fixes #76942.
27047
27048 2005-12-21  Jackson Harper  <jackson@ximian.com>
27049
27050         * StatusBar.cs: Statusbar handles its fore/back colours on it's
27051         on. Because thats how it rolls. (and this avoids it using ambient
27052         colours).
27053         * ThemeWin32Classic.cs: Use the proper back color for filling.
27054         * Menu.cs: Use the system menu bar color for drawing menu
27055         bars. Using the window back color will bring ambient colours into
27056         the picture.
27057
27058 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
27059
27060         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
27061           Bitmaps were created and not disposed.
27062
27063 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
27064
27065         * Control.cs (CreateControl): Don't do anything if the control is
27066           already created, otherwise we'd fire the OnCreated event more than
27067           once
27068
27069 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
27070
27071         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
27072           will always match. Instead return -1. Fixes #76464.
27073
27074 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
27075
27076         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
27077           neither the beginning nor the end of the line (Fixes bug #76479)
27078
27079 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
27080
27081         * Control.cs:
27082           - ControlNativeWindow.ControlFromHandle(): Now handling situation
27083             where handle is invalid
27084           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
27085             instead of slower linear search
27086         * NativeWindow.cs: Don't remove the window from the hashtable until
27087           after the driver has destroyed it (since the driver might use
27088           Control.FromHandle to lookup the control object
27089         * Hwnd.cs: Added DestroyPending property to track if a window is 
27090           already destroyed as far as the driver is concerned and only hasn't
27091           yet notified the control
27092         * XplatUIX11.cs:
27093           - Activate(): Check if the window is still valid before using the 
27094             handle
27095           - Implemented DestroyChildWindow() method to mark child windows as
27096             destroyed when a window is destroyed. This prevents situations 
27097             where we might call an X method based on queued events for a
27098             window that already has been destroyed but we haven't yet pulled
27099             the destroy method from the queue.
27100           - Added a call to the new DestroyChildWindow() method to the drivers
27101             DestroyWindow code. Also now marking the destroyed window itself
27102             as pending
27103
27104 2005-12-20  Jackson Harper  <jackson@ximian.com>
27105
27106         * StatusBar.cs:
27107         * StatusBarPanel.cs: Don't calculate panel sizes on draw
27108         anymore. Just do them when needed, also track the rects of panels
27109         so that we can optimize refreshing more in the future.
27110
27111 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
27112
27113         * ColorDialog.cs: Fixed focus drawing in small color controls
27114
27115 2005-12-19  Jackson Harper  <jackson@ximian.com>
27116
27117         * InternalWindowManager.cs:
27118         * MdiWindowManager.cs: Cleanup some coordinate system changes so
27119         moving windows works properly.
27120
27121 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
27122
27123         * Control.cs: 
27124           - Removed call to InitLayout() from SetBoundsCore(); doc says
27125             it's only called when a control is added to a container
27126           - Split InitLayout logic, moved to separate UpdateDistances() method
27127             since we need to perform those calculations more often than just
27128             when adding the control to a container. (Needed to fix #77022)
27129           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
27130           - Reduced the OnBindingContextChanged events count, don't send them
27131             unless the control is created, we still aren't totally matching
27132             MS, but I can't quite figure out some of their rules
27133
27134 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
27135
27136         * ThemeClearlooks.cs: Corrected distance between ProgressBar
27137           stripes
27138
27139 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
27140
27141         * ThemeClearlooks.cs:
27142           - Updated ProgressBar drawing
27143           - Corrected drawing of ScrollBars and scroll buttons
27144           - Some temporary fixes for minor pixel artefacts
27145
27146 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
27147
27148         * Control.cs:
27149           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
27150             cause events to be sent in the same order as MS does.
27151           - Added ChangeParent() method to trigger various OnXXXChanged events
27152             that need to be fired when a parent changes (This is a reworking
27153             of the patch from r54254, with the X11 errors fixed)
27154           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
27155             since on MS we get OnLayoutChanged events when calling Clear()
27156           - Changed Enabled property to consider parent state as well, if a
27157             parent is not enabled, the control will not be either
27158           - Changed Parent property to simply call Controls.Add() since that
27159             now does all the work required, this way we avoid code duplication
27160           - Threw in a few OnBindingsContextChanged calls to try and match
27161             when MS sends them. We seem to send a few too many, though.
27162           - Added call to CreateControl when adding the control to a parent.
27163             We were never calling CreateControl. Still needs some work, in
27164             some places we treat HandleCreated and ControlCreated as equal, 
27165             which is wrong
27166           - Removed obsolete commented out code from UpdateZOrder()
27167
27168 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
27169
27170         * ThemeClearlooks.cs: Updated TrackBar drawing.
27171
27172 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
27173
27174         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
27175
27176 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
27177
27178         * FileDialog.cs: Add the Help button and the open readonly
27179           checkbox only if needed
27180
27181 2005-12-16  Jackson Harper  <jackson@ximian.com>
27182
27183         * Control.cs: Make sure we have an active menu before trying to
27184         process commands on it. Prevents menu-less forms from crashing
27185         when Alt is pressed.
27186         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
27187         Dieter Bremes.
27188         * RichTextBox.cs: Expand statement to help out gmcs and fix the
27189         2.0 build.
27190
27191 2005-12-16  Jackson Harper  <jackson@ximian.com>
27192
27193         * InternalWindowManager.cs: Don't translate tool windows screen
27194         coordinates. This fixes windows 'bouncing' around when being moved.
27195
27196 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
27197
27198         * TextBoxBase.cs:
27199           - MaxLength now treats 2^31-1 equal to unlimited length (this is
27200             not quite MS compatible, MS uses that number only for single line
27201             and 2^32-1 for multi-line, but I figure it won't hurt keeping
27202             the limit at 2GB)
27203           - Now enforcing the MaxLength limit when entering characters
27204           - Added argument to internal Paste() method to track if it's called
27205             from programatically or via keyboard, since keyboard driven pastes
27206             need to enforce max-length
27207           - Added logic to Paste to only paste as many chars as MaxLength 
27208             allows
27209         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
27210         * TextControl.cs:
27211           - Added Length property to return number of characters in document
27212           - Added private CharCount property which only tracks actual chars
27213             in the document (no linefeeds) and fires event when CharCount
27214             changes
27215           - Added tracking of character count to all methods that alter it
27216           - Added LengthChanged event to allow applications to subscribe
27217             to any changes to the document
27218
27219 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
27220
27221         * TextBox.cs: 
27222           - Removed local password_char field (moved to TextBoxBase)
27223           - Now setting the document's password var when password is
27224             set
27225         * TextBoxBase.cs:
27226           - Added password_char field (needed here so MultiLine can
27227             access it)
27228           - Added logic to MultiLine property setter to set the document's
27229             variable when password display is allowed
27230           - Removed debug code and made some debug code conditional
27231         * TextControl.cs:
27232           - Added RecalculatePasswordLine() method to handle special password
27233             char only lines
27234           - Added PasswordChar property, also added related tracking vars
27235           - Draw() method now uses local text var for grabbing text to draw,
27236             this var is set to line.text unless we're doing password display,
27237             then it is set to the pre-generated all-password-chars line
27238           - Added calling RecalculatePasswordLine() method for password lines
27239
27240 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
27241
27242         * Hwnd.cs: 
27243           - Added Reparented property to allow tracking of Window Manager
27244             reparenting actions (which affect X/Y calculations of toplevel 
27245             windows)
27246           - Made ToString() print window handles in hex
27247         * XplatUIX11.cs:
27248           - AddConfigureNotify(): Now uses reparented state off Hwnd to
27249             determine if X/Y needs offsetting
27250           - AddConfigureNotify(): Fixed offset calculations
27251           - Now adds ReparentNotify messages into the queue
27252           - Now processes ReparentNotify messages and causes a 
27253             WM_WINDOWPOSCHANGED message to be sent upstream if a window
27254             is reparented (as most likely it's X/Y coordinates are changed
27255             due to that)
27256
27257 2005-12-14  Jackson Harper  <jackson@ximian.com>
27258
27259         * XplatUIX11.cs: Tool windows still need to respek focus.
27260
27261 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
27262
27263         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
27264           have a working release
27265
27266 2005-12-13  Jackson Harper  <jackson@ximian.com>
27267
27268         * Form.cs: Update styles after setting the border style regardless
27269         of whether or not the window is using a window manager.
27270
27271 2005-12-13  Jackson Harper  <jackson@ximian.com>
27272
27273         * Form.cs: We now hook into an internal window manager instead of just an
27274         MDI subsystem, this is so we can have properly behaving tool windows.
27275         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
27276         * InternalWindowManager.cs: New internal class that acts as a
27277         window manager for tool windows and as a base for mdi windows.
27278         * MdiWindowManager.cs: New class that acts as a window manager for
27279         mdi windows.
27280
27281 2005-12-12  Jackson Harper  <jackson@ximian.com>
27282
27283         * Control.cs: Updates so we match behavoir for for implicit
27284         controls. Fixes explosions in MDI.
27285
27286 2005-12-12  Jackson Harper  <jackson@ximian.com>
27287
27288         * Control.cs: Implement Invalidate (Region).
27289
27290 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
27291
27292         * Control.cs: 
27293           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
27294             the same events as MS does. MS fires events for each property 
27295             except, for unknown reasons, Cursor, when the control is reparented. 
27296             I can't seem to totally match add/remove since MS also fires some 
27297             VisibleChanged events, which makes no sense. Consolidated the
27298             parenting code into a separate method so it can be called from
27299             both Add and Remove. set_Parent no longer needs any special logic
27300             as it calls the parent's add method which implicitly fires
27301             all events
27302           - Removed some obsolete code and debug output
27303           - Enabled state is inherited from parents, if this is enabled
27304
27305 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
27306
27307         * Form.cs: Removed commented out code
27308
27309 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
27310
27311         * Control.cs:
27312           - Added internal version of Invoke, with additional argument 
27313             indicating if we're calling it from a Dispose() handler. That
27314             way we can avoid BeginInvoke throwing an exception if we're
27315             calling for an already destroyed window.
27316           - Added a dispose argument to BeginInvokeInternal, and made the
27317             check if a valid window handle chain exists conditional on
27318             it not being a dispose call
27319           - Removed code in DestroyHandle to destroy our children. Since we
27320             now handle the WM_DESTROY message we will catch all our children
27321             being destroyed.
27322           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
27323         * Form.cs:
27324           - Added a field to track the application context of the form.
27325           - No need to set closing variable as response to WM_CLOSE, instead
27326             we destroy the window. We also call PostQuitMessage if the form
27327             has an application context (which makes it the main app form,
27328             which, when closed terminates the app)
27329         * XplatUI.cs:
27330           - Dropped Exit() method, it's naming was confusing
27331           - Added PostQuitMessage() which causes GetMessage to return false
27332             once the message queue is empty
27333         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
27334           PostQuitMessage()
27335         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
27336           no longer a valid XplatUI method, but left it in since it's used
27337           internally. Added empty PostQuitMessage() method.
27338         * MenuAPI.cs: Replaced call to Exit() with call to
27339           PostQuitMessage, even though this is probably no longer needed.
27340         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
27341         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
27342         * Application.cs:
27343           - Replaced call to XplatUI.Exit() with PostQuitMessage()
27344           - Removed old debug code that would call XplatUI for exception
27345             display, enabled standard exception handling (Still not enabled
27346             though, until NativeWindow's ExternalExceptionHandler define
27347             is removed
27348         * NativeWindow.cs:
27349           - Added internal method to allow control to update NativeWindow
27350             after a window has been destroyed
27351           - Added handling of already destroyed windows when calling i
27352             DestroyWindow
27353           - Added removal of handle from list on ReleaseHandle
27354         * XplatUIX11.cs:
27355           - Dropped GetMessageResult var and related code
27356           - Added PostQuitState to field to track if PostQuitMessage has been
27357             called
27358           - Dropped Exit() method
27359           - Added PostQuitMessage() method
27360           - GetMessage now will return false if PostQuitState is set and no
27361             more messages are in the queue.
27362           - Expose handler will no longer generate WM_PAINT messages if we are
27363             in PostQuitState since it's very likely any windows have already
27364             been destroyed, and since Hwnd won't get updated until we have
27365             processed the DestroyNotify we'd be causing X errors.
27366         
27367 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
27368
27369         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
27370           Thanks to Mike for pointing out the err of my ways.
27371
27372 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
27373
27374         * Control.cs(PreProcessMessage): Moved menu handling back, but
27375           after all other key handling, to match MS (who handles Menu in
27376           DefWndProc)
27377         * Menu.cs (WndProc): Removed my brainfart
27378
27379 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
27380
27381         * Control.cs(PreProcessMessage): Removed special menu handling 
27382         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
27383
27384 2005-12-07  Mike Kestner  <mkestner@novell.com>
27385
27386         * Control.cs : special case SYSKEYUP so that we can adjust keynav
27387         state according in tracker.
27388         * Menu.cs : promote tracker field to base class and provide a tracker
27389         lookup capability.  Add/Remove shortcuts dynamically if the top menu
27390         has a tracker. Unparent items that are removed from the collection.
27391         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
27392         * Theme*.cs: add always_show_hotkeys field to support configurability
27393         of mnemonic display.  win32 doesn't show mnemonics until Alt is
27394         pressed.
27395
27396 2005-12-07  Jackson Harper  <jackson@ximian.com>
27397
27398         * MdiChildContext.cs: Use Control.ResetCursor.
27399         * Control.cs: ResetCursor needs to set the property so that the
27400         correct XplatUI call gets made.
27401
27402 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
27403
27404         * Control.cs: More fixes to make our key events match MS. We
27405           were not setting the modifier state on KeyData, and we were
27406           not generating any events when Alt was pressed with a key
27407           since handling of WM_SYSxxx was missing for the OnKey methods.
27408
27409 2005-12-07  Jackson Harper  <jackson@ximian.com>
27410
27411         * MdiChildContext.cs: reenable the sizing code.
27412         - When the mouse leaves a window reset its cursor.
27413
27414 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
27415
27416         * ThemeClearlooks.cs: Reflect latest Hwnd changes
27417
27418 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
27419
27420         * Hwnd.cs: Now using the theme 3d bordersize to calculate
27421           widths of Fixed3D borders
27422
27423 2005-12-07  Jackson Harper  <jackson@ximian.com>
27424
27425         * MdiClient.cs: Fix warnings. Earn Mike's love.
27426
27427 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
27428
27429         * ThemeClearlooks.cs:
27430           - Adjusted mouse over button color
27431           - Added first parts of CheckBox drawing
27432           - Added correct color for selected text background
27433           - Fixed ComboBox drawing
27434           - Added CPDrawBorder3D and CPDrawBorder
27435
27436 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
27437
27438         * XplatUIX11.cs: Added call to XBell for AudibleAlert
27439
27440 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
27441
27442         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
27443           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
27444           alert users via sound. We could add an enum arg with different
27445           types of alerts in the future
27446
27447 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
27448
27449         * Control.cs: Fix behaviour problems pointed out by Mike
27450
27451 2005-12-05  Mike Kestner  <mkestner@novell.com>
27452
27453         * StatusBarPanel.cs: add Invalidate method and hook it into all the
27454         prop setters.  Calls parent.Refresh for now, but could be maybe be
27455         optimized with an internal method on StatusBar at some point.
27456         [Fixes #76513]
27457
27458 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
27459
27460         * RichTextBox.cs: Implemented get_SelectionColor
27461
27462 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
27463
27464         * ThemeClearlooks.cs:
27465           - Removed dead code
27466           - Draw black button border only if button is Form.AcceptButton
27467           - Draw correct button color for pressed RadioButton if the mouse 
27468             has entered the button
27469           - Updated ProgressBar drawing!
27470           - Updated CPDrawSizeGrip drawing
27471           - Updated StatusBarPanel drawing
27472
27473 2005-12-05  Mike Kestner  <mkestner@novell.com>
27474
27475         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
27476         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
27477
27478 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
27479
27480         * ThemeClearlooks.cs: Initial check-in, activate with
27481           export MONO_THEME=clearlooks
27482         * ThemeEngine.cs: Added ThemeClearlooks
27483
27484 2005-12-03  Mike Kestner  <mkestner@novell.com>
27485
27486         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
27487         [Fixes #76897]
27488
27489 2005-12-02  Jackson Harper  <jackson@ximian.com>
27490
27491         * Form.cs: If the child form has no menu the default main menu is
27492         used as the active menu.
27493
27494 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
27495
27496         * ListBox.cs: Check if any items exist before trying to resolve 
27497           coordinates into items
27498
27499 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
27500
27501         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
27502           as the second color for the background hatch
27503
27504 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
27505
27506         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
27507         * RichTextBox.cs: FormatText position arguments are 1-based, now making
27508           sure that what we pass to FormatText is always 1-based. Fixes #76885
27509
27510 2005-11-29  Miguel de Icaza  <miguel@novell.com>
27511
27512         * NumericUpDown.cs (EndInit): When we are done initializing,
27513         reflect any updates on the UI.
27514
27515 2005-12-02  Jackson Harper  <jackson@ximian.com>
27516
27517         * ImplicitHScrollBar.cs:
27518         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
27519         their container controls.
27520         * TreeView.cs: Use the new implicit scrollbars.
27521
27522 2005-12-02  Jackson Harper  <jackson@ximian.com>
27523
27524         * TreeView.cs: Make top_node internal so the TreeNodeCollections
27525         can play with it.
27526         * TreeNodeCollection.cs: If we remove the topnode we need to
27527         update topnode to the next node in line.
27528         - When clearing nodes go through the same process as removing
27529         them, so they get depareneted and checked if they are top node.
27530
27531 2005-12-01  Jackson Harper  <jackson@ximian.com>
27532
27533         * TreeView.cs: When imagelists are used the image area is
27534         selectable as well as the text.
27535         - If there are no selected nodes select the first one.
27536         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
27537         so don't do it more then we need to.
27538
27539 2005-12-01  Jackson Harper  <jackson@ximian.com>
27540
27541         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
27542         that arrows can be scaled.
27543
27544 2005-12-01  Jackson Harper  <jackson@ximian.com>
27545
27546         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
27547         fail. Patch by Dieter Bremes
27548
27549 2005-11-30  Jackson Harper  <jackson@ximian.com>
27550
27551         * Form.cs: Property is 2.0 only
27552         * PrintDialog.cs: Signature fix.
27553
27554 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
27555
27556         * TextControl.cs: 
27557           - No longer artificially moves text 2 pixels down (now that we have
27558             borders this is no longer needed)
27559           - Added calcs for left, hanging and right indent
27560
27561 2005-11-23  Mike Kestner  <mkestner@novell.com>
27562
27563         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
27564
27565 2005-11-30  Jackson Harper  <jackson@ximian.com>
27566
27567         * MdiChildContext.cs: Set the cloned menus forms, as these don't
27568         get cloned as part of CloneMenu ().
27569         * Menu.cs: Make sure the parent of the items get set correctly
27570         when they are added.  And the owners are notified of the changes.
27571         * Form.cs: Create an ActiveMenu property, so that when MDI is used
27572         we can change the menu being displayed/handled by the form without
27573         changing the menu assosciated with the form.
27574         - Don't let Mdi children draw/handle menus.
27575         
27576 2005-11-30  Jackson Harper  <jackson@ximian.com>
27577
27578         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
27579         a MenuChanged event. Just to make the API a little more
27580         consistent.
27581         * MainMenu.cs:
27582         * MenuItem.cs: Use the new OnMenuChanged
27583         * MdiChildContext.cs: Handle menu merging.
27584         * Form.cs: Implement MergedMenu.
27585         
27586 2005-11-30  Jackson Harper  <jackson@ximian.com>
27587
27588         * Menu.cs: We were misusing Add. Add goes behind the specified
27589         index according to the docs, and does not replace the specified
27590         index. So I added an Insert method.
27591
27592 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
27593
27594         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
27595           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
27596           is for Jackson
27597         * RichTextBox.cs: Added calls to base for DnD events
27598
27599 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
27600
27601         * TextControl.cs:
27602           - Fixed drag-selection related crash; style fixes
27603           - Implemented undo class
27604             o Implemented method to capture document state for specified
27605               range in document tree
27606             o Implemented method to restore captured document state
27607             o Implemented cursor tracking
27608             o Implemented basic undo stack
27609           - Added undo cursor tracking to methods altering cursor location
27610           - Added undo tracking to selection deletion (still missing
27611             other text-altering hookups)
27612         * RichTextBox.cs:
27613           - Added SelectionLength property
27614           - Implemented CanPaste()
27615           - Implemented Paste()
27616           - Added missing protected methods
27617           - Fixed RTF->Document conversion; now uses font index 0 and color 
27618             index 0 as the default font for the parsed text
27619           - Fixed RTF<->Document font size translation
27620           - Fixed RTF generation, now properly handles cross-tag boundaries
27621             for single line selection
27622           - No longer always appends blank line to generated RTF
27623           - Removed TODOs
27624           - Added missing attributes
27625           - Hooked up undo-related methods
27626         * TextBoxBase.cs:
27627           - Implemented Copy()
27628           - Implemented Paste()
27629           - Implemented Cut()
27630           - Fixed caret mis-behaviour on backspace across line-boundaries
27631
27632 2005-11-29  Jackson Harper  <jackson@ximian.com>
27633
27634         * MdiClient.cs: Add a method for activating mdi children. Very
27635         basic right now. I imagine someday it might need more girth.
27636         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
27637         children windows names are added to the menu item.
27638         * ThemeWin32Classic.cs: Draw the arrow if the item is an
27639         mdilist. This happens regardless of whether or not there are any
27640         mdi windows to see in the list, and according to my tests happens
27641         before the items are even added. Also happens if there isn't even
27642         an mdi client to get windows from.
27643
27644 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
27645
27646         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
27647         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
27648
27649 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
27650
27651         * DataGridTableStyle.cs:
27652           - Create always the styles for the missing columns even if they are
27653             provided by the user (not default table style)
27654         * DataGrid.cs:
27655           - Fixes bug 76770
27656           - Fixes SetDataBinding (always re-attach source)
27657           - Fixes SetNewDataSource (only clear styles if they are not for 
27658             this source)
27659          -  Expands OnTableStylesCollectionChanged to handle style refresh 
27660             and remove properly
27661
27662 2005-11-29  Jackson Harper  <jackson@ximian.com>
27663
27664         * FileDialog.cs: Implement missing bits, remove some dead
27665         code.
27666         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
27667         creation of the panel so that the options set on the dialog are
27668         seen when the panel is created.
27669         * TreeView.cs: raise a click when items are clicked.
27670         
27671 2005-11-29  Jackson Harper  <jackson@ximian.com>
27672
27673         * MdiClient.cs: Pass some signature methods through to base.
27674
27675 2005-11-28  Jackson Harper  <jackson@ximian.com>
27676
27677         * ListView.cs: Raise the click event when items are clicked.
27678
27679 2005-11-28  Jackson Harper  <jackson@ximian.com>
27680
27681         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
27682         a nullref.
27683
27684 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
27685
27686         * ThemeNice.cs: - Removed 1 pixel bitmaps
27687           - Use SmoothingMode.AntiAlias where it makes sense
27688             (ScrollButton arrow for example)
27689           - Enhanced Button focus drawing
27690           - Fixed ComboBox drawing (no artefacts anymore, focus
27691             rectangle is back again, reduced size of ComboButton, etc.)
27692           - Fixed RadioButton focus drawing for Appearence.Button
27693           - Slight ScrollButton redesign
27694           - Some LinearGradientBrush size fixes
27695           - GroupBoxes have now rounded edges
27696           - Fixed StatusBar drawing
27697
27698 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
27699
27700         * ThemeNice.cs: - Remove dead code
27701           - use correct background colors for menus, etc.
27702           - Fake pixel drawing with 1 pixel bitmaps
27703
27704 2005-11-24  Jackson Harper  <jackson@ximian.com>
27705
27706         * MdiClient.cs: Size the scrollbars when resizing the window.
27707         - Resize the maximized windows when the client is resized
27708         * Form.cs: Make the child context available
27709         
27710 2005-11-23  Jackson Harper  <jackson@ximian.com>
27711
27712         * MdiChildContext.cs: Don't size windows if they are maximized.
27713
27714 2005-11-23  Mike Kestner  <mkestner@novell.com>
27715
27716         * ContextMenu.cs: use MenuTracker.
27717         * Control.cs: remove menu handle usage.
27718         * Form.cs: remove menu handle usage.
27719         * Hwnd.cs: remove menu handle usage.
27720         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
27721         motion and clicks to the new Tracker handlers.
27722         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
27723         and handle usage.
27724         * MenuAPI.cs: refactored to combine popup and menubar event handling.
27725         Killed the MENU and MENUITEM data types and associated collections
27726         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
27727         MenuTracker class that exposes the leftovers from the old MenuAPI
27728         static methods. Restructured Capture handling so that only one grab is
27729         done for the entire menu hierarchy instead of handing off grabs to
27730         submenus. Tracker now has an invisible control to Capture when active.
27731         * MenuItem.cs: add sizing accessors, kill Create
27732         and handle usage.
27733         * Theme.cs: remove menu handle and MENU(ITEM) usage.
27734         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
27735         MENU(ITEM). remove menu handle usage, use Menu directly.
27736         * XplatUIDriver.cs: remove menu handle usage.
27737         * XplatUIOSX.cs: remove menu handle usage.
27738         * XplatUIWin32.cs: remove menu handle usage.
27739         * XplatUIX11.cs: remove menu handle usage.
27740
27741 2005-11-22  Jackson Harper  <jackson@ximian.com>
27742
27743         * Hwnd.cs: Don't compute the menu size for
27744         DefaultClientRectangle.
27745         - Reenable menu sizes being computed for GetClienRectangle.
27746         * Form.cs: Remove comment of trechery
27747         
27748 2005-11-22  Jackson Harper  <jackson@ximian.com>
27749
27750         * Hwnd.cs: The adjustments for the menu bar are made when it is
27751         attached to the form.
27752
27753 2005-11-19  Jackson Harper  <jackson@ximian.com>
27754
27755         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
27756         (just like on windows).
27757
27758 2005-11-19  Jackson Harper  <jackson@ximian.com>
27759
27760         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
27761         use real buttons anymore because they are in non client area. The
27762         one TODO here is that I need to somehow invalidate a section of
27763         the non client area.
27764
27765 2005-11-18  Jackson Harper  <jackson@ximian.com>
27766
27767         * Control.cs: Put the enum check back in now that MDI doesnt have
27768         to use this to set border styles.
27769         * Form.cs: Only set mdi child windows borders if the handle has
27770         been created.
27771         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
27772         this directly on to the driver.
27773         - Get the move start position before adjusting for the titlebar
27774         height, this fixes the windows "skipping" when they are first
27775         moved.
27776
27777 2005-11-18  Jackson Harper  <jackson@ximian.com>
27778
27779         * XplatUIX11.cs: Just compute the mdi borders separately as they
27780         don't totally match up with normal form borders.
27781
27782 2005-11-18  Jackson Harper  <jackson@ximian.com>
27783
27784         * Control.cs: Set WS_ styles for borders, so that the driver does
27785         not have to retrieve the control instance to figure out what kind
27786         of borders it should have.
27787         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
27788         driver can know its an mdi child easily.
27789         * XplatUIX11.cs: Get the border styles and whether the window is
27790         MDI from the Styles and ExStyles params instead of having to get a
27791         control. This prevents a chicken and egg problem.       
27792
27793 2005-11-18  Jackson Harper  <jackson@ximian.com>
27794
27795         * MdiClient.cs: Fix typo so scrollbars show up correctly.
27796
27797 2005-11-18  Jackson Harper  <jackson@ximian.com>
27798
27799         * MdiClient.cs: Calculate when to add and remove scrollbars
27800         correctly.
27801         * MdiChildContext.cs: Adjust the y position to take the titlebar
27802         into account.
27803         - No height for FormBorderStyle.None
27804
27805 2005-11-18  Jackson Harper  <jackson@ximian.com>
27806
27807         * Control.cs: Allow non enum values to be used for
27808         InternalBorderStyle.  MDI does this to set a special border style.
27809         - New utility methods for converting points to/from client coords
27810         - Add the newly created control to the Controls collection before
27811         updating its style. This way UpdateStyle can walk the control
27812         heirarchy to find the control if needed.
27813         so I don't need to create a new Point object all the time.
27814         * Form.cs: Let MDI windows handle their border styles.
27815         - Set styles on MDI windows so the correct title style is derived.
27816         * MdiChildContext.cs: Move all the painting and window handling
27817         into the non client area.
27818         - Use correct sizing and put correct buttons on frames based on
27819         the FormBorderStyle.
27820         - Notify the mdi client about scrolling
27821         - Need to handle the buttons ourselves now, because they are all
27822         in non client areas and we can't add controls there.
27823         * MdiClient.cs: Halfway to scrolling, this implementation is
27824         somewhat broken though, we need to check to make sure other
27825         windows aren't causing scrolling before removing the bars. Also
27826         the bars need to be drawn on top, maybe I can switch implicit
27827         controls to be on top.
27828         * Hwnd.cs: caption_height and tool_caption_height are now
27829         properties of an hwnd, this way they can be set by the driver
27830         based on the type of window they are.  In X11 the window manager
27831         handles the decorations so caption_height is zero unless its an
27832         MDI window.
27833         - Add 3 pixel borders for MDI windows (0xFFFF).
27834         - Get rid of some code duplication, have DefaultClientRectanle
27835         just call GetClientRectangle.
27836         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
27837         Hwnd now.
27838         - Set border styles differently for mdi windows.
27839         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
27840         Hwnd now.
27841         
27842 2005-11-15  Mike Kestner  <mkestner@novell.com>
27843
27844         * Menu.cs: when adding an item to the collection, if item is already 
27845         parented, remove it from the parent.
27846
27847 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
27848
27849         * X11DesktopColors.cs: Added KDE support
27850
27851 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
27852
27853         * XplatUIWin32.cs: 
27854           - Clipboard methods now can translate Rtf format
27855           - No longer removes clipboard contents whenever a new format is added
27856             to allow placing multiple formats on the clipboard
27857         * Clipboard.cs: Clipboard now supports getting a IDataObject and
27858           will place all formats contained in it onto the clipboard. Also
27859           now cleans the clipboard before placing a new object onto it
27860         * RichTextBox.cs:
27861           - Implemented set_Rtf
27862           - Implemented set_SelectedRtf
27863           - Created InsertRTFFromStream() method to allow single code base
27864             for all properties and methods that insert RTF into document
27865           - Removed debug output
27866         * TextControl.cs:
27867           - Fixed Delete(int) to fix up line numbers
27868           - Fixed ReplaceSelection to combine start and end line
27869           - Fixed serious DeleteChars bug that would leave the document tree
27870             broken
27871           - Improved DumpTree with several logic checks to detect broken
27872             document trees
27873           - Removed debug lines
27874           - Fixed Caret.WordForward/WordBack moving code, now always also 
27875             updates caret.tag (fixes crash when word-selecting across tag
27876             boundaries via keyboard)
27877           - Added Insert() method for inserting multiline text into documents
27878           - Fixed DeleteChars() calculation errors that would cause a broken
27879             tag chain with multiple tag lines
27880           - DeleteChars() no longer crashes on multi-tag lines if not all tags
27881           - Split() no longer moves caret if split is at caret location
27882           - ReplaceSelection() now updates the cursor and re-displays it
27883           - ReplaceSelection() now uses new Insert() method to avoid code
27884             duplication
27885           - FormatText() can now handle formatting partial lines
27886         * TextBoxBase.cs:
27887           - Append now uses new TextControl.Insert() method (this avoids 
27888             duplicate code)
27889           - Implemented Ctrl-X (Cut) (
27890           - Implemented Ctrl-C (Copy)
27891           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
27892             regeneration when pasting text; roundtripping Copy&Paste within
27893             edit control still fails due to some calculation bugs in GenerateRTF)
27894           - The Delete key will now remove the current selection if it is visible
27895         * TextBox.cs: Removed debug lines
27896         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
27897           driver to be initialized and can't therefore be done via a static ctor)
27898
27899 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
27900
27901         * TextControl.cs: Added backend code for finding char arrays and strings
27902         * TextBoxBase.cs:
27903           - Added mouse wheel scroll support
27904           - Added support for VScroll and HScroll events
27905         * RichTextBox.cs:
27906           - Implemented all seven Find() variants
27907           - Implemented GetCharFromPosition()
27908           - Implemented GetCharIndexFromPosition()
27909           - Implemented GetLineFromIndex()
27910           - Implemented GetPositionFromCharIndex();
27911           - Implemented SaveFile for PlainText and UnicodeText
27912           - Fixed set_Font, now setting a new font applies that font to
27913             the whole document
27914           - Implemented generic Document to RTF converter
27915           - Implemented SaveFile for RichText format (still missing unicode
27916             conversion for non-ansi chars)
27917           - Implemented get_Rtf
27918           - Implemented get_SelectedRtf
27919
27920 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
27921
27922         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
27923           to allow any captures to be released before triggering OnClick. This
27924           way a click handler may capture the mouse without interference.
27925         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
27926           This way we send them even though X may not allow a grab (if the window
27927           isn't visible, for example)
27928
27929 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
27930
27931         * DataGridViewRowEventArgs.cs: DataGridView implementation
27932         * DataGridViewElement.cs: DataGridView implementation
27933         * DataGridViewComboBoxCell.cs: DataGridView implementation
27934         * DataGridViewDataErrorContexts.cs: DataGridView implementation
27935         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
27936         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
27937         * ImageLayout.cs: DataGridView implementation
27938         * DataGridViewComboBoxColumn.cs: DataGridView implementation
27939         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
27940         * DataGridViewSelectionMode.cs: DataGridView implementation
27941         * IDataGridViewEditingControl.cs: DataGridView implementation
27942         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
27943         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
27944         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
27945         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
27946         * DataGridViewColumnSortMode.cs: DataGridView implementation
27947         * DataGridView.cs: DataGridView implementation
27948         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
27949         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
27950         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
27951         * Padding.cs: DataGridView implementation
27952         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
27953         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
27954         * DataGridViewRowEventHandler.cs: DataGridView implementation
27955         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
27956         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
27957         * DataGridViewButtonCell.cs: DataGridView implementation
27958         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
27959         * DataGridViewEditMode.cs: DataGridView implementation
27960         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
27961         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
27962         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
27963         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
27964         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
27965         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
27966         * DataGridViewCellEventHandler.cs: DataGridView implementation
27967         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
27968         * DataGridViewCellStyleConverter.cs: DataGridView implementation
27969         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
27970         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
27971         * DataGridViewColumnEventArgs.cs: DataGridView implementation
27972         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
27973         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
27974         * QuestionEventArgs.cs: DataGridView implementation
27975         * IDataGridViewEditingCell.cs: DataGridView implementation
27976         * DataGridViewTriState.cs: DataGridView implementation
27977         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
27978         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
27979         * DataGridViewColumnCollection.cs: DataGridView implementation
27980         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
27981         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
27982         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
27983         * DataGridViewColumn.cs: DataGridView implementation
27984         * DataGridViewCellBorderStyle.cs: DataGridView implementation
27985         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
27986         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
27987         * DataGridViewRow.cs: DataGridView implementation
27988         * DataGridViewImageCellLayout.cs: DataGridView implementation
27989         * DataGridViewImageCell.cs: DataGridView implementation
27990         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
27991         * DataGridViewCheckBoxCell.cs: DataGridView implementation
27992         * DataGridViewHeaderCell.cs: DataGridView implementation
27993         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
27994         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
27995         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
27996         * DataGridViewTextBoxColumn.cs: DataGridView implementation
27997         * QuestionEventHandler.cs: DataGridView implementation
27998         * DataGridViewCellStyleScopes.cs: DataGridView implementation
27999         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
28000         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
28001         * DataGridViewCell.cs: DataGridView implementation
28002         * DataGridViewCellEventArgs.cs: DataGridView implementation
28003         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
28004         * DataGridViewCellStyle.cs: DataGridView implementation
28005         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
28006         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
28007         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
28008         * TextFormatFlags.cs: DataGridView implementation
28009         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
28010         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
28011         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
28012         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
28013         * DataGridViewButtonColumn.cs: DataGridView implementation
28014         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
28015         * HandledMouseEventArgs.cs: DataGridView implementation
28016         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
28017         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
28018         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
28019         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
28020         * DataGridViewRowCollection.cs: DataGridView implementation
28021         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
28022         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
28023         * DataGridViewHitTestType.cs: DataGridView implementation
28024         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
28025         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
28026         * DataGridViewColumnEventHandler.cs: DataGridView implementation
28027         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
28028         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
28029         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
28030         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
28031         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
28032         * DataGridViewContentAlignment.cs: DataGridView implementation
28033         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
28034         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
28035         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
28036         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
28037         * DataGridViewPaintParts.cs: DataGridView implementation
28038         * DataGridViewCellCollection.cs: DataGridView implementation
28039         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
28040         * DataGridViewImageColumn.cs: DataGridView implementation
28041         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
28042         * DataGridViewElementStates.cs: DataGridView implementation
28043         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
28044         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
28045         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
28046         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
28047         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
28048         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
28049         * DataGridViewRowHeaderCell.cs: DataGridView implementation
28050         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
28051         * DataGridViewTextBoxCell.cs: DataGridView implementation
28052         * DataGridViewBand.cs: DataGridView implementation
28053         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
28054         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
28055         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
28056         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
28057         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
28058         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
28059         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
28060         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
28061         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
28062         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
28063         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
28064
28065 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
28066
28067         * ThemeWin32Classic.cs: 
28068           - Draw the outside focus rectangle around buttons
28069           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
28070             doesn't use end caps for every dash of a line anymore. This
28071             workaround ignores the forecolor.
28072
28073 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
28074
28075         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
28076           endian safe.
28077
28078 2005-11-07  Jackson Harper  <jackson@ximian.com>
28079
28080         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
28081
28082 2005-11-07  Jackson Harper  <jackson@ximian.com>
28083
28084         * ScrollableControl.cs: Calculate the maximum and change vars
28085         (more) correctly so that scrollbars appear as a sensible size.
28086
28087 2005-11-04  Jackson Harper  <jackson@ximian.com>
28088
28089         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
28090         collection.
28091         * TreeView.cs: When the tree is sorted null out the top_node so
28092         that it is recalculated.
28093         - Use dotted lines instead of dashed lines to match MS better.
28094
28095 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
28096
28097         * ListView.cs: 
28098           - Implements key search for items. Useful when browsing files with FileDialog
28099           - When changing view mode or when clear the items reset scrollbar positions
28100
28101 2005-11-04  Jackson Harper  <jackson@ximian.com>
28102
28103         * CurrencyManager.cs: Implement the MetaDataChanged event, the
28104         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
28105         as to what the method may do as there is no real way of creating a
28106         derived CurrencyManager and calling the method. 
28107
28108 2005-11-03  Jackson Harper  <jackson@ximian.com>
28109
28110         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
28111         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
28112         method which seems to just be used internally to refresh the tabs.
28113
28114 2005-11-03  Jackson Harper  <jackson@ximian.com>
28115
28116         * TabControl.cs: Implement the remove method. Fix some broken
28117         comments.
28118
28119 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
28120
28121         * DateTimePicker.cs:
28122           - Added missing DateTimePickerAccessibleObject class
28123           - Added missing events
28124           - Added OnFontChanged method
28125         * Form.cs: Added missing attributes
28126         * TreeView.cs: Added missing attributes
28127
28128 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
28129
28130         * GridItemCollection.cs: Fix signatures
28131
28132 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
28133
28134         * XplatUI.cs: Updated build rev/date
28135         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
28136           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
28137         * Application.cs: Trigger context-specific ExitThread events
28138
28139 2005-11-03  Jackson Harper  <jackson@ximian.com>
28140
28141         * Menu.cs:
28142         * MainMenu.cs:
28143         * GridTableStylesCollection.cs:
28144         * Timer.cs:
28145         * TabPage.cs:
28146         * HelpProvider.cs:
28147         * StatusBar.cs:
28148         * MonthCalendar.cs: Signature fixes
28149
28150 2005-11-03  Jackson Harper  <jackson@ximian.com>
28151
28152         * TreeNodeCollection.cs: Remove should not be virtual.
28153         * TreeView.cs: Implement the last of the missing methods.
28154
28155 2005-11-03  Jackson Harper  <jackson@ximian.com>
28156
28157         * TreeNodeConverter.cs: Implement to get off my class-status back.
28158
28159 2005-11-03  Jackson Harper  <jackson@ximian.com>
28160
28161         * TreeView.cs: Hookup the bits for drag and drop.
28162         * TreeNode.cs: Don't cache the tree_view or index anymore, now
28163         that nodes can be moved from tree to tree easily this just causes
28164         all sorts of problems.
28165         * TreeNodeCollection: Don't need to give treenodes an index and
28166         treeview anymore when they are added, these are computed on the
28167         fly. Also make sure to remove a node before its added.
28168
28169 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
28170
28171         * TextControl.cs:
28172           - Added CaretSelection enum
28173           - Added comparison methods to Marker struct, makes selection code
28174             more readable
28175           - Added SelectionStart and SelectionEnd as 'moveable' location for
28176             the CaretDirection enum and handler
28177           - Added selection_prev variable to track optimized invalidation for
28178             word and line selection
28179           - Added SelectionVisible property (returns true if there is a valid 
28180             selection)
28181           - Switched CaretHasFocus to only display the caret if there is no
28182             visible selection
28183           - Avoiding StringBuilder.ToString to retrieve a single char, instead
28184             using the direct character index; should be much faster
28185           - Added various conditional debug statements
28186           - Fixed invalidation calculation for selection ranges
28187           - Added ExpandSelection() method to support word and line selection
28188           - Switched SetSelectionToCaret to use new Marker compare overloads
28189           - Added central IsWordSeparator() method to determine word 
28190             separators/whitespace and FindWordSeparator() to streamline common
28191             usage of IsWordSeparator()
28192         * TextBoxBase.cs:
28193           - Removed unneeded grabbed variable, it was just mirroring
28194             Control.Capture
28195           - No longer firing OnTextChanged event when Text setter is called,
28196             since the base will fire the event for us
28197           - Added handling of Ctrl-Up/Down selection
28198           - Added handling of Shift-Cursorkey selection
28199           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
28200             words
28201           - Added handling of Shift and Ctrl-Shift-Home/End selection
28202           - Removed some debug output
28203           - Added handling for single/double/tripple-click to place caret/
28204             select word/select line respectively (Fixes bug #76031)
28205           - Added support for drag expansion of word/line selection
28206         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
28207           current selection
28208
28209 2005-11-02  Jackson Harper  <jackson@ximian.com>
28210
28211         * X11Dnd.cs: If the drag is going to and from a MWF window just
28212         copy the data instead of sending it out through the X Selection
28213         mechanism.
28214
28215 2005-11-02  Jackson Harper  <jackson@ximian.com>
28216
28217         * X11Dnd.cs:
28218         * XplatUIX11.cs: When in a drag we don't want motion notify
28219         messages to get passed on to the other controls. This prevents
28220         mouse move messages from showing up in the drag source.
28221
28222 2005-11-02  Jackson Harper  <jackson@ximian.com>
28223
28224         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
28225         the correct button is release to end a drag.
28226         * XplatUIX11.cs: Make the button state internal so the drag system
28227         can access it.  Dragging needs to know about all button releases,
28228         not just left button.
28229
28230 2005-11-02  Miguel de Icaza  <miguel@novell.com>
28231
28232         * Form.cs (Icon): If the icon is null, reset the icon to the
28233         default value. 
28234
28235         * Cursor.cs: When writing the AND-mask bitmap do not include the
28236         number of colors, but hardcode those to two (black and white),
28237         fixes the loading of color cursors (Paint Dot Net).
28238
28239         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
28240         turn off autoscaling.
28241
28242         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
28243
28244 2005-11-02  Jackson Harper  <jackson@ximian.com>
28245
28246         * X11Dnd.cs: Make sure to send a status message if the pointer
28247         enters a control that can not accept a drop, otherwise the cursor
28248         isn't updated correctly. Also tried to compress the lines of code
28249         a bit.
28250
28251 2005-11-02  Jackson Harper  <jackson@ximian.com>
28252
28253         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
28254         set actions correctly.  This isn't perfect as XDND and win32 have
28255         some differences on how you allow actions. I'll clear this up by
28256         adding a path for drag from MWF to MWF windows.
28257         * XplatUIX11.cs: Hook into the dnd system.
28258
28259 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
28260
28261         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
28262         previously shown but they are no longer need it. Very obvious when 
28263         browsing files with FileDialog.
28264
28265 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
28266
28267         * Control.cs: We always need to call OnPaintBackground. We pretty much
28268           ignore AllPaintingInWmPaint and always do the painting there, whether 
28269           it's set or not, since we always ignore the WM_ERASEBKGND message 
28270           (which we don't generate on X11). This fixes #76616.
28271         * Panel.cs: Removed unneeded background painting. This happens properly
28272           in Control.cs already
28273
28274 2005-10-31  Mike Kestner  <mkestner@novell.com>
28275
28276         * Menu.cs: Add items to collection before setting their index.
28277         * MenuItem.cs : add range checking with ArgumentException like MS.
28278         [Fixes #76510]
28279
28280 2005-10-31  Jackson Harper  <jackson@ximian.com>
28281
28282         * ListBox.cs: Invalidate if the area is visible at all not just
28283         contained in the visible rect. Fixes unselection of semi visible
28284         items.
28285
28286 2005-10-31  Jackson Harper  <jackson@ximian.com>
28287
28288         * Control.cs: Consistently name the dnd methods. Make them
28289         internal so we can override them to match some MS behavoir
28290         internally.
28291         * Win32DnD.cs: Use the new consistent names.
28292
28293 2005-10-31  Jackson Harper  <jackson@ximian.com>
28294
28295         * TreeView.cs: Don't draw the selected node when we lose focus.
28296
28297 2005-10-31  Jackson Harper  <jackson@ximian.com>
28298
28299         * X11Dnd.cs: We still need to reset the state even though a full
28300         reset isn't being done, otherwise status's still get sent all over
28301         the place.
28302
28303 2005-10-31  Jackson Harper  <jackson@ximian.com>
28304
28305         * Control.cs: Make the dnd_aware flag internal so the dnd
28306         subsystem can check it. Catch exceptions thrown in dnd handlers to
28307         match MS behavoir.
28308         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
28309         * X11Dnd.cs: Handle null data in the converters. Set the XDND
28310         version when sending a XdndEnter. Use the control/hwnd dnd_aware
28311         flags to reduce the number of dnd enters/status's sent.
28312
28313 2005-10-31  Jackson Harper  <jackson@ximian.com>
28314
28315         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
28316
28317 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
28318
28319         * PictureBox.cs: Fixes 76512
28320
28321 2005-10-28  Jackson Harper  <jackson@ximian.com>
28322
28323         * X11Dnd.cs: Early implementation to support winforms being a drag
28324         source for data on X11. Also restructured the converters so they
28325         can go both ways now.
28326         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
28327         
28328 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
28329
28330         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
28331           clipboard requests
28332
28333 2005-10-27  Jackson Harper  <jackson@ximian.com>
28334
28335         * TreeNode.cs: Implement serialization so my DnD examples will work.
28336
28337 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
28338
28339         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
28340           TreeView.cs: Don't dispose objects that are not owned.
28341           
28342 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
28343
28344         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
28345           should retrieve the current cursor and report that, but XplatUI
28346           doesn't (yet) have an interface for that (and I'm not sure I even
28347           can, on X11)
28348         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
28349           until any message loop processing is done (and the WM_SETCURSOR
28350           replaces the cursor to the proper one)
28351         * XplatUIX11.cs: 
28352           - Fixed override behaviour, we can't set the cursor globally on X11, 
28353             just for our windows.
28354           - Invalidating the System.Drawing X11 display handle when we are
28355             shutting down
28356         * Control.cs: Fix to make csc happy
28357
28358 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
28359
28360         * TextBoxBase.cs: 
28361           - get_Text: Add last line (without trailing newline) to returned
28362             value (Fixes 76212)
28363           - get_TextLength: Count last line in returned length
28364           - ToString: Call Text property instead of duplicating code
28365
28366 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
28367
28368         * ImageList.cs: Dispose ImageAttributes objects.
28369
28370 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
28371
28372         * ImageList.cs: Use attribute constructors with less arguments where
28373           possible.
28374
28375 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
28376
28377         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
28378           Use typeof instead of strings when assembly is referenced. Added
28379           some more comments.
28380
28381 2005-10-21  Jackson Harper  <jackson@ximian.com>
28382
28383         * ListView.cs: Raise a double click event. Also tried to somewhat
28384         fix when the selectedindexchanged event is raised. Its still
28385         broken though.
28386
28387 2005-10-21  Jackson Harper  <jackson@ximian.com>
28388
28389         * TreeView.cs: New method to invalidate the plus minus area of a
28390         node without invalidating the whole node (maybe this can be used
28391         in some more places).
28392         * TreeNodeCollection.cs: When adding to an empty node we need to
28393         invalidate its plus minus area so the little block shows up.
28394         
28395 2005-10-21  Jackson Harper  <jackson@ximian.com>
28396
28397         * TreeView.cs: Make sure that when we invalidate a node the bounds
28398         are big enough to cover the selected box and the focus
28399         rectangle. Use a different colour for the lines connecting nodes
28400         so they show up with all themes.
28401
28402 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
28403
28404         * NativeWindow.cs: Don't call anything that could call into the driver,
28405           we might be on a different thread.
28406
28407 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
28408
28409         * Control.cs(Dispose): Since Dispose might run on a different thread,
28410           make sure that we call methods that could call into the driver via
28411           invoke, to avoid thread issues
28412
28413 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
28414
28415         * XplatUI.cs: Removed finalizer
28416         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
28417           not allowing to be called on the finalizer thread.
28418
28419 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
28420
28421         * ImageList.cs:
28422           - Reverted r51889 and r51891.
28423           - Added ImageListItem class that stores unmodified image items and image
28424             properties required to create list images until handle is created.
28425           - Added AddItem and moved image creation logic to AddItemInternal.
28426           - Added CreateHandle method that creates images based on unmodified items.
28427           - Added DestroyHandle that changes state to store unmodified items.
28428           - Add and AddStrip methods no more create handle.
28429           - ReduceColorDepth has no return value.
28430           - Dispose destroys handle.
28431           - Modified other methods to reflect the above changes.
28432           - Implemented key support.
28433           - Added profile 2.0 members and attributes.
28434           - Added private Reset and ShouldSerialize methods that provide the same
28435             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
28436             them as they are private.
28437           - Added some more comments about implementation details.
28438
28439 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
28440
28441         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
28442
28443 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
28444
28445         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
28446
28447 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
28448
28449         * DataGridDrawingLogic.cs: Fixes column hit calcultation
28450         * DataGridColumnStyle.cs: Remove debug message
28451
28452 2005-10-20  Jackson Harper  <jackson@ximian.com>
28453
28454         * TreeView.cs: We can always get input keys regardless of whether
28455         or not editing is enabled. They are used for navigation.
28456
28457 2005-10-20  Jackson Harper  <jackson@ximian.com>
28458
28459         * TreeNode.cs: Use the viewport rect for determining if a node
28460         needs to be moved for visibility. Don't use Begin/End edit. This
28461         calls a full refresh when its done.
28462         * TreeView.cs: New SetBottom works correctly.  Make the viewport
28463         rect property internal so the treenodes can see it. When clicking
28464         on a node we need to ensure that its visible because it might just
28465         be partly visible when clicked.
28466
28467 2005-10-20  Jackson Harper  <jackson@ximian.com>
28468
28469         * TreeNodeCollection.cs: Remove debug code.
28470
28471 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
28472
28473         * Datagrid.cs: Implements column sorting in Datagrid
28474         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
28475
28476 2005-10-20  Jackson Harper  <jackson@ximian.com>
28477
28478         * TreeNodeCollection.cs: Remove items properly. Update the correct
28479         area after removing them.
28480
28481 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
28482
28483         * Datagrid.cs: Should not call base.OnPaintBackground
28484
28485 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
28486
28487         * XplatUIX11.cs (GetMessage):
28488           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
28489             window instead of client window
28490           - Now properly calculates NC_xBUTTONUP message coordinates
28491           - ScreenToMenu now properly calculates it's coordinates of whole 
28492             window, since menus are in the whole window, not in the client
28493             window
28494           - Added WholeToScreen coordinate translation method
28495
28496 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
28497
28498         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
28499           want to return a message, loop back to the beginning of the function
28500           and grab the next real message to process instead.
28501
28502 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
28503
28504         * Splitter.cs: Properly set limits if no filler control is used
28505
28506 2005-10-19  Jackson Harper  <jackson@ximian.com>
28507
28508         * ColorDialog.cs: Don't show the help button if it is not enabled
28509         instead of disabling it (this is what MS does). Don't create the
28510         panel until the dialog is run, otherwise the vars (such as
28511         ShowHelp) are not set yet.
28512
28513 2005-10-19  Jackson Harper  <jackson@ximian.com>
28514
28515         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
28516         are reduced when adding nodes.
28517         * TreeNode.cs:
28518         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
28519         tree.
28520         
28521 2005-10-19  Jackson Harper  <jackson@ximian.com>
28522
28523         * FolderBrowserDialog.cs: End editing our treeview so the window
28524         actually gets refreshed.
28525
28526 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
28527
28528         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
28529           Obsoleted handling of WM_ERASEBKGND, now always draws our background
28530           inside of WM_PAINT
28531
28532 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
28533
28534         * MenuAPI.cs: Returns after Hidding window
28535         * XplatUIX11.cs: Added TODO found while debugging menu issues
28536
28537 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
28538
28539         * XplatUIX11.cs: Do not re-map the whole window when it's size
28540           becomes non-zero unless it's supposed to be actually visible
28541
28542 2005-10-18  Jackson Harper  <jackson@ximian.com>
28543
28544         * TreeView.cs: We don't need to keep a count anymore.
28545         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
28546         use the Grow method.
28547
28548 2005-10-18  Jackson Harper  <jackson@ximian.com>
28549
28550         * TreeNodeCollection.cs: Insert is not supported on arrays, so
28551         implement it manually here.
28552
28553 2005-10-18  Jackson Harper  <jackson@ximian.com>
28554
28555         * ImageList.cs: Dont kill the list when the colour depth is
28556         changed, just change the colour depth of all the images.
28557         - Same goes for setting the image size. Just resize them all
28558         instead of killing the list softly.
28559
28560 2005-10-18  Jackson Harper  <jackson@ximian.com>
28561
28562         * Control.cs: Don't invalidate empty rectangles.
28563
28564 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
28565
28566         * ListViewItem.cs:
28567           - Adds checked item to the Checked/Item lists (where empty before)
28568           - Do not add items to the Selected lists if they are already present
28569         * ListView.cs:
28570           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
28571           - When deleting items make sure that we delete them for the Selected
28572           and Checked list also.
28573
28574 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
28575
28576         * Label.cs: Dispose objects no longer used
28577         * ThemeWin32Classic.cs: Dispose objects no longer used
28578
28579 2005-10-18  Jackson Harper  <jackson@ximian.com>
28580
28581         * TabControl.cs: Don't refresh the whole control when the tabs are
28582         scrolled, we just need to refresh the tab area.
28583
28584 2005-10-17  Jackson Harper  <jackson@ximian.com>
28585
28586         * XplatUIX11.cs: Compress code a little bit. Only calculate the
28587         after handle when we need it.
28588
28589 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
28590
28591         * Control.cs: When the parent size changes, recalculate anchor 
28592           positions. Partial fix for #76462
28593
28594 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
28595
28596         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
28597           drawn. Fixes #76462
28598
28599 2005-10-17  Jackson Harper  <jackson@ximian.com>
28600
28601         * MonthCalendar.cs: Don't create the numeric up down until our
28602         handle is created. Otherwise our handle is created in the
28603         constructor and we don't know if we are a WS_CHILD or WS_POPUP
28604         yet.
28605
28606 2005-10-17  Jackson Harper  <jackson@ximian.com>
28607
28608         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
28609         correctly.
28610
28611 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
28612         * TreeNode.cs : small logical fix (was using local var instead of field)
28613         
28614 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
28615
28616         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
28617
28618 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
28619
28620         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
28621
28622 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
28623
28624         * Control.cs: 
28625           - Re-implemented anchoring code. My first version was really broken.
28626             This fixes bug #76033. Unlike the previous implementation we will
28627             no longer have round errors since all numbers are calculated from
28628             scratch every time. Removed various anchor-related obsolete vars.
28629           - InitLayout no longer causes layout event firing and layout to be 
28630             performed
28631
28632 2005-10-16  Jackson Harper  <jackson@ximian.com>
28633
28634         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
28635         which was broken).
28636
28637 2005-10-16  Jackson Harper  <jackson@ximian.com>
28638
28639         * TabControl.cs: Remove debug code.
28640
28641 2005-10-16  Jackson Harper  <jackson@ximian.com>
28642
28643         * XEventQueue.cs: Increase the default queue size (very simple
28644         apps needed to grow the queue).
28645         * Hwnd.cs: No finalizer so we don't need to suppress
28646         finalization. Compute the invalid area manually so a new rectangle
28647         does not newto be created.
28648         * ScrollableControl.cs: Don't set any params (otherwise visibility
28649         isn't set correctly).
28650         * MdiChildContext.cs: New constructor takes the mdi parent so it
28651         doesn't have to be computed and avoids a crash on windows. Draw
28652         the window icon properly, and allow the text to be seen.
28653         * Form.cs: Use new MdiChildContext constructor. Make sure the
28654         child context isn't null in wndproc.
28655         * TabControl.cs: Don't set focus, this is muddling keyboard
28656         behavoir. Expand the tab rows when a window size increase will
28657         allow extra tabs to be seen. Don't allow tabs smaller than the
28658         width of a window to be scrolled out of view.
28659         * TreeNode.cs:
28660         * TreeView.cs: Use measure string to calculate a nodes width, the
28661         width is cached and only updated when the text or the font is
28662         changed. Don't check for expand/collapse clicks on the first level
28663         nodes if root lines are disabled.
28664         
28665 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
28666
28667         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
28668
28669 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
28670
28671         * DataGridBoolColumn.cs: fixes warning
28672
28673 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
28674
28675         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
28676         to match more to match more precisely the MS Net behavior
28677
28678 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
28679
28680         * Hwnd.cs: Added field to track if window is mapped
28681         * XplatUIX11.cs: 
28682           - Unmap windows if they become 0-size, re-map when 
28683             they are >0 again; fixes #76035
28684           - Re-set our error handler after initializing X11Desktop
28685             to override any error handlers Gtk or whatever was called
28686             may have set.
28687
28688 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
28689
28690         * CheckedListBox.cs: Removed unused vars
28691         * ListView.cs: Fixed signatures
28692         * RichTextBox.cs: Removed unused vars
28693         * TextBoxBase.cs: Removed unused vars
28694         * XplatUIWin32.cs: Removed unused vars
28695         * XplatUIX11.cs: Removed unused vars
28696         * XplatUI.cs: Updated version and date to latest published
28697
28698 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
28699
28700         * Cursor.cs: Added private .ctor to work around a bug in
28701           resourceset (Thanks to Geoff Norton for the help on this)
28702         * SplitterEventArgs.cs: Made fields accessible so we don't
28703           waste boatloads of objects and can reuse the same one
28704           in Splitter
28705         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
28706           any captions and borders when generating screen coordinates
28707         * Splitter.cs: Reimplemented control, now fully complete, uses
28708           rubberband drawing, supports and obeys all properties, has
28709           proper cursors
28710
28711 2005-10-13  Miguel de Icaza  <miguel@novell.com>
28712
28713         * Form.cs (Form): Setup default values for autoscale and
28714         autoscale_base_size;  Make these instance variables, not static
28715         variables. 
28716
28717         (OnLoad): on the first load, adjust the size of the form.
28718
28719 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
28720
28721         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
28722           width argument to DrawReversibleRectangle()
28723         * XplatUIWin32.cs, XplatUIX11.cs: 
28724           - Implemented width for DrawReversibleRectangle()
28725           - Added logic to DrawReversibleRectangle that recognizes a zero
28726             width or height and only draws a line in that situation
28727         
28728 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
28729
28730         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
28731         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
28732         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
28733           method (it uses our FosterParent window to get a graphics context)
28734
28735 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
28736
28737         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
28738           and SetWindowBackground methods
28739         * Control.cs:
28740           - Setting proper ControlStyles
28741           - We no longer call XplatUI.SetWindowBackground and XplatUI.
28742             EraseWindowBackground, instead we draw the window background
28743             ourselves in PaintControlBackground. This behaviour is
28744             required to match MS, where, when OnPaintBackground is not
28745             called, the background is not drawn.
28746           - Removed unneeded Refresh() in set_Text
28747         * Hwnd.cs: Dropped the ErasePending support. No longer needed
28748         * XplatUIX11.cs:
28749           - Created DeriveStyles method to translate from CreateParams to
28750             FormBorderStyle and TitleStyle, also handles BorderStyle (which
28751             matches FormBorderStyle enum values)
28752           - Consolidated SetHwndStyles and CalculateWindowRect border/title
28753             style calculations into single DeriveStyles method
28754           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
28755             from redrawing the whole window on any resize or expose.
28756           - Fixed CreateWindow usage of SetWindowValuemask. Before not
28757             all styles were applied to our whole/client window appropriately
28758           - Removed EraseWindowBackground() and SetWindowBackground() methods
28759           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
28760             no longer clear/redraw the background through X
28761           - Removed handling of erase_pending bit, we have no use for it (or
28762             so it seems)
28763         * XplatUIOSX.cs:
28764           - Removed generation and handling of WM_ERASEBKGND message
28765           - Removed EraseWindowBackground() and SetWindowBackground() methods
28766           - Removed handling of hwnd.ErasePending flag
28767         * XplatUIWin32.cs:
28768           - Removed EraseWindowBackground() and SetWindowBackground() methods
28769           - We no longer call EraseWindowBackground on PaintEventStart, we 
28770             ignore the fErase flag, erasing is handled in Control in the
28771             background handler
28772         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
28773           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
28774           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
28775           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
28776           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
28777           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
28778           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
28779
28780 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
28781
28782         * PropertyGrids.cs: Get sub properties
28783         * PropertyGridView.cs: Fix drawing code
28784
28785 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
28786
28787         * ListBox.cs: Fixes 76383
28788
28789 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
28790
28791         * DataGridTextBoxColumn.cs: Sets location and size before attachment
28792         * ThemeWin32Classic.cs: Fixes border drawing and calculations
28793         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
28794
28795
28796 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
28797
28798         * ComboBox.cs: Fixes border drawing
28799
28800 2005-10-10  Miguel de Icaza  <miguel@novell.com>
28801
28802         * MimeIcon.cs: Ignore errors if the file can not be read.
28803
28804 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
28805
28806         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
28807          - Fixed border calculations
28808          - Fixed horizontal scrolling in single column listboxes
28809          - Fixed drawing issues
28810
28811 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
28812
28813         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
28814           FormBorderStyle enum
28815         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
28816           code to determine FormBorderStyles from CreateParams
28817         * Form.cs:
28818           - Fixed bug where we'd set the wrong window styles if we were
28819             not creating an MDI window
28820           - Added call to XplatUI.SetBorderStyle when form borders are set
28821         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
28822         * Hwnd.cs:
28823           - Removed obsolete edge style
28824           - Switched from BorderStyle to FormBorderStyle
28825         
28826 2005-10-10  Jackson Harper  <jackson@ximian.com>
28827
28828         * Form.cs: Use the property to get the window handle instead of
28829         accessing it directly. Prevents a null reference exception.
28830
28831 2005-10-10  Jackson Harper  <jackson@ximian.com>
28832
28833         * TreeView.cs: Don't adjust the rect given to DrawString now that
28834         our libgdiplus draws correctly.
28835
28836 2005-10-08  Jackson Harper  <jackson@ximian.com>
28837
28838         * TreeView.cs: Don't try to find the clicked on node if there are
28839         no nodes in the tree.
28840
28841 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
28842
28843         * RichTextBox.cs:
28844
28845           restore
28846
28847 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
28848
28849         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
28850           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
28851           ErrorProvider.cs:
28852           Use ResPool for brushes and dispose System.Drawing objects that
28853           are not used anymore.
28854
28855 2005-10-07  Jackson Harper  <jackson@ximian.com>
28856
28857         * MdiChildContext.cs: Use the new borders instead of drawing them
28858         ourselves.
28859
28860 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
28861
28862         * Calling UpdateBounds after changing the window's BorderStyle 
28863         since the style can change the ClientSize
28864
28865 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
28866
28867         * Control.cs: Made PaintControlBackground virtual
28868         * Panel.cs: Overriding PaintControlBackground instead of using paint
28869           event; paint event method was interfering with 'real' users of the
28870           event.
28871
28872 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
28873
28874         * ThemeWin32Classic.cs: remove border drawing since it is handled
28875         by the base control class now and was causing double border drawing.
28876
28877 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
28878
28879         * Panel.cs: Redraw our background on paint. Not a pretty solution,
28880           but it does seem to match MS behaviour. This fixes bug #75324
28881
28882 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
28883
28884         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
28885           somewhat hackish looking
28886
28887 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
28888
28889         * TextBoxBase.cs:
28890           - We now accept Enter even if AcceptEnter is false, if the containing
28891             form does not have an AcceptButton configured (fixes bug #76355)
28892           - Calculations are now fixed to no longer use Width/Height, but
28893             ClientSize.Width/Height, since we now support borders (this was
28894             a result of fixing borders and therefore bug #76166)
28895           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
28896             true (fixes bug #76354)
28897         
28898 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
28899
28900         * Control.cs: 
28901           - Defaulting BorderStyle and setting it in XplatUI when our window 
28902             is created
28903           - Added enum check to InternalBorderStyle setter
28904         * XplatUIX11.cs: 
28905           - Added drawing of window borders
28906           - Now properly calculates WM decorations offset for toplevel 
28907             windows (fixes bug #74763)
28908         * XplatUIWin32.cs: 
28909           - Implemented BorderStyles for windows (we're letting win32 draw 
28910             the border for us)
28911           - Fixed the signature for SetWindowLong
28912         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
28913           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
28914           setting borders
28915         * UpDownBase.cs: Remove drawing of borders, this is handled by
28916           the driver, outside the client area
28917         * ListView.cs: Removed bogus border calculations. The control should
28918           be oblivious to borders, since those are not part of the client
28919           area. 
28920         * X11DesktopColors.cs: Commented out (currently) unneeded variables
28921         * ThemeWin32Classic.cs: Removed border calculations from ListView 
28922           drawing code
28923
28924 2005-10-06  Jackson Harper  <jackson@ximian.com>
28925
28926         * MdiChildContext.cs: Clear out the old virtual position remove
28927         all the unneeded calls to CreateGraphics.
28928
28929 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
28930
28931         * TextControl.cs: Use proper color for highlighted text; fixes #76350
28932
28933 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
28934
28935         * Form.cs: 
28936           - Added loading and setting of our new default icon
28937           - Only set icon if window is already created
28938
28939 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
28940
28941         * Label.cs:
28942           - Do not explicitly set the foreground and background colors, to
28943             allow inheriting from parents (fixes #76302)
28944           - Use Control's InternalBorderStyle property to deal with borders
28945
28946 2005-10-06  Jackson Harper  <jackson@ximian.com>
28947
28948         * MdiChildContext.cs: Use the new xplatui function to draw a
28949         reversible rect.
28950
28951 2005-10-06  Jackson Harper  <jackson@ximian.com>
28952
28953         * Form.cs: Add the parent before creating the child context cause
28954         we need the parent when setting up the child.
28955
28956 2005-10-06  Jackson Harper  <jackson@ximian.com>
28957
28958         * FolderBrowserDialog.cs: redo the tree population code so a
28959         second thread isn't used. Should be a lot faster and more stable
28960         now.
28961
28962 2005-10-05  Jackson Harper  <jackson@ximian.com>
28963
28964         * TreeView.cs: There are no expand/collapse boxes if the node has
28965         no children.
28966
28967 2005-10-05  Jackson Harper  <jackson@ximian.com>
28968
28969         * X11DesktopColors.cs: Get menu colours for the gtk theme.
28970
28971 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
28972
28973         * FileDialog.cs: Fix InitialDirectory
28974
28975 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
28976
28977         * ComboBox.cs:
28978                 - Fixes changing between styles
28979                 - Fixes simple mode
28980                 - Fixes last item crashing when navigating with keyboard
28981
28982 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
28983
28984         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
28985
28986 2005-10-05  Jackson Harper  <jackson@ximian.com>
28987
28988         * TreeView.cs: If updating the root node do a full refresh.
28989         * TreeNode.cs: The root node should be expanded by default. Also
28990         added a utility prop to tell if we are the root node.
28991         * TreeNodeCollection.cs: Only refresh if the node we are being
28992         added to is expanded. Also added a comment on a potential
28993         optimization.
28994         
28995 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
28996
28997         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
28998           in dispose method. Fixes #76330
28999
29000 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
29001
29002         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
29003
29004                 - Implements vertical and horizontal scrolling using XplatUI
29005                 - Fixes keyboard navagation
29006                 - Fixes EnsureVisible
29007                 - Drawing fixes
29008                 - Handles and draws focus properly
29009
29010
29011 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
29012
29013         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
29014           Create handle. NET_2_0: Destroy handle when value is null.
29015
29016 2005-10-03  Jackson Harper  <jackson@ximian.com>
29017
29018         * ScrollBar.cs: My last scrollbar patch was broken. This is a
29019         revert and a new patch to prevent the thumb from refreshing so
29020         much.
29021
29022 2005-10-02  Jackson Harper  <jackson@ximian.com>
29023
29024         * ScrollBar.cs: Don't update position if it hasn't actually
29025         changed. This occurs when you hold down the increment/decrement
29026         buttons and the thumb gets to the max/min.
29027
29028 2005-10-01  Jackson Harper  <jackson@ximian.com>
29029
29030         * Form.cs:
29031         * MdiChildContext.cs:
29032         * MdiClient.cs: Implement ActiveMdiChild in Form.
29033
29034 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
29035
29036         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
29037
29038 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
29039
29040         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
29041           be found
29042
29043 2005-09-30  Jackson Harper  <jackson@ximian.com>
29044
29045         * ListBox.cs: Don't do a full refresh unless some data has
29046         actually changed.
29047
29048 2005-09-30  Jackson Harper  <jackson@ximian.com>
29049
29050         * TreeView.cs: Make sure that the checkboxes size is factored in
29051         even when not visible.
29052
29053 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
29054
29055         * FileDialog.cs: Fix Jordi's build break
29056
29057 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
29058
29059         * FileDialog.cs: 
29060                 - Use standard the Windows colours for the combobox as espected
29061                 - Dispose objects that use resouces when no longer need them
29062
29063 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
29064
29065         * X11DesktopColors.cs: Initial incomplete implementation
29066         * XplatUIX11.cs: Added call to initialize X11DesktopColors
29067
29068 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
29069
29070         * Theme.cs: 
29071           - Switched Theme color names to match the names defined in 
29072             System.Drawing.KnownColors. Life's hard enough, no need to make 
29073             it harder.
29074           - Added setters to all theme color properties so themes can set
29075             their color schemes. The setters also propagate the color changes
29076             to System.Drawing.KnownColors via reflection
29077         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
29078           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
29079           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
29080           use the new, more logical theme color names
29081         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
29082           post-NT colors
29083         * ThemeWin32Classic.cs:
29084           - Removed code to set the old classic Windows colors. Instead it
29085             now relies on the colors returned by System.Drawing.KnownColors
29086             which will be either modern static colors (Unix) or colors
29087             read from the user's configuration (Win32)
29088           - Updated to use the new, more logical theme color names
29089           - Switched DataGrid drawing code to use only Theme colors instead of
29090             a mix of System.Drawing.KnownColors and Theme colors
29091           - DrawFrameControl(): Removed code that fills the button area, the
29092             fill would overwrite any previous fill done by a control. This
29093             fixes bug #75338 
29094           - Added DrawReversibleRectangle() stub
29095         * ScrollableControl.cs: Set visible state to false when scrollbars
29096           are removed (pdn fix)
29097         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
29098           DrawReversibleRectangle() method to allow drawing primitive 
29099           'rubber bands'
29100         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
29101
29102 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
29103
29104         * ImageList.cs: Add(Icon): Create handle.
29105
29106 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
29107
29108         * ListView.cs:
29109         * ThemeWin32Classic.cs:
29110                 - Fixes detail mode
29111                 - Sets clippings
29112                 - Issues with drawing
29113
29114 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
29115
29116         * ImageList.cs: Moved RecreateHandle back to ImageList as event
29117           source has to be the ImageList.
29118
29119 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
29120
29121         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
29122
29123 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
29124
29125         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
29126
29127 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
29128
29129         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
29130
29131 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
29132         * GridItem.cs: Fixed TODOs
29133         * GridItemCollection.cs: Added ICollection interface
29134
29135 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
29136
29137         * ImageList.cs: Resize icons when needed.
29138
29139 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
29140
29141         * ListViewItem.cs
29142                 - Fixes GetBounds and returns on screen rects
29143         * ListView.cs:
29144                 - Fixes vertical and horzintal scrolling of items
29145         * ThemeWin32Classic.cs:
29146                 - Fixes drawing
29147                 
29148 2005-09-29  Raja R Harinath  <harinath@gmail.com>
29149
29150         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
29151
29152 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
29153
29154         * ImageList.cs: Added comments about handle creation. Moved Handle,
29155           HandleCreated and OnRecreateHandle implementations to ImageCollection.
29156           Handle is created in Add methods.
29157
29158 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
29159          
29160         * DataGridDrawingLogic.cs: 
29161                 - Takes rows into account on Colum calculations
29162                 - Returns the column when clickig
29163         * DataGrid.cs:
29164                 - Fixes default HitTestInfo values
29165                 - Fixes HitTestInfo.ToString
29166                 - Fixes ResetBackColor          
29167         
29168 2005-09-28  Jackson Harper  <jackson@ximian.com>
29169
29170         * MdiChildContext.cs: Obey rules for fixed sized windows (no
29171         sizing or cursor changes). Also added some temp code to draw the
29172         titlebars text (Makes dev a little easier).
29173
29174 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
29175
29176         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
29177
29178 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
29179          
29180         * ListBox.cs: Fixes bug 76253
29181
29182 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
29183
29184         * ImageList.cs: Added comments about the current implementation. Added
29185           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
29186           Format32bppArgb to preserve transparency and can use Graphics.FromImage
29187           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
29188           with Bitmap.LockBits for better performance. Revised the whole file to
29189           match MS.NET behaviour and provide better performance. Non-public
29190           interface members are calling public members even when they throw
29191           NotSupportedException for better maintainability. Moved ColorDepth,
29192           ImageSize, ImageStream and TransparentColor implementations to
29193           ImageCollection for better performance as these properties are not used
29194           by ImageList.
29195         * ImageListStreamer.cs: Added a new internal constructor that takes an
29196           ImageList.ImageCollection and serializes Images based on
29197           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
29198           match ImageList property name.
29199
29200 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
29201
29202         * ListBox.cs: Fixes IndexFromPoint for last item
29203
29204 2005-09-27  Jackson Harper  <jackson@ximian.com>
29205
29206         * Form.cs: Set the position of new mdi children correctly.
29207
29208 2005-09-27  Jackson Harper  <jackson@ximian.com>
29209
29210         * MdiClient.cs: New mdi children need to be added to the back of
29211         the controls collection so the zorder is set correctly. Also add a
29212         count of all the child windows that have been created.
29213
29214 2005-09-27  Jackson Harper  <jackson@ximian.com>
29215
29216         * Form.cs (CreateParams): Setup MDI forms correctly.
29217
29218 2005-09-27  Jackson Harper  <jackson@ximian.com>
29219
29220         * MdiChildContext.cs:
29221         * MonthCalendar.cs:
29222         * UpDownBase.cs:
29223         * ListBox.cs:
29224         * ListView.cs:
29225         * TextBoxBase.cs:
29226         * TreeView.cs:
29227         * ScrollableControl.cs:
29228         * ComboBox.cs: Add implicit controls using the new implict control
29229         functionality in ControlCollection. Also try to block multiple
29230         control add in a suspend/resume layout to save some cycles.
29231         
29232 2005-09-27  Jackson Harper  <jackson@ximian.com>
29233
29234         * Control.cs: Add functionality to the controls collection to add
29235         'implicit controls' these are controls that are created by the
29236         containing control but should not be exposed to the user. Such as
29237         scrollbars in the treeview.
29238         * Form.cs: The list var of the ControlsCollection is no longer
29239         available because of the potential of implicit controls getting
29240         ignored by someone accessing the list directly.
29241
29242 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
29243
29244         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
29245           loose it's parent. (Fixed bug introduced in r49103 when we added
29246           setting the child parent to null on Remove)
29247
29248 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
29249
29250         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
29251         * Splitter.cs: Added missing attributes for BorderStyle property.
29252         * TextBoxBase.cs: Marked Calculate* methods internal.
29253         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
29254         MS.NET.
29255
29256 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
29257          
29258         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
29259
29260 2005-09-25  Jackson Harper  <jackson@ximian.com>
29261
29262         * TreeView.cs: Update the node bounds correctly regardless of
29263         whether the node is visible.
29264
29265 2005-09-25  Jackson Harper  <jackson@ximian.com>
29266
29267         * ImageList.cs: Don't dispose the image after it is added to the
29268         image list. Only reformat images that need to be resized.
29269
29270 2005-09-25  Jackson Harper  <jackson@ximian.com>
29271
29272         * ImageList.cs: Don't set the format when changing the image.
29273
29274 2005-09-25  Jackson Harper  <jackson@ximian.com>
29275
29276         * TreeView.cs: We can't just assume the node has a font. Use the
29277         treeviews font if no node font is available.
29278
29279 2005-09-25  Jackson Harper  <jackson@ximian.com>
29280
29281         * TreeView.cs: Allow the scrollbars to be reset with negative
29282         values.
29283         - Don't add scrollbars to negative sized windows.
29284
29285 2005-09-23  Jackson Harper  <jackson@ximian.com>
29286
29287         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
29288         old Mono.Posix. Also remove some stray code that shouldn't have
29289         been committed.
29290
29291 2005-09-23  Jackson Harper  <jackson@ximian.com>
29292
29293         * TreeView.cs: Attempt at proper sizing of the horizontal
29294         scrollbar. Also don't resize the scrollbars unless they are
29295         visible.
29296
29297 2005-09-23  Jackson Harper  <jackson@ximian.com>
29298
29299         * TreeView.cs: We don't need to expand the invalid area when the
29300         selection changes, as this is all drawn in the node's bounding
29301         box. The area needs to be expanded (previous typo was contracting
29302         it) when the focus rect moves.
29303
29304 2005-09-23  Jackson Harper  <jackson@ximian.com>
29305
29306         * TreeView.cs: Display the selection box under the correct
29307         circumstances. We were rendering white text with no selection box
29308         before.
29309
29310 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
29311
29312         * TextControl.cs(Split): Now updates selection start/end if it points 
29313           into a line that's being split. Fixes a FIXME and bug #75258
29314
29315 2005-09-23  Jackson Harper  <jackson@ximian.com>
29316
29317         * Binding.cs:
29318         * ListControl.cs: Don't use the path when retrieving binding
29319         managers from the binding context. My bat sense tells me that the
29320         path is only used on insertion.
29321
29322 2005-09-22  Jackson Harper  <jackson@ximian.com>
29323
29324         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
29325
29326 2005-09-22  Jackson Harper  <jackson@ximian.com>
29327
29328         * Splitter.cs: There are special cursors used for splitting.
29329         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
29330
29331 2005-09-22  Jackson Harper  <jackson@ximian.com>
29332
29333         * Splitter.cs: Change the cursor appropriately when the splitter
29334         is moused over, so the user actually knows there is a splitter
29335         there.
29336
29337 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
29338
29339        * Label.cs : Fix ToString method to give same output as MS.NET
29340
29341 2005-09-22  Jackson Harper  <jackson@ximian.com>
29342
29343         * TreeView.cs: Create the scrollbars when the handle is created
29344         and add them right away, just make them invisble. Also account for
29345         the window being shrunk vertically to the point that the vert
29346         scrollbar needs to be added.
29347         - Remove some 0.5 adjustments to get around anti aliasing issues.
29348         
29349 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
29350          
29351         * MainMenu.cs: Fixes default value
29352         * MenuItem.cs: Fixes default value
29353
29354 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
29355
29356         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
29357
29358 2005-09-21  Jackson Harper  <jackson@ximian.com>
29359
29360         * Control.cs: Don't try to set the border style on the window if
29361         it hasn't been created. When the window is created the border
29362         style will be used.
29363
29364 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
29365
29366         * Control.cs (Update): Don't call XplatUI if we don't have a
29367           window handle yet
29368
29369 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
29370
29371         * ContainerControl.cs: Instead of throwing an exception, print
29372           a one-time warning about Validate not being implemented
29373         * XplatUIWin32.cs: Removed debug output
29374
29375 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
29376
29377         * Control.cs: Only set XplatUI background if we expect the windowing
29378           system to handle the background. This stops controls that draw their
29379           own background from flickering
29380
29381         * XplatUIX11.cs: Support custom visuals and colormaps for window 
29382           creation. This allows, amongst other things, using MWF X11 windows 
29383           with OpenGL.
29384
29385 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
29386
29387         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
29388           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
29389           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
29390           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
29391           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
29392           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
29393           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
29394           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
29395           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
29396           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
29397           GridColumnStylesCollection.cs, 
29398           IDataGridColumnStyleEditingNotificationService.cs,
29399           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
29400           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
29401           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
29402           TreeNodeCollection.cs, AmbientProperties.cs, 
29403           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
29404           DataObject.cs, ErrorProvider.cs, Splitter.cs,
29405           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
29406           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
29407           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
29408           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
29409           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
29410           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
29411           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
29412           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
29413           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
29414           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
29415           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
29416           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
29417           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
29418           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
29419           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
29420           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
29421           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
29422           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
29423           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
29424           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
29425           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
29426           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
29427           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
29428           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
29429           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
29430           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
29431           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
29432           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
29433           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
29434           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
29435           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
29436           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
29437           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
29438           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
29439           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
29440
29441 2005-09-21  Jackson Harper  <jackson@ximian.com>
29442
29443         * TreeNode.cs: Call Before/After Expand not Collapse when
29444         expanding.
29445
29446 2005-09-20  Jackson Harper  <jackson@ximian.com>
29447         
29448         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
29449
29450 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
29451          
29452         * ListViewItem.cs:
29453                 - Fixes bug 76120
29454                 - Fixes proper storing of subitems
29455                 - Fixes not updated items
29456
29457 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
29458
29459         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
29460           things if our window handle isn't created yet. Also disabled 
29461           debug for TextBoxBase
29462
29463 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
29464
29465         * MenuAPI.cs: Remove filtering of events to allow menu usage
29466
29467 2005-09-20  Miguel de Icaza  <miguel@novell.com>
29468
29469         * Cursor.cs: Allow null to be passed to Cursor.Current.
29470
29471 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
29472
29473         * ThemeWin32Classic.cs:
29474           - Change some private methods/fields to protected virtual so that 
29475             they can be accessed and overriden in derived classes
29476           - First refactoring of some methods. Derived themes now don't 
29477             need to duplicate the complete code from ThemeWin32Classic
29478         * ThemeNice.cs:
29479           - Added nice StatusBar
29480           - Derive from ThemeWin32Classic and not Theme
29481           - Removed duplicate ThemeWin32Classic code
29482
29483 2005-09-20  Miguel de Icaza  <miguel@novell.com>
29484
29485         * Control.cs (ControlCollection.Add): If the value null is passed
29486         the control is ignored. 
29487
29488         Optimize this loop.
29489
29490 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
29491
29492         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
29493           PostQuitMessage state.
29494         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
29495
29496 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
29497
29498         * Application.cs: Our constructor will never get called, move 
29499           initialization to fields; fixes bug #75933
29500
29501 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
29502
29503         * FileDialog.cs :
29504                 - Allow files to be selected properly using file name
29505                 combo box.
29506                 - Add ability to change diretory (absolute / relative)
29507                 using file name combo box.
29508
29509 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
29510          
29511         * ListBox.cs: 
29512                 - Fixes Multicolumn listboxes item wrong calculations
29513                 - Allows to click when only one item is in the listbox
29514                 - Fixes crash when no items using keyboard navigation
29515
29516 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
29517
29518         * ComboBox.cs: Reverted almost everything from the latest patch which
29519           broke ComboBox
29520
29521 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
29522         
29523         * ToolTip.cs:
29524                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
29525         * ComboBox.cs:
29526                 - When DropDownStyle is Simple, it does not show scrollbar 
29527                 to the last item of the list.
29528                 - When DropDownStyle is Simple, it crashed when the list was 
29529                 scrolled down with the down cursor key.
29530                 - Fixed a bug that when DropDownStyle is DropDownList, the 
29531                 selected item was not shown.
29532                 - The position of the selected item was not preserved when 
29533                 the next dropdown happened.
29534         * ThemeWin32Classic.cs:
29535                 - Items were wrapped at the right end.
29536         * CheckedListBox.cs:
29537                 - Fixed Add method
29538         * ListBox.cs:
29539                 - Items should be fully shown.
29540                 - When resizing and vertical scrollbar disappeared, the item 
29541                 of index 0 should be on the top of the list.
29542                 - GetItemRectangle should consider the size of ver. scrollbar
29543         * StatusBar.cs:
29544                 - SizingGrip area should not be allocated when it is not 
29545                 displayed.
29546                 - Now it reflects MinWidth of the containing panel and 
29547                 fixed a crash that happens when its width becomes so small.
29548
29549 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
29550
29551         * CheckedListBox.cs: Fixes bug 76028
29552         * ListBox.cs: Fixes bug 76028
29553
29554 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
29555
29556         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
29557         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
29558
29559 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
29560
29561         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
29562
29563 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
29564
29565         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
29566
29567 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
29568
29569         * IRootGridEntry.cs: Added
29570         * PropertyGridCommands.cs: Added
29571         * PropertiesTab.cs: Added missing methods and property
29572         * PropertyGridView.cs: Made class internal
29573         * PropertyGridTextBox.cs: Made class internal
29574
29575 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
29576
29577         * MimeIcon.cs: Try to check some other environment variables
29578           if "DESKTOP_SESSION" returns "default"
29579
29580 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
29581
29582         * ThemeNice.cs: Corrected background colors (e.g. menus)
29583         * ColorDialog.cs: Use correct background colors for controls
29584
29585 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
29586
29587         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
29588
29589 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
29590
29591         * RichTextBox.cs: Added initial implementation
29592         * lang.cs: Removed. Was accidentally checked in long time ago
29593         * TODO: Removed. Contents were obsolete
29594
29595 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
29596                                                                                 
29597         * PropertiesTab.cs : Added
29598
29599 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
29600                                                                                 
29601         * PropertyGrid.cs : Update
29602         * PropertyGridView.cs : Update
29603         * System.Windows.Forms.resx : Added images and strings
29604
29605 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
29606
29607         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
29608  
29609 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
29610
29611         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
29612           a busy loop right after the Ungrab the X11 display is otherwise 
29613           blocked
29614
29615 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
29616
29617         * ThemeWin32Classic.cs: Optimise the use of clipping
29618
29619 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
29620
29621         * DataGrid.cs: fixes recursion bug
29622
29623 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
29624
29625         * ThemeNice.cs: 
29626           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
29627           - Cleanup
29628
29629 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
29630
29631         * ThemeNice.cs: Draw nice ProgressBars
29632
29633 2005-09-01  Miguel de Icaza  <miguel@novell.com>
29634
29635         * VScrollBar.cs: Another buglet found by Aaron's tool. 
29636
29637         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
29638         bug finder.
29639
29640 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
29641
29642         * ThemeNice.cs:
29643           - Added nicer menu drawing
29644           - Updated DrawTab
29645           - some refactoring
29646
29647 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
29648
29649         * CreateParams.cs (ToString): Made output match MS
29650         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
29651             handle is already created (to avoid forcing window creation)
29652         * XplatUIX11.cs: Set window text to caption after creating window,
29653           in case Text was set before window was created
29654         * Form.cs: Use this.Text instead of a static string as caption
29655
29656 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
29657
29658         * NotifyIcon.cs: Don't set the window to visible; this screws
29659           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
29660           OnPaint without a bitmap)
29661         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
29662           happen very often anyway; we could add the check to the WM_PAINT 
29663           event generation code
29664
29665 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
29666
29667         * NotifyIcon.cs: Fill the icon area with a background color, to 
29668           avoid 'residue' when transparent icons are drawn
29669         * XplatUIX11.cs:
29670           - Handle whole_window == client_window when destroying windows
29671           - SystrayAdd(): Set client_window to whole_window value to
29672             get mouse and other events passed to NotifyIcon
29673
29674 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
29675
29676         * Form.cs: Set proper default for Opacity property
29677         * NotifyIcon.cs:
29678           - ShowSystray(): Don't bother creating telling the OS
29679             about the systray item if no icon is provided
29680           - Now handles WM_NCPAINT message to deal with whole/client window
29681             split
29682           - Create window as visible to not get caught by Expose optimization
29683         * Hwnd.cs: Removed debug message
29684         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
29685           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
29686             PaintEventStart/End to use new client argument
29687         * TextBoxBase.cs:
29688           - Commented out debug messages
29689           - Switched PaintEventStart/End to use new client argument
29690         * XplatUI.cs: Added client window bool to PaintEventStart()/
29691           PaintEventEnd() calls, to support drawing in non-client areas
29692         * XplatUIDriver.cs: 
29693           - Added client window bool to PaintEventStart()/PaintEventEnd() 
29694             calls, to support drawing in non-client areas
29695           - Added conditional compile to allow using MWF BeginInvoke 
29696             on MS runtime
29697         * XplatUIX11.cs:
29698           - Added some conditional debug output
29699           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
29700             whole/client window split
29701           - Implemented handling of client argument to PaintEventStart()/End()
29702         * Control.cs:
29703           - Throw exception if BeginInvoke() is called and the window handle
29704             or one of the window's parent handles is not created
29705           - Added conditional compile to allow using MWF BeginInvoke on
29706             MS runtime
29707           - get_Parent(): Only sets parent if handle is created. This avoids
29708             forcing window handle creation when parent is set.
29709           - Now fires Layout and Parent changed events in proper order
29710           - Switched to use Handle instead of window.Handle for Z-Order setting,
29711             the get_Parent() patch above causes us to possibly get null for 'window'
29712           - Implemented handling of client argument to PaintEventStart()/End()
29713           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
29714             default handling)
29715           - Now sends a Refresh() to all child windows when Refresh() is called
29716
29717 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
29718
29719         * Form.cs: Added (non-functional) Opacity property
29720         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
29721
29722 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
29723         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
29724           use export MONO_THEME=nice to activate it.
29725           Currently supported controls:
29726           - Button
29727           - ComboBox
29728           - ScrollBar
29729           - TabControl (TabAlignment.Top only, other will follow)
29730         * ThemeEngine.cs: Add theme nice
29731         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
29732           if enabled
29733
29734 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
29735
29736         * Splitter.cs: Resize docked control and its neighbor.
29737
29738 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
29739         -- Making Windows with Menus layout correctly --
29740         * Form.cs : The first leg of the fix
29741                 Menu setter - adjust Client Size as needed to make space for the menu
29742                 SetClientSizeCore - doesn't call base version to be able to pass the 
29743                         menu handle to XplatUI.CalculateWindowRect
29744         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
29745         * XplatUIX11.cs: The critical second leg of the fix
29746                 GetWindowPos needs to use a recalculated client_rect
29747                 so that resizing the window doesn't break layout of child controls. 
29748                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
29749                 Lots of \t\n killed
29750
29751 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
29752
29753         * Label.cs: Now properly recalculates width and height on Font and Text
29754           changes if AutoSize is set
29755
29756 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
29757         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
29758
29759 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
29760
29761         * ImageList.cs: Makes ToString method compatible with MS
29762
29763 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
29764
29765         * MenuAPI.cs: fixes bug 75716
29766
29767 2005-08-11 Umadevi S <sumadevi@novell.com>
29768         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
29769
29770 2005-08-11 Umadevi S <sumadevi@novell.com>
29771         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
29772
29773 2005-08-10  Umadevi S <sumadevi@novell.com>
29774         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
29775
29776 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
29777
29778         * Menu.cs: fixes bug 75700
29779         * MenuAPI.cs: fixes navigation issues
29780
29781 2005-08-09  Umadevi S <sumadevi@novell.com>
29782         * CheckedListBox.cs - simple fix for GetItemChecked.
29783
29784 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
29785
29786         * ComboBox.cs: Serveral fixes
29787         * ListBox.cs: Serveral fixes
29788
29789 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
29790
29791         * ComboBox.cs: Fixes FindString methods and GetItemHeight
29792         * ListBox.cs: Fixes FindString methods
29793
29794 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
29795
29796         * DataGrid.cs: fixes bugs exposed by new tests
29797
29798 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
29799
29800         * Mime.cs: Compile Mono assembly references only if compiling
29801           with Mono (Allows to build with VS.Net again)
29802
29803 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
29804
29805         * Control.cs (PaintControlBackground): Draw background image
29806         corrrectly.
29807         (CheckForIllegalCrossThreadCalls): Stubbed.
29808         
29809         * Form.cs (OnCreateControl): Center when should be centered.
29810         
29811         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
29812
29813 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
29814
29815         * Binding.cs: Binding to properties should be case unsensitive
29816
29817 2005-07-18 vlindos@nucleusys.com
29818
29819         * DataGrid.cs: fixes setmember order
29820
29821 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
29822
29823         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
29824         * FileDialog.cs: FileDialog is now resizable and uses the new
29825           MimeIconEngine
29826
29827 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
29828
29829         * DataGridTextBoxColumn.cs: default value
29830         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
29831         * GridTableStylesCollection.cs: fixes checking MappingName
29832         * DataGridDrawingLogic.cs: fixes drawing logic issues
29833         * DataSourceHelper.cs: rewritten to make compatible with more data sources
29834         * DataGrid.cs: fixes    
29835
29836 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
29837
29838         * MimeGenerated.cs: Use case sensitive comparer for
29839           NameValueCollections
29840
29841 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
29842
29843         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
29844         * ThemeWin32Classic.cs: bug fixes, code refactoring
29845         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
29846         * DataGrid.cs: bug fixes, code refactoring
29847         * DataGridTextBox.cs: bug fixes, code refactoring
29848         * DataGridColumnStyle.cs:  bug fixes, code refactoring
29849         * Theme.cs:  bug fixes, code refactoring
29850
29851 2005-07-01  Peter Bartok  <pbartok@novell.com> 
29852
29853         * TextControl.cs: Quick fix for the reported crash on ColorDialog
29854           and other text box usage
29855
29856 2005-07-01  Jackson Harper  <jackson@ximian.com>
29857
29858         * TabControl.cs: Make sure the bottom of the tab covers the pages
29859         border.
29860
29861 2005-06-30  Peter Bartok  <pbartok@novell.com> 
29862
29863         * Form.cs (ShowDialog): Assign owner of the dialog
29864         * TextBoxBase.cs: Always refresh caret size when deleting, caret
29865           might have been moved to a tag with different height
29866
29867 2005-06-30  Jackson Harper  <jackson@ximian.com>
29868
29869         * Form.cs: Don't create an infinite loop when setting focus
29870         * MenuItem.cs: Don't dirty the parents if we don't have any
29871
29872 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
29873
29874         * LibSupport.cs: Rename
29875
29876 2005-06-29  Peter Bartok  <pbartok@novell.com>
29877
29878         * TextBoxBase.cs: Re-align caret after deleting a character
29879         * TextControl.cs:
29880           - DeleteChars(): Ensure that tag covers the provided position
29881           - StreamLine(): Drop reference for dropped tag
29882
29883 2005-06-29  Peter Bartok  <pbartok@novell.com> 
29884
29885         * TextControl.cs: 
29886           - Selections now work properly, anchoring at the initial location
29887             and properly extending in either direction (SetSelectionToCaret(),
29888             SetSelectionStart() and SetSelectionEnd())
29889           - No longer redraws the whole control on selection change, now
29890             calculates delta between previous and new selection and only
29891             invalidates/redraws that area
29892           - Fixed FindPos() math off-by-one errors
29893           - Changed DeleteChars() to verify the provided tag covers the
29894             provided position, selections may have a tag that doesn't cover
29895             the position if the selection is at a tag border
29896           - Fixed off-by-one errors in DeleteChars()
29897           - Added missing streamlining check in DeleteChars() to remove
29898             zero-length tags
29899           - Implemented Invalidate() method, now properly calculates exposures
29900             between two given lines/positions
29901           - Implemented SetSelection()
29902           - Obsoleted and removed FixupSelection()
29903           - Improved RecalculateDocument() logic, removing code duplication
29904
29905 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
29906
29907         * LibSupport.cs: changes to match different input/output arguments.
29908
29909 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
29910
29911         * LibSupport.cs: added libsupport.so init routine.
29912
29913 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
29914         
29915         * ControlBindingsCollection.cs
29916                 - Throws an exception on null datasource when adding
29917                 - Checks for duplicated bindings when adding
29918
29919 2005-06-28  Jackson Harper  <jackson@ximian.com>
29920
29921         * TreeView.cs (OnKeyDown): Support left and right properly
29922         (navigates as well as expanding and collapsing.
29923         - Add support for Multiply, this expands all the selected nodes
29924         children.
29925         - Fix some tabbing.
29926
29927 2005-06-28  Jackson Harper  <jackson@ximian.com>
29928
29929         * TreeView.cs: Implement keyboard navigation, currently supports,
29930         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
29931         support for toggling checkboxes with the space bar.
29932
29933 2005-06-28  Jackson Harper  <jackson@ximian.com>
29934
29935         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
29936         tree.
29937
29938 2005-06-28  Jackson Harper  <jackson@ximian.com>
29939
29940         * TreeView.cs: Add missing event.
29941
29942 2005-06-27  Peter Bartok  <pbartok@novell.com> 
29943
29944         * TextControl.cs:
29945           - Made line ending size configurable (now allows for counting 
29946             lineendings as \n or \r\n)
29947           - Added margin to viewport to keep caret visible on right side
29948           - Fixed translation routines for line/pos to documentpos to consider
29949             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
29950           - Fixed some line-endings to be unix style
29951           - Fixed Document.FormatText to perform it's calculations 1-based
29952           - Added descriptions for a few methods that might otherwise get 
29953             used wrong
29954           - Added NOTE section with some basic conventions to remember at 
29955             the top of the file
29956           - Major fixup for RichTextBox selection drawing:
29957             * Fixed crashes when multiple tags on a single line were selected
29958             * fixed selection box drawing not overlaying text
29959             * fixed bogus offset calculation for tags not starting at index 1
29960             * Switched behaviour from using multiple Substrings of a 
29961               StringBuilder.ToString() to using multiple 
29962               StringBuilder.ToString(start, length) statements, hoping this is
29963               faster (kept original version commented out in the code, in case
29964               original version was faster)
29965         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
29966           alignment != Left
29967         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
29968           call it as well
29969
29970 2005-06-27  Jackson Harper  <jackson@ximian.com>
29971
29972         * TabControl.cs: Move to the left and right with the arrow
29973         keys. These keys don't cycle beyond first and last like
29974         tab. Refresh all the tabs when scrolling them to the left or
29975         right.
29976
29977 2005-06-27  Jackson Harper  <jackson@ximian.com>
29978
29979         * TabControl.cs:
29980           - ToString: Added method
29981           - CreateParams: Remove TODO and comment
29982           - OnKeyDown: Cycle through bounds properly.
29983           - SelectedIndex: Scroll to the right or left if we need to
29984           display the newly selected tab.
29985
29986 2005-06-23  Jackson Harper  <jackson@ximian.com>
29987
29988         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
29989         set.
29990
29991 2005-06-23  Jackson Harper  <jackson@ximian.com>
29992
29993         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
29994         CTRL-SHIFT-TAB, and HOME, END are there any others?
29995
29996 2005-06-23  Jackson Harper  <jackson@ximian.com>
29997
29998         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
29999
30000 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
30001         
30002         * DataGridTextBoxColumn.cs: fixes and enhancements
30003         * ThemeWin32Classic.cs: fixes and enhancements
30004         * DataGridBoolColumn.cs:  fixes and enhancements
30005         * DataGridDrawingLogic.cs:  fixes and enhancements
30006         * CurrencyManager.cs: fixes and enhancements
30007         * DataGrid.cs: fixes and enhancements
30008         * DataGridColumnStyle.cs:  fixes and enhancements
30009
30010 2005-06-22  Jackson Harper  <jackson@ximian.com>
30011
30012         * TabControl.cs: Add some missing methods that just call into the
30013         base. Make the TabPageCollection's IList interface behave in the
30014         same manner as the MS implementation.
30015
30016 2005-06-22  Peter Bartok  <pbartok@novell.com> 
30017
30018         * TextControl.cs: Added sanity check
30019         * TextBoxBase.cs: 
30020           - Fixed wrapping behaviour, don't set wrap on single line controls
30021             (this fixes the breakage of colordialog introduced in an earlier
30022              checkin)
30023           - Added rudimentary support for autoscrolling right-aligned controls
30024             (still needs fixing, also, center alignment scroll is missing)
30025
30026 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
30027         
30028         * ScrollBar.cs: Fixes thumbpos on Maximum values
30029
30030 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
30031         
30032         * PropertyGridView.cs: Pass context information to UITypeEditors 
30033
30034 2005-06-21  Peter Bartok  <pbartok@novell.com> 
30035
30036         * TextBoxBase.cs:
30037           - Now calling PositionCaret with absolute space coordinates
30038           - Enabled vertical scrolling
30039           - Better tracking of scrollbar changes, tied into WidthChange
30040             event
30041           - Improved cursor tracking
30042           - Removed debug output
30043         * TextControl.cs:
30044           - PositionCaret coordinates are now works in absolute space, not 
30045             the canvas
30046           - Improved tracking of document size
30047           - Added events for width and height changes
30048
30049 2005-06-21  Peter Bartok  <pbartok@novell.com>
30050
30051         * Form.cs: Set focus to active control when form is activated
30052         * TextControl.cs: 
30053           - Added word-wrap functionality to RecalculateLine() 
30054           - Added some short function descriptions for VS.Net to aid in
30055             writing dependent controls
30056           - Added Caret property, returning the current coords of the caret
30057           - Added ViewPortWidth and ViewPortHeight properties
30058           - Added Wrap property
30059           - Added CaretMoved event
30060           - Removed some old debug code
30061           - Split() can now create soft splits
30062           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
30063           - Added method to format existing text
30064           - Fixed size/alignment calculations to use viewport
30065           - RecalculateDocument now can handle changing line-numbers while
30066             calculating lines
30067
30068         * TextBox.cs:
30069           - Added some wrap logic, we don't wrap if alignment is not left
30070           - Added casts for scrollbar var, base class switched types to
30071             also support RichTextBoxA
30072           - Implemented handling of scrollbar visibility flags
30073
30074         * TextBoxBase.cs:
30075           - Switched scrollbars type to RichTextBoxScrollBars to support
30076             RichTextBox
30077           - Added tracking of canvas width/height
30078           - Switched scrollbars to be not selectable (to keep focus on text)
30079           - Added central CalculateDocument() method to handle all redraw
30080             requirements
30081           - Added ReadOnly support
30082           - Added WordWrap support
30083           - Fixed handling of Enter key (we now treat it as a DialogKey)
30084           - Fixed caret positioning when h or v scroll is not zero
30085           - Fixed placing/generation of vertical scrollbar
30086           - Added CalculateScrollBars() method to allow updating scrollbar
30087             limits and visibility
30088           - Fixed handling of horizontal scroll
30089           - Added handling of vertical scroll
30090           - Implemented auto-'jump' when caret moves to close to a left or
30091             right border and there is text to be scrolled into view (currently
30092             there's the potential for a stack overflow, until a bug in
30093             scrollbar is fixed)
30094
30095 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
30096         
30097         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
30098
30099 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
30100
30101         * Mime.cs:
30102         - added inodes.
30103         - return application/x-zerosize for files with size zero
30104           (if no extension pattern matches).
30105         - check matches collection for strings too.
30106         - return only the first mime type if the name value
30107           collection has more than one mime type.
30108
30109 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
30110         
30111         * PropertyGrid.cs: Cleaned up some TODOs
30112         * PropertyGridView.cs: Added support for UITypeEditors
30113
30114 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
30115         
30116         * DataGrid.cs: clears cached value
30117
30118 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
30119
30120         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
30121         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
30122         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
30123         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
30124         
30125 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
30126
30127         * ThemeWin32Classic.cs: fixes colour
30128
30129 2005-06-15  Peter Bartok  <pbartok@novell.com>
30130
30131         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
30132         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
30133         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
30134         * Control.cs: Added some MWFCategory and MWFDescription attributes
30135         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
30136
30137 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
30138
30139         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
30140         usage
30141
30142 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
30143
30144         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
30145         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
30146         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
30147         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
30148         * DataGrid.cs: default datagrid settings for Default Styles, fixes
30149         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
30150
30151 2005-06-13  Jackson Harper  <jackson@ximian.com>
30152
30153         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
30154         isn't printed when the user enables dropping. (X11 does accept
30155         drops).
30156         
30157 2005-06-13  Jackson Harper  <jackson@ximian.com>
30158
30159         * TreeView.cs: Remove some TODOS.
30160
30161 2005-06-13  Jackson Harper  <jackson@ximian.com>
30162
30163         * Form.cs: Hook into the mdi framework.
30164         * MdiClient.cs: Use the base control collections add method so
30165         parents get setup correctly. Set the default back colour and dock
30166         style.
30167         * MdiChildContext.cs: New class, this bad actor handles an
30168         instance of an MDI window. Right now there is only basic
30169         support. You can drag, close, and resize windows. Minimize and
30170         Maximize are partially implemented.
30171
30172 2005-06-13  Jackson Harper  <jackson@ximian.com>
30173
30174         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
30175         freaky when both vals are negative. NOTE: There are probably other
30176         places in XplatUIX11 that this needs to be done.
30177
30178 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
30179
30180         * DataGrid.cs: implement missing methods, move KeyboardNavigation
30181         * DataGridColumnStyle.cs: fixes signature
30182
30183 2005-06-12  Jackson Harper  <jackson@ximian.com>
30184
30185         * XplatUIX11.cs: Use sizing cursors similar to the ones on
30186         windows.
30187
30188 2005-06-11  Jackson Harper  <jackson@ximian.com>
30189
30190         * StatusBarPanel.cs: Signature cleanups. Implement
30191         BeginInit/EndInit.
30192
30193 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
30194
30195         * DataGridTextBoxColumn.cs: Honors aligment
30196         * GridColumnStylesCollection.cs: Contains is case unsensitive
30197         * GridTableStylesCollection.cs: several fixes
30198         * DataGridTableStyle.cs: default column creation
30199         * DataGridDrawingLogic.cs: fixes
30200         * CurrencyManager.cs: ListName property
30201         * DataGrid.cs: multiple styles support
30202         * DataGridColumnStyle.cs: fixes
30203         
30204
30205 2005-06-10  Peter Bartok  <pbartok@novell.com>
30206
30207         * Control.cs(Select): Moved SetFocus call to avoid potential
30208           loops if controls change the active control when getting focus
30209         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
30210           the up/down buttons
30211
30212 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
30213
30214         * ImageListConverter.cs: Implemented
30215
30216 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
30217
30218         * MonthCalendar.cs: Wired in NumericUpDown control for year
30219
30220 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
30221
30222         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
30223           DoubleClick events, since they are not meant to be fired.
30224
30225 2005-06-09  Peter Bartok  <pbartok@novell.com>
30226
30227         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
30228           Jonathan's standalone controls into MWF, implemented missing
30229           events, attributes and methods; added xxxAccessible classes
30230         * AccessibleObject.cs: Made fields internal so other classes
30231           can change them if needed
30232
30233 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
30234
30235         * UpDownBase.cs: Complete implementation
30236         * NumericUpDown.cs: Complete implementation
30237         * DomainUpDown.cs: Complete implementation
30238
30239 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
30240
30241         * DataGridTextBoxColumn.cs: drawing fixes
30242         * DataGridCell.cs: fixes ToString method to match MSNet
30243         * DataGridTableStyle.cs: fixes
30244         * DataGridBoolColumn.cs: fixes, drawing
30245         * DataGridDrawingLogic.cs: fixes, new methods
30246         * DataGridTextBox.cs: Keyboard and fixes
30247         * DataGrid.cs:
30248                 - Keyboard navigation
30249                 - Scrolling fixes
30250                 - Row selection (single, multiple, deletion, etc)
30251                 - Lots of fixes
30252         
30253 2005-06-07  Jackson Harper  <jackson@ximian.com>
30254
30255         * ThemeWin32Classic.cs: Clear the background area when drawing
30256         buttons.
30257
30258 2005-06-06  Peter Bartok  <pbartok@novell.com>
30259
30260         * ImageListStreamer.cs: Fixed signature for GetData
30261         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
30262         * ComboBox.cs:
30263           - Added missing ChildAccessibleObject class
30264           - Added missing OnXXXFocus overrides, switched to using those
30265             instead of the event handler
30266         * Control.cs:
30267           - Added Parent property for ControlAccessibleObject
30268           - Fixed signatures
30269           - Fixed attributes
30270           - Added ResetBindings()
30271         * ListBindingConverter.cs: Implemented some methods
30272         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
30273         * ImageList.cs: Implemented basic handle scheme, removed TODOs
30274         * ContainerControl.cs: Fixed signature, now subscribing to the
30275           ControlRemoved event instead of overriding the handler, LAMESPEC
30276         * CurrencyManager.cs: Added missing attribute
30277         * MonthCalendar.cs: Added missing properties
30278
30279 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
30280
30281         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
30282         
30283 2005-06-06  Gaurav Vaish and Ankit Jain
30284
30285         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
30286         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
30287         
30288 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
30289
30290         * Control.cs: fixes CreateParams Width / Height.
30291
30292 2005-06-05  Peter Bartok  <pbartok@novell.com>
30293
30294         * Win32DnD.cs: Removed compilation warnings
30295
30296 2005-06-05  Peter Bartok  <pbartok@novell.com>
30297
30298         * Control.cs (CreateParams): Since we don't know if one of the
30299           properties we use is overridden, lets make sure if we fail accessing
30300           we continue with a backup plan
30301
30302 2005-06-05  Peter Bartok  <pbartok@novell.com>
30303
30304         * Win32DnD.cs:
30305           - Removed debug output
30306           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
30307             struct
30308           - Plugged resource leak
30309         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
30310           MS size
30311
30312 2005-06-05  Peter Bartok  <pbartok@novell.com>
30313
30314         * XplatUIWin32.cs: Removed DnD code
30315         * Win32DnD.cs: Implemented drop source and drop target functionality
30316
30317 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
30318
30319         * UpDownBase.cs: remove duplicate addition of event, enable some code
30320         that was commented out.
30321         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
30322         Validate input when a key is pressed. It works fine now for every
30323         combination of Hexadecimal. Only missing some drawing love when sharing
30324         space with other controls.
30325
30326 2005-06-04  Peter Bartok  <pbartok@novell.com>
30327
30328         * Control.cs:
30329           - We need to pass a window for DragDrop, so enable callback events
30330           - Added DnD callback events when being a DragSource
30331         * XplatUI.cs (StartDrag): Added window handle argument
30332         * XplatUIDriver.cs (StartDrag): Added window handle argument
30333         * QueryContinueDragEventArgs: Made fields internally accessible so
30334           drivers can set them
30335         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
30336           can set them
30337
30338 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
30339
30340         * DataGridTextBoxColumn.cs: column text editing
30341         * DataGridTableStyle.cs: Respect columns styles created by the user
30342         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
30343         * DataGridBoolColumn.cs: bool column editing
30344         * DataGrid.cs: fixes to scrolling, properties, etc
30345         * DataGridTextBox.cs: handle keyboard
30346         * DataGridColumnStyle.cs: fixes
30347
30348 2005-06-02  Jackson Harper  <jackson@ximian.com>
30349
30350         * ImageListStreamer.cs: Somewhat broken implementation of
30351         GetObjectData. The RLE needs some work to match MS properly.
30352
30353 2005-06-02  Jackson Harper  <jackson@ximian.com>
30354
30355         * X11Dnd.cs: Attempting to keep at least one file in MWF
30356         monostyled.
30357
30358 2005-06-02  Peter Bartok  <pbartok@novell.com>
30359
30360         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
30361           that way
30362
30363 2005-06-02  Peter Bartok  <pbartok@novell.com>
30364
30365         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
30366         * XplatUI.cs: Added DoDragDrop() method
30367         * XplatUIDriver.cs: Added DoDragDrop() method
30368
30369 2005-06-02  Jackson Harper  <jackson@ximian.com>
30370
30371         * Splitter.cs: Implement BorderStyle.
30372
30373 2005-06-02  Jackson Harper  <jackson@ximian.com>
30374
30375         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
30376         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
30377         X11 using XDND.
30378
30379 2005-06-02  Peter Bartok  <pbartok@novell.com>
30380
30381         * DataObject.cs:
30382           - Added Data setter
30383           - Fixed broken insertion code for SetData, now also
30384             overwrites any existing entry of the same format name
30385         * Hwnd.cs: Added list of pointers that automatically gets
30386           freed when the window is disposed
30387         * XplatUI.cs: Call driver initialization method when loading
30388           a driver
30389         * Control.cs:
30390           - OnDragLeave takes EventArgs, not DragEventArgs
30391           - Added setting of WS_EX_ACCEPTFILES style when dropping is
30392             supported
30393           - Forces style update when drop state changes
30394         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
30395           not perfect since we cannot (yet) call the IDataObject.GetData()
30396           method, we keep getting 0x80004005 error, dunno why)
30397
30398 2005-06-02  Peter Bartok  <pbartok@novell.com>
30399
30400         * DragEventArgs.cs: Make fields internal so we can cache the
30401           object and re-set the fields from XplatUI
30402
30403 2005-06-02  Jackson Harper  <jackson@ximian.com>
30404
30405         * Control.cs: Add some internal methods so the DnD subsystem can
30406         raise DnD events. Also call into the driver when AllowDrop is set.
30407         * XplatUI.cs:
30408         * XplatUIDriver.cs: New method for setting whether or not a window
30409         is allowed to accept drag and drop messages.
30410                 
30411 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
30412         
30413         * ScrollBar.cs: Make sure that values sent in Scroll events
30414         are always between Maximum and Minimum.
30415
30416 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
30417
30418         * Menu.cs: Call MenuChanged when menuitem visibility has been
30419         changed.
30420         * MenuItem.cs: Rebuild menu when item is (not) visible.
30421         * MainMenu.cs: MainMenu has special MenuChanged.
30422         * Theme.cs: Caption and FrameBorderSize are not fixed.
30423         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
30424         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
30425         * XplatUIX11.cs,
30426         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
30427         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
30428
30429 2005-05-30  Jackson Harper  <jackson@ximian.com>
30430
30431         * DataFormat.cs: We can't statically initialize this stuff because
30432         it calls into the xplatui and could create a loop. So we lazy init
30433         it.
30434
30435 2005-05-28  Jackson Harper  <jackson@ximian.com>
30436
30437         * Control.cs: Proper implementation of Product(Name/Version).
30438
30439 2005-05-27  Jackson Harper  <jackson@ximian.com>
30440
30441         * DataObject.cs: Dont crash if no data is found.
30442
30443 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
30444         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
30445                 as per status page, guessing it should be set to true
30446
30447 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
30448
30449         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
30450         * DataGridTableStyle.cs: set proper formatting text, def header text
30451         * ThemeWin32Classic.cs: new themable paramaters
30452         * DataGridBoolColumn.cs: paint check box, get data, fixes
30453         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
30454         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
30455         * DataGridColumnStyle.cs: fixes
30456         * Theme.cs: new themable paramaters
30457                 
30458 2005-05-26  Peter Bartok  <pbartok@novell.com>
30459
30460         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
30461
30462 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
30463         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
30464
30465 2005-05-24  Peter Bartok  <pbartok@novell.com>
30466
30467         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
30468           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
30469           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
30470           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
30471           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
30472           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
30473           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
30474           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
30475           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
30476           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
30477           missing attributes, etc
30478         * DataGridPreferredColumnWidthTypeConverter.cs: Added
30479
30480 2005-05-24  Peter Bartok  <pbartok@novell.com>
30481
30482         * Help.cs: Added, implemented trivial functions, throws up MessageBox
30483           when user tries to get help
30484         * DataObject.cs, DataFormats.cs, LinkArea.cs,
30485           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
30486           to suppress warnings
30487         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
30488           avoid unreachable code warning
30489
30490 2005-05-20  Peter Bartok  <pbartok@novell.com>
30491
30492         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
30493
30494 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
30495
30496         * DataGridTextBoxColumn.cs: Basic painting methods
30497         * DataGridTableStyle.cs: Set table style in the column
30498         * ThemeWin32Classic.cs: Use Theme for colors
30499         * DataGridDrawingLogic.cs: Implement more drawing
30500         * DataGrid.cs: drawing, theming, enhacements, fixes
30501         * DataGridColumnStyle.cs: fixes, drawing
30502         * Theme.cs: theming for Datagrid
30503
30504 2005-05-20  Peter Bartok  <pbartok@novell.com>
30505
30506         * Cursor.cs: Implemented GetObjectData() method
30507
30508 2005-05-20  Peter Bartok  <pbartok@novell.com>
30509
30510         * Cursors.cs: Added setting of cursor name
30511         * Cursor.cs:
30512           - Implemented constructors
30513           - Implemented Draw and DrawStretched
30514           - Implemented Current property
30515           - Implemented == and != operators
30516           - Implemented Dispose()
30517           - Implemented ToString
30518           - Added missing attributes
30519         * XplatUIX11.cs:
30520           - Added missing reset for OverrideCursor when DoEvents is called
30521           - Fixed creation of cursor, logic was wrong
30522         * XplatUIWin32.cs:
30523           - Added missing reset for OverrideCursor when DoEvents is called
30524           - Fixed creation of cursor, bit arrays were swapped
30525         * Clipboard.cs: Removed obsolete MonoTODO attribute
30526
30527 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
30528
30529         * ComboBox.cs: fixes OnSelectedItemChanged
30530         * ControlBindingsCollection.cs: fixes item range check
30531
30532 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
30533
30534         * UpDownBase.cs:
30535                 - Calc preferred height properly
30536                 - Implement missing properties
30537                 
30538         * NumericUpDown.cs: Implement missing events
30539
30540 2005-05-19  Jackson Harper  <jackson@ximian.com>
30541
30542         * TabControl.cs: New method that resizes the tab pages before
30543         redrawing them. This as needed as the control is double buffered
30544         and sizing will not be recalculated unless ResizeTabPages is
30545         called.
30546         * TabPage.cs: Set base.Text instead of Text in the constructor so
30547         that UpdateOwner does not get called. Use the new Redraw method of
30548         TabControl instead of Refresh so the sizing is recalculated.
30549         * ThemeWin32Classic.cs: Draw the text for button tabs.
30550
30551 2005-05-19  Jackson Harper  <jackson@ximian.com>
30552
30553         * Control.cs: Paint control background images. Fix typo where
30554         PaintControlBackground was not getting called correctly.
30555
30556 2005-05-19  Peter Bartok  <pbartok@novell.com>
30557
30558         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
30559           I can investigate, apparently I broke FileDialog
30560
30561 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
30562
30563         * AxHost.cs: Some simple properties.
30564         * Control.cs: window must be accessible after ctor.
30565         * Form.cs: Added TransparencyKey property.
30566         * TextBoxBase.cs: Implemented Clear. Text property can be null.
30567         * XplatUIWin32.cs: SetBorderStyle implemented.
30568
30569 2005-05-18  Peter Bartok  <pbartok@novell.com>
30570
30571         * DataObject.cs: Entries are not global but particular to the
30572           DataObject, now it behaves that way
30573         * XplatUIWin32.cs: Implemented Clipboard methods
30574         * Clipboard.cs: Implemented
30575         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
30576         * XplatUIOSX.cs: Updated to final clipboard prototypes
30577         * XplatUIX11.cs: Implemented Clipboard methods
30578         * XplatUIDriver.cs: Updated to final clipboard prototypes
30579         * XplatUIStructs.cs:
30580           - Added BITMAPINFOHEADER struct
30581           - Added ClipboardFormats enum
30582         * X11Structs.cs:
30583           - Added ClipboardStruct
30584           - Added Atom enum items for clipboard types
30585           - Fixed atom types for Selection event structures
30586         * DataFormats.cs:
30587           - Added internal properties and methods for drivers to enumerate
30588             all known formats
30589           - Switched initialization method to allow drivers to assign their
30590             own IDs even for the MS predefined clipboard IDs
30591         * XplatUI.cs: Updated to final clipboard interface
30592
30593 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
30594         * PropertyGridView.cs: Fixed compiler warnings.
30595
30596 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
30597         * PropertyGrid.cs: Added some event calls
30598         * PropertyGridView.cs: Change drawing code to use double buffering
30599         * PropertyGridTextBox.cs: Changed Text property name
30600         * GridItem.cs: Added Bounds property.
30601         * GridEntry.cs: Added Bounds property.
30602
30603 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
30604
30605         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
30606         since GetType() may not return the correct type if the object is
30607         a remoting proxy.
30608
30609 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
30610
30611         * TreeNodeCollection.cs: fixes get/set item ranges
30612         
30613 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
30614
30615         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
30616                 
30617 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
30618
30619         * ComboBox.cs: Fix item range comparation
30620         * ListView.cs: Fix item range comparation
30621
30622 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
30623
30624         * FontDialog.cs:
30625           - Clear example panel when OnPaint is called
30626           - Better solution for displaying the example panel text
30627           - Select default indexes in the ListBoxes
30628
30629 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
30630
30631         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
30632
30633 2005-05-11  Peter Bartok  <pbartok@novell.com>
30634
30635         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
30636         * SelectionRangeConverter.cs: Implemented
30637         * PropertyGrid.cs: Fixed attribute value
30638         * Control.cs:
30639           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
30640           - Added Sebastien Pouliot's CAS Stack Propagation fixes
30641         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
30642           that's common to all drivers. First methods to go there are
30643           Sebastien Pouliot's CAS Stack Propagation helper methods
30644         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
30645           Sebastien Pouliot for CAS Stack Propagation
30646
30647 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
30648
30649         * OSXStructs.cs:
30650           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
30651
30652 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
30653
30654         * DataGridTextBoxColumn.cs: fixed some members
30655         * GridColumnStylesCollection.cs: indexed column is case insensitive
30656         * DataGridTableStyle.cs: fixes
30657         * ThemeWin32Classic.cs: add new theme parameter
30658         * Theme.cs: add new theme parameter
30659         * DataGridDrawingLogic.cs: Datagrid's drawing logic
30660         * DataGrid.cs: fixes, new internal properties, etc.
30661         * DataGridColumnStyle.cs: allows to set grid value
30662         *
30663
30664 2005-05-10  Peter Bartok  <pbartok@novell.com>
30665
30666         * AccessibleObject.cs:
30667           - Removed MonoTODO attribute on help, method is correct
30668           - Fixed Bounds property
30669         * AxHost.cs: Moved MonoTODO
30670         * ButtonBase.cs: Now setting AccessibleObject properties
30671         * RadioButton.cs: Setting proper AccessibleObject role
30672         * CheckBox.cs: Setting proper AccessibleObject role
30673         * ControlBindingsCollection.cs: Added properties, methods and attributes
30674         * DataFormats.cs: Fixed awkward internal API, and changed to enable
30675           userdefined DataFormats.Format items as well
30676         * ListControl.cs: Removed data_member from the public eye
30677         * OpenFileDialog.cs:
30678           - Made class sealed
30679           - Added missing attributes
30680         * SaveFileDialog.cs: Added missing attributes
30681         * ImageListStreamer.cs: Fixed code that caused warnings
30682         * LinkLabel.cs: Removed unreachable code
30683         * TreeView.cs: Fixed code that caused warnings
30684         * PropertyGridView.cs: Fixed code that caused warnings
30685         * GridColumnStylesCollection.cs: Added missing attributes
30686         * GridTableStylesCollection: Added missing attribute
30687         * PropertyManager: Added .ctor
30688         * SecurityIDType: Added
30689         * DataObject.cs: Implemented class
30690         * LinkArea.cs: Added missing attribute
30691
30692 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
30693
30694         * RadioButton.cs: call base method to allow to fire OnClick event
30695         * UpDownBase.cs: OnMouseUp call base method
30696         * CheckedListBox.cs: call base method before returning
30697         * TrackBar.cs: call base method before returning
30698         
30699
30700 2005-05-10  Peter Bartok  <pbartok@novell.com>
30701
30702         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
30703           for messages
30704
30705 2005-05-10  Peter Bartok  <pbartok@novell.com>
30706
30707         * DataFormats.cs: Implemented
30708         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
30709           XplatUIX11.cs: Added Clipboard APIs
30710         * XplatUIWin32.cs: Implemented Clipboard APIs
30711         * FolderBrowserDialog.cs: Added missing event, attributes
30712
30713 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
30714
30715         * CheckBox.cs: call base method to allow to fire OnClick event
30716
30717 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
30718
30719         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
30720
30721 2005-05-06  Peter Bartok  <pbartok@novell.com>
30722
30723         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
30724         * Screen.cs: Implemented
30725         * HelpNavigator.cs: Added
30726         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
30727           property
30728         * HelpProvider.cs: Implemented all we can do until we have a CHM
30729           help library (which means that "What's This" does work now)
30730
30731 2005-05-06  Jackson Harper  <jackson@ximian.com>
30732
30733         * XplatUIX11.cs: Fix waking up the main loop.
30734                 
30735 2005-05-05  Peter Bartok  <pbartok@novell.com>
30736
30737         * XplatUI.cs: Updated revision
30738         * Form.cs: Removed enless loop
30739         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
30740         * Label.cs (OnPaint): Added call to base.OnPaint()
30741         * ToolTip.cs: Made ToolTipWindow reusable for other controls
30742         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
30743         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
30744         * AxHost.cs: Added
30745         * ButtonBase.cs: Moved base.OnPaint() call to end of method
30746         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
30747           to ToolTip.ToolTipWindow for drawing and size methods; this allows
30748           reuse of ToolTipWindow by other controls
30749         * SizeGrip.cs: Moved base.OnPaint() call to end of method
30750         * XplatUIX11.cs: Now clipping drawing area (experimental)
30751         * PictureBox.cs: Moved base.OnPaint() call to end of method
30752         * Theme.cs: Fixed ToolTip abstracts to match new format
30753         * ErrorProvider.cs: Implemented
30754
30755 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
30756
30757         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
30758         * LinkLabel.cs:
30759                 - Adds cursors
30760                 - Handles focus
30761                 - Implements LinkBehavior
30762                 - Fixes many issues
30763
30764 2005-05-03  Jackson Harper  <jackson@ximian.com>
30765
30766         * ListView.cs: Calculate the scrollbar positioning on resize and
30767         paint, so they get put in the correct place.
30768
30769 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
30770
30771         * ColorDialogs.cs: The small color panels are now handled by
30772           SmallColorControl. This fixes drawing of the focus rectangle
30773           and adds a 3D border.
30774
30775 2005-05-03  Peter Bartok  <pbartok@novell.com>
30776
30777         * Control.cs: Modified version of Jonathan Chamber's fix for
30778           double-buffering
30779
30780 2005-05-03  Jackson Harper  <jackson@ximian.com>
30781
30782         * ListView.cs: Remove redraw variable. Control now handles whether
30783         or not a redraw needs to be done, and will only raise the paint
30784         event if redrawing is needed.
30785
30786 2005-05-03  Jackson Harper  <jackson@ximian.com>
30787
30788         * Splitter.cs: No decorations for the splitter form. Cache the
30789         hatch brush.
30790
30791 2005-05-03  Jackson Harper  <jackson@ximian.com>
30792
30793         * TreeView.cs: Use dashed lines to connect nodes. Use the
30794         ControlPaint method for drawing the focus rect instead of doing
30795         that in treeview.
30796
30797 2005-05-02  Peter Bartok  <pbartok@novell.com>
30798
30799         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
30800
30801 2005-04-29  Jackson Harper  <jackson@ximian.com>
30802
30803         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
30804         entire image buffer. Just clear the clipping rectangle.
30805
30806 2005-04-29  Jackson Harper  <jackson@ximian.com>
30807
30808         * ThemeWin32Classic.cs: Don't draw list view items that are
30809         outside the clipping rectangle.
30810
30811 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
30812
30813         * ListBox.cs: added horizontal item scroll
30814
30815 2005-04-29  Jackson Harper  <jackson@ximian.com>
30816
30817         * ThemeWin32Classic.cs: Remove some old debug code that was
30818         causing flicker with the new double buffering code.
30819
30820 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
30821
30822         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
30823         behave like combobox and comboboxlist (still not sure if this is
30824         correct though).
30825
30826 2005-04-28  Jackson Harper  <jackson@ximian.com>
30827
30828         * ThemeWin32Classic.cs: Don't fill the middle of progress
30829         bars. This fills areas outside of the clip bounds that don't need
30830         to be filled.
30831
30832 2005-04-28  Jackson Harper  <jackson@ximian.com>
30833
30834         * Control.cs: Don't expose functionality to touch the image buffers.
30835         * ProgressBar.cs:
30836         * ListView.cs: We do not need to (and no longer can) manipulate
30837         the image buffers directly. All of this is handled by Control.
30838
30839 2005-04-28  Peter Bartok  <pbartok@novell.com>
30840
30841         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
30842           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
30843           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
30844
30845 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
30846
30847         * Combobox:
30848                 - Adjust control's height for non-simple comboboxes (bug fix)
30849                 - Remove dead code
30850         * MenuAPI.cs: remove unused var
30851         * ScrollBar.cs: remove unsed var
30852                  
30853         * ListBox.cs: unselect items when clearing
30854
30855 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
30856
30857         * ListControl.cs: honors OnPositionChanged and default Selected Item
30858         * ListBox.cs: unselect items when clearing
30859
30860 2005-04-27  Jackson Harper  <jackson@ximian.com>
30861
30862         * X11Keyboard.cs: Initialize a default keyboard and give a warning
30863         if a "correct" keyboard is not found. This will make us not crash,
30864         but might give some users bad keyboard layouts...seems to be the
30865         same thing rewind does.
30866
30867 2005-04-27  Jackson Harper  <jackson@ximian.com>
30868
30869         * BindingManagerBase.cs: Attach the current/position changed
30870         handlers to their respective events.
30871
30872 2005-04-27  Jackson Harper  <jackson@ximian.com>
30873
30874         * Control.cs: Make sure that the first WM_PAINT does a full draw,
30875         not just a blit.
30876         * ThemeWin32Classic.cs: Don't fill the background for picture
30877         boxes. This could overright user drawing.
30878         * ComboBox.cs: Just fill the clipping rect not the entire client
30879         rect when drawing the background. This prevents pieces of the
30880         image buffer from getting overwritten and is theoretically faster.
30881
30882 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
30883
30884         * ComboBox.cs: Databinding support fixes, fire missing events
30885         * ListControl.cs: implement missing methods and properties, fixes
30886         * ThemeWin32Classic.cs: Databiding support on Drawing
30887         * CheckedListBox.cs: Databinding support fixes, fire missing events
30888         * ListBox.cs: Databinding support fixes, fire missing events
30889         
30890 2005-04-25  Peter Bartok  <pbartok@novell.com>
30891
30892         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
30893
30894 2005-04-25  Jackson Harper  <jackson@ximian.com>
30895
30896         * TreeView.cs: Use the horizontal scrollbars height not width when
30897         determining how much of the client area is available.
30898
30899 2005-04-25  Jackson Harper  <jackson@ximian.com>
30900
30901         * Control.cs: Double buffering is handled differently now. As per
30902         the spec, the extra buffer is created in the WM_PAINT message and
30903         passed down to the control's drawing code.
30904         * GroupBox.cs:
30905         * Label.cs:
30906         * CheckBox.cs:
30907         * ProgressBar.cs:
30908         * RadioButton.cs:
30909         * ColorDialog.cs:
30910         * ComboBox.cs:
30911         * PropertyGridView.cs:
30912         * UpDownBase.cs:
30913         * MessageBox.cs:
30914         * MenuAPI.cs:
30915         * ListView.cs:
30916         * ButtonBase.cs:
30917         * SizeGrip.cs:
30918         * ScrollBar.cs:
30919         * ListBox.cs:
30920         * TrackBar.cs:
30921         * ToolBar.cs:
30922         * PictureBox.cs:
30923         * DateTimePicker.cs:
30924         * StatusBar.cs:
30925         * TreeView.cs: Update to new double buffering system.
30926         * MonthCalendar.cs: Uncomment block, as Capture is now
30927         working. Update to new double buffering
30928         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
30929         * PaintEventArgs.cs: New internal method allows us to set the
30930         graphics object. This is used for double buffering.
30931         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
30932         rectangle. The internal paint_area var has been removed from
30933         StatusBar. The clipping rect should be used instead.
30934         * Theme.cs: Give the PictureBox drawing method a clipping rect.
30935         * TabPage.cs: The RefreshTabs method was removed, so just call the
30936         tab controls Refresh method now.
30937         * TabControl.cs: Update to new double buffering. Make sure the
30938         handle is created before sizing the tab pages, otherwise we will
30939         get stuck in a loop.
30940
30941 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
30942
30943         * LinkLabel.cs: Fix typo, bug #74719; patch
30944           from Borja Sanchez Zamorano
30945
30946 2005-04-22  Jackson Harper  <jackson@ximian.com>
30947
30948         * TreeNode.cs: Implement Handle stuff.
30949         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
30950
30951 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
30952
30953         * DataGridTextBoxColumn.cs: call base constructors, fixes
30954         * GridColumnStylesCollection.cs: missing events, methods, and functionality
30955         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
30956         * DataGridTableStyle.cs: implements create default column styles
30957         * DataGridBoolColumn.cs: which types can handle
30958         * DataGrid.cs: missing methods, fixes, new functionality
30959         * DataGridColumnStyle.cs: fixes
30960
30961 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
30962         * FolderBrowserDialog.cs:
30963         - Use a thread to fill the TreeView
30964         - Adjusted some sizes
30965
30966 2005-04-19  Peter Bartok  <pbartok@novell.com>
30967
30968         * LinkLabel.cs: (Re-)create the pieces when setting the Text
30969           property. Fixes #74360.
30970
30971 2005-04-19  Jackson Harper  <jackson@ximian.com>
30972
30973         * XEventQueue.cs: Lock when getting the lockqueue size.
30974         * PictureBox.cs: Call base OnPaint
30975         
30976 2005-04-19  Peter Bartok  <pbartok@novell.com>
30977
30978         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
30979           messages were no longer being processed (this broke BeginInvoke)
30980
30981           
30982 2005-04-18  Jackson Harper  <jackson@ximian.com>
30983
30984         * TreeView.cs: buglet that caused node images to get drawn
30985         regardless of whether or not they were in the clipping rectangle.
30986
30987 2005-04-18  Jackson Harper  <jackson@ximian.com>
30988
30989         * CurrencyManager.cs: There are four rules for GetItemProperties:
30990         - If the type is an array use the element type of the array
30991         - If the type is a typed list, use the type
30992         - If the list contains an Item property that is not an object, use
30993         that property
30994         - use the first element of the list if there are any elements in
30995         the list.
30996         
30997 2005-04-17  Jackson Harper  <jackson@ximian.oom>
30998
30999         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
31000         click. This handles offsets for scrolling properly and reduces
31001         memory. Also fixed GetNode to not offset now that TopNode works
31002         properly.
31003         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
31004         
31005 2005-04-17  Jackson Harper  <jackson@ximian.com>
31006
31007         * CursorConverter.cs: Initial implementation.
31008
31009 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
31010
31011         * ListControl.cs: work towards complex data binding support on ListControl
31012         * CurrencyManager.cs: work towards complex data binding support on ListControl
31013         * ListBox.cs: work towards complex data binding support on ListControl
31014
31015
31016 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
31017
31018         * GridTableStylesCollection.cs: fixes name and constructor
31019         * DataGridTableStyle.cs: fixes
31020         * DataGridBoolColumn.cs: fixes names and constructors
31021         * DataGrid.cs: define methods and properties. Some init implementations
31022         * DataGridCell.cs: define methods and properties. Some init implementations
31023         * GridTablesFactory.cs: Define methods and properties
31024
31025 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
31026
31027         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
31028         graphics port changes.  We still want the coordinates in global screen
31029         coordinates.
31030
31031 2005-04-14  Jackson Harper  <jackson@ximian.com>
31032
31033         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
31034         check plus minus or checkbox clicks unless those features are enabled.
31035
31036 2005-04-14  Jackson Harper  <jackson@ximian.com>
31037
31038         * TreeView.cs: Add methods for setting the top and bottom visible
31039         nodes. TreeNode::EnsureVisible uses these methods.
31040         * TreeNode.cs: Implement EnsureVisible
31041
31042 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
31043
31044         * Form.cs: Pospone menu assignation if the window has not been created yet
31045         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
31046         size and position
31047
31048 2005-04-12  Jackson Harper  <jackson@ximian.com>
31049
31050         * TreeView.cs: Set the TopNode properly when scrolling
31051         occurs. This has the added benifit of reducing the amount of
31052         walking that needs to be done when drawing. Also removed an old
31053         misleading TODO.
31054         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
31055         
31056 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
31057
31058         * Timer.cs: fixes interval setting when the timer is already enabled
31059         
31060 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
31061
31062         * FolderBrowserDialog.cs: First approach
31063
31064 2005-04-09  Peter Bartok  <pbartok@novell.com>
31065
31066         * FolderBrowserDialog: Added
31067
31068 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
31069
31070         * LinkLabel.cs: move drawing code into the theme
31071         * ThemeWin32Classic.cs: drawing code and painting background bugfix
31072         * Theme.cs: define DrawLinkLabel method
31073
31074 2005-04-05  Jackson Harper  <jackson@ximian.com>
31075
31076         * BindingContext.cs: Use weak references so these bad actors don't
31077         stay alive longer then they need to.
31078
31079 2005-04-05  Jackson Harper  <jackson@ximian.com>
31080
31081         * ListControl.cs: Basic implementation of complex databinding.
31082         * ComboBox.cs:
31083         * ListBox.cs: Add calls to ListControl databinding methods.
31084
31085 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
31086
31087         * FileDialog.cs:
31088           - Don't change PopupButtonState to Normal when the
31089             PopupButton gets pressed several times.
31090           - Renamed ButtonPanel to PopupButtonPanel
31091
31092 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
31093
31094         * ColorDialog.cs: Use cached objects instead of creating them
31095         * LinkLabel.cs: Use cached objects instead of creating them
31096         * Splitter.cs: Use cached objects instead of creating them
31097         * FontDialog.cs: Use cached objects instead of creating them
31098         * PropertyGridView.cs: Use cached objects instead of creating them
31099         * MessageBox.cs: Use cached objects instead of creating them
31100         * FileDialog.cs: Use cached objects instead of creating them
31101         * ThemeWin32Classic.cs: Use cached objects instead of creating them
31102         * TreeView.cs: Use cached objects instead of creating them
31103         
31104 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
31105
31106         * Control.cs: use Equals to compare the font since no == op
31107         * ScrollBar.cs: use Equals to compare the font since no == op
31108
31109 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
31110
31111         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
31112
31113 2005-04-01  Jackson Harper  <jackson@ximian.com>
31114
31115         * Binding.cs: Implement IsBinding.
31116         * BindingManagerBase.cs:
31117         * PropertyManager.cs:
31118         * CurrencyManager.cs: Add IsSuspended property.
31119
31120 2005-04-01  Jackson Harper  <jackson@ximian.com>
31121
31122         * Binding.cs: Had some IsAssignableFrom calls backwards.
31123
31124 2005-04-01  Jackson Harper  <jackson@ximian.com>
31125
31126         * Binding.cs: Handle null data members when pulling data.
31127         * PropertyManager.cs: Handle the data member being a property that
31128         does not exist.
31129
31130 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
31131
31132         * DataGridTextBoxColumn.cs: fixes signature
31133         * DataGrid.cs: calls right constructor
31134
31135 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
31136
31137         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
31138         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
31139         * GridTableStylesCollection.cs: implements GridTableStylesCollection
31140         * DataGridTableStyle.cs: implements DataGridTableStyle
31141         * DataGridBoolColumn.cs: implements DataGridBoolColumn
31142         * DataGridTextBox.cs: implements DataGridTextBox
31143         * DataGridColumnStyle.cs: implements DataGridColumnStyle
31144
31145 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
31146
31147         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
31148
31149 2005-03-29  Peter Bartok  <pbartok@novell.com>
31150
31151         * Application.cs:
31152           - Properly implemented CompanyName property
31153           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
31154             returns a path that includes CompanyName, ProductName and
31155             Version (fixes bug #70330)
31156
31157 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
31158
31159         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
31160           fixes bug #72588.
31161
31162 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
31163
31164         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
31165         
31166           - Added ReadOnly CheckBox
31167           - Further refactoring: moved some code from Open-/SaveFileDialog
31168             to FileDialog
31169
31170 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
31171
31172         * OpenFileDialog.cs: Fixed CheckFileExists
31173         * FileDialog.cs:
31174           Moved FileView and DirComboBox outside FileDialog class.
31175           They can now be used outside FileDialog
31176
31177 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
31178
31179         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
31180         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
31181
31182 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
31183
31184         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
31185           - Added missing CreatePrompt property in SaveDialog
31186           - Overall SaveDialog handling should be better now
31187           - Added non standard ShowHiddenFiles property
31188           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
31189           - Added InitialDirectory and RestoreDirectory support
31190
31191 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
31192
31193         * FileDialog.cs: Made dirComboBox usable
31194
31195 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
31196
31197         * FileDialog.cs: Added Filter support (case sensitiv)
31198
31199 2005-03-24  Jackson Harper  <jackson@ximian.com>
31200
31201         * TabControl.cs: Need a couple more pixels for the lines.
31202
31203 2005-03-23  Jackson Harper  <jackson@ximian.com>
31204
31205         * TabControl.cs: Give the tab page focus when it is selected.
31206
31207 2005-03-23  Jackson Harper  <jackson@ximian.com>
31208
31209         * TabControl.cs: Account for the drawing of tabs borders when
31210         invalidating. If the slider was clicked dont do click detection on
31211         the tabs.
31212
31213 2005-03-23  Jackson Harper  <jackson@ximian.com>
31214
31215         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
31216
31217 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
31218
31219         * CategoryGridEntry.cs: Added
31220         * GridItem.cs: Added helper properties
31221         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
31222         * GridEntry.cs: Updated code for collection
31223         * PropertyGrid.cs: Cleaned up some formatting
31224         * PropertyGridView.cs: Added drop down functionality for enums.
31225         * GridItemCollection.cs: Added enumerator logic
31226         * PropertyGridEntry.cs: Added
31227
31228 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
31229
31230         * FileDialog.cs:
31231           - Removed unnecessary commented code
31232           - Fixed handling for entering the filename manually in the combobox
31233
31234 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
31235
31236         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
31237
31238 2005-03-18  Peter Bartok  <pbartok@novell.com>
31239
31240         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
31241           them being touching the border
31242
31243 2005-03-18  Peter Bartok  <pbartok@novell.com>
31244
31245         * TextControl.cs: Quick hack to center text better
31246
31247 2005-03-18  Peter Bartok  <pbartok@novell.com>
31248
31249         * ControlPaint.cs:
31250           - Don't throw NotImplemented exceptions, just print a notice once
31251             instead (requested by Miguel). This makes running existing SWF
31252             apps a bit easier
31253         * Control.cs:
31254           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
31255           - Added context menu trigger on right click
31256         * Panel.cs: Trigger invalidate on resize
31257         * StatusBar.cs:
31258           - Removed old double-buffer drawing
31259           - Added ResizeRedraw style to force proper update of statusbar
31260         * ListView.cs:
31261           - Removed debug output
31262         * ThemeWin32Classic.cs:
31263           - Fixed drawing of status bar, now draws Text property if there
31264             are no defined panels
31265
31266 2005-03-18  Jackson Harper  <jackson@ximian.com>
31267
31268         * ImageList.cs: When the image stream is set pull all the images
31269         from it.
31270         * ImageListStreamer.cs: Implement reading image list streams.
31271
31272 2005-03-18  Peter Bartok  <pbartok@novell.com>
31273
31274         * ThemeWin32Classic.cs (DrawPictureBox):
31275           - Fixed calculations for centered drawing
31276           - Fixed drawing for normal mode, not scaling the image on normal
31277
31278 2005-03-18  Peter Bartok  <pbartok@novell.com>
31279
31280         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
31281           textbox
31282         * FileDialog.cs:
31283           - Made Open/Save button the accept button for FileDialog
31284           - Tied the cancel button to the IButtonControl cancel button
31285           - Save/Open now properly builds the pathname
31286           - Now handles user-entered text
31287           - Preventing crash on right-click if no item is selected
31288           - Fixed Text property, now uses contents of textbox
31289           - Fixed SelectedText property, now just returns the text part that
31290             is selected in the text box
31291
31292 2005-03-18  Jackson Harper  <jackson@ximian.com>
31293
31294         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
31295         rect, make sure to de-adjust the interior rect after drawing the
31296         tab text.
31297
31298 2005-03-18  Peter Bartok  <pbartok@novell.com>
31299
31300         * MenuAPI.cs: Remove menu *before* executing selected action to
31301           prevent the menu from 'hanging around'
31302           
31303 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
31304
31305         * XplatUIOSX.cs: Implemented WorkingArea property
31306
31307 2005-03-17  Peter Bartok  <pbartok@novell.com>
31308
31309         * XplatUIX11.cs: Fixed menu coord calculations
31310         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
31311           for calculating offsets
31312
31313 2005-03-17  Peter Bartok  <pbartok@novell.com>
31314
31315         * Hwnd.cs: Do not consider menu presence for default client
31316           rectangle location/size
31317         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
31318           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
31319           translation functions
31320         * FileDialog.cs: Fixed (what I presume is a) typo
31321
31322 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
31323
31324         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
31325           X access (avoids X-Async errors)
31326
31327 2005-03-16  Jackson Harper  <jackson@ximian.com>
31328
31329         * TabControl.cs: Raise the SelectedIndexChanged event.
31330
31331 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
31332
31333         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
31334           - Removed vertical ToolBar and replaced it with a custom panel
31335             (desktop and home button already work)
31336           - Added Help button (some controls get resized or relocated then)
31337           - Draw correct text depending on Open or Save.
31338           - Fixed some typos...
31339
31340 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
31341
31342         * ScrollBar.cs:
31343           - Only change Maximum and Minimum when need it (bug fix)
31344
31345 2005-03-15  Peter Bartok  <pbartok@novell.com>
31346
31347         * Form.cs: Use Handle for icon, to trigger creation if
31348           the window does not yet exist
31349         * Control.cs:
31350           - CanSelect: Slight performance improvement
31351           - Focus(): Preventing possible recursion
31352           - Invalidate(): Removed ControlStyle based clear flag setting
31353           - WM_PAINT: fixed logic for calling OnPaintBackground
31354           - WM_ERASEBKGND: Fixed logic, added call to new driver method
31355             EraseWindowBackground if the control doesn't paint background
31356         * XplatUIWin32.cs:
31357           - Moved EraseWindowBackground() method to internal methods
31358           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
31359             is sent via SendMessage on BeginPaint call on Win32
31360         * XplatUIX11.cs:
31361           - Added EraseWindowBackground() method
31362           - No longer sends WM_ERASEBKGND on .Expose, but on call to
31363             PaintEventStart, which more closely matches Win32 behaviour
31364           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
31365           - Fixed SetFocus() to properly deal with client and whole windows
31366         * Hwnd.cs: Added ErasePending property
31367         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
31368         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
31369
31370 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
31371
31372         * XplatUIOSX.cs:
31373           - Fix hard loop when timers exist.
31374           - Fix bugs with middle and right click for 3 button mice.
31375
31376 2005-03-11  Peter Bartok  <pbartok@novell.com>
31377
31378         * XplatUIX11.cs:
31379           - get_WorkingArea: Need to call X directly, GetWindowPos only
31380             returns cached data now
31381           - Added sanity check to GetWindowPos hwnd usage
31382
31383 2005-03-11  Jackson Harper  <jackson@ximian.com>
31384
31385         * BindingManagerBase.cs: This method isn't used anymore as
31386         PullData now updates the data in the control.
31387
31388 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
31389
31390         * Form.cs: fixes menu drawing on X11
31391         * MenuAPI.cs:  fixes menu drawing on X11
31392
31393 2005-03-11  Peter Bartok  <pbartok@novell.com>
31394
31395         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
31396           from Jonathan Gilbert; should fix bug #73606
31397         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
31398           in Screen coordinates. Thanks, Jordi.
31399         * Form.cs: Added missing attribute
31400
31401 2005-03-11  Peter Bartok  <pbartok@novell.com>
31402
31403         * Form.cs:
31404           - Rudimentary Mdi support
31405           - Removed outdated FormParent code
31406           - Implemented lots of missing properties and methods, still missing
31407             transparency support
31408           - Added missing attributes
31409           - Implemented support for MaximumBounds
31410           - Added firing of various events
31411         * XplatUI.cs: Added SetIcon() method
31412         * XplatUIDriver.cs: Added SetIcon() abstract
31413         * XplatUIOSX.cs: Stubbed out SetIcon() method
31414         * XplatUIX11.cs:
31415           - Implemented SetIcon() support
31416           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
31417           - Switched to unix line endings
31418         * XplatUIWin32.cs:
31419           - Made POINT internal so for can access it as part of MINMAX
31420           - Implemented SetIcon() support
31421           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
31422             native Mdi support again, might have to go managed)
31423         * Control.cs: Now fires the StyleChanged event
31424         * MdiClient.cs: Added; still mostly empty
31425
31426 2005-03-10  Peter Bartok  <pbartok@novell.com>
31427
31428         * SaveFileDialog.cs: Added emtpy file
31429
31430 2005-03-08  Peter Bartok  <pbartok@novell.com>
31431
31432         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
31433           in turn triggers OnCreateContro) when creating a handle for the
31434           first time.
31435         * TextControl.cs: Fixed endless loop in certain cases when
31436           replacing the current selection
31437
31438 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
31439
31440         * ScrollBar.cs:
31441           - Honors NewValue changes in Scroll events allowing apps to change it
31442           - Adds First and Last Scroll events
31443           - Fixes Thumb events
31444
31445 2005-03-07  Peter Bartok  <pbartok@novell.com>
31446
31447         * Hwnd.cs: Added DefaultClientRectangle property
31448         * XplatUI.cs: Now using the X11 driver Where() method, which provides
31449           more detailed debug information
31450         * XplatUIX11.cs:
31451           - Fixed size-change feedback loop, where we would pull an old size
31452             off the queue and mistakenly change our window's size to an
31453             earlier value
31454           - Now compressing ConfigureNotify events, to reduce looping and
31455             redraw issues
31456         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
31457           is called
31458
31459 2005-03-07  Jackson Harper  <jackson@ximian.com>
31460
31461         * Binding.cs: Push data pushes from data -> property. Check if the
31462         property is readonly when attempting to set it.
31463
31464 2005-03-07  Jackson Harper  <jackson@ximian.com>
31465
31466         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
31467         instead of IsSubclassOf. Pulling data now sets the value on the
31468         control.
31469         * PropertyManager.cs:
31470         * CurrencyManager.cs: Just need to pull data when updating now,
31471         because PullData will set the value on the control.
31472
31473 2005-03-04  Jackson Harper  <jackson@ximian.com>
31474
31475         * Binding.cs: Implement data type parsing and converting on pulled
31476         data. TODO: Are there more ways the data can be converted?
31477
31478 2005-03-04  Jackson Harper  <jackson@ximian.com>
31479
31480         * Binding.cs: Support <Property>IsNull checks. Also bind to the
31481         controls Validating method so we can repull the data when the
31482         control loses focus.
31483
31484 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
31485
31486         * ColumnHeader.cs:
31487           - Fixes null string format
31488           
31489         * ListView.cs:
31490           - Adds enum type checks
31491           - Fixes redrawing and recalc need after changing some properties
31492           - Fixes on focus_item set after the event
31493           - Fixes adding columns after the control has been created
31494           
31495         * ThemeWin32Classic.cs:
31496           - Fixes CheckBox focus rectangle
31497           - Fixes ColumnHeader drawing
31498
31499
31500 2005-03-03  Jackson Harper  <jackson@ximian.com>
31501
31502         * Binding.cs: Bind to <Property>Changed events so we can detect
31503         when properties are changed and update the data.
31504
31505 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
31506
31507         * ImageList.cs:
31508           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
31509           - Fixes ImageList constructor with ImageList container
31510           - Fixes image scaling (wrong parameters at DrawImage)
31511
31512 2005-02-02  Jackson Harper  <jackson@ximian.com>
31513
31514         * Binding.cs: Make property searches case-insensitive. Eliminate
31515         some duplicated code.
31516
31517 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
31518
31519         * ComboBox.cs:
31520                 - Handle focus event
31521                 - Fix scrollbar events
31522                 - Discard highlighted item if remove it
31523                 - Fixes SelectedItem with strings
31524
31525 2005-03-01  Peter Bartok  <pbartok@novell.com>
31526
31527         * Control.cs:
31528           - Fixed Visible property, now follows (once again) parent chain
31529             to return false if any control in the chain is visible=false
31530           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
31531           - Fixed several places where is_visible instead of Visible was used
31532           - Implemented FIXME related to focus selection when setting focused
31533             control to be invisible
31534
31535         * XplatUIWin32.cs: Now using proper method to find out if window is
31536           visible. Thanks to Jordi for pointing it out
31537
31538 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
31539
31540         * ComboBox.cs: show/hide scrollbar instead of creating it
31541
31542 2005-02-27  Jackson Harper  <jackson@ximian.com>
31543
31544         * CurrencyManager.cs: Add PositionChanged stuff.
31545
31546 2005-02-27  Peter Bartok  <pbartok@novell.com>
31547
31548         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
31549         * XplatUIOSX.cs: Added GetMenuOrigin() stub
31550         * XplatUIWin32.cs: Implemented GetMenuOrigin()
31551         * XplatUIX11.cs:
31552           - Implemented GetMenuDC()
31553           - Implemented GetMenuOrigin()
31554           - Implemented ReleaseMenuDC()
31555           - Implemented generation of WM_NCPAINT message
31556           - Implemented generation and handling of WM_NCCALCSIZE message
31557         * Form.cs: Added debug helper message for Jordi's menu work
31558         * Hwnd.cs:
31559           - Modified ClientRect property; added setter, fixed getter to handle
31560             setting of ClientRect
31561           - Added MenuOrigin property
31562
31563 2005-02-26  Peter Bartok  <pbartok@novell.com>
31564
31565         * XplatUIX11.cs:
31566           - Destroys the caret if a window that's being destroyed contains it
31567           - Ignores expose events coming from the X11 queue for windows that
31568             already are destroyed
31569           - Now uses the proper variable for handling DestroyNotify, before we
31570             marked the wrong window as destroyed
31571           - Improved/added some debug output
31572
31573 2005-02-26  Peter Bartok  <pbartok@novell.com>
31574
31575         * X11Keyboard.cs: Fixes to work on 64bit systems
31576
31577 2005-02-26  Peter Bartok  <pbartok@novell.com>
31578
31579         * Control.cs:
31580           - Now calling OnHandleDestroyed from DestroyHandle()
31581             instead of Dispose()
31582           - Removed bogus call to controls.Remove() from DestroyHandle()
31583
31584 2005-02-26  Peter Bartok  <pbartok@novell.com>
31585
31586         * Control.cs: Properly destroy child windows when our handle is
31587           destroyed
31588
31589 2005-02-25  Peter Bartok  <pbartok@novell.com>
31590
31591         * XplatUI.cs:
31592           - Added 'DriverDebug' define to allow tracing XplatUI API calls
31593           - Alphabetized Static Methods and Subclasses
31594
31595         * XplatUIX11.cs:
31596           - Added XException class to allow custom handling of X11 exceptions
31597           - Created custom X11 error handler, tied into XException class
31598           - Added support for MONO_XEXCEPTIONS env var to allow the user
31599             to either throw an exception on X errors or continue running
31600             after displaying the error
31601           - Added handling of DestroyNotify message
31602           - Added handler for CreateNotify message (still disabled)
31603           - Improved (tried to at least) Where method to provide file and lineno
31604         * X11Structs.cs:
31605           - Added XErrorHandler delegate
31606           - Added XRequest enumeration (to suppor translation of errors)
31607
31608 2005-02-25  Jackson Harper  <jackson@ximian.com>
31609
31610         * PropertyManager.cs: Implement editing features
31611         * CurrencyManager.cs:
31612         * Binding.cs: First attempt at UpdateIsBinding
31613         * BindingManagerBase.cs: Call UpdateIsBinding before
31614         pushing/pulling data.
31615
31616 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
31617
31618         * MenuAPI.cs: Respect disabled items
31619         * ThemeWin32Classic.cs
31620                 - Caches ImageAttributes creation for DrawImageDisabled
31621                 - Fixes vertical menu line drawing
31622                 - Draws disabled arrows in disable menu items
31623
31624 2005-02-24  Peter Bartok  <pbartok@novell.com>
31625
31626         * Hwnd.cs:
31627           - Added UserData property to allow associating arbitrary objects
31628             with the handle
31629           - Fixed leak; now removing Hwnd references from static windows array
31630         * XplatUIWin32.cs:
31631           - Fixed Graphics leak in PaintEventEnd
31632           - Removed usage of HandleData, switched over to Hwnd class
31633         * HandleData.cs: Removed, obsoleted by Hwnd.cs
31634
31635 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
31636
31637         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
31638         * ScrollBar.cs: Fixes bug
31639         * TrackBar.cs: removes death code, clipping, mimize refreshes,
31640          keyboard navigation enhancements
31641
31642 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
31643
31644         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
31645         * GroupBox.cs: Add control styles
31646         * Label.cs: Add control styles
31647         * UpDownBase.cs: Add control styles
31648         * ListBox.cs: Add control styles
31649         * XplatUIWin32.cs: Fixes wrong parameter order
31650
31651
31652 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
31653
31654         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
31655
31656 2005-02-23  Jackson Harper  <jackson@ximian.com>
31657
31658         * PropertyManager.cs: Implement property binding. This doesn't
31659         seem to work yet though as (I think) there are some bugs in
31660         System.ComponentModel.PropertyDescriptor.
31661         * BindingContext.cs: Use new PropertyManager constructor.
31662
31663 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
31664
31665         * ProgressBar.cs: use clip region in ProgressBar
31666         * ThemeWin32Classic.cs: use clip region in ProgressBar
31667
31668 2004-02-22  Jackson Harper  <jackson@ximian.com>
31669
31670         * BindingsCollection.cs: Remove some debug code.
31671
31672 2005-02-22  Jackson Harper  <jackson@ximian.com>
31673
31674         * BindingContext.cs:
31675         * ControlBindingsCollection.cs:
31676         * CurrencyManager.cs:
31677         * Binding.cs:
31678         * BindingManagerBase.cs: Initial implementation
31679         * BindingsCollection.cs: Add an internal contains method that the
31680         BindingManagerBase uses to ensure bindings aren't added twice to
31681         the collection.
31682         * PropertyManager.cs: Stubbed out.
31683         * Control.cs:
31684         * ContainerControl.cs: Hook up databinding
31685         
31686 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
31687
31688         * XplatUIOSX.cs:
31689           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
31690           Fixed Invalidate/Update chain.
31691           Fixed tons of other minor bugs (this is almost a complete rewrite).
31692
31693 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
31694
31695         * ComboBox.cs: do subcontrol creation when the control is created
31696
31697 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
31698
31699         * Label.cs: fixes image drawing (image and imagelist)
31700         * ThemeWin32Classic.cs: cache brushes
31701         
31702 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
31703
31704         * Form.cs: Move menu drawing code to Theme class
31705         * ComboBox.cs: Move ComboBox drawing code to Theme class
31706         * MenuItem.cs: Move menu drawing code to Theme class
31707         * MenuAPI.cs: Move menu drawing code to Theme class
31708         * ThemeWin32Classic.cs: New methods
31709         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
31710         * ListBox.cs: Move Listbox drawing code to Theme class
31711         * Theme.cs: New methods
31712
31713 2005-02-20  Peter Bartok  <pbartok@novell.com>
31714
31715         * Control.cs:
31716           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
31717             only process mnemonics on those)
31718           - Fixed event sequence for key handling; first calling
31719             ProcessKeyEventArgs now
31720         * TextBoxBase.cs:
31721           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
31722             for processing non-character keys
31723           - Fixed WM_CHAR to generate proper event sequence before processing
31724         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
31725           generation
31726
31727 2005-02-19  Peter Bartok  <pbartok@novell.com>
31728
31729         * UserControl.cs: Added TextChanged event; added attributes
31730         * SizeGrip.cs: Implemented resizing and optional display of grip
31731         * Form.cs: Fixed attribute
31732         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
31733           Changed meaning of ScrollWindow bool argument; instead of the
31734           clear attribute (which will be true usually anyway), it gives the
31735           option of moving child controls as well.
31736         * XplatUIX11.cs:
31737           - Changed to match new ScrollWindow argument
31738           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
31739             now handles the implicit parent window a WM puts around us
31740         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
31741           to work)
31742         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
31743         * TreeView.cs: Adjusted to new ScrollWindow arguments
31744
31745 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
31746
31747         * Form.cs: Menu integration with non-client area
31748         * MenuItem.cs: Menu integration with non-client area
31749         * MenuAPI.cs: Menu integration with non-client area
31750
31751 2005-02-18  Peter Bartok  <pbartok@novell.com>
31752
31753         * MethodInvoker.cs: Added
31754         * MdiLayout.cs: Added
31755         * SendKeys.cs: Started implementation
31756         * ErrorIconAlignment.cs: Added
31757
31758 2005-02-18  Peter Bartok  <pbartok@novell.com>
31759
31760         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
31761         * Form.cs: Added handling for Menu-related Non-client messages
31762
31763 2005-02-17  Peter Bartok  <pbartok@novell.com>
31764
31765         * UpDownBase.cs: Fixed typo, compilation errors
31766         * DomainUpDown.cs: Fixed attribute value
31767
31768 2005-02-16  Miguel de Icaza  <miguel@novell.com>
31769
31770         * UpDownBase.cs: Attach entry events.
31771         Propagate events.
31772         Add ForeColor property, Focused, InterceptArrowKeys (interception
31773         does not work yet).
31774
31775 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
31776
31777         * Form.cs:
31778                 - Redraw non client are on Setmenu
31779                 - Calc proper menu starting point
31780
31781 2005-02-17  Peter Bartok  <pbartok@novell.com>
31782
31783         * Application.cs: Fixed message_filter check
31784
31785 2005-02-17  Peter Bartok  <pbartok@novell.com>
31786
31787         * Application.cs: Now calls registered message filters
31788         * DockStyle.cs: Fixed attribute
31789         * Form.cs: Fixed attribute
31790         * Menu.cs: Fixed attribute
31791         * ToolTip.cs: Fixed attribute
31792         * TreeNode.cs: Added missing attributes and arranged in regions
31793         * PropertyGrid.cs: Fixed signatures
31794         * TreeNodeCollection.cs: Added attributes
31795         * Splitter.cs: Added missing attributes; arranged into regions
31796         * TabPage.cs: Added missing attributes; arranged into regions
31797         * TextBoxBase.cs: Added missing attributes
31798         * TextBox.cs: Added missing attributes
31799         * ArrangeDirection.cs: Added missing attributes
31800         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
31801         * ToolBarButton.cs: Fixed attributes
31802         * AnchorStyles.cs: Fixed attribute
31803         * TrackBar.cs: Fixed attributes
31804         * TabControl.cs: Added missing attributes and arranged into regions
31805         * ToolBar.cs: Fixed attribute
31806         * StatusBar.cs: Fixed signature, organized into regions and added
31807           attributes
31808         * StatusBarPanel.cs: Fixed attributes
31809         * ContentsResizedEventArgs.cs: Implemented
31810         * ContentsResizedEventHandler.cs: Implemented
31811         * DateBoldEventArgs.cs: Implemented
31812         * DateBoldEventHandler.cs: Implemented
31813         * UpDownEventArgs.cs: Implemented
31814         * UpDownEventHandler.cs: Implemented
31815         
31816 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
31817
31818         * Form.cs: first Menu NC refactoring
31819         * MenuAPI.cs: first Menu NC refactoring
31820         
31821 2005-02-16  Peter Bartok  <pbartok@novell.com>
31822
31823         * ImeMode.cs: Added missing attributes
31824         * Menu.cs: Fixed attribute
31825         * GroupBox.cs: Fixed attribute
31826         * Label.cs: Fixed attribute
31827         * ColorDialog.cs (RunDialog): Removed TODO attribute
31828         * ComboBox.cs: Fixed attributes
31829         * ListControl.cs: Added missing attributes
31830         * PropertyGrid.cs: Fixed attributes
31831         * Control.cs: Fixed attributes
31832         * ListViewItem.cs: Added TypeConverter attribute
31833         * NotifyIcon.cs: Fixed attributes
31834         * ListView.cs: Fixed attributes
31835         * ButtonBase.cs: Fixed attribute
31836         * ImageList.cs: Added missing attributes
31837         * ContainerControl.cs: Fixed signature
31838         * CheckedListBox.cs: Fixed attribute; added missing attributes
31839         * Panel.cs: Fixed attributes
31840         * PropertyTabChangedEventArgs.cs: Added missing attribute
31841         * PropertyValueChangedEventArgs.cs: Added missing attribute
31842         * Binding.cs: Fixed attribute
31843         * ListViewItemConverter: Implemented ListViewSubItemConverter class
31844         * ListBox.cs: Fixed attribute; added missing attributes;
31845         * ScrollableControl.cs: Added missing attributes
31846         * PictureBox.cs: Added missing attributes; implemented missing property
31847         * DateTimePicker.cs: Added missing attributes
31848         * Theme.cs (ToolWindowCaptionHeight): Fixed type
31849         * MonthCalendar.cs: Fixed attributes
31850         * StatusBarPanel.cs: Added missing attributes
31851         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
31852
31853 2005-02-16  Peter Bartok  <pbartok@novell.com>
31854
31855         * TextBoxBase.cs: The previous method to enforce height yet remember
31856           the requested high was less than ideal, this is an attempt to do
31857           it better.
31858         * Control.cs: Added comment about possible problem
31859         * Copyright: Updated format
31860         * GridItemType.cs: Fixed swapped values
31861
31862 2005-02-15  Jackson Harper  <jackson@ximian.com>
31863
31864         * BaseCollection.cs: Use property so we never access an
31865         uninitialized list. Also initialize the list in the property.
31866
31867 2005-02-15  Peter Bartok  <pbartok@novell.com>
31868
31869         * GroupBox.cs (ProcessMnemonic): Implemented
31870         * Label.cs (ProcessMnemonic): Implemented
31871         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
31872           hotkeys
31873
31874 2005-02-15  Peter Bartok  <pbartok@novell.com>
31875
31876         * RadioButton.cs (ProcessMnemonic): Implemented
31877         * CheckBox.cs (ProcessMnemonic): Implemented
31878         * Control.cs:
31879           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
31880             handling
31881           - Added internal method to allow calling ProcessMnemonic from other
31882             controls
31883         * ContainerControl.cs:
31884           - Started support for handling validation chain handling
31885           - Implemented ProcessMnemonic support
31886           - Added Select() call to Active, to make sure the active control
31887             receives focus
31888         * Form.cs: Setting toplevel flag for Forms (this was lost in the
31889           FormParent rewrite)
31890         * ThemeWin32Classic.cs:
31891           - DrawCheckBox(): Fixed stringformat to show hotkeys
31892           - DrawRadioButton(): Fixed stringformat to show hotkeys
31893         * CommonDialog.cs: Removed WndProc override, not needed
31894
31895 2005-02-14  Peter Bartok  <pbartok@novell.com>
31896
31897         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
31898           missed those in the rewrite
31899
31900 2005-02-14  Miguel de Icaza  <miguel@novell.com>
31901
31902         * NumericUpDown.cs (Increment, ToString): Add.
31903         (DecimalPlaces): implement.
31904         
31905         Add attributes.
31906         
31907         * UpDownBase.cs: Add the designer attributes.
31908
31909 2005-02-13  Peter Bartok  <pbartok@novell.com>
31910
31911         * Panel.cs: Removed border_style, now in Control
31912         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
31913           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
31914
31915 2005-02-13  Peter Bartok  <pbartok@novell.com>
31916
31917         * MouseButtons.cs: Added missing attributes
31918         * XplatUIStructs.cs: Added enumeration for title styles
31919         * LeftRightAlignment.cs: Added missing attributes
31920         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
31921           it compatible with Graphics.FromHwnd()
31922         * SelectedGridItemChangedEventArgs.cs: Fixed property type
31923         * Keys.cs: Added missing attributes
31924         * SelectionRange.cs: Added missing attributes
31925         * SelectionRangeConverter.cs: Added
31926         * XplatUI.cs:
31927           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
31928             ReleaseMenuDC methods
31929           - Renamed ReleaseWindow to UngrabWindow
31930           - Added proper startup notice to allow version identification
31931         * Form.cs:
31932           - Added missing attributes
31933           - Removed FormParent concept
31934         * Label.cs: Removed border_style field, now in Control
31935         * RadioButton.cs: Now properly selects RadioButton when focus is
31936           received
31937         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
31938         * Control.cs:
31939           - Added missing attributes
31940           - Added borderstyle handling
31941           - Removed FormParent concept support
31942           - Fixed calls to XplatUI to match changed APIs
31943           - Fixed bug that would case us to use disposed Graphics objects
31944           - Removed unneeded internal methods
31945           - PerformLayout(): Fixed to handle DockStyle.Fill properly
31946           - SelectNextControl(): Fixed to properly check common parents
31947         * TextBoxBase.cs: Removed border_style field (now in Control)
31948         * MessageBox.cs:
31949           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
31950             fixed calculations for form size
31951           - Added support for localized strings and icons
31952           - Improved form size calculations, added border
31953         * ListView.cs: Removed border_style field (now in Control)
31954         * X11Structs.cs: Moved several structs from X11 driver here
31955         * X11Keyboard.cs: Changed debug message
31956         * Application.cs: Removed FormParent concept support
31957         * CommonDialog.cs:
31958           - Resetting end_modal flag
31959           - Removed FormParent concept support
31960         * NativeWindow.cs: Removed FormParent concept support
31961         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
31962           Client area and Non-Client whole window to allow support for WM_NC
31963           messages
31964         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
31965           prevent using it until it supports Hwnd as per Geoff Norton's request
31966         * ToolBar.cs: Fixed drawing, was not doing proper drawing
31967         * PictureBox.cs: Removed border_style field, now in Control
31968         * XplatUIWin32.cs: Added new driver methods
31969
31970 2005-02-12  Peter Bartok  <pbartok@novell.com>
31971
31972         * OpacityConverter.cs: Implemented
31973         * Hwnd.cs: Internal class to support drivers that need to emulate
31974           client area/non-client area window behaviour
31975
31976 2005-02-11  Peter Bartok  <pbartok@novell.com>
31977
31978         * KeysConverter.cs: Implemented
31979
31980 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
31981
31982         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
31983         * LinkLabel: Added missing attributes
31984         * MainMenu.cs: fixes ToString
31985         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
31986         * ListBox.cs: fixes event position
31987         * TrackBar.cs: adds missing attributes and events
31988         
31989 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
31990
31991         * MenuItem.cs: Use SystemInformation and bug fixes
31992         * MenuAPI.cs: Use SystemInformation and bug fixes
31993
31994 2005-02-09  Jackson Harper  <jackson@ximian.com>
31995
31996         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
31997         their keystate otherwise things like VK_MENU get stuck "on".
31998
31999 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
32000
32001         * ListBox.cs: Fixes AddRange bug
32002         
32003 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
32004
32005         * ProgressBar.cs
32006                 - Add missing attributes
32007                 - Add missing method
32008                 
32009         * CheckedListBox.cs: Added missing attributes
32010                 - Add missing attributes
32011                 - Remove extra method
32012         
32013         * ComboBox.cs: Added missing attributes
32014         * VScrollBar.cs: Added missing attributes
32015         * ScrollBar.cs:  Added missing attributes
32016         * ListBox.cs: Fixes signature, add missing consts
32017         * LinkArea.cs:   Added missing attributes
32018         
32019
32020 2005-02-08  Peter Bartok  <pbartok@novell.com>
32021
32022         * Menu.cs: Added missing attributes
32023         * MainMenu.cs: Added missing attributes
32024         * GroupBox.cs: Added missing attributes
32025         * Label.cs: Added missing attributes
32026         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
32027         * ColorDialog.cs:
32028           - Added Instance and Options properties
32029           - Added missing attributes
32030         * Cursor.cs: Made Serializable
32031         * NotifyIcon: Added missing attributes
32032         * MenuItem.cs: Added missing attributes
32033         * TextBoxBase.cs: Implemented AppendText() and Select() methods
32034         * Panel.cs: Added Missing attributes
32035         * MonthCalendar.cs: Fixed CreateParams
32036
32037 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
32038         
32039         * LinkLabel.cs:
32040                 - Fixes signature
32041                 - Fixes issues with links
32042                 - Adds the class attributes
32043
32044 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
32045         
32046         * ComboBox.cs:
32047                 - Fixes button when no items available in dropdown
32048                 - Fixes repainting problems
32049                 - Adds the class attributes
32050                 
32051 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
32052
32053         * XplatUIOSX.cs: Detect the menu bar and title bar height from
32054         the current theme.  Cache these on startup.
32055
32056 2005-02-07  Jackson Harper  <jackson@ximian.com>
32057
32058         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
32059         the scrollbar buttons when they are depressed.
32060
32061 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
32062
32063         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
32064         Get the display size from the main displayid.  We currently dont
32065         support multiple display configurations.
32066
32067 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
32068
32069         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
32070
32071 2005-02-07  Miguel de Icaza  <miguel@novell.com>
32072
32073         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
32074
32075 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
32076
32077         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
32078
32079 2005-02-04  Jackson Harper  <jackson@ximian.com>
32080
32081         * ThemeWin32Classic.cs: Respect the clipping rect when
32082         drawing. Only fill the intersection of clips and rects so there
32083         isn't a lot of large fills.
32084         * ScrollBar.cs: Pass the correct clipping rect to the theme
32085         engine. Remove some debug code.
32086
32087 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
32088         
32089         * DateTimePicker.cs:
32090                 - Fixed crash on DateTime.Parse, use Constructor instead
32091
32092 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
32093         
32094         * MenuItem.cs:
32095         * MenuAPI.cs:
32096                 - Owner draw support (MeasureItem and DrawItem)
32097
32098 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
32099         
32100         *  Menu.cs:
32101                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
32102                 - Fixes MenuItems.Add range
32103         * MenuItem.cs:
32104                 - MergeMenu and Clone and CloneMenu functions
32105
32106 2005-02-03  Jackson Harper  <jackson@ximian.com>
32107
32108         * ScrollBar.cs: Make abstract
32109         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
32110         is abstract.
32111
32112 2005-02-03  Jackson Harper  <jackson@ximian.com>
32113
32114         * ScrollBar.cs: First part of my scrollbar fixups. This removes
32115         all the unneeded refreshes and uses invalidates with properly
32116         computed rects.
32117
32118 2005-02-03  Peter Bartok  <pbartok@novell.com>
32119
32120         * ComponentModel.cs: Added
32121         * IDataGridEditingService.cs: Added
32122         * Timer.cs: Added missing attributes
32123         * ToolTip.cs: Added missing attributes
32124
32125 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
32126
32127         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
32128
32129 2005-02-03  Peter Bartok  <pbartok@novell.com>
32130
32131         * ListBox.cs: Added missing attributes
32132
32133 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
32134         
32135         * ListBox.cs:
32136                 - Fixes font height after font change
32137                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
32138                 
32139 2005-02-02  Peter Bartok  <pbartok@novell.com>
32140
32141         * HandleData.cs: Introduced static methods to allow class
32142           to be more self-contained and track it's own HandleData objects
32143         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
32144           HandleData to use new static methods
32145
32146 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
32147
32148         * Combobox.cs:
32149                 - Fixes default size and PreferredHeight
32150                 - Missing events
32151                 - ObjectCollection.Insert implementation
32152                 
32153         * ListControl.cs
32154                 - Fixes signature
32155         * ListBox.cs:
32156                 - Several fixes
32157                 - ObjectCollection.Insert implementation
32158                 - No selection after clean
32159                 - Small fixes
32160
32161 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
32162
32163         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
32164
32165 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
32166
32167         * Combobox.cs:
32168                 - Caches ItemHeight calculation for OwnerDrawVariable
32169                 - Handles dropdown properly
32170                 - Fixes several minor bugs
32171
32172 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
32173
32174         * ListBox.cs:
32175                 - Fixes 71946 and 71950
32176                 - Fixes changing Multicolumn on the fly
32177                 - Fixes keyboard navigation on Multicolumn listboxes
32178
32179 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
32180         
32181         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
32182         crash reporter log.
32183
32184 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
32185
32186         * XplatUIOSX.cs: Allow applications to actually exit.
32187
32188 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
32189
32190         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
32191         their parent at creation time rather than lazily later.  Fixes a major
32192         regression we were experiencing.
32193
32194 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
32195
32196         * ThemeWin32Classic.cs: more date time picker painting fixes
32197         * DateTimePicker.cs: more monthcalendar drop down fixes
32198         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
32199
32200 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
32201
32202         * ScrollBar.cs:
32203                 - When moving the thumb going outside the control should stop the moving
32204                 - Adds the firing of missing events
32205                 - Fixes no button show if Size is not specified
32206                 - End / Home keys for keyboard navigation
32207
32208 2005-01-30  Peter Bartok  <pbartok@novell.com>
32209
32210         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
32211           sanity check to prevent theoretical loop
32212         * XplatUIWin32.cs (SetVisible): Removed debug output
32213         * XplatUIX11.cs (SystrayChange): Added sanity check
32214         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
32215         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
32216           behaviour, valid until the X11 client window rewrite is done
32217         * TextBox.cs (ctor): Setting proper default foreground and background
32218           colors
32219
32220 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
32221
32222         * Theme: Added DrawDateTimePicker to interface
32223         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
32224         * DateTimePicker.cs: Created (still needs keys and painting code)
32225         * DateTimePickerFormat.cs: added
32226         * MonthCalendar.cs: fixed CreateParams for popup window mode
32227           
32228 2005-01-29  Peter Bartok  <pbartok@novell.com>
32229
32230         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
32231           this should also the calculations for ligher/darker
32232         * Theme.cs: Fixed defaults for ScrollBar widths/heights
32233
32234 2005-01-29  Peter Bartok  <pbartok@novell.com>
32235
32236         * ArrangeDirection.cs: Added
32237         * ArrangeStartingPositon.cs: Added
32238         * SystemInformation.cs: Implemented
32239         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
32240           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
32241           used by SystemInformation class
32242         * X11Strucs.cs: Added XSizeHints structure
32243         * MenuAPI.cs:
32244           - Fixed CreateParams to make sure the menu window is always visible
32245           - TrackPopupMenu: Added check to make sure we don't draw the
32246             menu offscreen
32247
32248 2005-01-29  Peter Bartok  <pbartok@novell.com>
32249
32250         * HandleData.cs: Added method for altering invalid area
32251         * TextBoxBase.cs: Implemented TextLength
32252
32253 2005-01-28  Peter Bartok  <pbartok@novell.com>
32254
32255         * XplatUIX11.cs: Improvement over last patch, not sending
32256           the WM_PAINT directly anymore, instead we scroll any pending
32257           exposed areas and let the system pick out the WM_PAINT later
32258
32259 2005-01-28  Peter Bartok  <pbartok@novell.com>
32260
32261         * SWF.csproj: Deleted, no longer used. Instead,
32262           Managed.Windows.Forms/SWF.csproj should be used
32263         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
32264           directly, to avoid a potential race condition with the next
32265           scroll
32266
32267 2005-01-28  Peter Bartok  <pbartok@novell.com>
32268
32269         * XplatUI.cs: Made class internal
32270
32271 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
32272
32273         * CheckedListBox.cs:
32274                 - Draw focus
32275                 - Fixed Drawing
32276                 - Missing methods and events
32277
32278 2005-01-27  Peter Bartok  <pbartok@novell.com>
32279
32280         * Application.cs (Run): Don't use form if we don't have one
32281
32282 2005-01-27  Peter Bartok  <pbartok@novell.com>
32283
32284         * TextBoxBase.cs (get_Lines): Fixed index off by one error
32285
32286 2005-01-27  Peter Bartok  <pbartok@novell.com>
32287
32288         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
32289         * GridItem.cs: Added; Patch by Jonathan S. Chambers
32290         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
32291         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
32292         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
32293         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
32294         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32295         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
32296         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32297         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32298         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32299         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
32300
32301 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
32302
32303         * Combobox.cs:
32304                 - Draw focus on Simple Combobox
32305                 - Fixes drawing issues
32306                 - fixes 71834
32307
32308 2005-01-27  Peter Bartok  <pbartok@novell.com>
32309
32310         * Form.cs:
32311           - Place window in default location, instead of hardcoded 0/0
32312           - Send initial LocationChanged event
32313         * Control.cs:
32314           - UpdateBounds after creation to find out where the WM placed us
32315           - Make sure that if the ParentForm changes location the Form
32316             is notified
32317         * XplatUIX11.cs: XGetGeometry will not return the coords relative
32318             to the root, but to whatever the WM placed around us.
32319             Translate to root coordinates before returning toplevel
32320             coordinates
32321         * XplatUIWin32.cs: Removed debug output
32322         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
32323           flag to GetWindowPos, to allow translation of coordinates on X11
32324
32325 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
32326
32327         * ListBox.cs: connect LostFocus Event
32328
32329 2005-01-27  Peter Bartok  <pbartok@novell.com>
32330
32331         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
32332           XplatUIX11.cs: Extended the Systray API
32333         * Form.cs: Removed debug output
32334         * Application.cs: Fixed focus assignment, always need to call
32335           XplatUI.Activate() since Form.Activate() has rules that may
32336           prevent activation
32337         * NotifyIcon.cs: Should be complete now
32338         * ToolTip.cs: Worked around possible timer bug
32339
32340 2005-01-27  Jackson Harper  <jackson@ximian.com>
32341
32342         * TabControl.cs:
32343         - Only invalidate the effected tabs when the
32344         selected index changes. This reduces drawing and gets rid of some
32345         flicker.
32346         - Only refresh if the tabs need to be shifted, otherwise only
32347         invalidate the slider button.
32348         - On windows the tabs are not filled to right if the slider is
32349         visible.
32350         
32351 2005-01-27  Jackson Harper  <jackson@ximian.com>
32352
32353         * TabControl.cs: Only refresh on mouseup if we are showing the
32354         slider. Also only invalidate the button whose state has changed.
32355
32356 2005-01-26  Peter Bartok  <pbartok@novell.com>
32357
32358         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
32359         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
32360           and SystrayRemove() methods
32361         * XplatUIOSX.cs: Stubbed Systray methods
32362         * XplatUIX11.cs:
32363           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
32364             methods
32365           - Fixed broken XChangeProperty calls (marshalling messed up things)
32366         * X11Structs.cs: Added enums and structs required for Size hinting
32367         * NotifyIcon.cs: Added & implemented
32368
32369 2005-01-26  Jackson Harper  <jackson@ximian.com>
32370
32371         * TabControl.cs: Space vertically layed out tabs properly.
32372
32373 2005-01-26  Peter Bartok  <pbartok@novell.com>
32374
32375         * Form.cs (CreateClientParams): Always set the location to 0,0
32376           since we're a child window.
32377
32378         * Control.cs (SetVisibleCore): Always explicitly setting the location
32379           of a toplevel window, apparently X11 doesn't like to move windows
32380           while they're not mapped.
32381
32382 2005-01-26  Jackson Harper  <jackson@ximian.com>
32383
32384         * TabControl.cs: Implement FillToRight size mode with vertically
32385         rendered tabs.
32386
32387 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
32388
32389         * ControlPaint.cs, ThemeWin32Classic.cs
32390                 - Fixes DrawFocusRectangle
32391
32392 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
32393
32394         * MenuAPI.cs:
32395                 - MenuBar tracking only starts when item is first clicked
32396                 - Fixes menu hidding for multiple subitems
32397                 - Unselect item in MenuBar when item Executed
32398                 - Fixes bug 71495
32399
32400 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
32401
32402         * ListControl.cs:
32403                 - IsInputKey for ListBox
32404         * ListBox.cs:
32405                 - Focus item
32406                 - Shift and Control item selection
32407                 - Implement SelectionMode.MultiExtended
32408                 - Fixes RightToLeft
32409         * ComboBox.cs:
32410                 - IsInputKey implemented
32411                 - Do not generate OnTextChangedEdit on internal txt changes
32412                 
32413 2005-01-23  Peter Bartok  <pbartok@novell.com>
32414
32415         * AccessibleObject.cs: Partially implemented Select()
32416         * MonthCalendar.cs: Added missing attributes and events
32417         * Form.cs: Fixed CreateParams behaviour, now controls derived from
32418           form can properly override CreateParams.
32419         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
32420           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
32421           Control performs Invalidate & Update
32422         * NativeWindow (CreateHandle): Added special handling for Form
32423           and Form.FormParent classes to allow overriding of From.CreateParams
32424         * Control.cs:
32425           - ControlNativeWindow: Renamed 'control' variable to more intuitive
32426             name 'owner'
32427           - ControlNativeWindow: Added Owner property
32428           - Removed usage of Refresh() on property changes, changed into
32429             Invalidate(), we need to wait until the queue is processed for
32430             updates, direct calls might cause problems if not all vars for
32431             Paint are initialized
32432           - Added call to UpdateStyles() when creating the window, to set any
32433             styles that CreateWindow might have ignored.
32434           - Added support for Form CreateParent overrides to UpdateStyles()
32435         * MessageBox.cs: Removed no longer needed FormParent override stuff,
32436           CreateParams are now properly overridable
32437         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
32438           CreateParams are now properly overridable
32439
32440 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
32441
32442         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
32443         OnTextBoxChanged.
32444
32445         Capture LostFocus and OnTextBoxChanged.  The later introduces a
32446         recursive invocation that I have not figured out yet.
32447
32448         Reset the timer when not using (it was accumulating).
32449
32450
32451         (OnTextBoxChanged): Set UserEdit to true here to track whether the
32452         user has made changes that require validation.
32453
32454         Reset changing to avoid loops.
32455
32456 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
32457
32458         * NumericUpDown.cs: Display value at startup.
32459
32460         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
32461         ValidateEditText.
32462
32463         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
32464         filled in.  Added some basic parsing of text.
32465
32466         Still missing the OnXXX method overrides, and figuring out the
32467         events that must be emitted.
32468
32469         * UpDownBase.cs: Handle UserEdit on the Text property.
32470         
32471 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
32472
32473         * ComboBox.cs:
32474           - Fixes IntegralHeight
32475           - ToString method
32476
32477 2005-01-21  Jackson Harper  <jackson@ximian.com>
32478
32479         * TabControl.cs: Set the SelectedIndex property when SelectedTab
32480         is set so that the page visibility is updated and the tabs are
32481         sized correctly.
32482
32483 2005-01-21  Jackson Harper  <jackson@ximian.com>
32484
32485         * TabControl.cs: Use cliping rectangle for blitting. Give the
32486         theme the clipping rect so we can do clipping while
32487         drawing. Remove some debug code.
32488
32489 2005-01-21  Jackson Harper  <jackson@ximian.com>
32490
32491         * TabPage.cs: Add a new method so tab pages can force the tab
32492         control to recalculate the tab page sizes.
32493         * TabControl.cs: UpdateOwner needs to make the tab control recalc
32494         sizes.
32495
32496 2005-01-20  Jackson Harper  <jackson@ximian.com>
32497
32498         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
32499
32500 2005-01-20  Jackson Harper  <jackson@ximian.com>
32501
32502         * TreeView.cs: Set the bounds for nodes properly. They were
32503         getting screwed up when checkboxes were not enabled, but images
32504         were.
32505
32506 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
32507
32508         * ListBox.cs:
32509                 - Owner draw support
32510                 - Fixes
32511                 
32512 2005-01-20  Jackson Harper  <jackson@ximian.com>
32513
32514         * XplatUIStructs.cs: More misc keys
32515         * X11Keyboard.cs: Ignore some control keys.
32516
32517 2005-01-20  Jackson Harper  <jackson@ximian.com>
32518
32519         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
32520         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
32521
32522 2005-01-19  Peter Bartok  <pbartok@novell.com>
32523
32524         * Control.cs: Un-selecting the control when it is loosing focus
32525
32526 2005-01-19  Jackson Harper  <jackson@ximian.com>
32527
32528         * TreeView.cs: Hook up to the text controls leave event so we can
32529         end editing when the users clicks outside the text box.
32530         
32531 2005-01-19  Jackson Harper  <jackson@ximian.com>
32532
32533         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
32534         get set in the conversion array.
32535
32536 2005-01-19  Peter Bartok  <pbartok@novell.com>
32537
32538         * Application.cs (ModalRun): Added a call to CreateControl to ensure
32539           focus is properly set
32540         * Button.cs:
32541           - Added missing attributes
32542           - removed styles, those are already set in the base class
32543         * ButtonBase.cs:
32544           - Added missing attributes
32545           - Added clip window styles
32546         * CheckBox.cs: Added missing attributes
32547         * CommonDialog.cs:
32548           - FormParentWindow.CreateParams: Added required clip styles
32549         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
32550           also filters modifier keys
32551         * MessageBox.cs:
32552           - Added assignment of Accept and Cancel button to enable Enter
32553             and Esc keys in MessageBox dialogs
32554           - FormParentWindow.CreateParams: Added required clip styles
32555         * RadioButton.cs: Added missing attributes
32556         * TextControl.cs: No longer draws selection if control does not
32557           have focus
32558         * TextBoxBase.cs:
32559           - Now draws simple rectangle around test area to make it obvious
32560             there's a control. This is a hack until we properly support borders
32561           - A few simple fixes to support selections better, now erases selected
32562             text when typing, and resets selection when using movement keys
32563
32564 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
32565
32566         * UpDownBase.cs: Added some new properties.
32567
32568         * DomainUpDown.cs: Implement a lot to get my test working.
32569
32570 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
32571
32572         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
32573
32574 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
32575
32576         * OSXStructs (WindowAttributes): Fixed csc complaints
32577
32578 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
32579
32580         * XplayUIOSX.cs:
32581           OSXStructs.cs: Initial refactor to move enums and consts into
32582           OSXStructs and use them in the driver for greater readability.
32583
32584 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
32585
32586         * XplatUIOSX.cs: Initial support for Standard Cursors.
32587         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
32588
32589 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
32590
32591         * ComboBox.cs: ability to change style when the ctrl is already
32592         created, missing methods and events, bug fixes, signature fixes
32593
32594 2005-01-19  Peter Bartok  <pbartok@novell.com>
32595
32596         * Cursors.cs (ctor): Added ctor to fix signature
32597
32598 2005-01-18  Peter Bartok  <pbartok@novell.com>
32599
32600         * Button.cs: Implemented DoubleClick event
32601         * ButtonBase.cs:
32602           - Fixed keyboard handling to behave like MS, where the press of
32603             Spacebar is equivalent to a mousedown, and the key release is
32604             equivalent to mouseup. Now a spacebar push will give the same
32605             visual feedback like a mouse click.
32606           - Added missing attributes
32607           - Added ImeModeChanged event
32608           - Added support for generating DoubleClick event for derived classes
32609         * CheckBox.cs:
32610           - Implemented DoubleClick event
32611           - Added missing attributes
32612         * CommonDialog.cs: Added missing attribute
32613         * ContextMenu.cs: Added missing attributes
32614         * RadioButton.cs:
32615           - AutoChecked buttons do not allow to be unselected when clicked
32616             (otherwise we might end up with no selected buttons in a group)
32617           - Added missing attributes
32618           - Implemented DoubleClickEvent
32619         * ThreadExceptionDialog.cs: Enabled TextBox code
32620
32621 2005-01-18  Peter Bartok  <pbartok@novell.com>
32622
32623         * Form.cs: Removed debug output
32624         * Button.cs: Added support for DoubleClick method
32625
32626 2005-01-18  Peter Bartok  <pbartok@novell.com>
32627
32628         * Form.cs:
32629           - Added method to parent window that allows triggering size
32630             calculations when a menu is added/removed
32631           - set_Menu: Cleaned up mess from early days of Form and Control,
32632             now properly triggers a recalc when a menu is added/removed
32633           - Added case to select form itself as focused form if no child
32634             controls exist
32635           - Added PerformLayout call when showing dialog, to ensure properly
32636             placed controls
32637         * Control.cs:
32638           - Select(): Made internal so Form can access it
32639           - Focus(): Only call Xplat layer if required (avoids loop), and sets
32640             status
32641         * Application.cs (Run): Removed hack and calls PerformLayout instead
32642           to trigger calculation when Form becomes visible
32643
32644 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
32645
32646         * ComboBox.cs: fixes for ownerdraw
32647
32648 2005-01-18  Peter Bartok  <pbartok@novell.com>
32649
32650         * TextControl.cs:
32651           - Sentinel is no longer static, each Document gets it's own, this
32652             avoids locking or alternatively overwrite problems when more
32653             than one text control is used simultaneously.
32654           - Switched to use Hilight and HilightText brushes for text selection
32655
32656         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
32657
32658 2005-01-18  Peter Bartok  <pbartok@novell.com>
32659
32660         * Control.cs:
32661           - Hooked up the following events:
32662                 o ControlAdded
32663                 o ControlRemoved
32664                 o HandleDestroyed
32665                 o ImeModeChanged
32666                 o ParentChanged
32667                 o TabStopChanged
32668                 o Invalidated
32669                 o SystemColorsChanged
32670                 o ParentFontChanged
32671                 o Move
32672           - Removed debug output
32673           - Added a call to the current theme's ResetDefaults when a color change
32674             is detected
32675         * Form.cs: Now setting the proper ImeMode
32676         * Theme.cs: Defined a method to force recreation of cached resources
32677           and rereading of system defaults (ResetDefaults())
32678         * ThemeWin32Classic.cs: Added ResetDefaults() stub
32679
32680 2005-01-17  Peter Bartok  <pbartok@novell.com>
32681
32682         * Control.cs: Added missing attributes
32683
32684 2005-01-17  Jackson Harper  <jackson@ximian.com>
32685
32686         * TreeNode.cs: Implement editing. Add missing properties selected
32687         and visible.
32688         * TreeView.cs: Implement node editing. Also some fixes to use
32689         Invalidate (invalid area) instead of Refresh when selecting.
32690
32691 2005-01-17  Peter Bartok  <pbartok@novell.com>
32692
32693         * Control.cs:
32694           - Implemented InvokeGotFocus() method
32695           - Implemented InvokeLostFocus() method
32696           - Implemented InvokePaint() method
32697           - Implemented InvokePaintBackground() method
32698           - Implemented InvokeClick() method
32699           - Implemented FindForm() method
32700           - Implemented RectangleToClient() method
32701           - Implemented ClientToRectangle() method
32702           - Implemented ResetBackColor() method
32703           - Implemented ResetCursor() method
32704           - Implemented ResetFont() method
32705           - Implemented ResteForeColor() method
32706           - Implemented ResetImeMode() method
32707           - Implemented ResetLeftToRight() method
32708           - Implemented ResetText() method
32709           - Implemented Scale() methods
32710           - Implemented ScaleCore() method
32711           - Implemented Update() method
32712           - Removed unused variables
32713           - Stubbed AccessibilityNotifyClients and
32714             ControlAccessibleObject.NotifyClients() methods (dunno what to do
32715             with those yet)
32716           - Now setting proper default for RightToLeft property
32717           - Fixed bug in SetClientSizeCore that would cause windows to get
32718             really big
32719           - Now sending Click/DoubleClick events
32720           - Now selecting controls when left mouse button is clicked on
32721             selectable control
32722         * AccessibleEvents.cs: Added
32723         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
32724         * XplatUIOSX.cs: Stubbed UpdateWindow() method
32725         * XplatUIWin32.cs: Implemented UpdateWindow() method
32726         * XplatUIX11.cs: Implemented UpdateWindow() method
32727         * Form.cs: Removed stray semicolon causing CS0162 warning
32728         * ThemeWin32Classic.cs: Fixed unused variable warnings
32729         * ScrollableControl.cs: Now calls base method for ScaleCore
32730         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
32731           style to avoid interference with internal click handler (which is
32732           different than standard Control click handling)
32733         * RadioButton.cs:
32734           - Now unchecks all sibling radio buttons when control is
32735             selected (Fixes #68756)
32736           - Removed internal tabstop variable, using the one inherited from
32737             Control
32738
32739 2005-01-17  Jackson Harper  <jackson@ximian.com>
32740
32741         * NavigateEventArgs.cs: Fix base type.
32742         * LinkLabel.cs: Sig fix
32743         
32744 2005-01-17  Jackson Harper  <jackson@ximian.com>
32745
32746         * TreeView.cs: Only invalidate the effected nodes bounds when
32747         selecting nodes.
32748
32749 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
32750
32751         * XplatUIWin32.cs: fixes Win32 marshaling
32752         * XplatUIX11.cs: fixes method signature
32753
32754 2005-01-17  Peter Bartok  <pbartok@novell.com>
32755
32756         * XplatUIX11.cs: Clean up resources when we no longer need them
32757
32758 2005-01-17  Peter Bartok  <pbartok@novell.com>
32759
32760         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
32761           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
32762           and DestroyCursor() methods.
32763         * Cursor.cs: Partially implemented, now supports standard cursors;
32764           still contains some debug code
32765         * Cursors.cs: Implemented class
32766         * Control.cs:
32767           - WndProc(): Added handling of WM_SETCURSOR message, setting the
32768             appropriate cursor
32769           - Implemented Cursor property
32770           - Replaced break; with return; more straightforwar and possibly
32771             faster
32772           - Now properly setting the result for WM_HELP
32773         * X11Structs.cs: Added CursorFontShape enum
32774         * XplatUIStructs.cs:
32775           - Added StdCursor enum (to support DefineStdCursor() method)
32776           - Added HitTest enum (to support sending WM_SETCURSOR message)
32777         * XplatUIX11.cs:
32778           - Now sends the WM_SETCURSOR message
32779           - Implemented new cursor methods
32780         * XplatUIOSX.cs: Stubbed new cursor methods
32781         * XplatUIWin32.cs:
32782           - Implemented new cursor methods
32783           - Added GetSystemMetrics function and associated enumeration
32784
32785 2005-01-15  Peter Bartok  <pbartok@novell.com>
32786
32787         * Control.cs:
32788           - WndProc(): Now handles EnableNotifyMessage
32789           - SelectNextControl(): Fixed bug where if no child or sibling
32790             controls exist we looped endlessly
32791
32792 2005-01-14  Jackson Harper  <jackson@ximian.com>
32793
32794         * TreeView.cs: Recalculate the tab pages when a new one is added
32795         so that the proper bounding rects are created.
32796
32797 2005-01-14  Jackson Harper  <jackson@ximian.com>
32798
32799         * TreeView.cs: Draw a gray box instead of a grip in the lower
32800         right hand corner when there are both horizontal and vertical
32801         scroll bars.
32802
32803 2005-01-14  Jackson Harper  <jackson@ximian.com>
32804
32805         * Control.cs: When erasing backgrounds use FromHwnd instead of
32806         FromHdc when there is a NULL wparam. This occurs on the X driver.
32807         * XplatUIX11.cs: Set the wparam to NULL.
32808
32809 2005-01-13  Jackson Harper  <jackson@ximian.com>
32810
32811         * PictureBox.cs: Implement missing methods (except ToString, need
32812         to test that on windows) and events. When visibility is changed we
32813         need to redraw the image because the buffers are killed. When size
32814         is changed refresh if the sizemode needs it.
32815
32816 2005-01-13  Peter Bartok  <pbartok@novell.com>
32817
32818         * Control.cs (SelectNextControl): Was using wrong method to select
32819           a control
32820
32821 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
32822
32823         * ComboBox.cs: fixes dropstyle
32824
32825 2005-01-13  Peter Bartok  <pbartok@novell.com>
32826
32827         * Form.cs:
32828           - Implemented Select() override
32829           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
32830           - Now sets keyboard focus on startup
32831         * Control.cs (SelectNextControl): Now properly handles directed=true
32832         * TextBoxBase.cs:
32833           - WndProc: Now passes tab key on to base if AcceptTabChar=false
32834           - Added (really bad) focus rectangle (mostly for testing)
32835         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
32836           to enforce redraw on focus changes
32837         * ContainerControl.cs:
32838           - Fixed detection of Shift-Tab key presses
32839           - Fixed traversal with arrow keys
32840         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
32841           gonna keep this or if it's complete yet
32842         
32843 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
32844
32845         * ComboBox.cs: missing properties, fixes
32846
32847 2005-01-13  Peter Bartok  <pbartok@novell.com>
32848
32849         * Panel.cs (ctor): Setting Selectable window style to off
32850         * Splitter.cs (ctor): Setting Selectable window style to off
32851         * GroupBox.cs (ctor): Setting Selectable window style to off
32852         * Label.cs (ctor): Setting Selectable window style to off
32853
32854 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
32855
32856         * UpDownBase.cs (InitTimer): If the timer has been already
32857         created, enable it.
32858
32859         Use a TextBox instead of a Label.
32860
32861 2005-01-12  Jackson Harper  <jackson@ximian.com>
32862
32863         * TreeView.cs: Refresh the tree after sorting the nodes. Always
32864         draw the connecting node lines (when ShowLines is true).
32865         * TreeNode.cs: The nodes index can now be updated. This is used
32866         when a node collection is sorted.
32867         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
32868         insert or an existing unsorted node collection can be sorted.
32869         
32870 2005-01-12  Peter Bartok  <pbartok@novell.com>
32871
32872         * ContainerControl.cs: Implemented ProcessDialogKeys()
32873
32874 2005-01-12  Peter Bartok  <pbartok@novell.com>
32875
32876         * Control.cs:
32877           - Implemented SelectNextControl() method
32878           - Several focus related bug fixes
32879           - Fixed Docking calculations to match MS documentation and
32880             behaviour
32881
32882 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
32883
32884         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
32885         bug fixes
32886
32887 2005-01-12  Peter Bartok  <pbartok@novell.com>
32888
32889         * Control.cs:
32890           - Fixed broken Contains() method
32891           - Implemented GetNextControl() method. Finally. This is the pre-
32892             requisite for focus handling.
32893
32894 2005-01-12  Peter Bartok  <pbartok@novell.com>
32895
32896         * OSXStrucs.cs: Added
32897
32898 2005-01-12  Peter Bartok  <pbartok@novell.com>
32899
32900         * XplatUIWin32.cs:
32901           - Removed PeekMessageFlags
32902           - Implemented SetWindowStyle() method
32903         * XplatUIStructs.cs: Added PeekMessageFlags
32904         * X11Structs: Added missing border_width field to XWindowChanges struct
32905         * XplatUIX11.cs:
32906           - PeekMessage: Now throws exception if flags which are not yet
32907             supported are passed
32908           - Implemented SetWindowStyle() method
32909           - Fixed SetZOrder to handle AfterHwnd properly
32910         * XplatUI.cs: Added SetWindowStyle() method
32911         * XplatUIDriver.cs: Added SetWindowStyle() abstract
32912         * Control.cs:
32913           - Implemented UpdateStyles() method
32914           - Implemented UpdateZOrder() method
32915         * XplatUIOSX.cs: Added SetWindowStyle() stub
32916
32917 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
32918
32919         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
32920         button mouse).
32921
32922
32923 2005-01-11  Jackson Harper  <jackson@ximian.com>
32924
32925         * TreeView.cs: Still need to draw lines to siblings even if out of
32926         the current node is out of the clip.
32927
32928 2005-01-11  Jackson Harper  <jackson@ximian.com>
32929
32930         * TreeView.cs: When setting the hbar/vbar/grip position use
32931         SetBounds so that perform layout is only called once. Also suspend
32932         and resume layout so layout is only done once for all controls.
32933         - Removed some debug fluff
32934         * SizeGrip.cs: Call base implmentation in overriding methods.
32935         - When visibility is changed the drawing buffers are killed so we
32936         need to redraw.
32937
32938 2005-01-11  Jackson Harper  <jackson@ximian.com>
32939
32940         * TreeView.cs: Calculate the open node count while drawing. This
32941         saves us an entire tree traversal for every paint operation. Use
32942         a member var for the open node count so less vars are passed around.
32943
32944 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
32945
32946         * MonthCalendar.cs:
32947         - fixed selection to use mousemove, not mouse polling on timer
32948         * ThemeWin32Classic.cs
32949         - removed redundant unused variable "no_more_content"
32950         
32951 2005-01-11  Peter Bartok  <pbartok@novell.com>
32952
32953         * XplatUIX11.cs (DoEvents): Needs to return when no more events
32954           are pending, so it now calls PeekMessage instead of GetMessage;
32955           implemented a incomplete version of PeekMessage
32956         
32957 2005-01-11  Peter Bartok  <pbartok@novell.com>
32958
32959         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
32960           I18n issues
32961         * TextBoxBase.cs: Added sending of TextChanged event
32962
32963 2005-01-10  Jackson Harper  <jackson@ximian.com>
32964
32965         * TreeView.cs: Try not to draw outside the clipping rectangle on
32966         each node element.
32967
32968 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
32969
32970         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
32971
32972 2005-01-10  Jackson Harper  <jackson@ximian.com>
32973
32974         * TreeView.cs:
32975         - Implement fast scrolling. Now only the newly
32976         exposed nodes are drawn and the old image is moved using the
32977         XplatUI::ScrollWindow method.
32978         - Factor in height of nodes when calculating whether or not the
32979         node is in the clipping rect.
32980
32981 2005-01-10  Jackson Harper  <jackson@ximian.com>
32982
32983         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
32984
32985 2005-01-10  Peter Bartok  <pbartok@novell.com>
32986
32987         * Application.cs: Added temporary hack to resolve all our resize
32988           required issues on startup. This will get fixed properly at
32989           some point in the future
32990
32991 2005-01-10  Jackson Harper  <jackson@ximian.com>
32992
32993         * SizeGrip.cs: New internal class that is used as a sizing
32994         grip control...hence the name.
32995
32996 2005-01-10  Peter Bartok  <pbartok@novell.com>
32997
32998         * Control.cs: Implemented proper TabIndex handling, now assigning
32999           a tabindex when a control is added to a container
33000         * GroupBox.cs (ctor): Now sets the Container style bit, required
33001           for Control.GetNextControl()
33002
33003 2005-01-09  Jackson Harper  <jackson@ximian.com>
33004
33005         * TextBoxBase.cs: Clear window when scrolling (fixes build).
33006
33007 2005-01-09  Peter Bartok <pbartok@novell.com>
33008
33009         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
33010           XplatUIX11.cs: Added ability to control ScrollWindow expose and
33011           an overload for ScrollWindow to allow only scrolling a rectangle
33012
33013 2005-01-09  Peter Bartok <pbartok@novell.com>
33014
33015         * Form.cs:
33016           - Implemented SetDesktopBounds method
33017           - Implemented SetDesktopLocation method
33018
33019 2005-01-08  Jackson Harper  <jackson@ximian.com>
33020
33021         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
33022         the node count has changed, this removes to VScroll::Refresh calls
33023         when drawing.
33024
33025 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
33026
33027         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
33028
33029 2005-01-07  Jackson Harper  <jackson@ximian.com>
33030
33031         * TreeNode.cs: Just update the single node when it is
33032         checked. Don't refresh after toggling, the Expand/Collapse already
33033         handles this.
33034         * TreeView.cs: Respect clipping a little more when drawing. Try
33035         not to redraw things that don't need to be redrawn. Just hide the
33036         scrollbars when they are no longer needed instead of removing
33037         them, so they don't have to be created again and again.
33038         
33039 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
33040
33041         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
33042         coordinates to window space to place the caret properly, FIXED.
33043         Implement GetWindowState & SetWindowState
33044
33045 2005-01-06  Peter Bartok <pbartok@novell.com>
33046
33047         * Form.cs:
33048           - Implemented ClientSize property
33049           - Implemented DesktopBounds property
33050           - Implemented DesktopLocation property
33051           - Implemented IsRestrictedWindow property
33052           - Implemented Size property
33053           - Implemented TopLevel property
33054           - Implemented FormWindowState property
33055         * Control.cs:
33056           - Implemented GetTopLevel() method
33057           - Implemented SetTopLevel() method
33058         * X11Structs.cs (Atom):
33059           - Added AnyPropertyType definition
33060           - Added MapState definiton and updated XWindowAttribute struct
33061         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
33062         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
33063         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
33064         * XplatUIWin32.cs:
33065           - Implemented GetWindowState() and SetWindowState() methods
33066           - Fixed Win32GetWindowLong return type
33067         * XplatUIX11.cs:
33068           - Introduced central function for sending NET_WM messages
33069           - Implemented GetWindowState() and SetWindowState() methods
33070         * TextBoxBase.cs (set_Lines):
33071           - Now uses Foreground color for text added via Text property (Duh!)
33072           - Added code to remember programmatically requested size (fixes
33073             behaviour when Multiline is set after Size)
33074           - Added AutoSize logic
33075
33076 2005-01-06  Jackson Harper  <jackson@ximian.com>
33077
33078         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
33079
33080 2005-01-06  Jackson Harper  <jackson@ximian.com>
33081
33082         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
33083         set to less then 0.
33084
33085 2005-01-06  Jackson Harper  <jackson@ximian.com>
33086
33087         * ScrollableControl.cs: Lazy init the scrollbars.
33088         
33089 2005-01-06  Jackson Harper  <jackson@ximian.com>
33090
33091         * Theme.cs: Speed up getting pens and solid brushes, by using
33092         their ARGB as a hash instead of tostring and not calling Contains.
33093
33094 2005-01-06  Peter Bartok <pbartok@novell.com>
33095
33096         * Form.cs:
33097           - Implemented OnActivated and OnDeactivate event trigger
33098           - Implemented Activate() method
33099           - Fixed ShowDialog() to activate the form that was active before
33100             the dialog was shown
33101         * XplatUIX11.cs:
33102           - Added global active_window var that tracks the currently active
33103             X11 window
33104           - Now always grabs Property changes from the root window to always
33105             catch changes on the active window property
33106           - Added code to PropertyNotify handler to send Active/Inactive
33107             messages when state changes. This puts X11 and Win32 en par on
33108             WM_ACTIVATE notifications (except for double notifications when
33109             the user clicks away from our modal window to another one of our
33110             windows)
33111
33112 2005-01-05  Jackson Harper  <jackson@ximian.com>
33113
33114         * ImageList.cs: Implment ctor
33115
33116 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
33117
33118         * XplatUIOSX.cs: Implement Activate/SetTopmost
33119
33120 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
33121
33122         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
33123
33124 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
33125
33126         * XplatUIOSX.cs: Implement GetActive/SetFocus.
33127
33128 2005-01-05  Peter Bartok <pbartok@novell.com>
33129
33130         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
33131           XplatUIOSX.cs: Added GetActive method to return the currently
33132           active window for the application (or null, if none is active)
33133         * Form.cs:
33134           - Implemented ActiveForm
33135           - Commented out owner assignment for modal dialogs (causes problems
33136             on Win32, since the owner will be disabled)
33137           - Reworked some Active/Focus handling (still incomplete)
33138         * CommonDialog.cs: Commented out owner assignment for modal dialogs
33139           (causes problems on Win32, since the owner will be disabled)
33140         * IWin32Window: Added ComVisible attribute
33141
33142 2005-01-05  Peter Bartok <pbartok@novell.com>
33143
33144         * ToolTip.cs (WndProc): Enable setting focus now that we have the
33145           required XplatUI functions.
33146
33147 2005-01-05  Peter Bartok <pbartok@novell.com>
33148
33149         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
33150           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
33151           to implement focus and activation handling; still incomplete and
33152           with debug output
33153
33154 2005-01-04  Peter Bartok <pbartok@novell.com>
33155
33156         * TextBoxBase.cs: Changed access level for Document property to
33157           match switch to internal for TextControl
33158
33159 2005-01-04  Peter Bartok <pbartok@novell.com>
33160
33161         * AccessibleObject: Added ComVisible attribute
33162
33163 2005-01-04  Jackson Harper  <jackson@ximian.com>
33164
33165         * X11Keyboard.cs: Remove unneeded var.
33166
33167 2005-01-04  Jackson Harper  <jackson@ximian.com>
33168
33169         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
33170         but PAINT.
33171         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
33172         ClientMessage. This makes apps exit cleanly (more often).
33173         
33174 2005-01-04  Jackson Harper  <jackson@ximian.com>
33175
33176         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
33177         handling focus, return correct colors and fonts,
33178         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
33179         handle selection, horizontal scrolling, and mouse interaction.
33180
33181 2005-01-04  Peter Bartok <pbartok@novell.com>
33182
33183         * ICommandExecutor.cs: Added
33184         * IDataGridColumnStyleEditingNotificationService.cs: Added
33185         * IFeatureSupport.cs: Added
33186         * IFileReaderService.cs: Added
33187         * IDataObject.cs: Added ComVisible attribute
33188         * AmbientProperties.cs: Added
33189         * BaseCollection.cs: Added missing attributes
33190         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
33191         * BaseCollection.cs: Added missing attributes
33192         * Binding.cs: Added TypeConverter attribute
33193         * BindingContext.cs: Added DefaultEvent attribute
33194         * BindingsCollection.cs: Added DefaultEvent attribute
33195         * Button.cs: Added DefaultValue attribute
33196         * DragEventArgs.cs: Added ComVisible attribute
33197         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
33198         * KeyEventArgs.cs: Added ComVisible attribute
33199         * KeyPressEventArgs.cs: Added ComVisible attribute
33200         * MouseEventArgs.cs: Added ComVisible attribute
33201         * NavigateEventArgs.cs: Added
33202         * NavigateEventHandler.cs: Added
33203         * FeatureSupport.cs: Added
33204         * OSFeature.cs: Added
33205         * Theme.cs: Added abstract Version property to support OSFeature
33206         * ThemeWin32Classic.cs: Added Version property to
33207           support OSFeature.Themes
33208         * ProgressBar.cs: Removed OnPaintBackground override, not required since
33209           the proper styles to avoid background drawing are set, also doesn't
33210           match MS signature
33211         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
33212         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
33213         * ScrollEventArgs.cs: Added ComVisible attribute
33214         * SplitterEventArgs.cs: Added ComVisible attribute
33215         * AccessibleSelection.cs: Added Flags attribute
33216         * Appearance.cs: Added ComVisible attribute
33217         * Border3DSide.cs: Added ComVisible attribute
33218         * Border3DStyle.cs: Added ComVisible attribute
33219         * BorderStyle.cs: Added ComVisible attribute
33220         * DragAction.cs: Added ComVisible attribute
33221         * ErrorBlinkStyle.cs: Added
33222         * ScrollEventType.cs: Added ComVisible attribute
33223         * AnchorStyles.cs: Added Editor attribute
33224         * DockStyle.cs: Added Editor attribute
33225         * HorizontalAlignment.cs: Added ComVisible attribute
33226         * HelpEventArgs.cs: Added ComVisible attribute
33227         * PaintEventArgs.cs: Added IDisposable
33228
33229 2005-01-04  Peter Bartok <pbartok@novell.com>
33230
33231         * TextControl.cs: Switched Line, LineTag and Document classes to
33232           internal
33233
33234 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
33235
33236         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
33237         Simple mode, fixes, IntegralHeight, etc.
33238
33239 2005-01-04  Peter Bartok <pbartok@novell.com>
33240
33241         * TextBoxBase.cs: Using proper font variable now
33242
33243 2005-01-04  Peter Bartok <pbartok@novell.com>
33244
33245         * Form.cs (ShowDialog): Set parent to owner, if provided
33246         * GroupBox.cs: Removed unused vars
33247         * TextControl.cs:
33248           - Added GetHashCode() for Document and LineTag classes
33249           - Removed unused variables
33250           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
33251             to allow translation between continuous char position and line/pos
33252         * CheckBox.cs: Removed vars that are provided by base class
33253         * RadioButton.cs: Removed vars that are provided by base class, added
33254           new keyword where required
33255         * LinkLabel.cs: Added new keyword where required
33256         * Control.cs (WndProc): Removed unused variable
33257         * TextBoxBase.cs:
33258           - Finished SelectionLength property
33259           - Implemented SelectionStart property
33260           - Implemented Text property
33261           - Removed unused vars
33262         * MessageBox.cs: Added new keyword where required
33263         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
33264           WndProc signature
33265         * MenuAPI.cs: Added new keyword where required
33266         * ButtonBase.cs: Removed vars that are provided by base class, added
33267           new keyword where required
33268         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
33269           argument to double, to allow compiling with csc 2.0 (Atsushi ran
33270           into this)
33271         * Application.cs (Run): Now triggers the ThreadExit event
33272         * CommonDialog.cs: Added new keyword where required; now properly sets
33273           parent (owner) for dialog
33274         * XplatUIX11.cs: Commented out unused vars
33275         * StatusBar.cs: Fixed signature for Text property
33276         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
33277
33278 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
33279
33280         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
33281         TrackBar.cs, MonthCalendar.cs: remove unused vars
33282
33283 2005-01-03  Jackson Harper  <jackson@ximian.com>
33284
33285         * ThemeWin32Classic.cs:
33286         * X11Keyboard.cs: Remove unused vars.
33287
33288 2005-01-03  Peter Bartok  <pbartok@novell.com>
33289
33290         * TextBox.cs:
33291           - set_Text: Tied into TextControl
33292           - set_TextAlignment: Tied into TextControl
33293         * TextControl.cs:
33294           - Added alignment properties and implemented alignment handling
33295             and drawing (still has a bug, not generating proper expose events)
33296           - Added new Line() constructor to allow passing the line alignment
33297           - Fixed selection setting, properly handling end<start now
33298           - Added aligment considerations to RecalculateDocument()
33299         * TextBoxBase.cs:
33300           - Now properly enforces control height for single line controls
33301           - Added support for CharacterCasing
33302           - Added IsInputKey override
33303           - Fixed Keys.Enter logic
33304           - Added SetBoundsCore override
33305           - Fixed mouse selection handling
33306
33307 2005-01-03  Jackson Harper  <jackson@ximian.com>
33308
33309         * TreeView.cs:
33310           - Collapse and uncheck all nodes when CheckBoxes is disabled.
33311           - Checkboxes are always aligned to the bottom of the node,
33312           regardless of item height.
33313           - Use the node bounds to draw the text so we can center it when
33314           the item height is greater then the font height.
33315           - Node::Bounds are only the text part of the node.
33316         * TreeNode.cs: New method to combine collapsing and unchecking all
33317           nodes recursively.
33318
33319 2005-01-02  Jackson Harper  <jackson@ximian.com>
33320
33321         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
33322         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
33323         tree when a check is changed. TODO: Only refresh the checked node.
33324
33325 2004-12-30  Jackson Harper  <jackson@ximian.com>
33326
33327         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
33328         * TreeNode.cs: When collapsing make sure to never collapse the
33329         root node.
33330
33331 2004-12-29  Jackson Harper  <jackson@ximian.com>
33332
33333         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
33334         
33335 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
33336
33337         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
33338
33339 2004-12-28  Peter Bartok  <pbartok@novell.com>
33340
33341         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
33342           not yet assigned
33343
33344 2004-12-28  Peter Bartok  <pbartok@novell.com>
33345
33346         * Control.cs (WndProc): Added WM_HELP handler, now generates
33347           HelpRequested event
33348         * Form.cs: Added HelpButton property and required support code
33349         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
33350
33351 2004-12-28  Peter Bartok  <pbartok@novell.com>
33352
33353         * CommonDialog.cs:
33354           - Made DialogForm.owner variable internal
33355           - Added check to ensure owner form is set before setting
33356             owner properties in CreateParams
33357
33358 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
33359
33360         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
33361           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
33362           GetCursorPos.  Fix major visibility issues.  Rework the windowing
33363           system to support borderless/titleless windows (implements menus).
33364           Fix GetWindowPos.  Implement initial background color support for
33365           views.
33366
33367 2004-12-28  Peter Bartok  <pbartok@novell.com>
33368
33369         * Form.cs (get_CreateParams): Make sure we have an owner before using
33370           the owner variable. Implement proper default if no owner exists
33371
33372 2004-12-28  Peter Bartok  <pbartok@novell.com>
33373
33374         * In preparation for making Managed.Windows.Forms the default build target
33375           for System.Windows.Forms, the following stubbed files were added.
33376           Dialogs are currently being implemented by contributors and are only
33377           short-term place holders.
33378         * ColorDialog.cs: Initial check-in (minmal stub)
33379         * DataGrid.cs: Initial check-in (minimal stub)
33380         * DataGridLineStyle.cs: Initial check-in (minimal stub)
33381         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
33382         * DataGridTableStyle.cs: Initial check-in (minimal stub)
33383         * FontDialog.cs: Initial check-in (minimal stub)
33384         * FileDialog.cs: Initial check-in (minimal stub)
33385         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
33386         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
33387         * OpenFileDialog: Initial check-in (minimal stub)
33388         * IComponentEditorPageSite.cs: Initial check-in
33389         * Splitter.cs: Initial check-in (for Jackson)
33390         * SplitterEventArgs.cs: Initial check-in (for Jackson)
33391         * SplitterEventHandler.cs: Initial check-in (for Jackson)
33392         * TextBox.cs: Initial check-in; still needs some wiring to
33393           TextControl backend
33394         * Form.cs: Implemented ControlBox property
33395         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
33396         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
33397         * TextControl.cs: Added selection functionality; added todo header
33398         * TextBoxBase.cs:
33399           - Implemented Lines property
33400           - Implemented TextHeight property
33401           - Implemented SelectedText property
33402           - Implemented SelectionLength property
33403           - Implemented SelectAll method
33404           - Implemented ToString method
33405           - Removed and cleaned up some debug code
33406           - Implemented (still buggy) mouse text selection
33407
33408 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
33409
33410         * ComboBox.cs: Complete DropDownList implementation, fixes.
33411
33412 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
33413
33414         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
33415         * ComboBoxStyle.cs: ComboBoxStyle enum
33416         * ComboBox.cs: Initial work on ComboBox control
33417
33418 2004-12-21  Peter Bartok  <pbartok@novell.com>
33419
33420         * Control.cs (ctor, CreateParams): Moved setting of is_visible
33421           forward so that anything that creates a window gets the default,
33422           also no longer uses Visible property in CreateParams to avoid
33423           walking up the parent chain and possibly get the wrong visible
33424           status. Fixed IsVisible to no longer walk up to the parent.
33425
33426 2004-12-21  Peter Bartok  <pbartok@novell.com>
33427
33428         * Form.cs (ShowDialog): Unset modality for the proper window
33429  
33430 2004-12-20  Peter Bartok  <pbartok@novell.com>
33431
33432         * CommonDialog.cs: Initial check-in
33433
33434 2004-12-20  Peter Bartok  <pbartok@novell.com>
33435
33436         * Control.cs (Visible): Now uses the parent window instead of the
33437           client area window for the property
33438
33439         * Form.cs
33440           - ShowDialog(): Now uses the proper window for modality
33441           - The default visibility state for the form parent is now false. This
33442             will prevent the user from seeing all the changes to the form and
33443             its controls before the application hits Application.Run()
33444           - Removed some stale commented out code
33445
33446         * NativeWindow.cs:
33447           - Added FindWindow() method to have a method to check for existence
33448             of a window handle
33449           - Added ability to override default exception handling (for example
33450             when debugging with VS.Net; to do this the ExternalExceptionHandler
33451             define must be set
33452           - Removed some useless debug output
33453
33454         * XplatUIX11.cs:
33455           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
33456             not working as expected
33457           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
33458             property to allow switching back to the modal window if focus is
33459             given to another one of our windows (Application Modal)
33460           - Now only sets override_redirect if we create a window
33461             without WS_CAPTION
33462           - Moved EventMask selection before mapping of newly created window
33463             so we can catch the map event as well
33464           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
33465           - Added various Atom related DllImports
33466           - Implemented Exit() method
33467           - .ctor() : No longer shows window if WS_VISIBLE is not defined
33468             in the CreateParams
33469
33470         * MessageBox.cs: Now properly deals with the FormParent window by
33471           providing an override the FormParent CreateParams property to
33472           set as POPUP instead of OVERLAPPED window.
33473
33474 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
33475
33476         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
33477         Minor code cleanup.
33478
33479 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
33480         
33481         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
33482
33483 2004-12-18  Peter Bartok  <pbartok@novell.com>
33484
33485         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
33486           implementing SetModal() method
33487
33488 2004-12-18  Peter Bartok  <pbartok@novell.com>
33489
33490         * X11Structs.cs (XGCValues): Fixed type of function element
33491         * XplatUI.cs: Added ScrollWindow() method
33492         * XplatUIDriver.cs: Added ScrollWindow() abstract
33493         * XplatUIWin32.cs: Implemented ScrollWindow() method
33494         * XplatUIX11.cs: Implemented ScrollWindow() method
33495         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
33496
33497 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
33498
33499         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
33500         Some more keyboard support (INCOMPLETE)
33501
33502 2004-12-17  Peter Bartok  <pbartok@novell.com>
33503
33504         * TextControl.cs:
33505         - Added color attribute to line tags.
33506         - Added color argument to all functions dealing with tags
33507         - Added color argument support to various functions
33508         - Fixed miss-calculation of baseline/shift in certain circumstances
33509
33510         * TextBoxBase.cs: Added new color option to test code
33511
33512 2004-12-17  Jackson Harper  <jackson@ximian.com>
33513
33514         * TreeNode.cs:
33515         * MonthCalendar.cs: Signature fixes
33516
33517 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
33518
33519         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
33520         keyboard event moved it.  Create a new graphics context for each paint resolves this
33521
33522 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
33523
33524         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
33525         Make caret exist and go blink blink.  Initial keyboard support.
33526         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
33527         works.
33528
33529 2004-12-17  Jackson Harper  <jackson@ximian.com>
33530
33531         * XplatUIStructs.cs: Updated set of virtual keycodes.
33532         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
33533
33534 2004-12-17  Jackson Harper  <jackson@ximian.com>
33535
33536         * XplatUIX11.cs: Prune old keyboard code.
33537
33538 2004-12-17  Jackson Harper  <jackson@ximian.com>
33539
33540         * XplatUIX11.cs: When generating mouse wparams get the modifier
33541         keys from the ModifierKeys property.
33542
33543 2004-12-17  Jackson Harper  <jackson@ximian.com>
33544
33545         * X11Keyboard.cs: Send up/down input when generating
33546         messages. Remove some unused vars.
33547
33548 2004-12-17  Jackson Harper  <jackson@ximian.com>
33549
33550         * TabControl.cs:
33551         * TreeView.cs: get rid of warnings.
33552
33553 2004-12-17  Jackson Harper  <jackson@ximian.com>
33554
33555         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
33556
33557 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
33558
33559         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
33560           CheckedListBox.cs: Implementation
33561
33562 2004-12-17  Peter Bartok  <pbartok@novell.com>
33563
33564         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
33565
33566 2004-12-16  Peter Bartok  <pbartok@novell.com>
33567
33568         * TextControl.cs:
33569           - InsertCharAtCaret(): Fixed start pos fixup
33570           - CaretLine_get: No longer derives the line from the tag, the tag
33571             could be stale if lines in the document have been added or deleted
33572           - RebalanceAfterDelete(): Fixed bug in balancing code
33573           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
33574           - Line.Streamline(): Now can also elminate leading empty tags
33575           - DumpTree(): Added a few more tests and prevented exception on
33576             uninitialized data
33577           - Added Debug section for Combining lines
33578           - Delete(): Now copies all remaining properties of a line
33579           
33580         * TextBoxBase.cs:
33581           - Left mousebutton now sets the caret (and middle button still acts
33582             as formatting tester, which must go away soon)
33583           - Added Debug section for Deleting/Combining lines
33584           - Fixed calculations for UpdateView after Combining lines
33585
33586 2004-12-16  Peter Bartok  <pbartok@novell.com>
33587
33588         * TextControl.cs: Now properly aligns text on a baseline, using the
33589           new XplatUI.GetFontMetrics() method. Simplified several calculations
33590         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
33591           defined
33592
33593 2004-12-16  Peter Bartok  <pbartok@novell.com>
33594
33595         * XplatUI.cs: Added GetFontMetrics() method
33596         * XplatUIDriver.cs: Added GetFontMetrics() abstract
33597         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
33598           into libgdiplus, our private GetFontMetrics function
33599         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
33600         * XplatUIWin32.cs: Implemented GetFontMetrics() method
33601
33602 2004-12-16  Jackson Harper  <jackson@ximain.com>
33603
33604         * XplatUIStruct.cs: Add enum for dead keys
33605         * X11Keyboard.cs: Map and unmap dead keys.
33606
33607 2004-12-16  Jackson Harper  <jackson@ximian.com>
33608
33609         * X11Keyboard.cs: Detect and use the num lock mask.
33610
33611 2004-12-16  Peter Bartok  <pbartok@novell.com>
33612
33613         * Control.cs (CreateGraphics): Added check to make sure the
33614           handle of the window exists before calling Graphics.FromHwnd()
33615
33616 2004-12-16  Peter Bartok  <pbartok@novell.com>
33617
33618         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
33619           contains a lot of code that's not supposed to be there for the
33620           real thing, but required for developing/testing the textbox
33621           backend.
33622
33623 2004-12-16  Peter Bartok  <pbartok@novell.com>
33624
33625         * TextControl.cs:
33626         - Fixed Streamline method
33627         - Added FindTag method to Line
33628         - Added DumpTree method for debugging
33629         - Added DecrementLines() method for deleting lines
33630         - Fixed UpdateView to update the cursor to end-of-line on single-line
33631           updates
33632         - Added PositionCaret() method
33633         - Fixed MoveCaret(LineDown) to move into the last line, too
33634         - Added InsertChar overload
33635         - Fixed InsertChar tag offset calculations
33636         - Added DeleteChar() method
33637         - Added Combine() method for folding lines
33638         - Fixed Delete() method, no longer allocates wasted Line object and
33639           now copies all properties when swapping nodes
33640         - Delete() method now updates document line counter
33641
33642 2004-12-15  Jackson Harper  <jackson@ximian.com>
33643
33644         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
33645         * X11Keyboard.cs: Expose the currently selected modifier keys
33646         through a property.
33647
33648 2004-12-15  Peter Bartok  <pbartok@novell.com>
33649
33650         * TextControl.cs: Initial check-in. Still incomplete
33651
33652 2004-12-15  Jackson Harper  <jackson@ximian.com>
33653
33654         * TreeNode.cs:
33655         * TreeView.cs: Fix build on csc (second time today ;-))
33656
33657 2004-12-15  Jackson Harper  <jackson@ximian.com>
33658
33659         * TreeView.cs: Store the treenodes plus/minus box bounds when it
33660         is calculated and use this for click testing.
33661         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
33662
33663 2004-12-15  Jackson Harper  <jackson@ximian.com>
33664
33665         * TreeView.cs: Pass the nodes image index to the image list when
33666         drawing that image.
33667
33668 2004-12-15  Jackson Harper  <jackson@ximian.com>
33669
33670         * X11Keyboard.cs: Set messages hwnd.
33671         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
33672         post_message calls.
33673
33674 2004-12-15  Jackson Harper  <jackson@ximian.com>
33675
33676         * X11Keyboard.cs: Fix to compile with csc.
33677         
33678 2004-12-15  Jackson Harper  <jackson@ximian.com>
33679
33680         * X11Structs.cs: Add key mask values
33681         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
33682         * X11Keyboard.cs: New file - Extrapolates and interpolates key
33683         down/up foo into WM_CHAR foo
33684         * KeyboardLayouts.cs: Common keyboard layouts
33685         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
33686         post messages into the main queue.
33687
33688 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
33689
33690         * Button.cs: implement ProcessMnemonic
33691         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
33692           brushes everytime
33693         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
33694         * ButtonBase.cs: Show HotkeyPrefix (not the &)
33695
33696 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
33697         
33698         * MonthCalendar.cs: Implemented click-hold for next/previous month
33699           and date selection
33700           
33701 2004-12-11  Peter Bartok  <pbartok@novell.com>
33702
33703         * X11Structs.cs:
33704           - Added XKeyboardState (moved from XplatUIX11.cs)
33705           - Added XCreateGC related enums and structures
33706           - Added GXFunction for XSetFunction
33707
33708         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
33709
33710         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
33711           CaretVisible() calls
33712
33713         * ToolTip.cs: Added code to prevent stealing focus from app windows
33714
33715         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
33716           DestroyCaret, SetCaretPos and CaretVisible)
33717
33718         * XplatUIX11.cs:
33719           - Added implementation for caret functions
33720           - Moved hover variables into a struct, to make it a bit easier
33721             on the eyes and to debug
33722           - Removed XKeyboardState (moved to XplatUIX11.cs)
33723           - Moved Keyboard properties into the properties region
33724
33725         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
33726           call to get a graphics context for our control
33727
33728         * XplatUIOSX.cs: Added empty overrides for the new caret functions
33729
33730         * TreeView.cs: Fixed bug. No matter what color was set it would always
33731           return SystemColors.Window
33732
33733         * XplatUIWin32.cs: Implemented caret overrides
33734
33735 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
33736
33737         * ListBox.cs: fire events, implement missing methods and properties,
33738         sorting.
33739
33740 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
33741
33742         * MonthCalendar.cs: invalidation bug fixing
33743         * ThemeWin32Classic.cs: paint fixing
33744
33745 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
33746
33747         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
33748         prepare the CGContextRef there now.
33749
33750 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
33751
33752         * MonthCalendar.cs:
33753           - optimisationL only invalidate areas that have changed
33754         * ThemeWin32Classic.cs:
33755           - only paint parts that intersect with clip_area
33756
33757 2004-12-09  Peter Bartok  <pbartok@novell.com>
33758
33759         * Application.cs: Undid changes from r37004 which cause problems
33760         on X11
33761
33762 2004-12-09  Ravindra  <rkumar@novell.com>
33763
33764         * ToolBar.cs: Added support for displaying ContextMenu
33765         attached to a button on ToolBar.
33766         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
33767         property.
33768
33769 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
33770
33771         * Label.cs: autosize works in text change and removes unnecessary
33772         invalidate
33773
33774 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
33775
33776         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
33777         remove warnings
33778
33779 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
33780
33781         * XplatUIOSX.cs: Added mouse move/click/grab support
33782         Remove some debugging WriteLines not needed anymore.
33783         Add window resizing/positioning.
33784         Fix visibility on reparenting.
33785
33786 2004-12-08  Peter Bartok  <pbartok@novell.com>
33787
33788         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
33789
33790 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
33791
33792         * XplatUIOSX.cs: Initial checkin
33793         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
33794
33795 2004-12-03  Ravindra <rkumar@novell.com>
33796
33797         * ListView.cs: Added some keybindings and fixed scrolling.
33798         ScrollBars listen to ValueChanged event instead of Scroll
33799         Event. This would let us take care of all changes being
33800         done in the scrollbars' values programmatically or manually.
33801         * ListView.cs (CanMultiselect): Added a check for shift key.
33802         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
33803         * ListViewItem.cs (Clone): Fixed. We need to make a copy
33804         of ListViewSubItemCollection as well.
33805
33806 2004-12-06  Peter Bartok <pbartok@novell.com>
33807
33808         * Control.cs (Parent): Added check and exception to prevent
33809         circular parenting
33810
33811 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
33812
33813         * ListBox.cs: implemented clipping, selection single and multiple,
33814         bug fixing
33815
33816 2004-12-03  Ravindra <rkumar@novell.com>
33817
33818         * ListView.cs (ListView_KeyDown):
33819         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
33820         when CTRL key is pressed.
33821         * ListViewItem.cs (Selected): Fixed setting the property.
33822
33823 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
33824
33825         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
33826
33827         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
33828         MinimizeBox, ShowInTaskbar, TopMost properties.
33829
33830         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
33831         will be implemented).
33832
33833 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
33834
33835         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
33836
33837         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
33838         tests.
33839         
33840         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
33841         
33842         * TreeView.cs: BackColor is Colors.Window.
33843
33844 2004-12-01  Jackson Harper  <jackson@ximian.com>
33845
33846         * TreeView.cs: When resizing the tree if the user is making it
33847         smaller we don't get expose events, so we need to handle adding
33848         the horizontal scrollbar in the size changed handler as well as
33849         the expose handler.
33850
33851 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
33852
33853         * DrawItemState.cs: fixes wrong enum values
33854
33855 2004-12-01  Jackson Harper  <jackson@ximian.com>
33856
33857         * TreeView.cs: Resize the hbar as well as the vbar on resize.
33858
33859 2004-12-01  Jackson Harper  <jackson@ximian.com>
33860
33861         * NodeLabelEditEventArgs.cs:
33862         * NodeLabelEditEventHandler.cs:
33863         * OpenTreeNodeEnumerator.cs:
33864         * TreeNode.cs:
33865         * TreeNodeCollection.cs:
33866         * TreeView.cs:
33867         * TreeViewAction.cs:
33868         * TreeViewCancelEventArgs.cs:
33869         * TreeViewCancelEventHandler.cs:
33870         * TreeViewEventArgs.cs:
33871         * TreeViewEventHandler.cs: Initial implementation.
33872
33873 2004-12-01  Ravindra <rkumar@novell.com>
33874
33875         * ListView.cs (CalculateListView): Fixed scrolling related
33876         calculations. Also, removed some debug statements from other
33877         places.
33878         * ListViewItem.cs: Changed access to 'selected' instance variable
33879         from private to internal.
33880         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
33881
33882 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
33883
33884         * ThemeWin32Classic.cs: remove cache of brush and pens for
33885         specific controls and use the global system, fixes scrollbutton
33886         bugs (for small sizes, disabled, etc)
33887         
33888         * ScrollBar.cs: does not show the thumb for very small controls
33889         (as MS) and allow smaller buttons that the regular size
33890
33891 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
33892
33893         * UpDownBase.cs: Add abstract methods for the interface.
33894         Add new virtual methods (need to be hooked up to TextEntry when it
33895         exists).
33896         Add override methods for most features.
33897         Computes the size, forces the height of the text entry.
33898
33899         * NumericUpDown.cs: Put here the current testing code.
33900
33901         * Set eol-style property on all files that do not have mixed line
33902         endings, to minimize the future problems.  There are still a few
33903         files with mixed endings, and someone should choose whether they
33904         want to move it or not.
33905
33906 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
33907
33908         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
33909         System.Colors
33910         
33911 2004-11-30  Ravindra <rkumar@novell.com>
33912
33913         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
33914         drawing and replaced use of SystemColors by theme colors.
33915         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
33916         * ListView.cs (ListViewItemCollection.Add): Throw exception when
33917         same ListViewItem is being added more than once.
33918
33919 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
33920
33921         * MonthCalendar.cs:
33922           - ControlStyles love to make the control not flicker
33923           
33924 2004-11-30  Peter Bartok  <pbartok@novell.com>
33925
33926         * CharacterCasing.cs: Added
33927
33928 2004-11-29  Peter Bartok  <pbartok@novell.com>
33929
33930         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
33931           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
33932           I am removing these files as they conflict with already completed
33933           work. While it is fantastic to get contributions to MWF, I
33934           respectfully ask that everyone please coordinate their contributions
33935           through mono-winforms-list or #mono-winforms at this time. We're
33936           explicitly avoiding stubbing and don't want controls that don't have
33937           their basic functionality implemented in svn. Please also see
33938           http://www.mono-project.com/contributing/winforms.html
33939
33940
33941 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
33942
33943         * Application.cs (ModalRun): Don't hang after exit.
33944
33945         * Theme.cs: New TreeViewDefaultSize property.
33946
33947         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
33948         with less hardcoded SystemColors constant.
33949         Implemented TreeViewDefaultSize.
33950
33951         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
33952         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
33953
33954
33955 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
33956
33957         * MonthCalendar.cs:
33958           - Fix NextMonthDate and PrevMonthDate click moving calendar
33959
33960 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
33961
33962         * MonthCalendar.cs:
33963           - Fix usage of ScrollChange Property when scrolling months
33964
33965 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
33966
33967         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
33968          - Fixes menu destroying
33969          - Support adding and removing items on already created menus
33970
33971 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
33972
33973         * MonthCalendar.cs:
33974           - Re-worked all bolded dates handling to match win32
33975         * ThemeWin32Classic.cs:
33976           - Fixed rendering with bolded dates
33977
33978 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
33979
33980         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
33981         - Horizontal scroolbar
33982         - Multicolumn
33983         - Fixes
33984
33985
33986 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
33987
33988         * MonthCalendar.cs:
33989           - Fix Usage of MaxSelectionCount from SelectionRange
33990           - Fixed Shift + Cursor Selection
33991           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
33992           - Fixed normal cursor selection to be compat with win32
33993           - Fixed Shift + Mouse Click selection
33994
33995 2004-11-24  Peter Bartok <pbartok@novell.com>
33996
33997         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
33998         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
33999         * XplatUIX11.cs:
34000           - CreatedKeyBoardMsg now updates keystate with Alt key
34001           - Added workaround for timer crash to CheckTimers, Jackson will
34002             develop a proper fix and check in later
34003           - Implemented DispatchMessage
34004           - Removed calling the native window proc from GetMessage (call
34005             now moved to DispatchMessage)
34006
34007         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
34008           the keydata (Fixes bug #69831)
34009
34010         * XplatUIWin32.cs:
34011           - (DispatchMessage): Switched to return IntPtr
34012           - Added DllImport for SetFocus
34013
34014 2004-11-24  Ravindra <rkumar@novell.com>
34015
34016         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
34017         background drawing.
34018         * ListViewItem.cs: Fixed various properties, calculations
34019         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
34020         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
34021         and some internal properties. Fixed MouseDown handler and Paint
34022         method.
34023
34024 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
34025
34026         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
34027
34028 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
34029
34030         * ContainerControl.cs: correct accidental check in of local changes
34031
34032 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
34033
34034         * ThemeWin32Classic.cs:
34035                 - Fixed Drawing Last month in grid (sometimes not showing)
34036         * MonthCalendar.cs:
34037                 - Fixed title width calculation bug (makeing title small)
34038
34039 2004-11-23  Peter Bartok <pbartok@novell.com>
34040
34041         * XplatUIX11.cs:
34042           - Added generation of WM_MOUSEHOVER event
34043           - Added missing assignment of async_method atom
34044           - Fixed WM_ERASEBKGND; now only redraws the exposed area
34045
34046 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
34047
34048         * ThemeWin32Classic.cs:
34049                 - Fixed Drawing of today circle when showtodaycircle not set
34050                 - fixed drawing of first and last month in the grid (gay dates)
34051         * MonthCalendar.cs:
34052                 - Fixed Drawing of today circle
34053                 - Fixed drawing of grady dates
34054                 - Fixed HitTest for today link when ShowToday set to false
34055                 - Fixed DefaultSize to obey ShowToday
34056
34057 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
34058
34059         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
34060         * System.Windows.Forms/Theme.cs
34061         * MonthCalendar.cs: added for MonthCalendar
34062         * SelectionRange.cs: added for MonthCalendar
34063         * Day.cs: added for MonthCalendar: added for MonthCalendar
34064         * DateRangeEventArgs.cs: added for MonthCalendar
34065         * DateRangeEventHandler.cs: added for MonthCalendar
34066
34067 2004-11-22  Ravindra <rkumar@novell.com>
34068
34069         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
34070         property.
34071
34072 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
34073
34074         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
34075         event handler.
34076         
34077         * NumericUpDown.cs: Added new implementation.
34078         * UpDownBase.cs: Added new implementation.
34079
34080         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
34081         implementations.
34082         
34083         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
34084         implementations.
34085
34086         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
34087         methods.
34088
34089 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
34090
34091         * Timer.cs  (Dispose): Should call the base dispose when
34092         overriding.
34093
34094 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
34095
34096         * ScrollBar.cs: updates thumb position when max, min or increment
34097         is changed
34098
34099 2004-11-21  Ravindra <rkumar@novell.com>
34100
34101         * ListView.cs: Implemented item selection, activation and
34102         column header style. Fixed properties to do a redraw, if
34103         required. Added support for MouseHover, DoubleClick, KeyDown
34104         and KeyUp event handling and some minor fixes.
34105         * ListViewItem.cs: Fixed constructor.
34106         * ThemeWin32Classic.cs: Improved drawing for ListView.
34107
34108 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
34109
34110         * ThemeWin32Classic.cs: initial listbox drawing code
34111         * DrawMode.cs: new enumerator
34112         * ListControl.cs: stubbed class
34113         * ListBox.cs: initial implementation
34114         * Theme.cs: new methods definitions
34115         * SelectionMode.cs: new enumerator
34116
34117 2004-11-17  Peter Bartok  <pbartok@novell.com>
34118
34119         * XplatUIWin32.cs: Added double-click events to the class style
34120         * Control.cs (WndProc):
34121           - Added handling of click-count to MouseDown/ MouseUp events.
34122           - Added handling of middle and right mouse buttons
34123           - Removed old debug code
34124
34125 2004-11-17  Jackson Harper  <jackson@ximian.com>
34126
34127         * XplatUIX11.cs: Use the new Mono.Unix namespace.
34128
34129 2004-11-17  Ravindra <rkumar@novell.com>
34130
34131         * ListView.cs: Added event handling for MouseMove/Up/Down.
34132         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
34133         * ThemeWin32Classic.cs: We need to clear the graphics context and
34134         draw column header in a proper state.
34135
34136
34137 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
34138
34139         *  Menu.cs: fixes signature
34140
34141 2004-11-16  Peter Bartok  <pbartok@novell.com>
34142
34143         * XplatUIX11.cs (GetMessage): Implemented generation of
34144           double click mouse messages
34145
34146 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
34147
34148         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
34149         not by menu
34150
34151 2004-11-11  Peter Bartok  <pbartok@novell.com>
34152
34153         * HandleData.cs: Added Visible property
34154         * XplatUIX11.cs (IsVisible): Now uses Visible property from
34155           HandleData
34156         * XplatUIX11.cs: Removed old debug leftovers
34157         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
34158         * Control.cs (WndProc): Removed old debug leftovers,
34159           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
34160           needed WM_SIZE handling
34161
34162 2004-11-11  Jackson Harper  <jackson@ximian.com>
34163
34164         * OwnerDrawPropertyBag.cs:
34165         * TreeViewImageIndexConverter.cs: Initial implementation
34166
34167 2004-11-10  Jackson Harper  <jackson@ximian.com>
34168
34169         * ThemeWin32Classic.cs:
34170         * TabControl.cs: instead of moving tabs by the slider pos just
34171         start drawing at the tab that is offset by the slider. This way
34172         scrolling always moves by exactly one tab.
34173
34174 2004-11-10  Jackson Harper  <jackson@ximian.com>
34175
34176         * TabControl.cs: You can only scroll left when the slider has
34177         already ben moved right.
34178         
34179 2004-11-10  Jackson Harper  <jackson@ximian.com>
34180
34181         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
34182         the clip area.
34183         
34184 2004-11-10  Jackson Harper  <jackson@ximian.com>
34185
34186         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
34187         clip area.
34188         
34189 2004-11-09  Jackson Harper  <jackson@ximian.com>
34190
34191         * TabControl.cs (CalcXPos): New helper method so we can determine
34192         the proper place to start drawing vertical tabs.
34193         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
34194         
34195 2004-11-09  Jackson Harper  <jackson@ximian.com>
34196
34197         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
34198         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
34199         and Bottom, left and right are illegal values for this and
34200         multiline is enabled when the alignment is set to left or right.
34201         (DrawTab): Each alignment block should draw the text itself now
34202         because Left requires special love. Also add rendering for Left
34203         aligned tabs.
34204         
34205 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
34206
34207         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
34208         does not destroy the windows, removes debugging messages
34209
34210 2004-11-09  jba  <jba-mono@optusnet.com.au>
34211
34212         * ThemeWin32Classic.cs
34213         (DrawButtonBase): Fix verticle text rect clipping in windows
34214         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
34215         rendering and incorrect text rect clipping
34216         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
34217         rendering and incorrect text rect clipping
34218         
34219 2004-11-08  Jackson Harper  <jackson@ximian.com>
34220
34221         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
34222         bottom when they are bottom aligned so the bottoms of the tabs get
34223         displayed.
34224         * TabControl.cs (DropRow): Move rows up instead of down when the
34225         tab control is bottom aligned.
34226
34227 2004-11-08 13:59  pbartok
34228
34229         * XplatUIX11.cs:
34230           - Added handling for various window styles
34231           - Added handling for popup windows
34232           - Added SetTopmost handling
34233
34234 2004-11-08 13:55  pbartok
34235
34236         * XplatUIWin32.cs:
34237           - Added argument to SetTopmost method
34238           - Fixed broken ClientToScreen function
34239
34240 2004-11-08 13:53  pbartok
34241
34242         * XplatUIStructs.cs:
34243           - Added missing WS_EX styles
34244
34245 2004-11-08 13:53  pbartok
34246
34247         * XplatUI.cs, XplatUIDriver.cs:
34248           - Added argument to SetTopmost
34249
34250 2004-11-08 13:52  pbartok
34251
34252         * X11Structs.cs:
34253           - Added XSetWindowAttributes structure
34254           - Improved XWindowAttributes structure
34255           - Added SetWindowValuemask enum
34256           - Added window creation arguments enum
34257           - Added gravity enum
34258           - Added Motif hints structure
34259           - Added various Motif flags and enums
34260           - Added PropertyMode enum for property functions
34261
34262 2004-11-08 13:50  pbartok
34263
34264         * Form.cs:
34265           - Fixed arguments for updated SetTopmost method
34266
34267 2004-11-08 13:49  pbartok
34268
34269         * ToolTip.cs:
34270           - Fixed arguments for updated SetTopmost function
34271           - Fixed usage of PointToClient
34272
34273 2004-11-08 13:44  pbartok
34274
34275         * MenuAPI.cs:
34276           - Added Clipping of children and siblings
34277
34278 2004-11-08 13:41  pbartok
34279
34280         * MainMenu.cs:
34281           - Removed SetMenuBarWindow call. We do this in Form.cs
34282
34283 2004-11-08 13:40  jackson
34284
34285         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
34286           scrolling jimmi in the correct location with bottom aligned tabs
34287
34288 2004-11-08 13:36  pbartok
34289
34290         * ContainerControl.cs:
34291           - Implemented BindingContext
34292           - Implemented ParentForm
34293
34294 2004-11-08 12:46  jackson
34295
34296         * TabControl.cs: Put bottom rendered tabs in the right location
34297
34298 2004-11-08 07:15  jordi
34299
34300         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
34301           removes dead code
34302
34303 2004-11-05 17:30  jackson
34304
34305         * TabControl.cs: When selected tabs are expanded make sure they
34306           don't go beyond the edges of the tab control
34307
34308 2004-11-05 14:57  jackson
34309
34310         * TabControl.cs: Reset show_slider so if the control is resized to
34311           a size where it is no longer needed it's not displayed anymore
34312
34313 2004-11-05 13:16  jackson
34314
34315         * TabControl.cs: Make tab pages non visible when added to the
34316           control
34317
34318 2004-11-05 12:42  jackson
34319
34320         * TabControl.cs: Implement SizeMode.FillToRight
34321
34322 2004-11-05 12:16  jackson
34323
34324         * Control.cs: Do not call CreateHandle if the handle is already
34325           created
34326
34327 2004-11-05 11:46  jackson
34328
34329         * TabControl.cs: Remove superflous call to CalcTabRows
34330
34331 2004-11-05 09:07  jackson
34332
34333         * XplatUIX11.cs: Update for Mono.Posix changes
34334
34335 2004-11-05 07:00  ravindra
34336
34337         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
34338           scrolling.
34339
34340 2004-11-04 22:47  jba
34341
34342         * ThemeWin32Classic.cs:
34343           - Fix Button rendering for FlatStyle = Flat or Popup
34344           - Fix RadioButton and CheckBox rendering when Appearance = Button
34345             (normal and flatstyle).
34346           - Correct outer rectangle color when drawing focus rectangle
34347           - Adjust button bounds to be 1 px smaller when focused
34348           - Make button not draw sunken 3d border when pushed (windows compat)
34349           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
34350           - Offset the text in RadioButton and Checkbox when being rendered as
34351           a button.
34352           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
34353           radiobuttons
34354           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
34355           - Fixed disabled text rendering for normally rendered radiobuttons
34356
34357 2004-11-04 10:26  jackson
34358
34359         * TabControl.cs: Recalculate tab rows when resizing
34360
34361 2004-11-04 07:47  jordi
34362
34363         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
34364           collection completion, drawing issues, missing features
34365
34366 2004-11-04 05:03  ravindra
34367
34368         * ScrollBar.cs:
34369                 - We need to recalculate the Thumb area when
34370                 LargeChange/maximum/minimum values are changed.
34371           - We set the 'pos' in UpdatePos() method to minimum, if it's less
34372                 than minimum. This is required to handle the case if large_change is
34373                 more than max, and use LargeChange property instead of large_change
34374                 variable.
34375           - We return max+1 when large_change is more than max, like MS does.
34376
34377 2004-11-04 04:29  ravindra
34378
34379         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
34380                 - Changed default value signatures (prefixed all with ListView).
34381                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
34382                 ListView.
34383           - Fixed calculations for ListViewItem and implemented Clone()
34384           method.
34385
34386 2004-11-04 04:26  ravindra
34387
34388         * Theme.cs, ThemeWin32Classic.cs:
34389                 - Changed default ListView values signatures (prefixed all with
34390                 ListView).
34391           - Fixed default size values for VScrollBar and HScrollBar.
34392                 - Fixed DrawListViewItem method.
34393
34394 2004-11-04 04:05  ravindra
34395
34396         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
34397
34398 2004-11-04 04:04  ravindra
34399
34400         * ImageList.cs: Implemented the missing overload for Draw method.
34401
34402 2004-11-03 19:29  jackson
34403
34404         * TabControl.cs: Handle dropping rows on selection properly
34405
34406 2004-11-03 11:59  jackson
34407
34408         * TabControl.cs: remove debug code
34409
34410 2004-11-03 11:52  jackson
34411
34412         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
34413           the scrolly widgerywoo
34414
34415 2004-11-02 13:52  jackson
34416
34417         * TabControl.cs: Resize the tab pages and tabs when the tab control
34418           is resized
34419
34420 2004-11-02 13:40  jackson
34421
34422         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
34423           selected tab to the bottom
34424
34425 2004-11-02 13:39  jackson
34426
34427         * TabPage.cs: Store the tab pages row
34428
34429 2004-11-02 12:33  jordi
34430
34431         * MenuItem.cs: fixes handle creation
34432
34433 2004-11-02 11:42  jackson
34434
34435         * TabControl.cs: signature fix
34436
34437 2004-11-02 08:56  jackson
34438
34439         * TabControl.cs: Calculate whether the tab is on an edge properly.
34440           Remove top secret debugging code
34441
34442 2004-11-01 19:57  jackson
34443
34444         * TabControl.cs: Add click handling, and proper sizing
34445
34446 2004-11-01 19:47  jackson
34447
34448         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
34449           tab controls
34450
34451 2004-11-01 19:39  jackson
34452
34453         * TabPage.cs: add internal property to store the bounds of a tab
34454           page
34455
34456 2004-10-30 04:23  ravindra
34457
34458         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
34459           values.
34460
34461 2004-10-30 04:21  ravindra
34462
34463         * ListView.cs, ListViewItem.cs: Added support for scrolling and
34464           fixed calculations.
34465
34466 2004-10-30 03:06  pbartok
34467
34468         * XplatUIX11.cs:
34469           - Removed extension of DllImported libs
34470
34471 2004-10-29 09:55  jordi
34472
34473         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
34474           navigation, itemcollection completion, menu fixes
34475
34476 2004-10-27 22:58  pbartok
34477
34478         * XplatUIX11.cs:
34479           - Now throws a nice error message when no X display could be opened
34480
34481 2004-10-26 13:51  jordi
34482
34483         * ListView.cs: removes warning
34484
34485 2004-10-26 03:55  ravindra
34486
34487         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
34488           ThemeWin32Classic.cs: Some formatting for my last checkins.
34489
34490 2004-10-26 03:36  ravindra
34491
34492         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
34493           control and default values.
34494
34495 2004-10-26 03:35  ravindra
34496
34497         * Theme.cs: Added some default values for ListView control.
34498
34499 2004-10-26 03:33  ravindra
34500
34501         * ToolBar.cs: ToolBar should use the user specified button size, if
34502           there is any. Added a size_specified flag for the same.
34503
34504 2004-10-26 03:33  ravindra
34505
34506         * ColumnHeader.cs: Added some internal members and calculations for
34507           ColumnHeader.
34508
34509 2004-10-26 03:32  ravindra
34510
34511         * ListViewItem.cs: Calculations for ListViewItem.
34512
34513 2004-10-26 03:31  ravindra
34514
34515         * ListView.cs: Added some internal members and calculations for
34516           ListView.
34517
34518 2004-10-22 13:31  jordi
34519
34520         * MenuAPI.cs: speedup menus drawing
34521
34522 2004-10-22 13:16  jackson
34523
34524         * XplatUIX11.cs: Make sure to update exposed regions when adding an
34525           expose event
34526
34527 2004-10-22 11:49  jackson
34528
34529         * Control.cs: oops
34530
34531 2004-10-22 11:41  jackson
34532
34533         * Control.cs: Check to see if the window should have its background
34534           repainted by X when drawing.
34535
34536 2004-10-22 11:31  jackson
34537
34538         * XplatUIX11.cs: When invalidating areas only use XClearArea if
34539           clear is true, this way we do not get flicker from X repainting the
34540           background
34541
34542 2004-10-22 11:28  jackson
34543
34544         * XEventQueue.cs: Queue properly
34545
34546 2004-10-21 09:38  jackson
34547
34548         * XEventQueue.cs: Fix access modifier
34549
34550 2004-10-21 09:36  jackson
34551
34552         * XEventQueue.cs: Don't loose messages
34553
34554 2004-10-21 09:22  jackson
34555
34556         * XEventQueue.cs: Don't loose messages
34557
34558 2004-10-20 04:15  jordi
34559
34560         * BootMode.cs: enum need it by SystemInfo
34561
34562 2004-10-19 21:58  pbartok
34563
34564         * XplatUIWin32.cs:
34565           - Small sanity check
34566
34567 2004-10-19 21:56  pbartok
34568
34569         * Form.cs:
34570           - Added private FormParentWindow class which acts as the container
34571             for our form and as the non-client area where menus are drawn
34572           - Added/Moved required tie-ins to Jordi's menus
34573           - Fixed/Implemented the FormStartPosition functionality
34574
34575 2004-10-19 21:52  pbartok
34576
34577         * Control.cs:
34578           - Removed unneeded locals
34579           - Added code to all size and location properties to understand and
34580             deal with the parent container of Form
34581
34582 2004-10-19 21:33  pbartok
34583
34584         * Application.cs:
34585           - Fixed to deal with new Form subclasses for menus
34586
34587 2004-10-19 17:48  jackson
34588
34589         * XEventQueue.cs: commit correct version of file
34590
34591 2004-10-19 16:50  jackson
34592
34593         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
34594
34595 2004-10-19 16:15  jordi
34596
34597         * MenuAPI.cs: MenuBarCalcSize returns the height
34598
34599 2004-10-19 08:31  pbartok
34600
34601         * Control.cs:
34602           - Added missing call to PreProcessMessage before calling OnXXXKey
34603           methods
34604
34605 2004-10-19 00:04  ravindra
34606
34607         * ToolTip.cs: Fixed constructor.
34608
34609 2004-10-18 09:31  jordi
34610
34611         * MenuAPI.cs: menuitems in menubars do not have shortcuts
34612
34613 2004-10-18 09:26  jordi
34614
34615         * MenuItem.cs: fixes MenuItem class signature
34616
34617 2004-10-18 08:56  jordi
34618
34619         * MenuAPI.cs: prevents windows from showing in the taskbar
34620
34621 2004-10-18 00:28  ravindra
34622
34623         * ToolTip.cs: Suppressed a warning message.
34624
34625 2004-10-18 00:27  ravindra
34626
34627         * Control.cs: Default value of visible property must be true.
34628
34629 2004-10-17 23:19  pbartok
34630
34631         * ToolTip.cs:
34632           - Complete implementation
34633
34634 2004-10-17 23:19  pbartok
34635
34636         * XplatUIX11.cs:
34637           - Added EnableWindow method
34638           - Added SetModal stub
34639           - Added generation of WM_ACTIVATE message (still needs testing)
34640           - Added SetTopMost stub
34641           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
34642
34643 2004-10-17 23:17  pbartok
34644
34645         * XplatUIWin32.cs:
34646           - Removed VirtualKeys to XplatUIStructs
34647           - Implemented SetTopMost method
34648           - Implemented EnableWindow method
34649           - Bugfix in ScreenToClient()
34650           - Bugfixes in ClientToScreen()
34651
34652 2004-10-17 22:51  pbartok
34653
34654         * XplatUIStructs.cs:
34655           - Added WS_EX styles to WindowStyles enumeration
34656
34657 2004-10-17 22:50  pbartok
34658
34659         * XplatUI.cs, XplatUIDriver.cs:
34660           - Added method for enabling/disabling windows
34661           - Added method for setting window modality
34662           - Added method for setting topmost window
34663
34664 2004-10-17 22:49  pbartok
34665
34666         * ThemeWin32Classic.cs:
34667           - Added ToolTip drawing code
34668
34669 2004-10-17 22:49  pbartok
34670
34671         * Theme.cs:
34672           - Added ToolTip abstracts
34673
34674 2004-10-17 22:47  pbartok
34675
34676         * Form.cs:
34677           - Fixed Form.ControlCollection to handle owner relations
34678           - Added Owner/OwnedForms handling
34679           - Implemented Z-Ordering for owned forms
34680           - Removed unneeded private overload of ShowDialog
34681           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
34682             so I hope)
34683           - Fixed Close(), had wrong default
34684           - Added firing of OnLoad event
34685           - Added some commented out debug code for Ownership handling
34686
34687 2004-10-17 22:16  pbartok
34688
34689         * Control.cs:
34690           - Fixed/implemented flat list of controls
34691
34692 2004-10-17 22:14  pbartok
34693
34694         * Application.cs:
34695           - Added code to simulate modal dialogs on Win32
34696
34697 2004-10-17 16:11  jordi
34698
34699         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
34700           mouse event
34701
34702 2004-10-17 13:39  jordi
34703
34704         * MenuAPI.cs: menu drawing fixes
34705
34706 2004-10-15 09:10  ravindra
34707
34708         * StructFormat.cs: General Enum.
34709
34710 2004-10-15 09:09  ravindra
34711
34712         * SizeGripStyle.cs: Enum for Form.
34713
34714 2004-10-15 09:08  ravindra
34715
34716         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
34717           in Theme for ListView.
34718
34719 2004-10-15 09:06  ravindra
34720
34721         * ColumnHeader.cs: Flushing some formatting changes.
34722
34723 2004-10-15 09:05  ravindra
34724
34725         * ListViewItem.cs: Implemented GetBounds method and fixed coding
34726           style.
34727
34728 2004-10-15 09:03  ravindra
34729
34730         * ListView.cs: Implemented Paint method and fixed coding style.
34731
34732 2004-10-15 07:34  jordi
34733
34734         * MenuAPI.cs: fix for X11
34735
34736 2004-10-15 07:32  ravindra
34737
34738         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
34739                 - Renamed Paint() method to Draw() for clarity. Also, moved
34740                 DrawImage() to OnPaint().
34741
34742 2004-10-15 07:25  ravindra
34743
34744         * CheckBox.cs, RadioButton.cs:
34745                 - Removed Redraw (), we get it from ButtonBase.
34746                 - Implemented Paint (), to do class specific painting.
34747
34748 2004-10-15 07:16  ravindra
34749
34750         * ButtonBase.cs:
34751                 - Redraw () is not virtual now.
34752                 - Added an internal virtual method Paint (), so that
34753                 derived classes can do their painting on their own.
34754                 - Modified OnPaint () to call Paint ().
34755
34756 2004-10-15 06:43  jordi
34757
34758         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
34759           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
34760
34761 2004-10-15 00:30  ravindra
34762
34763         * MessageBox.cs:
34764                 - MessageBox on windows does not have min/max buttons.
34765                 This change in CreateParams fixes this on Windows. We
34766                 still need to implement this windowstyle behavior in
34767                 our X11 driver.
34768
34769 2004-10-14 05:14  ravindra
34770
34771         * ToolBar.cs:
34772                 - Changed Redraw () to do a Refresh () always.
34773                 - Fixed the MouseMove event handling when mouse is pressed,
34774                 ie drag event handling.
34775                 - Replaced the usage of ToolBarButton.Pressed property to
34776                 ToolBarButton.pressed internal variable.
34777
34778 2004-10-14 05:10  ravindra
34779
34780         * ToolBarButton.cs:
34781                 - Added an internal member 'inside' to handle mouse move
34782                 with mouse pressed ie mouse drag event.
34783                 - Changed 'Pressed' property to return true only when
34784                 'inside' and 'pressed' are both true.
34785                 - Some coding style love.
34786
34787 2004-10-14 00:17  ravindra
34788
34789         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
34790           public method.
34791
34792 2004-10-14 00:15  ravindra
34793
34794         * ButtonBase.cs: Redraw () related improvements.
34795
34796 2004-10-14 00:14  ravindra
34797
34798         * MessageBox.cs: Moved InitFormSize () out of Paint method and
34799           removed unnecessary calls to Button.Show () method.
34800
34801 2004-10-13 17:50  pbartok
34802
34803         * XplatUIX11.cs:
34804           - Formatting fix
34805           - Removed destroying of window until we solve the problem of X
34806             destroying the window before us on shutdown
34807
34808 2004-10-13 16:32  pbartok
34809
34810         * ButtonBase.cs:
34811           - Now Redraws on MouseUp for FlatStyle Flat and Popup
34812
34813 2004-10-13 14:18  pbartok
34814
34815         * XplatUIX11.cs:
34816           - Added code to destroy the X window
34817
34818 2004-10-13 14:18  pbartok
34819
34820         * XplatUIWin32.cs:
34821           - Added code to destroy a window
34822
34823 2004-10-13 14:12  pbartok
34824
34825         * ButtonBase.cs:
34826           - Added the Redraw on Resize that got dropped in the last rev
34827
34828 2004-10-13 09:06  pbartok
34829
34830         * ThemeWin32Classic.cs:
34831           - Path from John BouAntoun:
34832             * Fix check rendering (centre correctly for normal style, offset
34833               correctly for FlatStyle).
34834             * Fix border color usage (use backcolor) for FlatStyle.Popup
34835             * Use checkbox.Capture instead of checkbox.is_pressed when
34836               rendering flatstyle states.
34837
34838 2004-10-12 21:48  pbartok
34839
34840         * ThemeWin32Classic.cs:
34841           - Removed all occurences of SystemColors and replaced them with the
34842             matching theme color
34843
34844 2004-10-12 21:41  pbartok
34845
34846         * ThemeWin32Classic.cs:
34847           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
34848             him using the function for flatstyle drawing
34849           - Changed functions to use the new version of CPDrawBorder3D
34850
34851 2004-10-12 21:15  pbartok
34852
34853         * ControlPaint.cs:
34854           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
34855             match MS documentation. They need to return defined colors if the
34856             passed color matches the configured control color. Thanks to John
34857             BouAntoun for pointing this out.
34858
34859 2004-10-12 20:57  pbartok
34860
34861         * Control.cs:
34862           - Fix from John BouAntoun: Raise ForeColorChanged event when text
34863             color is changed
34864
34865 2004-10-12 20:46  pbartok
34866
34867         * CheckBox.cs:
34868           - Fix from John BouAntoun: Now properly sets the Appearance property
34869
34870 2004-10-12 20:45  pbartok
34871
34872         * ThemeWin32Classic.cs:
34873           - Fixes from John BouAntoun: now handles forecolors and backcolors
34874             for flatstyle rendered controls much better; It also fixes normal
34875             checkbox rendering when pushed or disabled.
34876
34877 2004-10-08 02:50  jordi
34878
34879         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
34880           work
34881
34882 2004-10-07 08:56  jordi
34883
34884         * ThemeWin32Classic.cs: Removes deletion of cached brushes
34885
34886 2004-10-06 03:59  jordi
34887
34888         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
34889           XplatUIWin32.cs: removes warnings from compilation
34890
34891 2004-10-05 12:23  jackson
34892
34893         * RadioButton.cs: Fix ctor
34894
34895 2004-10-05 11:10  pbartok
34896
34897         * MessageBox.cs:
34898           - Partial implementation by Benjamin Dasnois
34899
34900 2004-10-05 10:15  jackson
34901
34902         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
34903           by John BouAntoun
34904
34905 2004-10-05 03:07  ravindra
34906
34907         * ToolBar.cs:
34908                 - Removed a private method, Draw ().
34909                 - Fixed the ButtonDropDown event handling.
34910                 - Fixed MouseMove event handling.
34911
34912 2004-10-05 03:04  ravindra
34913
34914         * ThemeWin32Classic.cs:
34915                 - Added DrawListView method and ListViewDefaultSize property.
34916                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
34917                 - Changed DOS style CRLF to Unix format (dos2unix).
34918
34919 2004-10-05 03:03  ravindra
34920
34921         * Theme.cs:
34922                 - Added DrawListView method and ListViewDefaultSize property.
34923
34924 2004-10-05 02:42  ravindra
34925
34926         * ToolBarButton.cs: Added an internal member dd_pressed to handle
34927           clicks on DropDown arrow.
34928
34929 2004-10-04 22:56  jackson
34930
34931         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
34932           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
34933           Control handle the buffers, derived classes should not have to
34934           CreateBuffers themselves.
34935
34936 2004-10-04 21:20  jackson
34937
34938         * StatusBar.cs: The control handles resizing the buffers now.
34939
34940 2004-10-04 21:18  jackson
34941
34942         * Control.cs: When resizing the buffers should be invalidated. This
34943           should be handled in Control not in derived classes.
34944
34945 2004-10-04 14:45  jackson
34946
34947         * TabPage.cs: oops
34948
34949 2004-10-04 02:14  pbartok
34950
34951         * LeftRightAlignment.cs:
34952           - Initial check-in
34953
34954 2004-10-04 01:09  jordi
34955
34956         * ThemeWin32Classic.cs: fixes right button position causing right
34957           button not showing on horizontal scrollbars
34958
34959 2004-10-02 13:12  pbartok
34960
34961         * XplatUIX11.cs:
34962           - Simplified the Invalidate method by using an X call instead of
34963             generating the expose ourselves
34964           - Added an expose when the window background is changed
34965           - Implemented ClientToScreen method
34966
34967 2004-10-02 13:08  pbartok
34968
34969         * XplatUIWin32.cs:
34970           - Added Win32EnableWindow method (test for implementing modal
34971           dialogs)
34972           - Added ClientToScreen method and imports
34973
34974 2004-10-02 13:07  pbartok
34975
34976         * XplatUI.cs, XplatUIDriver.cs:
34977           - Added ClientToScreen coordinate translation method
34978
34979 2004-10-02 13:06  pbartok
34980
34981         * KeyPressEventArgs.cs:
34982           - Fixed access level for constructor
34983
34984 2004-10-02 13:06  pbartok
34985
34986         * NativeWindow.cs:
34987           - Changed access level for the window_collection hash table
34988
34989 2004-10-02 13:05  pbartok
34990
34991         * Form.cs:
34992           - Added KeyPreview property
34993           - Added Menu property (still incomplete, pending Jordi's menu work)
34994           - Implemented ProcessCmdKey
34995           - Implemented ProcessDialogKey
34996           - Implemented ProcessKeyPreview
34997
34998 2004-10-02 13:02  pbartok
34999
35000         * Control.cs:
35001           - Added private method to get the Control object from the window
35002           handle
35003           - Implemented ContextMenu property
35004           - Implemented PointToScreen
35005           - Implemented PreProcessMessage
35006           - Implemented IsInputChar
35007           - Implemented IsInputKey
35008           - Implemented ProcessCmdKey
35009           - Completed ProcessKeyEventArgs
35010           - Fixed message loop to call the proper chain of functions on key
35011           events
35012           - Implemented ProcessDialogChar
35013           - Implemented ProcessDialogKey
35014           - Implemented ProcessKeyMessage
35015           - Implemented ProcessKeyPreview
35016           - Added RaiseDragEvent stub (MS internal method)
35017           - Added RaiseKeyEvent stub (MS internal method)
35018           - Added RaiseMouseEvent stub (MS Internal method)
35019           - Added RaisePaintEvent stub (MS Internal method)
35020           - Added ResetMouseEventArgs stub (MS Internal method)
35021           - Implemented RtlTranslateAlignment
35022           - Implemented RtlTranslateContent
35023           - Implemented RtlTranslateHorizontal
35024           - Implemented RtlTranslateLeftRight
35025           - Added generation of KeyPress event
35026
35027 2004-10-02 05:57  ravindra
35028
35029         * ListViewItem.cs: Added attributes.
35030
35031 2004-10-02 05:32  ravindra
35032
35033         * ListView.cs: Added attributes.
35034
35035 2004-10-01 11:53  jackson
35036
35037         * Form.cs: Implement the Close method so work on MessageBox can
35038           continue.
35039
35040 2004-09-30 14:06  pbartok
35041
35042         * XplatUIX11.cs:
35043           - Bug fixes
35044
35045 2004-09-30 11:34  jackson
35046
35047         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
35048
35049 2004-09-30 07:26  ravindra
35050
35051         * ListViewItemConverter.cs: Converter for ListViewItem.
35052
35053 2004-09-30 07:26  ravindra
35054
35055         * SortOrder.cs: Enum for ListView control.
35056
35057 2004-09-30 07:25  ravindra
35058
35059         * ColumnHeader.cs: Supporting class for ListView control.
35060
35061 2004-09-30 07:24  ravindra
35062
35063         * ListView.cs, ListViewItem.cs: Initial implementation.
35064
35065 2004-09-30 07:20  ravindra
35066
35067         * ItemActivation.cs: Enum for ListView Control.
35068
35069 2004-09-29 20:29  pbartok
35070
35071         * XplatUIX11.cs:
35072           - Added lookup of pixel value for background color; tries to get a
35073             color 'close' to the requested color, it avoids having to create a
35074             colormap.  Depending on the display this could mean the used color
35075             is slightly off the desired color. Might have to change it to a more
35076             resource intensive colormap approach, but it will work as a
35077           workaround to avoid red screens.
35078
35079 2004-09-29 14:27  jackson
35080
35081         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
35082
35083 2004-09-28 12:44  pbartok
35084
35085         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
35086           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
35087           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
35088           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
35089           TrackBar.cs, VScrollBar.cs:
35090           - Streamlined Theme interfaces:
35091             * Each DrawXXX method for a control now is passed the object for
35092               the control to be drawn in order to allow accessing any state the
35093               theme might require
35094
35095             * ControlPaint methods for the theme now have a CP prefix to avoid
35096               name clashes with the Draw methods for controls
35097
35098             * Every control now retrieves it's DefaultSize from the current
35099             theme
35100
35101 2004-09-28 12:17  jackson
35102
35103         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
35104           drawing
35105
35106 2004-09-24 14:57  jackson
35107
35108         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
35109           Gives us a nice little performance boost.
35110
35111 2004-09-24 12:02  jackson
35112
35113         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
35114           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
35115           Control and supporting classes. Initial checkin
35116
35117 2004-09-23 13:08  jackson
35118
35119         * Form.cs: Temp build fixage
35120
35121 2004-09-23 01:39  ravindra
35122
35123         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
35124           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
35125           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
35126           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
35127           EventHandlers needed by ListView Control.
35128
35129 2004-09-22 14:12  pbartok
35130
35131         * ScrollableControl.cs:
35132           - Implemented DockPadding property
35133           - Implemented AutoScroll property
35134           - Implemented AutoScrollMargin property
35135           - Implemented AutoScrollMinSize property
35136           - Implemented AutoScrollPosition property
35137           - Implemented DisplayRectangle property (still incomplete)
35138           - Implemented CreateParams property
35139           - Implemented HScroll property
35140           - Implemented VScroll property
35141           - Implemented OnVisibleChanged property
35142
35143 2004-09-22 14:09  pbartok
35144
35145         * Form.cs:
35146           - Added Form.ControllCollection class
35147           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
35148             RemoveOwnedForm (still incomplete, missing on-top and common
35149             minimize/maximize behaviour)
35150           - Added StartPosition property (still incomplete, does not use when
35151             creating the form)
35152           - Added ShowDialog() methods (still incomplete, missing forcing the
35153             dialog modal)
35154
35155 2004-09-22 14:05  pbartok
35156
35157         * Application.cs:
35158           - Added message loop for modal dialogs
35159
35160 2004-09-22 14:02  pbartok
35161
35162         * GroupBox.cs:
35163           - Fixed wrong types for events
35164
35165 2004-09-22 14:00  pbartok
35166
35167         * Shortcut.cs, FormWindowState.cs:
35168           - Fixed wrong values
35169
35170 2004-09-22 12:01  jackson
35171
35172         * Control.cs: Text is never null
35173
35174 2004-09-20 22:14  pbartok
35175
35176         * XplatUIWin32.cs:
35177           - Fixed accessibility level for Idle handler
35178
35179 2004-09-20 18:54  jackson
35180
35181         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35182           XplatUIX11.cs: New message loop that uses poll so we don't get a
35183           busy loop
35184
35185 2004-09-17 10:43  pbartok
35186
35187         * ScrollBar.cs:
35188           - Fixed behaviour of arrow buttons. Now properly behaves like
35189             Buttons (and like Microsoft's scrollbar arrow buttons)
35190
35191 2004-09-17 10:14  pbartok
35192
35193         * ScrollBar.cs:
35194           - Added missing release of keyboard/mouse capture
35195
35196 2004-09-17 06:18  jordi
35197
35198         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
35199           Theme.cs: Very early menu support
35200
35201 2004-09-16 17:45  pbartok
35202
35203         * XplatUIWin32.cs:
35204           - Fixed sending a window to the front
35205           - Added overload for SetWindowPos to avoid casting
35206
35207 2004-09-16 17:44  pbartok
35208
35209         * Control.cs:
35210           - Added SendToBack and BringToFront methods
35211
35212 2004-09-16 07:00  ravindra
35213
35214         * Copyright: Added Novell URL.
35215
35216 2004-09-16 07:00  ravindra
35217
35218         * ToolBar.cs: Invalidate should be done before redrawing.
35219
35220 2004-09-15 21:19  ravindra
35221
35222         * ColumnHeaderStyle.cs: Enum for ListView Control.
35223
35224 2004-09-15 21:18  ravindra
35225
35226         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
35227           ListView Control.
35228
35229 2004-09-13 18:26  jackson
35230
35231         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
35232           properly
35233
35234 2004-09-13 18:13  jackson
35235
35236         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
35237           a second thread and post messages into the main threads message
35238           queue. This makes timing much more consistent. Both win2K and XP
35239           have a minimum timer value of 15 milliseconds, so we now do this
35240           too.
35241
35242 2004-09-13 15:18  pbartok
35243
35244         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35245           XplatUIX11.cs:
35246           - Added Z-Ordering methods
35247
35248 2004-09-13 10:56  pbartok
35249
35250         * Form.cs:
35251           - Fixed #region names
35252           - Moved properties and methods into their proper #regions
35253
35254 2004-09-13 10:51  pbartok
35255
35256         * Form.cs:
35257           - Added Accept and CancelButton properties
35258           - Added ProcessDialogKey() method
35259
35260 2004-09-13 08:18  pbartok
35261
35262         * IWindowTarget.cs:
35263           - Initial check-in
35264
35265 2004-09-10 21:50  pbartok
35266
35267         * Control.cs:
35268           - Added DoDragDrop() [incomplete]
35269           - Properly implemented 'Visible' handling
35270           - Added SetVisibleCore()
35271           - Implemented FindChildAtPoint()
35272           - Implemented GetContainerControl()
35273           - Implemented Hide()
35274
35275 2004-09-10 19:28  pbartok
35276
35277         * Control.cs:
35278           - Moved methods into their appropriate #regions
35279           - Reordered methods within regions alphabetically
35280
35281 2004-09-10 18:57  pbartok
35282
35283         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
35284           - Added method to retrieve text from window
35285
35286 2004-09-10 18:56  pbartok
35287
35288         * Control.cs:
35289           - Moved some internal functions into the internal region
35290           - Implemented FontHeight
35291           - Implemented RenderRightToLeft
35292           - Implemented ResizeRedraw
35293           - Implemented ShowFocusCues
35294           - Implemented ShowKeyboardCues
35295           - Implemented FromChildHandle
35296           - Implemented FromHandle
35297           - Implemented IsMnemonic
35298           - Implemented ReflectMessage
35299           - All public and protected Static Methods are now complete
35300
35301 2004-09-10 16:54  pbartok
35302
35303         * Control.cs:
35304           - Implemented remaining missing public instance properties
35305           - Alphabetized some out of order properties
35306
35307 2004-09-10 05:51  ravindra
35308
35309         * PictureBox.cs: Added a check for null image.
35310
35311 2004-09-10 00:59  jordi
35312
35313         * GroupBox.cs: remove cvs tag
35314
35315 2004-09-09 05:25  ravindra
35316
35317         * ToolBar.cs: Make redraw accessible from ToolBarButton.
35318
35319 2004-09-09 05:23  ravindra
35320
35321         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
35322           parent redraw.
35323
35324 2004-09-09 02:28  pbartok
35325
35326         * ThemeWin32Classic.cs:
35327           - Improve disabled string look
35328
35329 2004-09-09 01:15  jordi
35330
35331         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
35332           args and handler
35333
35334 2004-09-08 23:56  ravindra
35335
35336         * ItemBoundsPortion.cs: It's enum, not a class!
35337
35338 2004-09-08 23:47  ravindra
35339
35340         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
35341           Enums for Form.
35342
35343 2004-09-08 21:13  ravindra
35344
35345         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
35346           ListView control.
35347
35348 2004-09-08 21:03  ravindra
35349
35350         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
35351           avoid crash.
35352
35353 2004-09-08 21:01  ravindra
35354
35355         * ScrollableControl.cs: Removed unreachable code.
35356
35357 2004-09-08 06:45  jordi
35358
35359         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
35360
35361 2004-09-08 01:00  jackson
35362
35363         * XplatUIX11.cs: Only run the timers when updating the message
35364           queue. This effectively gives X messages a higher priority then
35365           timer messages. Timers still need love though
35366
35367 2004-09-07 14:01  jackson
35368
35369         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
35370           this for us and the handle is no longer valid.
35371
35372 2004-09-07 13:59  jackson
35373
35374         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
35375           loop that manages to not crash. TODO: Add poll and cleanup timers
35376
35377 2004-09-07 11:12  jordi
35378
35379         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
35380
35381 2004-09-07 03:40  jordi
35382
35383         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
35384           fixes, methods, multiple links
35385
35386 2004-09-06 06:55  jordi
35387
35388         * Control.cs: Caches ClientRectangle rectangle value
35389
35390 2004-09-05 02:03  jordi
35391
35392         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
35393           certain situations
35394
35395 2004-09-04 11:10  jordi
35396
35397         * Label.cs: Refresh when font changed
35398
35399 2004-09-02 16:24  pbartok
35400
35401         * Control.cs:
35402           - Added sanity check to creation of double buffer bitmap
35403
35404 2004-09-02 16:24  pbartok
35405
35406         * ButtonBase.cs:
35407           - Fixed selection of text color
35408           - Fixed handling of resize event; now properly recreates double
35409             buffering bitmap
35410           - Added missing assignment of TextAlignment
35411           - Added proper default for TextAlignment
35412
35413 2004-09-02 14:26  pbartok
35414
35415         * RadioButton.cs:
35416           - Added missing RadioButton.RadioButtonAccessibleObject class
35417
35418 2004-09-02 14:26  pbartok
35419
35420         * Control.cs:
35421           - Added missing Control.ControlAccessibleObject class
35422           - Started to implement Select()ion mechanisms, still very incomplete
35423
35424 2004-09-02 14:25  pbartok
35425
35426         * AccessibleObject.cs:
35427           - Added missing methods
35428
35429 2004-09-02 14:23  pbartok
35430
35431         * AccessibleNavigation.cs, AccessibleSelection.cs:
35432           - Initial check-in
35433
35434 2004-09-02 10:32  jordi
35435
35436         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
35437           pool for pens, brushes, and hatchbruses
35438
35439 2004-09-01 15:30  jackson
35440
35441         * StatusBar.cs: Fix typo
35442
35443 2004-09-01 14:44  pbartok
35444
35445         * RadioButton.cs:
35446           - Fixed state
35447
35448 2004-09-01 14:39  pbartok
35449
35450         * Button.cs, RadioButton.cs:
35451           - Functional initial check-in
35452
35453 2004-09-01 14:01  pbartok
35454
35455         * CheckBox.cs:
35456           - Added missing default
35457           - Added missing region mark
35458
35459 2004-09-01 09:10  jordi
35460
35461         * Label.cs: fixes method signatures, new methods, events, fixes
35462           autosize
35463
35464 2004-09-01 07:19  jordi
35465
35466         * Control.cs: Init string variables with an empty object
35467
35468 2004-09-01 04:20  jordi
35469
35470         * Control.cs: fires OnFontChanged event
35471
35472 2004-08-31 20:07  pbartok
35473
35474         * ButtonBase.cs:
35475           - Enabled display of strings
35476
35477 2004-08-31 20:05  pbartok
35478
35479         * Form.cs:
35480           - Added (partial) implementation of DialogResult; rest needs to be
35481             implemented when the modal loop code is done
35482
35483 2004-08-31 19:55  pbartok
35484
35485         * CheckBox.cs:
35486           - Fixed to match the removal of the needs_redraw concept
35487
35488 2004-08-31 19:55  pbartok
35489
35490         * ButtonBase.cs:
35491           - Removed the rather odd split between 'needs redraw' and redrawing
35492           - Now handles the events that require regeneration (ambient
35493             properties and size)
35494
35495 2004-08-31 19:41  pbartok
35496
35497         * Control.cs:
35498           - Added firing of BackColorChanged event
35499           - Added TopLevelControl property
35500           - Fixed handling of WM_ERASEBKGRND message
35501
35502 2004-08-31 12:49  pbartok
35503
35504         * ButtonBase.cs:
35505           - Removed debug
35506           - Minor fixes
35507
35508 2004-08-31 12:48  pbartok
35509
35510         * CheckBox.cs:
35511           - Finished (famous last words)
35512
35513 2004-08-31 04:35  jordi
35514
35515         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
35516           scrolling bugs, adds new methods
35517
35518 2004-08-30 14:42  pbartok
35519
35520         * CheckBox.cs:
35521           - Implemented CheckBox drawing code
35522
35523 2004-08-30 14:42  pbartok
35524
35525         * ButtonBase.cs:
35526           - Made Redraw() and CheckRedraw() virtual
35527           - Improved mouse up/down/move logic to properly track buttons
35528
35529 2004-08-30 09:44  pbartok
35530
35531         * CheckBox.cs:
35532           - Updated to fix broken build. Not complete yet.
35533
35534 2004-08-30 09:28  pbartok
35535
35536         * CheckState.cs:
35537           - Initial checkin
35538
35539 2004-08-30 09:17  pbartok
35540
35541         * Appearance.cs:
35542           - Initial check-in
35543
35544 2004-08-27 16:12  ravindra
35545
35546         * ToolBarButton.cs: Added TypeConverter attribute.
35547
35548 2004-08-27 16:07  ravindra
35549
35550         * ImageIndexConverter.cs: Implemented.
35551
35552 2004-08-27 14:17  pbartok
35553
35554         * Control.cs:
35555           - Removed unneeded stack vars
35556           - First attempt to fix sizing issues when layout is suspended
35557
35558 2004-08-25 15:35  jordi
35559
35560         * ScrollBar.cs: more fixes to scrollbar
35561
35562 2004-08-25 14:04  ravindra
35563
35564         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
35565           Added the missing divider code and grip for ToolBar Control.
35566
35567 2004-08-25 13:20  pbartok
35568
35569         * Control.cs:
35570           - Control now properly passes the ambient background color to child
35571             controls
35572
35573 2004-08-25 13:20  jordi
35574
35575         * ScrollBar.cs: small bug fix regarding bar position
35576
35577 2004-08-25 12:33  pbartok
35578
35579         * Timer.cs:
35580           - Now only calls SetTimer or KillTimer if the enabled state has
35581           changed
35582
35583 2004-08-25 12:33  pbartok
35584
35585         * XplatUIWin32.cs:
35586           - Fixed timer handling, now seems to work
35587           - Improved error message for window creation
35588
35589 2004-08-25 12:32  pbartok
35590
35591         * Control.cs:
35592           - Fixed generation of MouseUp message
35593
35594 2004-08-25 12:29  jordi
35595
35596         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
35597           and fixes for progressbar
35598
35599 2004-08-24 18:43  ravindra
35600
35601         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
35602           in ToolBar control.
35603
35604 2004-08-24 17:15  pbartok
35605
35606         * Panel.cs:
35607           - Added #region
35608           - Added missing events
35609           - Alphabetized
35610
35611 2004-08-24 17:14  pbartok
35612
35613         * StatusBar.cs, PictureBox.cs:
35614           - Now uses Control's CreateParams
35615
35616 2004-08-24 16:36  pbartok
35617
35618         * XplatUIX11.cs:
35619           - Fixed background color handling
35620           - Fixed sending of enter/leave events on a grab
35621
35622 2004-08-24 16:35  pbartok
35623
35624         * X11Structs.cs:
35625           - Refined definitions for CrossingEvent
35626
35627 2004-08-24 12:37  jordi
35628
35629         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
35630           formmating, methods signature, and adds missing events
35631
35632 2004-08-24 12:24  jordi
35633
35634         * Control.cs: fire OnEnabledChanged event
35635
35636 2004-08-24 11:17  pbartok
35637
35638         * XplatUIWin32.cs:
35639           - Implemented SetTimer() and KillTimer()
35640
35641 2004-08-24 11:16  pbartok
35642
35643         * XplatUIX11.cs:
35644           - Now uses Remove instead of Add to kill the timer
35645
35646 2004-08-24 10:16  jackson
35647
35648         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
35649           picture boxes in the theme now. Draw picture box borders and obey
35650           sizing modes
35651
35652 2004-08-24 05:49  jackson
35653
35654         * Timer.cs: Remove top secret debugging code
35655
35656 2004-08-24 05:34  jackson
35657
35658         * PictureBox.cs: Temp hack to make picture boxes draw their full
35659           image
35660
35661 2004-08-24 05:29  jackson
35662
35663         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35664           XplatUIX11.cs: Move timers to the driver level. On X they are
35665           queued by the driver and checked on idle.
35666
35667 2004-08-24 01:07  jackson
35668
35669         * XplatUIX11.cs: Use a queue for async messages instead of passing
35670           them as ClientMessages since that was totally broken. Also simply
35671           check for events and return an idle message if none are found. This
35672           gives us an idle handler, and prevents deadlocking when no messages
35673           are in the queue.
35674
35675 2004-08-23 18:19  ravindra
35676
35677         * XplatUIWin32.cs: Removed the unwanted destructor.
35678
35679 2004-08-23 17:27  pbartok
35680
35681         * ButtonBase.cs:
35682           - Finishing touches. Works now, just needs some optimizations.
35683
35684 2004-08-23 16:53  jordi
35685
35686         * ScrollBar.cs: small fix
35687
35688 2004-08-23 16:45  pbartok
35689
35690         * Application.cs:
35691           - Removed debug output
35692           - Simplifications
35693
35694 2004-08-23 16:43  jordi
35695
35696         * ScrollBar.cs: [no log message]
35697
35698 2004-08-23 16:10  pbartok
35699
35700         * Form.cs:
35701           - Fixed handling of WM_CLOSE message
35702           - Removed debug output
35703
35704 2004-08-23 16:09  pbartok
35705
35706         * Application.cs:
35707           - Added handling of Idle event
35708           - Added handling of form closing
35709           - Fixed reporting of MessageLoop property
35710           - Removed some unneeded code, should provide a bit of a speedup
35711
35712 2004-08-23 15:22  pbartok
35713
35714         * Control.cs:
35715           - Added InitLayout() method
35716           - Added code to properly perform layout when Anchor or Dock property
35717             is changed
35718           - Changed 'interpretation' of ResumeLayout. MS seems to have a
35719             LAMESPEC, tried to do it in a way that makes sense
35720
35721 2004-08-23 14:10  jordi
35722
35723         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
35724           properties and methods
35725
35726 2004-08-23 13:55  pbartok
35727
35728         * Control.cs:
35729           - Properly fixed Jordi's last fix
35730           - Now uses Cursor's Position property instead of calling XplatUI
35731           directly
35732
35733 2004-08-23 13:44  jordi
35734
35735         * PaintEventHandler.cs: Adding missing attribute
35736
35737 2004-08-23 13:39  pbartok
35738
35739         * Cursor.cs:
35740           - Implemented Position property
35741
35742 2004-08-23 13:39  pbartok
35743
35744         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
35745           - Added method to move mouse cursor
35746
35747 2004-08-23 13:39  pbartok
35748
35749         * XplatUIX11.cs:
35750           - Fixed setting of background color
35751           - Added method to move mouse cursor
35752
35753 2004-08-23 13:16  jordi
35754
35755         * Control.cs: avoids null exception
35756
35757 2004-08-22 17:46  jackson
35758
35759         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
35760           PictureBox
35761
35762 2004-08-22 17:40  jackson
35763
35764         * XplatUIX11.cs: Add some missing locks
35765
35766 2004-08-22 15:10  pbartok
35767
35768         * Control.cs, Form.cs:
35769           - Removed OverlappedWindow style from Control, instead it's default
35770             now is child
35771           - Made form windows OverlappedWindow by default
35772
35773 2004-08-22 13:34  jackson
35774
35775         * ScrollBar.cs: Update the position through the Value property so
35776           the OnValueChanged event is raised.
35777
35778 2004-08-22 12:04  pbartok
35779
35780         * SWF.csproj:
35781           - Added Cursor.cs and UserControl.cs
35782
35783 2004-08-22 12:03  pbartok
35784
35785         * Cursor.cs:
35786           - Started implementation, not usable yet
35787
35788 2004-08-22 12:00  pbartok
35789
35790         * UserControl.cs:
35791           - Implemented UserControl (complete)
35792
35793 2004-08-21 19:20  ravindra
35794
35795         * ToolBar.cs: Correcting the formatting mess of VS.NET.
35796
35797 2004-08-21 18:49  ravindra
35798
35799         * ToolBar.cs: Probably this completes the missing attributes in
35800           toolbar control.
35801
35802 2004-08-21 18:03  ravindra
35803
35804         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
35805           Fixed toolbar control signatures.
35806
35807 2004-08-21 16:32  pbartok
35808
35809         * LinkLabel.cs:
35810           - Signature Fixes
35811
35812 2004-08-21 16:30  pbartok
35813
35814         * Label.cs:
35815           - Signature fixes
35816
35817 2004-08-21 16:19  pbartok
35818
35819         * Control.cs, Label.cs:
35820           - Signature fixes
35821
35822 2004-08-21 15:57  pbartok
35823
35824         * ButtonBase.cs:
35825           - Added loads of debug output for development
35826           - Fixed typo in method name
35827
35828 2004-08-21 15:52  pbartok
35829
35830         * ToolBarButtonClickEventArgs.cs:
35831           - Added missing base class
35832
35833 2004-08-21 14:53  pbartok
35834
35835         * Control.cs:
35836           - Updated to match new GrabWindow signature
35837
35838 2004-08-21 14:51  pbartok
35839
35840         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35841           - Added method to get default display size
35842
35843 2004-08-21 14:23  pbartok
35844
35845         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35846           - Added method to query current grab state
35847           - Added argument to allow confining a grab to a window
35848
35849 2004-08-21 14:22  pbartok
35850
35851         * Keys.cs:
35852           - Added [Flags] attribute so that modifiers can be used in bitwise
35853           ops
35854
35855 2004-08-21 14:21  pbartok
35856
35857         * TrackBar.cs, ScrollBar.cs:
35858           - Replaced direct XplatUI calls with their Control counterpart
35859
35860 2004-08-21 13:32  pbartok
35861
35862         * Control.cs:
35863           - Implemented Created property
35864
35865 2004-08-21 13:28  pbartok
35866
35867         * Control.cs:
35868           - Implemented ContainsFocus
35869
35870 2004-08-21 13:26  pbartok
35871
35872         * Control.cs:
35873           - Implemented CausesValidation
35874
35875 2004-08-21 13:21  pbartok
35876
35877         * Control.cs:
35878           - Implemented CanFocus
35879           - Implemented CanSelect
35880           - Implemented Capture
35881
35882 2004-08-21 12:35  pbartok
35883
35884         * XplatUIWin32.cs:
35885           - Fixed bug with Async message handling
35886           - Implemented getting the ModifierKeys
35887
35888 2004-08-21 12:32  jackson
35889
35890         * AsyncMethodResult.cs: Make sure we have the mutex before we
35891           release it. Fixes BeginInvoke on windows
35892
35893 2004-08-21 11:31  pbartok
35894
35895         * XplatUIWin32.cs, XplatUIX11.cs:
35896           - Drivers now return proper mouse state
35897
35898 2004-08-21 10:54  jackson
35899
35900         * Control.cs: Implement EndInvoke
35901
35902 2004-08-21 10:48  jackson
35903
35904         * Timer.cs: Remove unneeded finalizer
35905
35906 2004-08-20 19:52  ravindra
35907
35908         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
35909           in mouse event handling in the ToolBar control.
35910
35911 2004-08-20 19:50  ravindra
35912
35913         * ImageList.cs: Changed draw method to use the arguments passed in
35914           to draw the image.
35915
35916 2004-08-20 18:58  pbartok
35917
35918         * XplatUIStructs.cs:
35919           - Added private message for async communication
35920
35921 2004-08-20 17:38  ravindra
35922
35923         * Control.cs: Made RightToLeft property virtual and removed a
35924           Console.WriteLine.
35925
35926 2004-08-20 14:39  jordi
35927
35928         * ThemeGtk.cs: use style_attach
35929
35930 2004-08-20 14:39  pbartok
35931
35932         * XplatUIWin32.cs:
35933           - Added jackson's Async code from X11 to Win32
35934
35935 2004-08-20 14:09  pbartok
35936
35937         * SWF.csproj:
35938           - Added all new files
35939
35940 2004-08-20 14:09  pbartok
35941
35942         * Control.cs:
35943           - Added call to set window background color
35944
35945 2004-08-20 14:03  pbartok
35946
35947         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
35948           - Added method for setting the window background
35949
35950 2004-08-20 14:02  pbartok
35951
35952         * XplatUIWin32.cs:
35953           - Added method for setting the background color
35954           - Added handling for erasing the window background
35955
35956 2004-08-20 13:45  jordi
35957
35958         * TrackBar.cs: fixes timer, new properties and methods
35959
35960 2004-08-20 13:34  jackson
35961
35962         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
35963           correct thread
35964
35965 2004-08-20 13:22  jackson
35966
35967         * Timer.cs: Timer Tick events are now handed through Controls Async
35968           mechanism so the callbacks are executed in the same thread as X
35969
35970 2004-08-20 13:19  jackson
35971
35972         * XplatUIDriver.cs: Expose functionality to send async messages
35973           through the driver
35974
35975 2004-08-20 13:18  jackson
35976
35977         * Control.cs: Implement Begininvoke
35978
35979 2004-08-20 13:14  jackson
35980
35981         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
35982           messages through the driver
35983
35984 2004-08-20 13:12  jackson
35985
35986         * XplatUIX11.cs: Lock before all X operations. Also added Async
35987           method functionality through XSendEvent
35988
35989 2004-08-20 13:11  jackson
35990
35991         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
35992           This will screw up on 64 bit systems)
35993
35994 2004-08-20 13:10  jackson
35995
35996         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
35997           Async messages through X/Win32
35998
35999 2004-08-19 19:39  pbartok
36000
36001         * XplatUIX11.cs:
36002           - Updated code to match new HandleData.DeviceContext type
36003
36004 2004-08-19 19:38  pbartok
36005
36006         * HandleData.cs:
36007           - Made DeviceContext a generic object to allow usage from various
36008           drivers
36009           - Added support for queueing Windows messages
36010
36011 2004-08-19 19:37  pbartok
36012
36013         * XplatUIWin32.cs:
36014           - Added generation of MouseEnter, MouseLeave and MouseHover events
36015           - Added cleanup on EndPaint
36016
36017 2004-08-19 19:17  pbartok
36018
36019         * Control.cs:
36020           - Added handling of WM_MOUSEHOVER
36021           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
36022           code
36023
36024 2004-08-19 18:55  jordi
36025
36026         * ThemeGtk.cs: fixes button order
36027
36028 2004-08-19 18:12  jordi
36029
36030         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
36031
36032 2004-08-19 17:09  pbartok
36033
36034         * Control.cs:
36035           - Added Right property
36036           - Added RightToLeft property
36037
36038 2004-08-19 16:27  jordi
36039
36040         * ThemeGtk.cs: experimental GTK theme support
36041
36042 2004-08-19 16:26  jordi
36043
36044         * ITheme.cs, Theme.cs: move themes from an interface to a class
36045
36046 2004-08-19 16:25  jordi
36047
36048         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
36049           theme enhancaments
36050
36051 2004-08-19 16:04  pbartok
36052
36053         * XplatUIX11.cs:
36054           - Added colormap basics
36055           - Added a way to re-initialize with a different display handle
36056           - Fixed setting of the window background color
36057           - Added various X11 imports related to colors and colormaps
36058
36059 2004-08-19 15:51  pbartok
36060
36061         * X11Structs.cs:
36062           - Removed packing hints (Paolo suggested this a while back)
36063           - fixed colormap type
36064           - Added default Atom types
36065           - Added Screen and color structs and enums
36066
36067 2004-08-19 15:39  pbartok
36068
36069         * ImageList.cs:
36070           - Added missing Draw() method
36071           - Added missing RecreateHandle event
36072
36073 2004-08-19 15:30  pbartok
36074
36075         * Form.cs:
36076           - Added handling of WM_CLOSE
36077
36078 2004-08-18 13:16  jordi
36079
36080         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
36081           a table
36082
36083 2004-08-18 09:56  jordi
36084
36085         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
36086
36087 2004-08-17 15:31  ravindra
36088
36089         * SWF.csproj: Updated project.
36090
36091 2004-08-17 15:25  pbartok
36092
36093         * Control.cs:
36094           - Drawing improvement; don't call UpdateBounds if we are not visible
36095             (or have been minimized)
36096
36097 2004-08-17 15:24  pbartok
36098
36099         * XplatUIWin32.cs:
36100           - Finished IsVisible
36101           - Added Win32GetWindowPlacement
36102
36103 2004-08-17 15:08  jackson
36104
36105         * Panel.cs: Initial checkin of the Panel
36106
36107 2004-08-17 14:25  pbartok
36108
36109         * Control.cs:
36110           - Fixed broken handling of default window sizes
36111
36112 2004-08-17 13:29  jackson
36113
36114         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
36115           has a large startup time.
36116
36117 2004-08-17 10:25  jackson
36118
36119         * HandleData.cs: union areas properly
36120
36121 2004-08-17 10:12  jackson
36122
36123         * HandleData.cs: union areas properly
36124
36125 2004-08-16 20:00  ravindra
36126
36127         * ToolBar.cs, ToolBarButton.cs: Added attributes.
36128
36129 2004-08-16 18:48  ravindra
36130
36131         * ToolBar.cs: Added attributes.
36132
36133 2004-08-16 17:17  ravindra
36134
36135         * SWF.csproj: Updated project.
36136
36137 2004-08-16 17:16  jackson
36138
36139         * XplatUIX11.cs: Check for more expose events before sending a
36140           WM_PAINT so they can all be grouped together. This makes dragging a
36141           window across another window redraw in a sane way.
36142
36143 2004-08-16 15:47  pbartok
36144
36145         * Control.cs:
36146           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
36147             support OnMouseEnter/Leave()
36148           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
36149             exposure handling
36150
36151 2004-08-16 15:46  pbartok
36152
36153         * XplatUIStructs.cs, XplatUIX11.cs:
36154           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
36155           OnMouseEnter/Leave()
36156
36157 2004-08-16 15:34  jackson
36158
36159         * XplatUIX11.cs: Group multiple expose events in HandleData, make
36160           sure messages get the message field set to WM_NULL if they are not
36161           handled.
36162
36163 2004-08-16 15:24  jackson
36164
36165         * HandleData.cs: HandleData is used for storing message information
36166           for window handles
36167
36168 2004-08-15 17:23  ravindra
36169
36170         * ColorDepth.cs: Added attribute.
36171
36172 2004-08-15 17:23  ravindra
36173
36174         * SWF.csproj: Updated project for ToolBar Control.
36175
36176 2004-08-15 17:20  ravindra
36177
36178         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
36179           control and also dos2unix format.
36180
36181 2004-08-15 17:13  ravindra
36182
36183         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
36184           ToolBarButtonClickEventArgs.cs,
36185           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
36186           ToolBarTextAlign.cs: First Implementation of ToolBar control.
36187
36188 2004-08-15 15:31  pbartok
36189
36190         * ButtonBase.cs:
36191           - First (mostly) working version
36192
36193 2004-08-13 16:15  pbartok
36194
36195         * Control.cs:
36196           - Fixed Anchor default
36197
36198 2004-08-13 15:43  pbartok
36199
36200         * Control.cs:
36201           - Changed GetCursorPos signature
36202
36203 2004-08-13 15:42  pbartok
36204
36205         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36206           - Changed signature for GetCursorPos
36207
36208 2004-08-13 15:25  pbartok
36209
36210         * XplatUIX11.cs:
36211           - Cleanup
36212           - Fixed resizing/exposure handling
36213
36214 2004-08-13 15:22  jordi
36215
36216         * ThemeWin32Classic.cs: removes redundant code and fixes issues
36217           with tickposition
36218
36219 2004-08-13 14:55  jordi
36220
36221         * TrackBar.cs: change from wndproc to events
36222
36223 2004-08-13 13:00  jordi
36224
36225         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36226           XplatUIX11.cs: implements PointToClient (ScreenToClient)
36227
36228 2004-08-13 12:53  pbartok
36229
36230         * XplatUIWin32.cs:
36231           - Changed GetWindowPos to also provide client area size
36232           - Fixed broken prototypes for several win32 functions
36233
36234 2004-08-13 12:53  pbartok
36235
36236         * XplatUI.cs, XplatUIDriver.cs:
36237           - Changed GetWindowPos to also provide client area size
36238
36239 2004-08-13 12:52  pbartok
36240
36241         * XplatUIX11.cs:
36242           - Added generation of WM_POSCHANGED
36243           - Changed GetWindowPos to also provide client area size
36244
36245 2004-08-13 12:52  pbartok
36246
36247         * Control.cs:
36248           - Added Dispose() and destructor
36249           - Fixed resizing and bounds calculation
36250           - Fixed Layout
36251           - Added memory savings for invisible windows
36252
36253 2004-08-13 12:46  jordi
36254
36255         * TrackBar.cs: adds timer and grap window
36256
36257 2004-08-13 10:25  jackson
36258
36259         * Timer.cs: SWF Timer
36260
36261 2004-08-12 16:59  pbartok
36262
36263         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36264           - Implemented method to get current mouse position
36265
36266 2004-08-12 14:29  jordi
36267
36268         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
36269           enhancement, fix mouse problems, highli thumb, etc
36270
36271 2004-08-12 13:31  pbartok
36272
36273         * Control.cs:
36274           - Fixed Anchoring bugs
36275
36276 2004-08-12 13:01  jackson
36277
36278         * StatusBar.cs: Don't forget things
36279
36280 2004-08-12 12:54  jackson
36281
36282         * ThemeWin32Classic.cs: Handle owner draw status bars
36283
36284 2004-08-12 12:54  jackson
36285
36286         * StatusBar.cs: Implement missing properties, events, and methods.
36287           Handle mouse clicking
36288
36289 2004-08-12 10:19  jackson
36290
36291         * StatusBarPanelClickEventArgs.cs,
36292           StatusBarPanelClickEventHandler.cs: Classes for handling status
36293           bar panel click events
36294
36295 2004-08-12 10:10  jackson
36296
36297         * Control.cs: Add missing properties
36298
36299 2004-08-12 09:46  pbartok
36300
36301         * BindingsManagerBase.cs:
36302           - Name changed to BindingManagerBase.cs
36303
36304 2004-08-12 09:25  jordi
36305
36306         * ScrollableControl.cs: calls ctrlbase instead of exeception
36307
36308 2004-08-11 16:28  pbartok
36309
36310         * InputLanguageChangingEventArgs.cs:
36311           - Never check in before compiling. Fixes the last check-in
36312
36313 2004-08-11 16:26  pbartok
36314
36315         * InputLanguageChangingEventArgs.cs:
36316           - More signature fixes
36317
36318 2004-08-11 16:20  pbartok
36319
36320         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
36321           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
36322           ImageListStreamer.cs, InputLanguage.cs,
36323           InputLanguageChangedEventArgs.cs,
36324           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
36325           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
36326           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
36327           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36328           - Signature fixes
36329
36330 2004-08-11 16:16  pbartok
36331
36332         * Application.cs:
36333           - Fixed Signature
36334           - Added .Net 1.1 method
36335
36336 2004-08-11 15:25  pbartok
36337
36338         * SWF.csproj:
36339           - Fixed BindingManagerBase.cs filename
36340
36341 2004-08-11 15:22  pbartok
36342
36343         * BindingManagerBase.cs:
36344           - Was checked in with wrong filename
36345
36346 2004-08-11 14:50  pbartok
36347
36348         * SWF.csproj:
36349           - Updated
36350
36351 2004-08-11 13:41  jordi
36352
36353         * XplatUIWin32.cs: Fixes ClientRect
36354
36355 2004-08-11 13:19  pbartok
36356
36357         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36358           XplatUIX11.cs:
36359           - We had SetWindowPos and MoveWindow to set window positions and
36360             size, removed MoveWindow. We have GetWindowPos, so it made sense to
36361             keep SetWindowPos as matching counterpart
36362           - Added some X11 sanity checking
36363
36364 2004-08-11 12:59  pbartok
36365
36366         * Control.cs:
36367           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
36368             (It seems that SetBounds is just a front for SetBoundsCore and
36369              SetBoundsCore updates the underlying window system and
36370              UpdateBounds is responsible for updating the variables associated
36371              with the Control and sending the events)
36372           - Major cleanup of Size handling; we now have two sizes, client_size
36373             and bounds. Bounds defines the window with decorations, client_size
36374             without them.
36375
36376 2004-08-11 12:55  pbartok
36377
36378         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36379           - Added method to calculate difference between decorated window and
36380             raw client area
36381
36382 2004-08-11 12:54  pbartok
36383
36384         * Label.cs:
36385           - Forcing redraw on resize
36386
36387 2004-08-11 11:43  pbartok
36388
36389         * ImageList.cs:
36390           - Removed disposing of the actual images when the list is disposed
36391
36392 2004-08-11 09:13  pbartok
36393
36394         * Control.cs:
36395           - Now properly reparents windows
36396
36397 2004-08-11 08:37  pbartok
36398
36399         * Control.cs:
36400           - Duh!
36401
36402 2004-08-11 07:47  pbartok
36403
36404         * Control.cs:
36405           - Rewrote the collection stuff. Might not be as fast now, not
36406             keeping the number of children around and accessible directly, but
36407             it's more straightforward
36408
36409 2004-08-11 07:44  pbartok
36410
36411         * AccessibleObject.cs:
36412           - Fixed to match ControlCollection rewrite
36413
36414 2004-08-11 07:43  pbartok
36415
36416         * ImageList.cs:
36417           - Added missing creation of the collection list
36418
36419 2004-08-10 20:08  jackson
36420
36421         * StatusBar.cs: Get the paint message from WndProc
36422
36423 2004-08-10 19:31  jackson
36424
36425         * ThemeWin32Classic.cs: Create Brushes as little as possible
36426
36427 2004-08-10 19:20  jackson
36428
36429         * UICues.cs: Add Flags attribute
36430
36431 2004-08-10 19:19  jackson
36432
36433         * StatusBarPanel.cs: Signature cleanup
36434
36435 2004-08-10 19:10  jackson
36436
36437         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
36438           Initial implementation of status bar item drawing
36439
36440 2004-08-10 17:27  jordi
36441
36442         * TrackBar.cs: add missing methods, properties, and restructure to
36443           hide extra ones
36444
36445 2004-08-10 16:24  jackson
36446
36447         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
36448           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
36449           attribute
36450
36451 2004-08-10 13:21  jordi
36452
36453         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
36454           enhancements and standarize on win colors defaults
36455
36456 2004-08-10 12:52  jackson
36457
36458         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
36459           ThemeWin32Classic.cs: Implement DrawItem functionality
36460
36461 2004-08-10 12:47  jordi
36462
36463         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
36464
36465 2004-08-10 12:32  jordi
36466
36467         * Control.cs: throw ontextchange event
36468
36469 2004-08-10 11:43  pbartok
36470
36471         * Control.cs:
36472           - Added more to the still unfinished Dock/Anchor layout code
36473
36474 2004-08-10 11:39  pbartok
36475
36476         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
36477           - Added GetWindowPos method
36478
36479 2004-08-10 11:36  pbartok
36480
36481         * XplatUIWin32.cs:
36482           - Implemented several methods
36483
36484 2004-08-10 09:47  jackson
36485
36486         * TrackBar.cs: Allow control to handle buffering
36487
36488 2004-08-10 09:41  jackson
36489
36490         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
36491
36492 2004-08-10 09:24  jackson
36493
36494         * Label.cs, LinkLabel.cs: Let Control handle buffering.
36495
36496 2004-08-10 09:09  jackson
36497
36498         * StatusBar.cs: Let Control handle all the buffering.
36499
36500 2004-08-10 09:08  jackson
36501
36502         * Control.cs: Control will now handle the buffering code, so each
36503           control does not have to implement this.
36504
36505 2004-08-10 08:34  jackson
36506
36507         * XplatUIDriver.cs: Use default colors from the theme
36508
36509 2004-08-09 17:12  pbartok
36510
36511         * ImageList.cs:
36512           - Fixed several bugs Ravindra pointed out
36513
36514 2004-08-09 16:11  pbartok
36515
36516         * Control.cs:
36517           - Added incomplete dock layout code
36518           - Added support for mouse wheel
36519
36520 2004-08-09 16:09  pbartok
36521
36522         * XplatUIX11.cs:
36523           - Added handling for middle and right mousebutton
36524           - Added handling for mouse wheel
36525           - Added handling for key state and mouse state and position
36526           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
36527           messages
36528
36529 2004-08-09 15:40  jackson
36530
36531         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
36532           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
36533           checkin
36534
36535 2004-08-09 15:37  jackson
36536
36537         * StatusBar.cs: Initial implementation of StatusBar
36538
36539 2004-08-09 15:36  jackson
36540
36541         * ITheme.cs: Add support for drawing status bar and getting status
36542           bar item sizes
36543
36544 2004-08-09 15:35  pbartok
36545
36546         * MouseButtons.cs:
36547           - Fixed values
36548
36549 2004-08-09 15:34  jackson
36550
36551         * ThemeWin32Classic.cs: Add support for drawing status bar and get
36552           status bar item sizes
36553
36554 2004-08-09 15:21  jackson
36555
36556         * ThemeWin32Classic.cs: Use known colors for default control
36557           colours
36558
36559 2004-08-09 15:12  jackson
36560
36561         * ThemeWin32Classic.cs: Make the default font static, it is static
36562           in control so this doesn't change functionality and creating fonts
36563           is sloooooow.
36564
36565 2004-08-09 14:56  pbartok
36566
36567         * X11Structs.cs:
36568           - Added GrabMode enum
36569
36570 2004-08-09 14:55  pbartok
36571
36572         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36573           - Removed Run method, was only required for initial development
36574
36575 2004-08-09 14:51  pbartok
36576
36577         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36578           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
36579           capture
36580
36581 2004-08-09 13:48  pbartok
36582
36583         * XplatUIX11.cs:
36584           - Fixed default sizing for child windows
36585
36586 2004-08-09 12:56  pbartok
36587
36588         * XplatUIX11.cs:
36589           - Added generation of WM_DESTROY message
36590           - Added handling of window manager induced shutdown
36591
36592 2004-08-09 11:31  jackson
36593
36594         * ThemeWin32Classic.cs: New names for control properties
36595
36596 2004-08-09 11:25  jackson
36597
36598         * Control.cs: Use new color names
36599
36600 2004-08-09 11:02  jackson
36601
36602         * XplatUI.cs: Get default window properties from the theme
36603
36604 2004-08-09 11:01  jackson
36605
36606         * ITheme.cs: The theme engine now controls default window
36607           properties
36608
36609 2004-08-09 11:00  jackson
36610
36611         * ThemeWin32Classic.cs: Add default window color properties
36612
36613 2004-08-09 10:17  jackson
36614
36615         * ThemeWin32Classic.cs: Use correct default back color
36616
36617 2004-08-09 10:05  jackson
36618
36619         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
36620           the theme now.
36621
36622 2004-08-09 09:56  jackson
36623
36624         * XplatUI.cs: Remove defaults, these are handled by the theme now.
36625
36626 2004-08-09 09:54  jackson
36627
36628         * Control.cs: Get default properties from the theme.
36629
36630 2004-08-09 09:53  jackson
36631
36632         * ITheme.cs: Themes now handle default control properties
36633
36634 2004-08-09 09:53  jackson
36635
36636         * ThemeWin32Classic.cs: Themes now handle default control
36637           properties so coloring will be consistent
36638
36639 2004-08-08 16:54  jordi
36640
36641         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
36642
36643 2004-08-08 15:08  jordi
36644
36645         * XplatUIX11.cs: fixes keyboard crash
36646
36647 2004-08-08 13:47  jordi
36648
36649         * Label.cs: add cvs header info
36650
36651 2004-08-08 12:09  jackson
36652
36653         * ThemeWin32Classic.cs: Add pen_buttonface
36654
36655 2004-08-08 11:52  jordi
36656
36657         * Label.cs, LinkLabel.cs: [no log message]
36658
36659 2004-08-08 11:34  jordi
36660
36661         * ThemeWin32Classic.cs: Use Windows Standard Colours
36662
36663 2004-08-07 17:32  jordi
36664
36665         * TrackBar.cs: throw exceptions of invalid enums values
36666
36667 2004-08-07 17:31  jordi
36668
36669         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
36670           draw method name
36671
36672 2004-08-07 16:56  jackson
36673
36674         * HorizontalAlignment.cs: Initial checkin
36675
36676 2004-08-07 13:16  jordi
36677
36678         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
36679           methods
36680
36681 2004-08-07 13:05  jordi
36682
36683         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
36684           GetSysColor defines
36685
36686 2004-08-06 18:01  pbartok
36687
36688         * ThemeWin32Classic.cs:
36689           - Fixed some rounding issues with float/int
36690
36691 2004-08-06 18:00  jackson
36692
36693         * DockStyle.cs, AnchorStyles.cs:
36694
36695                   Add flags and serializable attributes.
36696
36697 2004-08-06 17:46  pbartok
36698
36699         * XplatUIX11.cs:
36700           - Implemented GetParent
36701
36702 2004-08-06 17:18  pbartok
36703
36704         * TrackBar.cs:
36705           - Fixed some rounding issues with float/int
36706
36707 2004-08-06 17:17  pbartok
36708
36709         * X11Structs.cs, XplatUIX11.cs:
36710           - Fixed Refresh and Invalidate
36711
36712 2004-08-06 15:30  pbartok
36713
36714         * Control.cs, X11Structs.cs, XplatUIX11.cs:
36715           - Fixed recursive loop when resizing
36716           - Improved/fixed redrawing on expose messages
36717
36718 2004-08-06 09:53  jordi
36719
36720         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
36721           keyboard navigation
36722
36723 2004-08-06 08:02  pbartok
36724
36725         * X11Structs.cs, XplatUIX11.cs:
36726           - Fixed reparenting
36727           - Fixed window border creation
36728
36729 2004-08-05 15:38  pbartok
36730
36731         * XplatUIX11.cs:
36732           - Attempted fix for reparenting problems
36733
36734 2004-08-04 15:14  pbartok
36735
36736         * Control.cs:
36737           - Fixed Invalidation bug (calculated wrong client area)
36738           - Added ClientSize setter
36739
36740 2004-08-04 15:13  pbartok
36741
36742         * Form.cs:
36743           - Added AutoScale properties
36744
36745 2004-08-04 15:13  pbartok
36746
36747         * SWF.csproj:
36748           - Added latest files
36749
36750 2004-08-04 14:11  pbartok
36751
36752         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36753           XplatUIX11.cs:
36754           - Added Invalidate handling
36755
36756 2004-08-03 17:09  jordi
36757
36758         * XplatUIDriver.cs: fixes spelling mistake
36759
36760 2004-07-27 09:53  jordi
36761
36762         * TrackBar.cs: fixes trackbar events, def classname, methods
36763           signature
36764
36765 2004-07-27 09:29  jordi
36766
36767         * ScrollBar.cs: fixes scrollbar events
36768
36769 2004-07-27 04:38  jordi
36770
36771         * Control.cs: changes to be able to run winforms samples
36772
36773 2004-07-26 11:42  jordi
36774
36775         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
36776           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
36777
36778 2004-07-26 05:41  jordi
36779
36780         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
36781           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
36782           implementation
36783
36784 2004-07-22 09:22  jordi
36785
36786         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
36787           check link overlapping, implement events, and fixes
36788
36789 2004-07-21 10:28  jordi
36790
36791         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
36792
36793 2004-07-21 10:19  jordi
36794
36795         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
36796           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
36797           LinkLabelLinkClickedEventArgs.cs,
36798           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
36799           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
36800           implementation
36801
36802 2004-07-19 13:09  jordi
36803
36804         * Control.cs, Label.cs: label control re-written: added missing
36805           functionlity, events, and properties
36806
36807 2004-07-19 10:49  jordi
36808
36809         * Control.cs: fixes SetBounds logic
36810
36811 2004-07-19 01:29  jordi
36812
36813         * Control.cs: Call RefreshWindow only if the window has created
36814
36815 2004-07-15 14:05  pbartok
36816
36817         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
36818           - Implemented ImageList and ImageList.ImageCollection classes
36819           - Added ColorDepth enumeration
36820           - Updated SWF VS.Net project
36821
36822 2004-07-15 11:06  jordi
36823
36824         * XplatUIStructs.cs: added MsgButons enum
36825
36826 2004-07-15 11:03  jordi
36827
36828         * Control.cs: added basic mouse handeling events
36829
36830 2004-07-15 03:38  jordi
36831
36832         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
36833           Vertical TrackBar control implementation
36834
36835 2004-07-13 09:33  jordi
36836
36837         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
36838
36839 2004-07-13 09:31  jordi
36840
36841         * Control.cs, Form.cs: commit: new properties and fixes form size
36842           problems
36843
36844 2004-07-09 14:13  miguel
36845
36846         * ProgressBar.cs: Spelling
36847
36848 2004-07-09 11:25  pbartok
36849
36850         * ProgressBar.cs:
36851           - Removed usage of Rectangle for drawing. Miguel pointed out it's
36852           faster
36853
36854 2004-07-09 11:17  miguel
36855
36856         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
36857
36858                 * ProgressBar.cs: Fixed spelling for `block'
36859
36860                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
36861                 style guidelines.
36862
36863                 Avoid using the += on rect.X, that exposed a bug in the compiler.
36864
36865 2004-07-08 23:21  pbartok
36866
36867         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
36868           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
36869           BaseCollection.cs, Binding.cs, BindingContext.cs,
36870           BindingMemberInfo.cs, BindingsCollection.cs,
36871           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
36872           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
36873           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
36874           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
36875           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
36876           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
36877           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
36878           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
36879           FrameStyle.cs, GiveFeedbackEventArgs.cs,
36880           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
36881           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
36882           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
36883           InputLanguageChangedEventArgs.cs,
36884           InputLanguageChangedEventHandler.cs,
36885           InputLanguageChangingEventArgs.cs,
36886           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
36887           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
36888           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
36889           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
36890           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
36891           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
36892           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
36893           QueryAccessibilityHelpEventArgs.cs,
36894           QueryAccessibilityHelpEventHandler.cs,
36895           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
36896           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
36897           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
36898           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
36899           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
36900           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
36901           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
36902           XplatUIX11.cs, lang.cs:
36903           - Initial check-in
36904
36905