2008-10-02 Jonathan Pobst <monkey@jpobst.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2
3         * ToolStripItem.cs: Check to make sure the owner is actually
4         changing in InternalOwner before doing any work.  Fixes some
5         failing tests.
6
7 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
8
9         * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
10         * DataGridView.cs: Use a column header's inherited style instead
11         of just using the default.
12
13 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
14
15         * SplitContainer.cs: Raise SplitterMoved when the splitter is
16         moved through code.
17
18 2008-10-01  Mario Carrion <mcarrion@novell.com>
19
20         * ScrollBar.cs: Internal property added: UIAThumbPosition.
21
22 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
23
24         * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
25
26 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
27
28         * ToolStripItem.cs: When the user sets Owner, we need to remove
29         it from its previous owner and then add it to the new owner's
30         item collection.  Also, create InternalOwner, so we can set the owner
31         that doesn't do this new stuff.
32         * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
33
34 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
35
36         * ToolStripItem.cs: When our parent changes, recalculate our text
37         size, since we may be getting our Font from our parent.  When our
38         owner's Font changes, recalculate ourselves as we may be using
39         that font.
40
41 2008-10-01  Everaldo Canuto  <ecanuto@novell.com>
42
43         * MenuAPI.cs: Select the first option of a popup when opening the popup via
44         return key. [Fixes bug #413792].
45
46 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
47
48         * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
49         ambient properties.  (Get their value from their parents if
50         values haven't been set.)
51
52 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
53
54         * ToolStripSystemRenderer.cs: Call overridden methods' bases
55         after our logic, so users can do painting by handling the events.
56         Currently, we draw over any user painting.
57
58 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
59
60         * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
61         after our logic, so users can do painting by handling the events.
62         Currently, we draw over any user painting.
63
64 2008-09-30  Everaldo Canuto  <ecanuto@novell.com>
65
66         * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
67
68 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
69
70         * TreeNode.cs, TreeView.cs: Move logic that determines the node
71         image to draw to TreeNode.  Give Index/Keys put on the node
72         precedence over the global one for the TreeView.
73
74 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
75
76         * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
77
78 2008-09-29  Mario Carrion <mcarrion@novell.com>
79
80         * ListBox.cs: Index fixed.
81
82 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
83
84         * TabControl.cs: When expanding the tab -because it's selected now-,
85         using Right alignment, instead of adding some selected delta value to
86         the X origin, substract it, so it gets a location adjacent to the panel, 
87         instead of be more separated.
88         Fixes #409170.
89
90 2008-09-29  Jonathan Pobst  <monkey@jpobst.com>
91
92         * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
93         own copies of them.
94
95 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
96
97         * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
98         as well as the other static fields, to avoid using their previous
99         values my mistake when handling the dnd events. This should avoid
100         handling any status event after the drop has been finalized/cancelled.
101
102 2008-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
103
104         * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
105         operation, instead of waiting until we get any movement - this will
106         help us to have the data available in case no movement was detected
107         and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
108         Finally add a windows.forms-only fallback to fire the mentioned events
109         if no movement at all was detected, just like .net does.
110         Fixes #381876.
111
112 2008-09-27  Jonathan Pobst  <monkey@jpobst.com>
113
114         * ThemeWin32Classic.cs: When drawing a status bar panel, don't
115         return early if the text is empty because the icon doesn't get
116         drawn then.  [Fixes bug #428113]
117
118 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
119
120         * FileDialog.cs: Implement basic support for sorting by columns in
121         Details view. Patch by Eric Petit.
122         Fixes #428006.
123
124 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
125
126         * ThemeWin32Classis.cs: When drawing gridlines take into account the
127         case where ListView.ItemSize hasn't been computed, and provide a
128         fallback as well. This prevents a division by 0.
129
130 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
131
132         * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
133         correctly draw tooltip backgrounds.
134
135 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
136
137         * ImageList.cs: Change CopyTo implementation to ensure clones are
138         created of our images.
139         [Fixes bug #409169]
140
141 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
142
143         * Control.cs: When setting fonts, we need to ensure we change our
144         reference to the new font object, even if it represents the same
145         font as before.  If we don't, the original font can get disposed
146         and we will still try to use it.
147         [Fixes bug #386450]
148
149 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
150
151         * FileDialog.cs: Take into account Tile view when selecting the view
152         (2.0 profile).
153
154 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
155
156         * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
157         the item bounds, since we can't iterate over them in virtual mode.
158         Also fix wrong calculation of the gridlines when using scrolling.
159         Fixes #400390.
160
161 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
162
163         * XplatUIX11.cs: When handling EnterNotify events, take into account
164         both the public and implicit controls when trying to detect the
165         grab/ungrab process. This should fix ListView selection in Details
166         view.
167
168 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
169
170         * TreeView.cs: Redraw the whole node area when the selected node changes.
171         Things like state images were not getting redrawn because the invalid
172         rectangle was too small.
173         [Fixes bug #428211]
174
175 2008-09-23  Mario Carrion  <mcarrion@novell.com>
176
177         * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
178         [Fixes bug #428993]
179
180 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
181
182         * Form.cs: Do not set the Form's icon in the backend if showicon = false.
183         [Fixes bug #428114]
184
185 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
186
187         * ThemeWin32Classic.cs: Allow tooltips to be multiline.
188         [Fixes bug #427884]
189
190 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
191
192         * StatusBar.cs: Add tooltip support.
193         [Fixes bug #428113]
194
195 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
196
197         * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
198         alignments of sub items in Details view. Patch by John Mortlock (johnm at 
199         hlaustralia.com.au).
200         Fixes #425360.
201
202 2008-09-23  Neville Gao <nevillegao@gmail.com>
203
204         * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
205         [Fixes bug #419079]
206
207 2008-09-22  Jonathan Pobst  <monkey@jpobst.com>
208
209         * TextBoxBase.cs: Set Text to "" instead of null in Clear().
210         [Fixes bug #428107]
211
212 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
213
214         * ListView.cs: Don't do anything when EnsureVisible is called inside a
215         BeginUpdate/EndUpdate block.
216         Fixes #425049.
217
218 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
219
220         * ListViewItem.cs: The semantics for the public .ctor of
221         ListViewSubItemCollection need us to already have a Text value for the
222         item, which in our implementation have as available *after* adding the
223         first sub item. So create an internal .ctor that satisfies our needs
224         and let the public .ctor have the same semantics as .net.
225         Fixes #427561.
226
227 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
228
229         * ListControl.cs: Changes in Formatting related values should call
230         RefreshItems, as .net does.
231         * ComboBox.cs:
232         * ListBox.cs: In the respective overrides of RefreshItems calculate
233         layout as well as refreshing - again, this is what .net does.
234         Fixes #426168.
235
236 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
237
238         * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
239         since we are already doing that when we change the value of the
240         scrollbar or force the call to ScrollWindow in the same method. This
241         way we don't cause a Invalidate call for all the listbox bounds for
242         methods calling UpdateTopItem with an already updated top item. This
243         was happening specially calling EnsureVisible with already visible
244         items.
245
246 2008-09-18  Mike Gorse <mgorse@novell.com>
247
248         * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
249           XplatUIStructs.cs: Added KeyFilter
250         [Fixes bug #427039]
251
252 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
253
254         * RelatedPropertyManager.cs: The properties returned by
255         GetItemProperties should be that ones of the *actual* object returned
256         by the property, not the property type - this is very special when the
257         property exposes a type, but the returned object actually is a child
258         class and implements more functionality and properties.
259
260 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
261
262         * Binding.cs: Don't look for the property in the data source if the
263         passed string is empty.
264
265 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
266
267         * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to 
268         fix unused variable warnings.
269
270 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
271
272         * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
273         [Fixes bug #427073]
274
275 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
276
277         * XplatUIX11.cs: 
278          - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this 
279          leads to the window manager overriding our border style and zorder. 
280          - Allow the activation of non-modal forms, which are children of a 
281          modal form.
282         [Fixes bug #423417]
283
284 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
285
286         * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should 
287         ask the window manager to do the work instead of changing the property 
288         directly.
289         [Fixes bug #423417]
290
291 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
292
293         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
294         AddNew to fix some navigation for empty datasets. [Fixes #323053]
295
296 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
297
298         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
299         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
300         border and fixes some drawing issues when resize form.
301
302 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
303
304         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
305         
306         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
307         AcceptButton.
308
309 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
310
311         * TextBoxBase.cs: For standard textbox the scrollbars are always 
312         visible if Multiline is true.
313         [Fixes bug #426896]
314
315 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
316
317         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
318         patch.
319         
320 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
321
322         [Fixes most od DBNull and HeadersVisible problems]
323         
324         * DataGrid.cs:
325         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
326         returns the value that we need.
327         - Fixed FromPixelToColumn method that return zero for first     column and for
328         row header cell, now it returns -1 for row header cell.
329         - Fixed HitTest to check row header cell in column header area, it now
330         returns HitTestType.None. [Fixes #322864]
331         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
332         checks for RowHeadersVisible and other things.
333         - If an exception occurs when setting CurrentCell and user type 'yes' in
334         message dialog, invalidade current and new cell and set setting_current_cell
335         to false to prevent future errors. [Partially fixes #323050]
336
337         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
338         value (SetColumnValueAtRow), it must be done by grid to properly show 
339         messages. [Fixes #323050]
340
341         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
342         better draw column and row header. Also dont draw anything when column
343         headers is not visible.
344
345 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
346
347         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
348         logic.
349
350 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
351
352         * TreeView.cs: Don't start editing a node on right click, only
353         left click.
354
355 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
356
357         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
358         disabled over a year ago.
359         * Form.cs: Wrap calling Load in a try/catch because it can happen
360         before the catch-all one in NativeWindow.
361         [Fixes bug #425414]
362
363 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
364
365         * ToolStripDropDownMenu.cs: Calculate the connected area better
366         to take into account when the drop down is not directly under the
367         owner item.
368         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
369
370 2008-09-16  Mario Carrion <mcarrion@novell.com>
371
372         * ScrollBar.cs: New event added: UIAValueChanged, generated when
373           LargeChange, SmallChange, Maximum or Minimum values are changed.
374         [Fixes bug #426464]
375
376 2008-09-16  Mario Carrion <mcarrion@novell.com>
377
378         * ErrorProvider.cs: Component enabled to support accessibility.
379         * Application.cs: Updated to Initialize UIA in ErrorProvider.
380         [Fixes bug #426459]
381
382 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
383
384         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
385         so we don't highlight on first focus.
386         [Fixes bug #360869]
387
388 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
389
390         * TextControl.cs: Correctly calculate the height of the area we 
391         need to invalidate when we have started scrolling and viewport_y
392         is used.  [Fixes bug #387608]
393
394 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
395
396         * TextControl.cs: When getting the SelectedText, don't add in
397         NewLine characters, as they are already contained in the lines.
398         [Fixes bug #388115]
399
400 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
401
402         * TextBoxBase.cs: Replace the buggy Lines setter with one that
403         simply concats the lines and send it to the Text setter.
404         [Fixes issue #2 and #3 of 388115]
405
406 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
407
408         * Binding.cs: The default value of DataSourceNullValue should be
409         Convert.DBNull actually. Also, the NullValue should only be used *if*
410         itself is not null, and use the null/Convert.DBNull value instead.
411
412 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
413
414         * TextControl.cs: Add a method to convert a string newline to the
415         newline enum.
416         * TextBoxBase.cs: When the user hits enter, insert a native newline.
417         [Fixes part 1 of bug #388115]
418
419 2008-09-15  Mario Carrion <mcarrion@novell.com>
420
421         * ToolTip.cs: UnPopup event set to internal to match public API.
422
423 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
424
425         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
426         have to remove the Ctrl in order for the focus moving code to kick in.
427         [Fixes bug #426170]
428
429 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
430
431         * CheckedListBox.cs: Return the real item index from Add.  It may not be
432         the last item if the list is sorted.  The user can change the NewValue in
433         the ItemCheck event, we need to use that value if so.
434         * ListBox.cs: Return the real item index from a sorted Add.
435         [Fixes bug #426166]
436
437 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
438
439         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
440         happen that the icons from the theme is missing or the particular size 
441         unavailable.
442         [Fixes bug #424981]
443
444 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
445
446         * Binding.cs: When assigning null or DBNull depending on value/ref type,
447         use IsValueType instead to get the precise desired value.
448         Fixes #424276.
449
450 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
451
452         * TreeNodeCollection.cs: When adding a new node to an opened node,
453         we have to invalidate everything below the parent node because
454         every node scoots down and we have to repaint them.
455         [Fixes bug #411386]
456
457 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
458
459         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
460         property into account when drawing.
461         [Fixes bug #416064]
462
463 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
464
465         * ListBox.cs: When calling Items.Clear(), call
466         SelectedIndexCollection.ClearCore instead of normal Clear method, to
467         not fire any Selected*Changed event - this is done to match .net and
468         don't have invalid values when changing the DataSourceProperty.
469         Fixes #424273.
470
471 2008-09-12  Mario Carrion  <mcarrion@novell.com>
472
473         * HelpProvider.cs: Control enabled to support accessibility.
474         * Application.cs: Updated to Initialize UIA in HelpProvider.
475         [Fixes bug #425988]
476
477 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
478
479         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
480         make the dialog TopMost as well.
481         [Fixes bug #425984]
482
483 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
484
485         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
486         clipboard data better.
487         [Fixes bug #414446]
488
489 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
490
491         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
492         TextChanged and SelectionChanged events fire in the same order as .Net.
493         [Fixes bug #425725]
494
495 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
496
497         * DataGridView.cs: When sorting a column, if it only contains numbers,
498         do a numeric sort instead of a string sort.
499         [Fixes bug #425849]
500
501 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
502
503         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
504         against NRE's when the settings have a null panel.
505         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
506         the panel gets set.
507         [Fixes bug #425647]
508
509 2008-09-11  Mario Carrion  <mcarrion@novell.com>
510
511         * ToolTip.cs: Control enabled to support accessibility.
512         * Application.cs: Updated to Initialize UIA in ToolTip.
513         [Fixes bug #425277]
514
515 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
516
517         * Control.cs: Make the custom Enumerator internal to fix build.
518
519 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
520
521         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
522         already in edit mode, begin edit mode.  Generally edit mode isn't
523         started until the second click, but CheckBoxes are special.
524
525 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
526
527         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
528         since that can be set to anything.  Always add them to the Control's
529         parent.  [Fixes bug #416058]
530
531 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
532
533         * ListView.cs: Use a custom enumerator for ListViewItemCollection
534         so items can be deleted in a foreach.
535         [Fixes bug #425342]
536
537 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
538
539         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
540         Store the user set explicit height so that the row can be AutoSized
541         and then when AutoSize is turned off, it can get its original size back.
542         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
543         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
544         rows' heights back to their explicit values.
545         [Fixes bug #415780]
546
547 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
548
549         * DateTimePicker.cs: When getting focus, select the checkbox if we are
550         already showing it. Also, don't change its value when pressing space
551         if the checkbox is not visible (ShowCheckBox as false). Finally, the
552         checkbox should remain selected as long as Checked is false, and the
553         other parts are disabled.
554         Fixes #424267.
555         
556 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
557
558         * MessageBox.cs: Handle shortcut keys to dialog buttons.
559         [Fixes bug #425425]
560
561 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
562
563         * Binding.cs: When the value retrieved from the control property is
564         null, don't return Convert.DBNull for Nullable instances, since they
565         can *actually* get a null value.
566         Fixes #424265.
567
568 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
569
570         * Control.cs: Add an internal field to force doublebuffering regardless
571         of what the public mechanisms are set to.  This is because MS's native
572         controls are doublebuffered even though their .Net bits are set to false.
573         * ProgressBar.cs: Set force_double_buffer to true.
574         [Fixes bug #406595]
575
576 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
577
578         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
579         the cell template.
580         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
581         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
582         without EditingControls, paint background selection for types without
583         EditingControls, reset the EditingCellValueChanged flag when the
584         cell's value is committed.
585         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
586         have EditingControls, remove a double call to a cell's OnContentClickInternal,
587         don't do cell changing logic in OnMouseDown if the cell didn't change.
588         [Fixes bug #420351]
589
590 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
591
592         * DateTimePicker.cs: Fix the edition of am/pm specifier.
593
594 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
595
596         * TextControl.cs: Add "&" to the list of valid characters in a URL.
597
598 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
599
600         * DateTimePicker.cs: Before incrementing or decrementing any part in
601         the textbox, end any current edit. Also when ending the current edit
602         use the editing_part_index field instead of the current selected
603         value, since they can be out of synch, and we really need to work on
604         the *real* current edit part. Finally when PartData.Selected changes,
605         always try to end any ongoing edit.
606         This should fix some small errors handling mouse navigation and
607         increase/decrease operations.
608
609 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
610
611         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
612         respectively) should handled different, since the 12 hours format
613         needs the value typed by the user to be adjusted depending on the
614         a.m/p.m value, so it is preserved, and only changed when the value
615         reaches the 12 value (when it changes from a.m to p.m).
616         Fixes part of #416555.
617
618 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
619
620         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
621         * ToolStripDropDownItem.cs: Don't fire events and such again if
622         ShowDropDown is called on an already dropped down item.
623         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
624         subitems, the user may add some in the DropDownOpening event.
625         [Fixes bug #417877]
626
627 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
628
629         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
630         [Fixes bug #424270]
631
632 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
633
634         * MdiClient.cs: When looking for menustrips on a child form to merge,
635         look inside ToolStripContainers.
636         [Fixes bug #424264]
637
638 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
639
640         * ErrorProvider.cs: Unbreak my previous commit.
641
642 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
643
644         * ErrorProvider.cs: Icon should always be 16x16.
645         [Fixes bug #424380]
646
647 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
648
649         * GridEntry.cs: Invalidate the child items cache when the property 
650         value changes.
651
652 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
653
654         * GridEntry.cs, PropertyGridView.cs: 
655            - Update the ReadOnly detection and rendering to finally hopefully 
656            match the one of MSFT.
657            - Niceify and move the debug CWLS.
658         [Fixes bug #409028]
659
660 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
661
662         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
663         since we are already calling Invalidate for the entire control when
664         needed - and call Redraw() when size changes, since we need to paint
665         there by ourselved and not anymore from the mentioned method. 
666         This should improve the layout process. Also clean some not needed calls 
667         here and there.
668
669 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
670
671         * MenuAPI.cs: Add a null check to the Alt-F4 code.
672         [Fixes bug #420309]
673
674 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
675
676         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
677         [Fixes bug #423040]
678
679 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
680
681         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
682         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
683         on item expansion. Improves performance and fixes bug #417955.
684         [Fixes bug #417955]
685
686 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
687
688         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
689         fix the build.
690
691 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
692
693         * TextControl.cs: Add "_" to the list of valid characters in a URL.
694         [Fixes bug #423408]
695
696 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
697
698         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
699         region gets set.
700         [Fixes bug #414166]
701
702 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
703
704         * FontDialog.cs: When storing our font size from the starting font,
705         use SizeInPoints instead of Size in case Size is a different unit
706         from Points.
707         [Fixes bug #416489]
708
709 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
710
711         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
712         don't use it for anything else, check if a directory is highlighted.
713         If it is, navigate into it.
714         [Fixes bug #422087]
715
716 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
717
718         * Binding.cs: When acquiring a BindingManagerBase for the first time,
719         check that the specified property actually exists in the data source,
720         and throw an ArgumentException if that's not the case - this is only
721         done for this scenario, since for later cases (such Position changes)
722         we throw different exceptions (match .Net).
723
724 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
725
726         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
727           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
728           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
729           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
730           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
731           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
732           properties.
733           [Fixes bug #418684]
734
735 2008-09-03  Neville Gao <nevillegao@gmail.com>
736
737         * StatusBar.cs: Control enabled to support accessibility.
738         [Fixes bug #419079]
739
740 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
741
742         * Binding.cs: When connecting the event handler for the "Changed"
743         event for the property, only do it for PropertyManager, and not for
744         CurrencyManager - this is exactly what does .Net, totally ignoring any
745         change in the property of the elements of a list.
746         Fixes the tests.
747
748 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
749
750         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
751         to Windows when creating a window, as we fake MDI stuffs.
752         [Fixes bug #421858]
753
754 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
755
756         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
757         change takes effect.
758
759 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
760
761         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
762         [Fixes bug #419001]
763
764 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
765
766         * DataGridView.cs: Raise CellContentClick event.
767         [Fixes part of bug #420351]
768
769 2008-08-27  Mario Carrion  <mcarrion@novell.com>
770
771         * ScrollBar.cs: Control enabled to support accessibility.
772         [Fixes bug #416759]
773
774 2008-08-27  Mario Carrion  <mcarrion@novell.com>
775
776         * ComboBox.cs: Control enabled to support accessibility.
777         [Fixes bug #416663]
778
779 2008-08-27  Mario Carrion  <mcarrion@novell.com>
780
781         * ListBox.cs: Control enabled to support accessibility.
782         [Fixes bug #416640]
783
784 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
785
786         * ComboBox.cs: Don't suppress the TextChanged event when changing
787         the SelectedIndex.
788         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
789         and re-raise it.
790         [Fixes bug #420673]
791
792 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
793
794         * ErrorProvider.cs: Fix a regression NRE when setting properties
795         for a control before it has a parent.
796         [Fixes bug #420305]
797
798 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
799
800         * Binding.cs: Use the BindingManagerBase.Current value to obtain
801         connect the property "Changed" event, instead of using the data
802         sources - this is useful when the property specifies actually a
803         multiple objects path.
804         Fixes part of #417973.
805
806 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
807
808         * RelatedPropertyManager.cs: PropertyManager instances associated to a
809         nested properties should return not the properties of the data source
810         itself, but the properties of the type of a specific property in the
811         data source - match .net.
812
813 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
814
815         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
816         AddRange overloads into AddItems method, and added missing NULL check.
817         Added extra argument check to RemoveAt for compatibility with MS. 
818         Modified IList implementation of Add, Contains, IndexOf and Remove to
819         throw an ArgumentException if item is not an int. Modified IList.Insert
820         to throw a NotSupportException instead of an Exception. Implemented
821         ICollection.
822         (ObjectCollection): To avoid duplication, use AddItems method from
823         AddRange overloads. On 1.0 profile, first perform NULL check on items
824         in AddItems.
825
826 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
827
828         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
829          #419087.
830
831 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
832
833         * X11Keyboard.cs : comment out some Console.WriteLine().
834
835 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
836
837         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
838           even if premises are not filled. Also XLookupString() was not
839           receiving correct input, which blocked precise input handling
840           on non-XIM mode.
841
842 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
843
844         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
845         type of delegate, instead of EventHandler - this was causing a type
846         cast exception in all apps handling this event.
847         Fixes #417876.
848
849 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
850
851         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
852         ShowDropDown to give the user a chance to dynamically add
853         drop down items.  [Step 1 of fixing bug #417877]
854
855 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
856
857         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
858         had any mouse motion since the call to StartDrag, to match the dnd
859         behaviour of .net.
860         Fixes part of #381876.
861
862 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
863
864         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
865         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
866         Also, if we are actually moving into a different window after
867         grabbing, generate a LeaveNotify event for the previous window, since
868         we need to fire the leave events until the grab ends, not when
869         actually moving outside of the control.
870
871 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
872
873         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
874         events only for client windows was wrong - we need to compare the
875         client window against the window receiving the EnterNotify event, not
876         against zero (since client window is never Zero, btw).
877         This prevents having unnecessary handling of EnterNotify events for
878         non-client windows when a gran begins.
879
880 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
881
882         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
883         MouseMove/MotionNotify events at all (which should only happen after
884         MouseUp/ButtonRelease, as .Net does).
885         This avoids firing an extra and unnecessary MouseMove event just after
886         every MouseDown event.
887
888 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
889
890         * LinkLabel.cs: Always clear any previous links when LinkArea
891         is set.  [Fixes bug #410709]
892
893 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
894
895         * ToolStripProfessionalRenderer.cs: Revert last change.
896         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
897         for ToolStripDropDownBackground.
898
899 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
900
901         * ToolStripProfessionalRenderer.cs: Use Window color for the 
902         background of dropdowns to match .Net when the user is not
903         using the default white.  [Fixes bug #418108]
904
905 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
906
907         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
908           it caused timer registration twice. Fixed bug #418107.
909
910 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
911
912         [Correction: This is the actual change to X11Dnd issue, not the
913         previous one, which was actually a different issue.]
914
915         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
916         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
917         when the pointer is actually in motion, but only when the pointer
918         seems to stop (as .net does).
919         Fixes part of #381876.
920
921
922 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
923
924         * ListBox.cs: Fix CopyTo implementation.
925         [Fixes bug #409169]
926
927 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
928
929         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
930         drawing a ComboBox's background.  Fixes bad disabled rendering when
931         the control is not at 0,0.
932         [Fixes bug #416063]
933
934 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
935
936         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
937         ComponentModel layer, which will properly prioritize the attributes.
938         Avoids wrong prioritization of duplicate attributes when retrieving 
939         the converter and editor.
940         [Fixes bug #417729]
941
942 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
943
944         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
945         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
946         when the pointer is actually in motion, but only when the pointer
947         seems to stop (as .net does).
948         Fixes part of #381876.
949
950 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
951
952         * GridEntry.cs: Perform stricter check for the ParentEntry's 
953         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
954         implementation.
955         [Fixes bug #417567]
956
957 2008-08-14  Geoff Norton  <gnorton@novell.com>
958
959         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
960         Fixes #396983.  Properly fix ActiveWindow trackin and do not
961         prematurely show POPUP windows.
962
963 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
964
965         * XplatUIX11.cs: Handle the obscured regions while scrolling using
966         GraphicsExpose event, processing it just after we copy the scrolled
967         area. This ensures that the next calls to ScrollWindow will copy
968         regions already updated, and the scrolling will be smooth. Also remove
969         the code that was trying to detect the obscured regions, since we are
970         not using it anymore (too slow).
971
972 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
973
974         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
975         MultiExtended mode, by separating some logic between the ctrl/shift
976         handling. Also ignore any MouseMove events generated together with
977         MouseDown events - we are only interested in the real motion event.
978         Fixes part of #414963.
979
980 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
981
982         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
983         is selected.  [Fixes bug #414143]
984
985 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
986
987         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
988         and not the parent one (the propertyowner). Fixes the behavior of 
989         GetConverter/GetEditor.
990         [Fixes bug #415452]
991
992 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
993
994         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
995         [Fixes part of bug #415452]
996
997 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
998
999         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
1000         GridEntry, not the current.
1001         [Fixes bug #413896]
1002
1003 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
1004
1005         * TextBoxBase.cs: De-internalize max_length field.
1006         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
1007         share the same logic.
1008         [Fixes bug #414454]
1009
1010 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1011
1012         * ListBox.cs: Selection changes made in the MouseDown handler should
1013         use the *Core versions of selection in SelectedIndices collection,
1014         since the SelectedIndexChanged/SelectedValueChanged events are fired
1015         until we get a MouseUp event, and thus we need to separate the logic
1016         from the events, as done in the keyboard navigation. Also, fire those
1017         selection events from keyboard navigation in SelectionMode.None, even
1018         if we don't have a selection, as .Net does.
1019
1020 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
1021
1022         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
1023         last change introduced when an item is clicked but isn't on a toolstrip.
1024
1025 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1026
1027         * ListBindingHelper.cs: When looking for an object's properties, check
1028         if it implements ICustomTypeDescriptor, in which case we should
1029         resolve the propertu based on its GetProperties method, not in its
1030         actual properties. This is what .Net seems to do.
1031         Fixes a UsingWebBrowser problem during initialization.
1032
1033 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
1034
1035         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
1036         sitting on a MenuStrip.
1037
1038 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
1039
1040         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
1041         no children with the keyboard, we need to release the keyboard capture.
1042         [Fixes bug #413567]
1043
1044 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
1045
1046         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
1047         no children with the keyboard, we need to release the keyboard capture.
1048         [Fixes bug #413567]
1049
1050 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
1051
1052         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
1053         the GTK+-based implementation of VisualStyles.
1054         * ThemeWin32Classic.cs: Exposed various layout values for use in the
1055         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
1056         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
1057         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
1058         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
1059         TrackBarHorizontalTrackHeight.
1060
1061 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
1062
1063         * TabControl.cs: Added hot style handling for the scroll buttons.
1064         right_slider_state, left_slider_state are now of type PushButtonState to
1065         allow for a hot state. Added tracking of the mouse button being held down
1066         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
1067         LeftScrollButtonArea.
1068         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
1069         TabControlGetRightScrollRect.
1070
1071 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
1072
1073         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
1074         runtime errors.
1075
1076 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
1077
1078         * Form.cs: Ensure that we reset the shown_raised flag after 
1079         the form is closed, so that we raise the show events the next 
1080         time the form is shown.
1081         [Fixes bug #413141]
1082
1083 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
1084
1085         * Form.cs: Ensure closing events are raised only once.
1086         [Fixes bug #413143]
1087
1088 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
1089
1090         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
1091         so that we can successfully generate the LParam in-place instead of 
1092         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
1093         navigation for menus.
1094
1095 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
1096
1097         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
1098         'navigating'. Fixes bug #411356.
1099
1100 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
1101
1102         [Fixed remaining issues of #406773 (#1)]
1103         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
1104
1105         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
1106         MainMenu (already done) and ContextMenu creation.
1107
1108         * ContextMenu.cs: Create tracker on construction. 
1109
1110 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
1111
1112         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
1113         possible to instantiate MenuTracker without GrabControl.
1114
1115 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
1116
1117         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
1118
1119         * MainMenu.cs: Set GrabControl on SetForm using current form.
1120
1121 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
1122
1123         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
1124
1125 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
1126
1127         * MenuAPI.cs: Check if menu is activated before deactivate it in 
1128         ProcessShortcut.
1129
1130 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
1131
1132         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
1133         ColumnStyle.cs: 
1134         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
1135          - One style instance can only participate in a single style collection.
1136          - Styles can request their owner to layout whenever their properties 
1137          change.
1138          [Fixes bugs #412583 and #412582]
1139
1140 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
1141
1142         * X11Keyboard.cs: Implement the generation of the LParam for 
1143         all keyboard messages.
1144         [Fixes bug #378728]
1145
1146 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
1147
1148         * ListBox.cs: Don't let the user set TopIndex so high that it
1149         scrolls up far enough to show empty items.
1150         [Fixes bug #412728]
1151
1152 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1153
1154         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
1155         (I'm an idiot and forgot to commit the actual changes, as well as
1156         specify the right file, which is this one, not ListView.cs).
1157
1158 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1159
1160         * ListView.cs: Don't draw ListViewSubItem instances from
1161         DrawListViewItem - we need to reuse the main item's drawing for the
1162         first sub item in case owner draw is true, but wants the system to
1163         do the default draw for the first sub item, without incurring in a
1164         recursion problem.
1165         Fixes #410880.
1166
1167 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
1168
1169         * ToolStripButton.cs: Update Checked for CheckOnClick before
1170         raising the Click event.  [Fixes bug #412505]
1171
1172 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
1173
1174         * Form.cs: Remove some seems leftover code for non-TopLevel's 
1175         CreateParams, which is breaking ClientSize sizing, because it 
1176         removes the border window styles.
1177
1178 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
1179
1180         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
1181         changes.
1182
1183 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
1184
1185         * WebBrowser.cs: Removed debug output.
1186
1187 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
1188
1189         * FileDialog.cs: Apply patch from Ernesto to clean up some
1190         dialog messages.
1191
1192 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
1193
1194         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
1195         that the change has an immediate effect.
1196
1197 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
1198
1199         * ScrollableControl.cs: Update PerformLayout calls to include 
1200         provide the name of the property that changed.
1201
1202 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
1203
1204         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
1205         location. Fixes drawing of border and cell borders if scrollable.
1206
1207 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
1208
1209         * ScrollableControl.cs: Perform layouting after the AutoScroll 
1210         properties have changed, so that the changes have immediate 
1211         effect.
1212         [Fixes bug #409090]
1213
1214 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
1215
1216         * XplatUIX11.cs: Non Client area is actually Client such in the 
1217         case of NotifyIcon, so double check WholeWindow == ClientWindow 
1218         when adding an expose.
1219         [Fixes bugs #324237 and #357022]
1220
1221 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
1222
1223         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
1224         repaint the cell borders.
1225
1226 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
1227
1228         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
1229         disposal to avoid unexpected ObjectDisposedExceptions.
1230
1231 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
1232
1233         * TableLayoutPanel.cs: Layout on Row/Column count change.
1234
1235 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
1236
1237         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
1238         bug #409351.
1239         * PictureBox.cs: When ImageLocation is set to null or an empty string,
1240         only set image to null if it was previously initialized from an url
1241         (or using ImageLocation). In ImageLocation, load specified image
1242         asynchronously if WaitOnLoad is false. Added support for local file
1243         paths to LoadAsync, and added missing argument check.
1244
1245 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1246
1247         * DateTimePicker.cs: 
1248         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
1249         order to set the value as required (which means: when selection
1250         changes for a part being edited, and not before that if not needed).
1251         Also use an enum to describe which part are we using, and use the
1252         selection as a property in PartData, in order to notify the
1253         DateTimePicker owner that we need to end the current edit.
1254         Fixes #383462.
1255
1256 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
1257
1258         * PropertyGridTextBox.cs: Validation should be performed only if we 
1259         are focused. We can lose focus for example if the Return key is used 
1260         to set the entry and there is an error. When the message box is 
1261         displayed we would have validate on click in the message box.
1262
1263 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
1264
1265         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
1266         in order to determine that we are expandable is wrong. There was a bug, 
1267         now fixed, in TypeDescriptor that was causing the wrong converter to be 
1268         returned which caused GetPropertiesSupported == false in most cases.
1269         [Fixes bug #409027]
1270
1271 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
1272
1273         * ImageList.cs: Fix ICollection.CopyTo implementation for
1274         ImageListCollection.  [Fixes bug #409169]
1275
1276 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
1277
1278         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
1279         WorkingArea so that menus can appear on the second monitor
1280         when one has dual monitors.
1281
1282 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1283
1284         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
1285         Fixes build.
1286
1287 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1288
1289         * TextBox.cs: Implement navigation support for auto complete in
1290         TextBox, as well as refactor the code to show the auto complete window
1291         when receiving a WM_CHAR message, instead of TextChanged, since
1292         autocomplete itself should be able to set the Text a lot of times and
1293         finally only typing should show it, not changes from code.
1294
1295 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1296
1297         * TabControl.cs: When expanding the selected tab, don't adjust the
1298         width if alignment is Right, since it has a different offset than 0,
1299         as opposed to the other alignments.
1300         Fixes the selected tab not being painted at all with alignment = Right
1301         and using FillToRight size mode.
1302
1303 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
1304
1305         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
1306
1307 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
1308
1309         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
1310         values from the textbox to the boundary values.  [Fixes bug #409026]
1311
1312 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
1313
1314         * TreeNodeCollection.cs: We were copying one too many elements when
1315         doing our array copy.  Fixes a crash when RemoveAt is called.
1316         [Fixes bug #408999]
1317
1318 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1319
1320         * TabControl.cs: When doing the layout and need to call FillRow -using
1321         FillToRight size mode-, use the overload receiving a bool param
1322         indicating whether we need to do a vertical or horizontal calculation.
1323         Fixes part of #399583.
1324
1325 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1326
1327         * TextBox.cs: When painting, use the value returned by
1328         GetLastVisibleItem instead of using the cached last_item field, since
1329         there could be a desynchronization between the layout and the
1330         painting. Fixes a AOOR exception in auto complete mode.
1331
1332 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
1333
1334         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
1335         NonClientAreaEnabled until our VisualStyles is modified to allow it.
1336
1337 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
1338
1339         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
1340
1341 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1342
1343         * TextBox.cs: When focus is lost, if the auto complete listbox is
1344         visible, hide it.
1345
1346 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
1347
1348         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
1349         tracking size for tool windows.
1350         * Theme.cs, ThemeWin32Classic.cs : Extracted
1351         ManagedWindowSpacingAfterLastTitleButton.
1352
1353 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
1354
1355         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
1356         They are bit-rotted and have always been listed as "unsupported".
1357
1358 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
1359
1360         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
1361
1362 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
1363
1364         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
1365
1366 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
1367
1368         * ListBox.cs: Make sure last_item_visible gets reset before we try
1369         to do a layout due to scrollbars appearing or disappearing.
1370         [Fixes bug #408139]
1371
1372 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
1373
1374         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
1375         for different window themes.  [Fixes bug #339140]
1376
1377 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
1378
1379         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
1380         in ManagedWindowBorderWidth.
1381
1382 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
1383
1384         * InternalWindowManager.cs: Change MouseMove to take a point, so
1385         we can use the same point later on.
1386         * MdiWindowManager.cs: Store point sent to MouseMove so we can
1387         later reset to it.  On Windows, the Cursor.Position had already
1388         changed by the time we were resetting to it.
1389         [Fixes bug #363239]
1390
1391 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
1392
1393         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
1394         are inactive.
1395         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
1396         user requested it.
1397         [Fixes bug #398686]
1398
1399 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
1400
1401         * MdiWindowManager.cs: Double-clicking on the title bar should not
1402         maximize a MDI form if MaximizeBox = false.
1403
1404 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
1405
1406         * ThemeVisualStyles.cs: Fixed a warning.
1407
1408 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
1409
1410         * ThemeVisualStyles.cs: Fixed warnings and formatted.
1411
1412 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
1413
1414         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
1415         implementation produces a better result.
1416
1417 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
1418
1419         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
1420         windows.
1421
1422 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
1423
1424         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
1425         cannot be used from the ThemeEngine constructor.
1426         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
1427         Application.VisualStylesEnabled because it does not work on X11.
1428
1429 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
1430
1431         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
1432         that we did not always check for, as well as fixes to the IList
1433         implementations.  [Fixes bug #402703]
1434
1435 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
1436
1437         * IDeviceContext.cs: Added Dispose.
1438
1439 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
1440
1441         * Control.cs: Added OnSizeInitializedOrChanged.
1442         * Form.cs: OnLoadInternal: Added a call to
1443         Control.OnSizeInitializedOrChanged.
1444         * InternalWindowManager.cs:
1445          * HandleTitleBarMouseMove: No longer invalidates the parent window.
1446          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
1447          * TitleButton: Added Entered.
1448          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
1449         * MdiWindowManager.cs:
1450          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
1451          move over the maximized title buttons causes a change.
1452          * IsActive: Can now be called before the window is added to a MDI parent.
1453         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
1454         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
1455         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
1456         * ThemeWin32Classic.cs:
1457          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
1458          * DrawTitleButton takes a new form parameter.
1459          * Added ManagedWindowTitleButtonHasHotElementStyle,
1460          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
1461
1462 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
1463
1464         * ThemeEngine.cs: ThemeVisualStyles is now selected if
1465         Application.EnableVisualStyles has been called, even if the current system
1466         configuration does not support rendering with Visual Styles.
1467         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
1468         Styles should not be used.
1469
1470 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
1471
1472         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
1473         ComboBox in FormsTest.
1474
1475 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
1476
1477         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
1478         for fixed toolwindows.
1479
1480 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
1481
1482         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
1483
1484 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
1485
1486         * Control.cs: CreateControl just returns if the Control is diposed 
1487         and doesn't throw ObjectDisposedException.
1488         [Fixes bug #406566]
1489
1490 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
1491
1492         * Control.cs: Do not create the control if the parent isn't created 
1493         yet, e.g in the case of a parented form on which .Show is called.
1494         It will be created when the parent is made visible/created.
1495         Improves #402446.
1496
1497 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
1498
1499         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
1500         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
1501         [Fixes bug #406786]
1502
1503 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
1504
1505         * Form.cs: When disposed set owner to null. Improves #402446.
1506
1507 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
1508
1509         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
1510         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
1511         if not.
1512         * Form.cs: Take the Padding into account for the PreferredSize.
1513         [Fixes bug #402849]
1514
1515 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1516
1517         * TabControl.cs: Since we don't support more than one direction in
1518         TabControl rows alignment (this is, the row becomes the
1519         bottom row when selected), make Direction return always 1. This way
1520         the layout doesn't get confused about a bad calculation.
1521         Fixes #399582.
1522
1523 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
1524
1525         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
1526         so that the wparam is properly set.
1527         Fixes form moving in the test case in bug 402446.
1528
1529 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
1530
1531         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
1532         the full tree instead of nothing.  [Improves bug #406584]
1533
1534 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
1535
1536         * ThemeWin32Classic.cs: Adjusted minimized window painting.
1537
1538 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
1539
1540         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
1541         children.
1542
1543 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
1544
1545         * TreeView.cs: Add a null check when using CollapseAll on an
1546         empty tree.  [Fixes bug #406449]
1547
1548 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
1549
1550         * Form.cs: Make OnMenuComplete internal so we can call it.
1551         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
1552         [Fixes bug #399321]
1553
1554 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
1555
1556         * TabControl.cs: Handle Up and Down keys when TabControl is in
1557         vertical alignment.
1558         [Fixes bug #399585]
1559
1560 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
1561
1562         * TabControl.cs: Invalidate when we remove a tab.  Guard against
1563         an AOORE when trying to remove a tabpage that is not owned by the
1564         parent control.
1565         [Fixes bug #399927]
1566
1567 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
1568
1569         * ScrollBar.cs: Change the LargeChange calculation to be correct.
1570         Ensure we are using LargeChange instead of large_change so we our
1571         calculations are correct.
1572         [Fixes bug #403122]
1573
1574 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
1575
1576         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
1577         we need to ensure the ColumnCount/RowCount gets set.
1578         [Fixes bug #404851]
1579
1580 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1581
1582         * ListBox.cs: When handling item navigation, if selection mode is
1583         None, call EnsureVisible, since scrolling is normally handled by
1584         selection, that we are not calling in this case.
1585         Fixes #398345.
1586
1587 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
1588
1589         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
1590         a null check to our focus walking code.  [Fixes bug #394332]
1591
1592 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
1593
1594         * ComboBox.cs: Case missed in bug 379596 "Support item
1595         navigation by entering text": On _close_ drop-down select
1596         the first item matching the text in the textbox.  [Fixes bug #397265]
1597
1598 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
1599
1600         * DataGridView.cs: Fix a crash when sorting by column headers, 
1601         mentioned in bug #404841.  Remove some dead switch cases.
1602
1603 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1604
1605         * ComboBox.cs:
1606         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
1607         uses the AutoComplete support in the internal TextBox. Also TextBox
1608         can store a reference to ComboBox, in case AutoCompleteSource is set
1609         to ListItems (this is, ComboBox's items, and we don't want to pass an
1610         additional collection).
1611
1612 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1613
1614         * ListViewItem.cs: Restore the initial value of bounds rect to
1615         Rectangle.Empty, and is this value for Layout detection in virtual
1616         mode. Fixes the tests.
1617
1618 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
1619
1620         * XPlatUI.cs: Remove references to "new" X11 backend.
1621
1622 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
1623
1624         * Control.cs: Add an internal virtual OnDragDropEnd method 
1625         to allow controls such as ListBox, which depend on a sequence 
1626         of MouseDown+Move+End events, to handle the lack of a MouseUp 
1627         when a DnD operation is started in MouseDown.
1628         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
1629         get a MouseUp, so reset our state whenever a DnD operation ends.
1630
1631 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
1632
1633         * PropertyGrid.cs: Clear the root griditem first thing when 
1634         new object/s is/are selected. Fixes some rare cases where 
1635         the View will get a paint request and won't know that the 
1636         grid is in the process of repopulating.
1637
1638 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
1639
1640         * XplatUIX11.cs, InternalWindowManager.cs: 
1641         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
1642         doesn't automagically update the FormBorderStyle, so we must 
1643         double check the CreateParams explicitly to determine if the 
1644         window is a toolwindow.
1645         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
1646         instead of doing custom checks.
1647
1648         Fixes toolwindows for the test case in bug #402446
1649
1650 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
1651
1652         * Control.cs: Visibility of the control should be false 
1653         when the handle is destroyed in WmDestroy and not immediately 
1654         in Dispose(). This is effectively where the disposing process 
1655         ends even though the control is marked as Disposed immediately 
1656         after calling Dispose().
1657         [Fixes bug #402446]
1658
1659 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
1660
1661         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
1662         when the textbox gets focus.
1663         [Fixes bug #402704]
1664
1665 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
1666
1667         * PropertyGridTextBox.cs, PropertyGridView.cs: 
1668          - Alt + Down should show the drop down editor.
1669          - Focus the editor when showing it
1670         [Fixes bug #402710]
1671
1672 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
1673
1674         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
1675         that are not the first panel.
1676         * StatusBar.cs: Ensure that the X coordinate of panels is always
1677         stored.  Fix IList implementation of StatusBarPanelCollection to
1678         call the regular methods.
1679         [Fixes bug #403599, #402165]
1680
1681 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
1682
1683         * ThemeWin32Classic.cs: Fix position calculation for centered
1684         text on status bar panels.  [Fixes bug #402165]
1685
1686 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
1687
1688         * Splitter.cs: Fix Splitter to:
1689          - Work for arbitrary splitter size
1690          - Handle MinSize and MinExtra properly
1691          - Get rid of absolute positioning during drag and use relative
1692          - Multiple other fixes 
1693          [Fixes bug #338966]
1694
1695 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
1696
1697         * Cursor.cs: Show shouldn't hide the cursor.
1698
1699 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1700
1701         * ListViewItem.cs: When invalidating, add some extra space to bounds,
1702         since focus rectangle and selection can add some space and need to
1703         take into account those small offsets - specially in Details view.
1704         * ListView.cs: Instead of invalidate using item Bounds directly, call
1705         item.Invalidate, to have the code centralized.
1706         Fixes focused/selection garbage when selecting and deselecting items
1707         that are close.
1708
1709 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1710
1711         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
1712         mode we can check whether we have to force a Layout or not, and can
1713         cache based on this, instead of avoiding caching all the the time. Do
1714         this check in GetBounds and TextBounds.
1715         Fixes selection in Details view.
1716
1717 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1718
1719         * ListView.cs: Make HeaderControl internal, thus the theme engine can
1720         get its *real* height instead of trying to infere it.
1721         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
1722         get the position of them, since it's in general a bad idea in general,
1723         and because we can't do that in virtual mode. Instead get the first
1724         visible item as well as item height, and draw them.
1725         Fixes #400390.
1726
1727 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
1728
1729         * ToolStripSplitButton.cs: We can't add in extra width if
1730         the button is not AutoSize.  [Fixes bug #401279]
1731
1732 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
1733
1734         * PaddingConverter.cs: 
1735          - Implement conversion to InstanceDescriptor
1736          - Handle "All" in CreateInstance by using the supplied 
1737          ITypeDescriptorContext.
1738          [Fixes bugs #396076 and #396078]
1739
1740          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
1741          Code contributed under MIT/X11 license.
1742
1743 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
1744
1745         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
1746         ButtonBase.cs:
1747         Add Category attributes.
1748         Code is contributed under the MIT/X11 license.
1749
1750 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
1751
1752         * Form.cs: 
1753          - Fix a NRE when unparenting a form.
1754          - Do not recreate or destroy a parented form when 
1755         unparenting. 
1756
1757 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1758
1759         * TextBox.cs: Implement basic support for AutComplete with custom
1760         sources.
1761
1762 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
1763
1764         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
1765         DropDownButtonBounds should be from the origin of the button, not the
1766         ToolStrip.  [Fixes bug #401279]
1767
1768 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
1769
1770         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
1771           running gtk_init_check.  This prevents GAIL from loading
1772           unnecessarily, which was breaking UIA support.  Initial fix for bug
1773           #375987.
1774         * Application.cs: Add UIA support to Winforms.  New static constructor
1775           uses reflection to initialize UIAutomationWinforms assembly.  Added
1776           PreRun event so UIA can initialize before the mainloop starts, and
1777           FormAdded event so UIA can provide a11y support for new Forms in an
1778           Application.
1779
1780 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
1781
1782         * DataGridView.cs: When binding to a dataset, subscribe to table
1783         and column change events.  Unsubscribe to these when we clear bindings.
1784         [Fixes bug #399601]
1785
1786 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
1787
1788         [DataGrid drawing refactory]
1789
1790         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
1791
1792         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
1793         must be handle by Theme, now it call DataGridPaintColumnHeader.
1794
1795         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
1796         test cases must be also fixed because it checks for wrong size.
1797
1798         * ThemeWin32Classic.cs: 
1799                 - Draw the bottom line of grid caption.
1800                 - Prevent to draw caption text when it is empty.
1801                 - Use CPDrawBorder3D for 3D efects to simplify code.
1802                 - Uses 3D (when not flat) to paint corner shared between row and column
1803                 header.
1804                 - Fix header drawing issues on win32, now borders are drawing.
1805                 - Fix column header paint issues to mimic win32.
1806                 - Adjust header drawing for last column, like first one it must be draw
1807                 different.
1808                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
1809                 not an character.
1810                 - DataGridPaintColumnHeader created to draw column headers, it also
1811                 paint stuff right on Win32.
1812                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
1813                 class.
1814
1815         * Theme.cs: 
1816                 - DataGridPaintRowHeaderStar method added.
1817                 - DataGridPaintColumnHeader method added.
1818
1819 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
1820
1821         * Control.cs: Don't reset to Dock style layout if DockStyle is
1822         set to none.  [Fixes bug #399316]
1823
1824 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
1825
1826         * Win32DnD.cs: Fix the check for control not equal null.
1827         Fixes bug #341420 and #381886. 
1828
1829 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
1830
1831         * DataGridViewRowCollection.cs: Update the indexes of rows after
1832         one has been removed.
1833         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
1834         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
1835         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
1836         rows for the Rows collection, or deleting rows from the bound DataSet.
1837
1838 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
1839
1840         * DataGridView.cs: Listen to a DataSet's changed event even
1841         when autogeneratecolumns is false.  Refactor the changed event's
1842         add row code to use the same as the existing add row code.
1843         [Fixes bug #399601]
1844
1845 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
1846
1847         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
1848         much any time the caret moves and there is text, not just when
1849         the selection changes as one would think.
1850         * RichTextBox.cs: Override RaiseSelectionChanged and fire
1851         SelectionChanged.
1852         [Fixes bug #397271]
1853
1854 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
1855
1856         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
1857         instead of trying to duplicate the code.
1858         * ListBox.cs: Make method internal so we can send keyboard events.
1859         [Fixes bug #398344]
1860         
1861 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
1862
1863         * TextBoxBase.cs: When pasting and checking the max length,
1864         subtract the selected text length (the text we will be replacing) from
1865         the document length.
1866         * TextControl.cs: Ensure every character insertion is reflected in
1867         charcount, so max length will work properly.
1868         [Fixes bug #398605]
1869
1870 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
1871
1872         * ListBox.cs: Ensure scrollbars are updated when a single
1873         column listbox with an already set top-index is created.
1874         [Fixes bug #398342]
1875
1876 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
1877
1878         * FontDialog.cs: Typing in the font/style textboxes should search
1879         the list boxes case-insensitively.  [Fixes bug #398343]
1880
1881 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
1882
1883         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
1884         widths of icon and buttons instead of hard coded values.
1885
1886 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1887
1888         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
1889         as well as generating a SelectedIndexChanged event, just like .Net does
1890         -surprise-.
1891         Fixes #398345.
1892
1893 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1894
1895         * ListBox.cs: When navigating items visually, use FocusedItem as the
1896         reference point instead of SelectedIndex, since even in
1897         SelectionMode.None we need to support navigation, and in that case we
1898         just can't use SelectedIndex.
1899         Fixes part of #398345.
1900
1901 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
1902
1903         * Control.cs: Make a SetBoundsInternal that avoids the new
1904         SetBounds code.
1905         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
1906         SetBoundsInternal instead of SetBoundsCoreInternal.
1907
1908 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
1909
1910         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
1911         SetBounds for the scrollbars.
1912
1913 2008-06-10  Andreia Gaita <avidigal@novell.com> 
1914
1915         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
1916           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
1917           OnMouseMove, OnMouseOver, OnMouseUp
1918         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
1919           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
1920         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
1921           to the WebControl object to pass to new collection objects
1922         * HtmlHistory.cs: Implement support for individual window histories.
1923         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
1924           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
1925           GotFocus, LostFocus, OnLoad, OnUnload
1926         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
1927           ContextMenu
1928         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
1929           security level changes and context menu event support.
1930
1931 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1932
1933         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
1934         as happens with Esc, patch my Andy Hume.
1935         Fixes #396294.
1936
1937 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
1938
1939         * MdiWindowManager.cs: DrawMaximizedButtons now uses
1940         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
1941         * Theme.cs: Made MenuButtonSize platform dependent. Added
1942         ManagedWindowButtonSize.
1943         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
1944         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
1945
1946 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
1947
1948         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
1949         Added support for rendering with VisualStyles.
1950
1951 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
1952
1953         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
1954         support for rendering the border with VisualStyles.
1955
1956 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
1957
1958         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
1959         the icon is not shown.
1960         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
1961         its own logic.
1962
1963 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
1964
1965         * InternalWindowManager.cs: Draw minimized windows even if they don't have
1966         borders.
1967
1968 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
1969
1970         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
1971
1972 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
1973
1974         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
1975         [Fixes bug #397943]
1976
1977 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1978
1979         * ComboBox.cs: When snaping height -because of IntegralHeight set to
1980         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
1981         if the requested height leaves the listbox area with *less* than the
1982         required are to see one item. We were setting it to PreferredHeight
1983         even for values matching the height for a single item.
1984         Fixes #396297.
1985
1986 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
1987
1988         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
1989
1990 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
1991
1992         * DataGridViewCell.cs: Use property instead of field.
1993
1994 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
1995
1996         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
1997         null checks.
1998
1999 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
2000
2001         * Theme.cs: Added #region around the managed window code. Made the managed
2002         window methods abstract.
2003         * ThemeWin32Classic.cs: Added #region around the managed window code.
2004
2005 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
2006
2007         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
2008         if it has borders.
2009         * ThemeWin32Classic.cs: Removed HasBorders checks in
2010         DrawManagedWindowDecorations.
2011
2012 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
2013
2014         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
2015         Extracted ManagedWindowGetTitleBarIconArea.
2016
2017 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
2018
2019         * DataGridViewCellStyle.cs: Don't clone the font.
2020
2021 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
2022
2023         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
2024
2025 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2026
2027         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
2028         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
2029         in 64 bit machines.
2030
2031 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
2032
2033         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
2034         Use Format/FormatProvider before trying converters.
2035         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
2036         are 'set'.  Change constructor to not use ApplyStyle since it wants
2037         everything applied.  Clone the Font.
2038         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
2039         ApplyStyle the rest.
2040
2041 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2042
2043         * ListView.cs: We need to calculate the scrollbars even if the handle
2044         hasn't been created - this is needed when methods using scrollbars
2045         info, such EnsureVisible, are called before control has been created.
2046         Fixes #397272.
2047
2048 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
2049
2050         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
2051         only if the elements are defined. 
2052
2053 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2054
2055         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
2056         section. Also, when setting bounds, snap height as well as save the
2057         requested height if Dock has any value affecting the height: Left,
2058         Right and Bottom - important if using IntegralHeight as true.
2059
2060 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2061
2062         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
2063         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
2064         instead of doing that only in our SetBoundsCore override, since the 
2065         bounds cached can be the same as saved one and we could not get the
2066         new height applied.
2067         Fixes #396297.
2068
2069 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
2070
2071         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
2072         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
2073         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
2074         ToolWindowCaptionButtonSize.
2075         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
2076
2077 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
2078
2079         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
2080         hard coded values.
2081         * Theme.cs: Made DoubleClickTime plaform dependent.
2082
2083 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
2084
2085         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
2086         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
2087         ToolWindowCaptionHeight.
2088
2089 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
2090
2091         * InternalWindowManager.cs: The adjustment to ensure positive client area
2092         sizes is now platform dependent (disabled on Windows).
2093         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
2094         RequiresPositiveClientAreaSize.
2095
2096 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
2097
2098         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
2099
2100 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
2101
2102         * InternalWindowManager.cs: Changed IconicSize to use
2103         SystemInformation.MinimizedWindowSize.
2104         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
2105         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
2106
2107 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2108
2109         * ComboBox.cs: If the combobox is anchored both on top and bottom,
2110         adjust height if IntegralHeight is true when calling SetBoundsCore (as
2111         likely the height was modified even if Height wasn't specified in
2112         BoundsSpecified parameter).
2113         Fixes part of #396297.
2114
2115 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
2116
2117         * InternalWindowsManager.cs: Changed minimum window size while resizing to
2118         SystemInformation.MinWindowTrackSize.
2119         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
2120         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
2121
2122 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
2123
2124         * MenuItem.cs: Fixed Dispose.
2125
2126 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
2127
2128         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
2129         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
2130         EnteredHeaderCell, PressedHeaderCell: Added.
2131         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
2132         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
2133         theme a chance to override default painting.
2134         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
2135         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
2136         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
2137         ListView and DataGridView header rendering.
2138         
2139 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
2140
2141         * RichTextBox.cs: GetPositionFromCharIndex should return the 
2142         visual position of the character relative to the viewport.
2143         [Fixes part of bug #396664]
2144
2145 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
2146
2147         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
2148         and not just for the existance of an UITypeEditor. In some cases 
2149         there is an editor associated just to do PaintValue, but which 
2150         doesn't actually support editing.
2151         [Fixes bug #396632]
2152
2153 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2154
2155         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
2156         if needed, instead of 0 - this should help us in the corner case where
2157         we have more than one item but we are only partially showing 1 item.
2158         Fixes part of #374713.
2159
2160 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2161
2162         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
2163         control, return immediately if the any parent control's handle hasn't
2164         been created or isn't visible, as well as avoiding creating the parent
2165         Form if the handle hasn't been previously created.
2166         Fixes tests.
2167
2168 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
2169
2170         * TableLayoutPanel.cs: Use border sizes when calculating the
2171         panel's preferred size.  [Fixes part of bug #396433]
2172
2173 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
2174
2175         * SplitContainer.cs:
2176          - Fix SplitterDistance to update only if needed. 
2177          - Make it force min and max validation.
2178          - Handle properly mouse moves outside the resizeable area.
2179          [Fixes bug #396232]
2180
2181 2008-06-02  Andreia Gaita <avidigal@novell.com> 
2182
2183         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
2184           (which also suppresses all popup dialogs). Throw NotSupported
2185           exceptions for activex getters/setters.
2186         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
2187           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
2188           StatusText, Version, GoSearch
2189         * HtmlDocument.cs: Add DocType support
2190
2191 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
2192
2193         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
2194         [Fixes bug 396124]
2195
2196 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
2197
2198         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
2199
2200 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
2201
2202         * TableLayoutPanel.cs: When calculating preferred size, use the
2203         actual number of columns and rows, not what the user set them to.
2204         [Fixes bug #396141]
2205
2206 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
2207
2208         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
2209         394311.
2210
2211 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2212
2213         * XplatUIX11.cs: When detecting areas obscured in a control by other
2214         toplevel windows while scrolling, return if the control hasn't a 
2215         container form.
2216         Fixes some tests.
2217
2218 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2219
2220         * XplatUIX11.cs: Properly detect the visible area of a control being
2221         scrolled (obscured by other winforms controls and any X toplevel
2222         windows), to mark as invalid the requested area to be scrolled that
2223         isn't visible and thus can't be copied.
2224         Fixes #324513.
2225
2226 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2227
2228         * ListBox.cs: Compute the precise amount to vertically scroll when
2229         using DrawMode.OwnerDrawVariable.
2230         Patch by jkeymer (j.keymer@gmx.net).
2231
2232 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2233
2234         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
2235         to avoid setting an invalid value for the verticall scrollbar 
2236         when navigating items. And, duh, also remove my silly debug messages
2237         from previous commits.
2238         Fixes #374713.
2239
2240 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
2241
2242         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
2243         make it MS compatible.
2244
2245 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
2246
2247         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
2248          - Allow the editing of entries even if their parent is read-only.
2249          - Do not render expandable properties read-only.
2250          - Refactor expansion checks form PropertyGrid into PropertyGrid.
2251
2252 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
2253
2254         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
2255         support for the hover style.
2256
2257 2008-05-29  Andreia Gaita <avidigal@novell.com> 
2258
2259         * ContainerControl.cs: Check for null dead-end when traversing the tree
2260           of parent controls.
2261         
2262           [Fixes #394332, patch by Ernesto Carrea]
2263
2264 2008-05-29  Geoff Norton  <gnorton@novell.com>
2265
2266         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
2267         constant that it is.  Fixes #393981
2268
2269 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
2270
2271         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
2272         that the user probably doesn't want to set this.
2273
2274 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
2275
2276         * ThemeWin32Classic.cs: Don't let the text size be bigger than
2277         the control size for CheckBox/RadioBox.
2278         [Fixes part of bug #394645]
2279
2280 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
2281
2282         * PropertyGrid.cs: Update the state of the sorting buttons in 
2283         the toolbar if PropertySort is set programatically.
2284
2285 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
2286
2287         * GridItemCollection.cs: Add multiple items with conflicting names 
2288         support and also preserve name ordering.
2289         [Fixes #395345]
2290
2291 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
2292
2293         * GridItemCollection.cs: Revert my multiple items with same 
2294         name patch.
2295
2296 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2297
2298         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
2299         or middle ones.
2300         Fixes part of #393908.
2301
2302 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
2303
2304         * ToolStripDrowDown.cs: When using the Show () methods that have a
2305         Control parameter, set the menu owner to that Control.
2306         [Fixes bug #394345]
2307
2308 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
2309
2310         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
2311         [Fixes bug #362756]
2312
2313 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
2314
2315         * GridItemCollection.cs: Refactor to support multiple items with the 
2316         same name.
2317         [Fixes bug #394314]
2318
2319 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
2320
2321         * Control.cs: The 2.0 check for illegal cross thread calls in 
2322         Control.Handle were throwing an exception when we were getting
2323         the Handle in order to invoke correctly.  Created a private
2324         version that does not contain this check.
2325         [Fixes bug #394531]
2326
2327 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
2328
2329         * PropertyGrid.cs: Respect DefaultTabType.
2330
2331 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
2332
2333         * ListView.cs: SPACE selects an item.
2334         [Fixes bug #393023]
2335
2336 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
2337
2338         * ListView.cs: Reset the search string whenever the items are 
2339         modified.
2340         [Fixes bug #393020]
2341
2342 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2343
2344         * ListControl.cs: For the first added item PositionChanged is fired
2345         _before_ ItemChanged, which leave us in a temporary invalid state - so
2346         we need to set the selected index from ItemChanged handler *if* we
2347         know that the first item has just been added *and* the items have been
2348         actually added to the ListControl.
2349         Fixes #369048.
2350
2351 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2352
2353         * TabControl.cs: Only clicks with the left button should be
2354         handled.
2355         Fixes #393908.
2356
2357 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2358
2359         * ComboBox.cs: 
2360         * FIleDialog.cs:
2361         * TextBox.cs: Expose an internal method in TextBox to restore the
2362         original context menu, and call it from ComboBox to re-use it in the
2363         combobox containing the file name in FileDialog.cs.
2364         Fixes part of #393775.
2365
2366 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
2367
2368         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
2369         style.
2370
2371 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
2372
2373         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
2374         down button style.
2375
2376 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2377
2378         * ComboBox.cs: Minor correction to previous patch: PageDown should
2379         also *try* to move by one item if the computed offset is negative,
2380         just like the PageUp case.
2381
2382 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2383
2384         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
2385         should be done for at least 1 item, and not stay at the same item.
2386         Fixes part of #374713.
2387
2388 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
2389
2390         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
2391         directories.  [Fixes bug #393931]
2392
2393 2008-05-22  Andreia Gaita <avidigal@novell.com> 
2394
2395         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
2396           Don't fire events until the initial about:blank page has finished
2397           loading. Clean up events.
2398
2399 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
2400
2401         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
2402           FocusIn() too. This should fix the issue on switching
2403           scim keyboards.
2404
2405 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
2406
2407         * X11Keyboard.cs : set XIM font size to somewhat reasonable
2408           number (ideally the input textbox size, but that could be
2409           too messy).
2410
2411 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
2412
2413         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
2414         the ToolStripItem's TextChanged.  [Fixes bug #393597]
2415
2416 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2417
2418         * TabControl.cs: When invalidating in SelectedIndex and we need to
2419         inflate to take into account the border of the tabs, make sure that
2420         the invalidated rect doesn't overflow the control bounds, since that
2421         would avoid updating at all.
2422
2423 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2424
2425         * TabControl.cs: Don't substract scroller width from the row width,
2426         since we need to take into account the total width of the control when
2427         calculating the position of the tabs. This avoids showing scroller
2428         when it is actually not needed.
2429         Fixes part of #322325.
2430
2431 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2432
2433         * ThemeVisualStyles.cs: Added support for TextBoxBase.
2434
2435 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2436
2437         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
2438         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
2439
2440 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
2441
2442         * DataGridView.cs: Only paint the top left header cell if there
2443         are columns.
2444
2445 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
2446
2447         * DataGridView.cs: When binding to a BindingSource, get the underlying
2448         list to bind to.  [Fixes bug #345483]
2449
2450 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
2451
2452         * DataGridView.cs: Do not bind to collection properties.
2453         [Fixes bug #337470]
2454
2455 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2456
2457         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
2458
2459 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2460
2461         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
2462         thumb style.
2463
2464 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2465
2466         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
2467
2468 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2469
2470         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
2471         background.
2472
2473 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2474
2475         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
2476
2477 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2478
2479         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
2480         checked styles.
2481
2482 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2483
2484         * TabControl.cs: Extended to handle the hot style.
2485
2486 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2487
2488         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
2489         Extended UpDownBase code to handle hot and disabled styles.
2490
2491 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
2492
2493         * DataGridView.cs: Handle databinding to generic list type things.
2494         [Fixes bug #325239]
2495
2496 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
2497
2498         * DataGridViewCellCollection.cs: Add a method to find the cell
2499         with the given DataPropertyName.
2500         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
2501         * DataGridViewColumnCollection.cs: Add a method to clear all
2502         autogenerated columns.
2503         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
2504         columns.
2505         [Fixes bug #348082]
2506
2507 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
2508
2509         * DataGridView.cs: Don't try to update the RowTemplate with
2510         a null CellTemplate.
2511
2512 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
2513
2514         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
2515         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
2516         * DataGridView.cs: Lots of fixes/enhancements to databinding to
2517         a DataSet.
2518
2519 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
2520
2521         * Control.cs: Remove invalidating implicit child controls when
2522         control is invalidated.  It was causing too many redraws on
2523         controls with implicit scrollbars.
2524         * ListView.cs: Listen to the Invalidated event and invalidate
2525         child controls.
2526
2527 2008-05-20  Andreia Gaita <avidigal@novell.com> 
2528
2529         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
2530         * HtmlDocument.cs: Check for nulls
2531
2532 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2533
2534         * Control.cs: In ControlCollection.RemoveInternal, remove the
2535         internal control before calling PerformLayout and OnControlRemoved,
2536         which was leaving us in an invalid state and causing a X error (bad
2537         match). Observe that Remove () call has the same order.
2538         Fixes an X error changing ComboBoxStyle.DropDownStyle.
2539
2540 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2541
2542         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
2543         being fired if ControlStyles.UserPaint style is activated.
2544         Fixes #371905.
2545
2546 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
2547
2548         * GridEntry.cs: Don't be so strict when setting the value - 
2549         do not check if what we set is what we get.
2550         [Fixes bug #389245]
2551
2552 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
2553
2554         * XplatUIX11.cs: If there are no timers timeout should be 0
2555         [Fixes bug #363522]
2556
2557 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
2558
2559         * Control.cs: As a followup to invalidating implicit children when
2560         a control is invalidated, only invalidate them if they are in the
2561         clip rectangle.
2562
2563 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2564
2565         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
2566
2567 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2568
2569         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
2570
2571 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2572
2573         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
2574         * XplatUIWin32.cs: Made Win32DeleteObject public.
2575
2576 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
2577
2578         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
2579         PropertyDescriptor.ShouldSerializeValue.
2580         [Fixes bug #391924]
2581
2582 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2583
2584         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
2585         in the classic theme.
2586
2587 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2588
2589         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
2590         ThumbPressed.
2591         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
2592         ScrollBarHasPressedThumbStyle.
2593
2594 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2595
2596         * TextRenderer.cs: Included some methods in the 1.1 profile.
2597
2598 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
2599
2600         * Control.cs: When we make a control visible, it may have been
2601         previously visible and while it wasn't visible, the z-order of
2602         things may have been shuffled, so the control needs to have its
2603         z-order updated just in case.  [Fixes bug #391518]
2604
2605 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2606
2607         * ThemeVisualStyles.cs: Added support for GroupBox.
2608
2609 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2610
2611         * GroupBoxRenderer.cs: Included in the 1.1 profile.
2612
2613 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
2614
2615         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
2616           bug #389996; XSelectInput() behaved as mouse handler robber,
2617           so remove extra call to it.
2618
2619 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
2620
2621         * Control.cs: Simplify ControlCollection.Contains method.
2622
2623 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
2624
2625         * DataGridViewRow.cs: Implement GetPreferredSize.
2626
2627 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
2628
2629         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
2630
2631 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
2632
2633         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
2634         painting and edit control fixes.
2635
2636 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
2637
2638         * DataGridView.cs, DataGridViewCell.cs: Work around some external
2639         checks to make sure we are in an actual row/col for top left header cell.
2640         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
2641
2642 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
2643
2644         * Control.cs: Use long instead of int when handling WParam from
2645         mousewheel scrolling.  Int was overflowing on Win64.
2646
2647 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
2648
2649         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
2650         flow panel without scrolling first, and then calculate the 
2651         scrolling based on the new layout.  [Fixes bug #390149]
2652
2653 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
2654
2655         * ListBox.cs: Invalidate after scrolling up when selected index
2656         changes.  [Fixes bug #390151]
2657
2658 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2659
2660         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
2661         set, default height to 150. I tried first with DefaultSize, but this
2662         is not generating a SetBoundsCore call before handle creation time, so
2663         we can take it into account. This is just what .net does.
2664
2665 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
2666
2667         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
2668         as it broke some stuff.  Calberto is filing a bug for eno to
2669         work with.
2670
2671 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2672
2673         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
2674         to 0 is the current value is -1, and if style is not Simple, just
2675         return, like .net does.
2676         Fixes part of #374713.
2677
2678 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
2679
2680         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
2681         progress bar stuffs, use doubles instead of ints to prevent
2682         overflow.  [Fixes bug #389798]
2683
2684 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
2685
2686         * XplatUIX11.cs, X11Keyboard.cs :
2687           Significant refactoring on XIM support. Now IM engine UI
2688           should show up, at mostly-correct preedit position.
2689           - Eliminated use of FocusWindow, as it is never mapped
2690             and hence blocks correct preedit position. XIC is now
2691             created per window, and it must be destroyed too when
2692             the window is destroyed.
2693           - WM_QUIT messages should not be filtered even when hwnd
2694             is zombie. Filtering it could cause endless loop.
2695           - Preedit position must move only when the window is alive.
2696           - Make it IDisposable and make sure to release XIM/XICs.
2697
2698 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
2699
2700         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
2701           XplatUIX11.cs, XplatUIWin32.cs :
2702           fix for bug #325033 and #387693;
2703           - WM_QUIT should not be sent when no running application
2704             exists.
2705           - SetTimer/KillTimer (especially on win32) should be
2706             invoked for the window that the timer is/will_be attached.
2707           - There could be unattached timers to a window when it's
2708             started. For those timers, hold pending timers and when
2709             a window is mapped, attach them to it.
2710           - WaitForHwndMessage() could run into loop when
2711             WM_SHOWWINDOW is handled before this method is called.
2712             So, strictly check wm_showwindow state.
2713           - Tick handler should not be invoked while one Tick handler
2714             call is still running (introduced Busy state).
2715
2716 2008-05-13  Andreia Gaita <avidigal@novell.com> 
2717
2718         * WebBrowserBase.cs: Override Internal alternative methods for
2719           SetBoundsCore and OnResize instead of the protected ones.
2720         * Control.cs: Move SetBoundsCore and OnResize implementations to
2721           SetBoundsCoreInternal and OnResizeInternal, so they can be
2722           overriden internally (WebBrowserBase needs to catch them but can't
2723           override the protected methods without api compat problems)
2724
2725 2008-05-13  Andreia Gaita <avidigal@novell.com> 
2726
2727         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
2728
2729 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2730
2731         * Binding.cs:
2732         * ListView.cs: Remove debug messages.
2733
2734 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2735
2736         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
2737         area is empty. Also calculate scrollbars in Simple mode based in area
2738         height and total number of items, not in MaxDropDownItems.
2739         Fixes part of #371991.
2740
2741 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2742
2743         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
2744
2745 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2746
2747         * BindingSource.cs: GetListSortDescription is not public.
2748
2749 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2750
2751         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
2752
2753 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2754
2755         * HtmlElement.cs: Fix parameter names to match MS.
2756         * HtmlWindowCollection.cs: Should not be sealed.
2757
2758 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2759
2760         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
2761         button, because the thumb button will not get drawn if the scrollbar
2762         is disabled.  [Fixes bug #389262]
2763
2764 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2765
2766         * ListBox.cs: Handle End key for multi-column listboxen.
2767         [Fixes bug #389266]
2768
2769 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2770
2771         * ListBox.cs: Fix algorithm to determine which column our item is in.
2772         [Fixes bug #389265]
2773
2774 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2775
2776         * ListBox.cs: Invalidate when the listbox is resized.
2777         [Fixes bug #389256]
2778
2779 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2780
2781         * ListBox.cs: There is always at least one row in the ListBox (if
2782         we are doing these calculations.)  [Fixes bug #389253]
2783
2784 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2785
2786         * ListBox.cs: There is always at least one column in the ListBox.
2787         [Fixes bug #389250]
2788
2789 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2790
2791         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
2792         ensure in Simple mode that the height is exactly the requested one.
2793         Also add the ComboBoxListControl to the controls collection in Simple
2794         mode even if handle hasn't been created.
2795         Fixes part of #371991.
2796
2797 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2798
2799         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
2800         our ComboBox owner instead of giving it back to the previous control (
2801         as done in other controls). Also remove the empty override of Select
2802         method, since we want to be selected *and* give focus to our owner.
2803         This should let the user do keys-navigation in Simple mode. 
2804
2805 2008-05-10  Geoff Norton  <gnorton@novell.com>
2806
2807         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
2808         problems with rapid scrolling of treeviews. Fixes #381084
2809
2810 2008-05-10  Geoff Norton  <gnorton@novell.com>
2811
2812         * XplatUICarbon.cs: Deactivate the active window before
2813         activating the desired window.  Completes fixing #386504
2814
2815 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2816
2817         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
2818         SmallChange to the item size width plus the padding, to match .net.
2819
2820 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2821
2822         * FileDialog.cs: Apply the custom filter typed by the user in the file
2823         name combobox as much as possible while navigating in the file dialog.
2824         Fixes #385261.
2825
2826 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2827
2828         * Binding.cs: Actually use NullValue if the retrieved value of
2829         data source is null or DBNull. Makes a test pass.
2830
2831 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
2832
2833         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
2834         * MimeIcon.cs: Provide a way to get icons from resources.
2835
2836 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2837
2838         * Binding.cs: When the value retrieved from the control to be assigned
2839         to the data source is null, actually use the 2.0 DataSourceNullValue
2840         value. Make pass a data binding test.
2841
2842 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
2843
2844         * Control.cs: We need to invalidate implicit children even when
2845         invalidate is called with invalidatechildren = false.  (Implicit
2846         children are really part of the parent.)
2847         * ListView.cs: Double-buffer internal child controls for less
2848         flicker.
2849         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
2850         owner ListView subitems for greatly increased performance.
2851         [Fixes bug #388477]
2852
2853 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
2854
2855         * FileDialog.cs: When the user types a wildcard character in the
2856         filename combobox, update the contents of the folder using the text as
2857         a filter.
2858         Fixes part of #385261.
2859
2860 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
2861
2862         * ListBox.cs: Various fixes for MultiColumn listboxen.
2863         [Fixes bug #388114]
2864
2865 2008-05-08  Andreia Gaita <avidigal@novell.com> 
2866
2867         * HtmlElement.cs: Implement Style property
2868
2869 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
2870
2871         * ListBox.cs: Respect checkboxes when measuring item size.
2872         * ThemeWin32Classis.cs: When drawing list items, don't draw
2873         text outside of the item's bounds to prevent overlapping.
2874         (.Net actually overlaps, but that's just silly.)
2875         [Fixes bug #388117]
2876
2877 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
2878
2879         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
2880         Gert Driesen. Fixes bug #324830. 
2881
2882 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
2883
2884         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
2885         method implemented.
2886
2887 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2888
2889         * BindingSource.cs: When calling IsSynchronized, return the value of
2890         the related IList list.
2891
2892 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2893
2894         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
2895         make a test pass.
2896
2897 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
2898
2899         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
2900         navigation to scroll the grid if the current cell is not visible.
2901
2902 2008-05-07  Andreia Gaita <avidigal@novell.com> 
2903
2904         * HtmlElement.cs: Implement TabIndex
2905
2906 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
2907
2908         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
2909         properties, even when there are no items.
2910         [Fixes bug #387611]
2911
2912 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
2913
2914         * NativeWindow.cs: Add support for multiple handles per window.
2915         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
2916         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
2917         directly - use FromHandle instead.
2918         [Fixes bug #374660]
2919
2920 2008-05-07  Andreia Gaita <avidigal@novell.com> 
2921
2922         * HtmlElement.cs: Implement InnerHTML setter
2923
2924 2008-05-07  Andreia Gaita <avidigal@novell.com> 
2925
2926         * HtmlDocument.cs: Implement Focused
2927
2928 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2929
2930         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
2931         methods, as well as add messages to the exceptions.
2932
2933 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2934
2935         * BindingSource.cs: Setting DataSource should only reset DataMember if
2936         the previous value was null (make pass a not working test).
2937
2938 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2939
2940         * BindingSource.cs: When EndInit call is postponed and is called until
2941         DataSource.EndInit is called, remove the handler for data source.
2942
2943 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
2944
2945         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
2946
2947 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
2948
2949         * ToolStripManager.cs: Store references to toolstrips as
2950         weak references so they do not prevent forms from getting collected.
2951         [Fixes bug #386483]
2952
2953 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
2954
2955         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
2956         on .Net.  So do the same thing in WndProc.
2957
2958 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
2959
2960         * TrackBar.cs: Commit patch from Andy Hume that corrects
2961         the clickable areas to better match .Net.
2962         [Fixes bug #387074]
2963
2964 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
2965
2966         * TrackBar.cs: Commit patch from Andy Hume that adds the
2967         ResizeRedraw control flag so the track bar repaints itself
2968         when it is resized.  [Fixes bug #387072]
2969
2970 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
2971
2972         * TrackBar.cs: Commit patch from Andy Hume that adds better
2973         support for keyboard navigation when the TrackBar is vertical.
2974         [Fixes bug #387071]
2975
2976 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2977
2978         * BindingSource.cs: Implement ISupportInitializeNotification support.
2979
2980 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
2981
2982         * ThemeVisualStyles.cs: Added support for ToolBar.
2983
2984 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
2985
2986         * ToolBar.cs: Made the Vertical property internal.
2987
2988 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
2989
2990         * ThemeVisualStyles.cs: Added support for TrackBar.
2991
2992 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
2993
2994         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
2995         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
2996         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
2997         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
2998         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
2999         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
3000
3001 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
3002
3003         * ThemeVisualStyles.cs: Added support for UpDownBase.
3004
3005 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
3006
3007         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
3008         Extracted Theme.UpDownBaseDrawButton.
3009
3010 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
3011
3012         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
3013         removed from the static toolstrips collection in ToolStripManager
3014         when they are disposed.  Provides a workaround for bug #386483.
3015
3016 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
3017
3018         * GridEntry.cs: Read-only properties with Editor with 
3019         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
3020         [Fixes bug #384184]
3021
3022 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
3023
3024         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
3025         the menu key and there are no items on the menu.
3026         [Fixes bug #386644]
3027
3028 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
3029
3030         * Control.cs: Avoid calling ToString on a string.
3031         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
3032         * GroupBox.cs: In FlatStyle property throw, not just create, the 
3033         exception. Avoid calling ToString on a string.
3034         * ProgressBar.cs: Avoid calling ToString on a string. 
3035         * ScrollBar.cs: Avoid calling ToString on a string. 
3036         [All issues were found using Gendarme]
3037
3038 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
3039
3040         * NotifyIcon.cs: Prevent click events to be trigger after double click 
3041         events. Fixes remaining issues of bug #324832.
3042
3043 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
3044
3045         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
3046         to mimic win32 behavior. Partially fixes bug #324832.
3047
3048 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3049
3050         * BindingSource.cs: Implement Find methods.
3051
3052 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3053
3054         * BindingSource.cs: Implement Sort, ApplySort overloads, and
3055         RemoveSort methods.
3056
3057 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3058
3059         * ListBindingHelper.cs: When calling GetListItemProperties and the
3060         passed object is ITypedList, return the result of
3061         ITypedList.GetItemProperties instead.
3062
3063 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
3064
3065         * LinkLabel.cs: Set default value of name on constructor of Link class
3066         only for 2.0 profile.
3067
3068 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
3069
3070         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
3071         Fixes remaining issues of bug #346154.
3072
3073 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
3074
3075         * LinkLabel.cs: Set a default value for name on internal contructor of
3076         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
3077
3078 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
3079
3080         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
3081         and refer all instances to owner.links. Partially fixes #346154.
3082
3083 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
3084
3085         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
3086         length equal zero. Also called CreateLinkPieces in constructor. It fixes
3087         the LinkLabel test 'TestLinkArea'.
3088
3089 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
3090
3091         * Form.cs: Remove menu before close form to prevent form to be not gaced.
3092         [Fixes #386460]
3093
3094 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
3095
3096         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
3097         [Fixes #386463]
3098
3099 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
3100
3101         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
3102         [Fixed bug #357004]
3103
3104 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
3105
3106         * MenuAPI.cs: Remove unused ProcessCmdKey method.
3107
3108 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
3109
3110         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
3111         [Fixes bug #375398]
3112
3113 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
3114
3115         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
3116         of bug #367492.
3117
3118 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
3119
3120         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
3121         sometimes we open a conext menu on mouse down of some controls and the mouse
3122         up is dispatched to menu and dont need to. It fix remaining issues of 
3123         #363711 and other problems related to menu mouse click events.
3124
3125 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
3126
3127         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
3128         some var names to better fit changes, now we have month_menu and today_menu
3129         vars. Fixes bug #363711.
3130
3131 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
3132
3133         * MonthCalendar.cs: Handle every right mouse click to open context menu,
3134         right now the default month menu but it will be change to have "Go to today"
3135         menu.
3136
3137 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
3138
3139         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
3140
3141 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
3142
3143         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
3144
3145 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
3146
3147         * ThemeVisualStyles.cs: Added support for TreeView.
3148
3149 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
3150
3151         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
3152         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
3153
3154 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
3155
3156         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
3157
3158 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
3159
3160         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
3161         Implement 2.0 SP1 stuffs.
3162
3163 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
3164
3165         * FileDialog.cs: Implement 2.0 SP1 stuffs.
3166
3167 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
3168
3169         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
3170         Implement CanEnableIme property. (2.0 SP1)
3171
3172 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
3173
3174         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
3175         from the 2.0 API.
3176
3177 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
3178
3179         * Control.cs: Provide an internal way for a control to override
3180         the setting of Height.
3181         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
3182         set height using new method.
3183
3184 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
3185
3186         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
3187
3188 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
3189
3190         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3191         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
3192
3193 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
3194
3195         * ThemeVisualStyles.cs: Added support for StatusBar.
3196
3197 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
3198
3199         * DataObject.cs: Add the other IDataObject interface.
3200
3201 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
3202
3203         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
3204         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
3205
3206 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
3207
3208         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
3209         * ListView.cs: Hide non-public API.
3210         * MaskedTextBox.cs: Remove extra attribute.
3211
3212 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
3213
3214         * DataGridViewImageCell.cs: Use formatted value instead of value
3215         to calculate preferred size.
3216
3217 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
3218
3219         * ListBox.cs: Move some initialization around so that selected_indices
3220         is not accessed before it is created.
3221
3222 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
3223
3224         * InputLanguageCollection.cs: Implement the collection better.
3225         [Fixes bug #385506]
3226
3227 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
3228
3229         * ToolStripDropDownItem.cs: Get the correct event object for
3230         DropDownItemClicked.
3231         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
3232         [Fixes bug #385475]
3233
3234 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
3235
3236         * DataGridViewRowCollection.cs: We don't currently support shared 
3237         rows.  Should fix test failures caused by previous commit.
3238
3239 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
3240
3241         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
3242         datagridview gets set.  Only paint cells in visible columns.
3243         * DataGridViewCell.cs: Draw border after cell content.
3244         * DataGridView.cs: Invalidate after setting some properties.  Only
3245         use visible columns.  Fit hit test bug with areas in the col/row header
3246         area but not in a row or col.  Implement UpdateCell/Row methods.
3247
3248 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
3249
3250         * DataGridViewElement.cs: Don't throw NIEX.
3251         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
3252         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
3253         * DataGridViewCheckBoxColumn.cs: Implement ToString.
3254         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
3255         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
3256         if the user filled in the formatting Value, use it.
3257
3258 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
3259
3260         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
3261         to a string.
3262
3263 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3264
3265         * BindingSource.cs: Some corrections to Filter property, as well as
3266         setting it for our list when resetting it.
3267
3268 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
3269
3270         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
3271         than the maximum.  Fixes reopened bug #384182.
3272
3273 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
3274
3275         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
3276         Fixes remaining issues of #367490.
3277
3278 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
3279
3280         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
3281         SystemInformation.WorkingArea to get max_screen value.
3282
3283 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3284
3285         * BindingSource.cs: Implement Filter and RemoveFilter.
3286
3287 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
3288
3289         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
3290
3291 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3292
3293         * X11Dnd.cs: When trying to convert data and we know we started the
3294         dnd loop, don't try to use the cached data if the loop is not running,
3295         which means that the data has been resetted.
3296         Fixes #378191.
3297
3298 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
3299
3300         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
3301         win32 behavior.
3302
3303 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
3304
3305         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
3306         it to drawn off screen edge. Fixes bug #367490.
3307
3308 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
3309
3310         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
3311         menu position to have only one assignment of Location var.
3312
3313 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
3314
3315         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
3316         for this patch. Fixes bug #384115.
3317
3318 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
3319
3320         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
3321         the same.  If LargeChange is zero, set a minimum size for the scroll
3322         thumb grip.  [Fixes bug #384182]
3323
3324 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
3325
3326         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
3327         [Fixes bug #384181]
3328
3329 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
3330
3331         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
3332
3333 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
3334
3335         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
3336         patch from Ernesto).
3337
3338 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
3339
3340         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
3341
3342 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
3343
3344         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
3345
3346 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
3347
3348         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
3349
3350 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
3351
3352         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
3353
3354 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
3355
3356         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
3357
3358 2008-04-27  Andreia Gaita <avidigal@novell.com> 
3359
3360         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
3361           supposed to return a reference to an mshtml interface, which we
3362           don't support).
3363         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
3364           reference to an mshtml interface, which we don't support). Code
3365           formatting cleanup.
3366         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
3367           DomDocument getter (it's supposed to return a reference to an
3368           mshtml interface, which we don't support). Code formatting cleanup.
3369
3370 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3371
3372         * ListView.cs: Ouch, forgot to commit.
3373
3374 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3375
3376         * ListView.cs: 
3377         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
3378
3379 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3380
3381         * ListView.cs: When calculating box selection for virtual mode, don't
3382         look for intersection with item's text, but item bounds, since that
3383         would mean read ListViewItem's text for _every_ item, and that's
3384         something we just can't do in virtual mode (items are only requested
3385         when drawn).
3386
3387 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
3388
3389         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
3390         partial support for managed windows (based on the patch from Ernesto).
3391
3392 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3393
3394         * ListView.cs: When doing a key search use FindItemWithText method
3395         instead of doing the search by ourselves, this way we avoid
3396         duplicating the code and also we handle the special case for virtual
3397         mode. To achieve that make our private overload of FindItemWithText
3398         internal and also have a 'roundtrip' parameter.
3399
3400 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3401
3402         * ListView.cs: When doing the layout don't request the
3403         ListViewItem instance if we are in virtual mode (since we can't request it
3404         until the item is actully drawn).
3405
3406 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
3407
3408         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
3409         from Ernesto).
3410
3411 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
3412
3413         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
3414         the patch from Ernesto).
3415
3416 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
3417
3418         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
3419         * ThemeVisualStyles.cs: Added.
3420
3421 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
3422
3423         * IDeviceContext.cs: Added a missing using.
3424
3425 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
3426
3427         * ButtonBase.cs: Made IsDefault protected internal.
3428         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
3429
3430 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
3431
3432         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
3433         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
3434         RadioButtonRenderer.cs: Included in the 1.1 profile.
3435         * IDeviceContext.cs: Added.
3436         * TextRenderer.cs: Included a member in the 1.1 profile.
3437
3438 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
3439
3440         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
3441
3442 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
3443
3444         * ErrorProvider.cs: Make the error icons come after the control
3445         they refer to.  It isn't the way the MS does it, but its better
3446         than what we were doing.  See bug #368587.
3447
3448 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
3449
3450         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
3451         from Eric Albright that lazy loads the input language as ensures
3452         everything gets properly initialized.  Fixes bug #373871.
3453
3454 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
3455
3456         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
3457         implicit mnemonics.  [Fixes bug #383000]
3458
3459 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3460
3461         * X11Dnd.cs: When canceling the operation, automatically restore the
3462         default cursor - normally the default cursor is restored when the
3463         mouse buttons are released, but we should be able to restore it even
3464         if the buttons are still pressed (for example, when pressing ESC to
3465         cancel).
3466         Fixes #381894.
3467
3468 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3469
3470         * X11Dnd.cs: When starting a new drad and drop operation, set control
3471         field to null, just as the other fields, to avoid calling any
3472         operation on a previous control. Also, when calling DndLeave on a
3473         control, set it to null, thus we don't fire that event multiple times
3474         for that control.
3475         Fixes #209264.
3476
3477 2008-04-23  Geoff Norton  <gnorton@novell.com>
3478
3479         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
3480         the whole_window object.  Fixes #377084.
3481
3482 2008-04-23  Andreia Gaita <avidigal@novell.com> 
3483
3484         * HtmlElement.cs: Implement RaiseEvent (event injection into the
3485           embedded browser)
3486
3487 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
3488
3489         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
3490
3491 2008-04-23  Andreia Gaita <avidigal@novell.com> 
3492
3493         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
3494           invocation
3495
3496 2008-04-23  Andreia Gaita <avidigal@novell.com> 
3497
3498         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
3499           attaching/detaching
3500
3501 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3502
3503         * X11Dnd.cs: When the drop was cancelled, or could just not be
3504         performed, return DragDropEffect.None always (match .net).
3505
3506 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
3507
3508         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
3509
3510 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
3511
3512         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
3513
3514 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
3515
3516         * DataGridView.cs: Add support for error icon tool tips.
3517         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
3518         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
3519
3520 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
3521
3522         * X11Structs.cs: Add mouse button masks enum.
3523         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
3524         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
3525         form resize/move operation instead of for each step of it.
3526         [Fixes bug #346529 for the x11 backend]
3527
3528 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
3529
3530         * DataGridView*: Implement support for drawing error icons.
3531
3532 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
3533
3534         * TreeView.cs: Make vbar and hbar internal.
3535         * TreeNode.cs: If collapsing the node removes one of the TreeView's
3536         scrollbars, invalidate the whole thing.
3537         [Fixes bug #382001]
3538
3539 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
3540
3541         * TreeView.cs: Calling Sort() sets Sorted = true.
3542         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
3543         if the nodes need to be sorted.
3544         [Fixes bug #382028]
3545
3546 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
3547
3548         * Form.cs: Fire SizeChanged for both when the form is minimized and 
3549         restored.
3550         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
3551         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
3552
3553 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
3554
3555         * ComboBox.cs: If the combobox is disabled, draw a disabled
3556         background before painting anything else.
3557         [Fixes bug #381729]
3558
3559 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3560
3561         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
3562         forget to send a Leave event to the target window - just as .net does
3563         when cancelling dnd operations.
3564
3565 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3566
3567         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
3568         soon as possible - this happens when we send the drop message to the
3569         target window. This way we avoid firing any DragOver _after_ drop finished.
3570         Fixes #378179.
3571
3572 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
3573
3574         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
3575         * Form.cs: Handle form minimization as a special state, where size doesn't 
3576         change, but we have to fire SizeChanged.
3577         [Fixes bug #325122 for the win32 and x11 backends]
3578
3579 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
3580
3581         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
3582         if the handle is disabled.
3583         [Fixes bug #371751]
3584
3585 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
3586
3587         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
3588         for forms with FormBorderStyle.None.
3589         [Fixes bug #349571]
3590
3591 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
3592
3593         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
3594         WM_EXITSIZEMOVE.
3595         [Fixes bug #346529 for the X11 backend]
3596
3597 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
3598
3599         * XplatUIX11.cs: 
3600           - Send a mouse Enter message after say dragging the mouse with a 
3601           button down and then release it in another client.
3602           - Reset the cursor to prevent X11 from remembering it and setting it 
3603           before the control gets WM_SETCURSOR.
3604           - Qeueue a mouse move after a mouse enter like win32.
3605           [Fixes bug #323234]
3606
3607 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
3608
3609         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
3610         It's sent when the form gets moved, resized, closed.
3611         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
3612         [Fixes bug #359193 for X11]
3613
3614 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
3615
3616         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
3617         the build.
3618
3619 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
3620
3621         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
3622         group. Fixes the 1.1 build.
3623
3624 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3625
3626         * ListView.cs: Use display indexes for selection in Details view, as
3627         well as do the proper layout based on display indexes for that view
3628         too.
3629
3630 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3631
3632         * ListView.cs: Focused item information is now stored as a display
3633         index, and display indexes are used all over the place for selection,
3634         instead of ListViewItem.Index values, which doesn't give us enough
3635         information to modify the selection in groups mode, and was broken.
3636
3637 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
3638
3639         * Control.cs: Do not fire MouseDown if validation of the control has 
3640         failed.
3641         * Form.cs: Validate the form before closing.
3642         [Fixes bugs #330501 and #353310]
3643
3644 2008-04-18  Andreia Gaita <avidigal@novell.com> 
3645
3646         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
3647           CreateWebBrowserSiteBase implementations
3648         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
3649           Style and TabIndex setters
3650
3651 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3652
3653         * ListViewGroup.cs: When returning the actual item count, return the
3654         proper count for default group.
3655         Fix the tests.
3656
3657 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3658
3659         * ListView.cs:
3660         * ListViewGroup.cs: When calculating groups layout, get the actual
3661         number of items per group, since groups added to the group BUT not
3662         added to the ListView are just ignored, and can cause some nasty
3663         exceptions because of the lack of synchronization. Also for
3664         ListViewGroup don't use lazy initialization for items, since we 
3665         the common scenario is to use it always - and it helps us to  refactor
3666         and clean the .ctor overloads.
3667
3668 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3669
3670         * ListView.cs: When adding an item to a ListViewItemCollection
3671         belonging to a group (ListViewGroup.Items), don't generate a redraw if
3672         the added item hasn't beeen previously added to the ListView instance
3673         refered by the group, since it will be ignored. This should avoid some 
3674         really nasty flickering.
3675
3676 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3677
3678         * ListView.cs: When accessing an item in a specific display
3679         position, use the helper method GetItemAtDisplayIndex, instead of
3680         direct access to the reordered_items_indices array. When doing layout
3681         for groups set the correct Items index for the display position (since
3682         in groups mode items don't have the same position as in Items
3683         collection).
3684         * ListViewGroup.cs: Add a field to store the starting item number,
3685         which is later used when calculating the layout.
3686
3687         Fixes #360805.
3688
3689 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
3690
3691         * Application.cs: Fixed ProductVersion to fallback to the assembly
3692         version. Fixes regression for bug #325413.
3693
3694 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3695
3696         * ListView.cs: New helper method to retrieve an item in a _specific
3697         display_ position (the items can be displayed in a different order
3698         than one of Items collection).
3699         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
3700         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
3701         specific display position (again remember that items can be sorted
3702         different than Items).
3703
3704 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
3705
3706         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
3707         list and update it when the collection changes.  We were recreating
3708         this several times per row paint and for every pixel the mouse moved
3709         across the grid.
3710         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
3711         changes.
3712
3713 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
3714
3715         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
3716         list to use generics.
3717         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
3718         and remove unneccessay casts.
3719
3720 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
3721
3722         * DataGridViewBand.cs: Add internal way to set displayed variable.
3723         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
3724         * DataGridView.cs: Make sure we always keep track of Displayed
3725         rows and columns, and only draw things that are displayed.
3726
3727 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
3728
3729         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
3730           whether the key events are filtered or not. Introduced
3731           PreFilter() process for this purpose. This fixes atokx3/iiimx
3732           shift state issue.
3733
3734 2008-04-16  Andreia Gaita <avidigal@novell.com> 
3735
3736         * HtmlHistory.cs: Implement Length property
3737
3738 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
3739
3740         * DataGridView.cs: Call EndEdit when a sort is performed so we take
3741         away the edit textbox.  Refactor to reuse column sort code.
3742
3743 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
3744
3745         * MenuAPI.cs: Remove the code that save and restore capture status of 
3746         grab_control, this fixes some Menu and Context menu bugs but maybe it can
3747         cause some others, I cant figure the possible problems of this patch but
3748         right now remove the code looks to be better than keep it. This patch fixes
3749         bugs #357638, #378721 and #379570.
3750
3751 2008-04-12  Andreia Gaita <avidigal@novell.com> 
3752
3753         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
3754         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
3755         add missing properties and event handlers.
3756         
3757 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
3758
3759         * ListBox.cs: Make sure the LargeChange we are setting is at least
3760         zero, to prevent an IOORE.  [Fixes bug #379531]
3761
3762 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
3763
3764         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
3765         in DropDownList mode, for each key-press select the next item 
3766         starting with that letter.
3767         For other modes, when no item selected, on arrow-up/-down and open 
3768         drop-down select the first item matching the text in the textbox.
3769
3770 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
3771
3772         * X11Keyboard.cs : Control.FromHandle() could return null
3773           in MoveCurrentCaretPos().
3774
3775 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3776
3777         * ListView.cs: When changing the size in VirtualMode, also Reset the
3778         selection.
3779         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
3780         changing selection info for VirtualMode.
3781         Fixes #372618.
3782
3783 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3784
3785         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
3786         view, don't use LineLimit for the first item - use NoWrap *always*
3787         instead, since ListView.LabelWrap is not used for this view.
3788         Fixes #378054.
3789
3790 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3791
3792         * Binding.cs: Call UpdateIsBinding when setting control - probably
3793         Binding is already usable and we don't need to wait to check the
3794         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
3795         Created, just like 2.0 does.
3796         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
3797
3798 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3799
3800         * Binding.cs: Just realized we don't need to have a handler for
3801         BindingContextChanged, since this info should be now consumed directly
3802         in the BindingManagerBase. And also, the manager.IsBindingSuspended
3803         state info is checked directly, instead of caching it.
3804
3805         * CurrencyManager.cs: IsSuspended should return always false if Count
3806         == 0.
3807
3808 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3809
3810         * Binding.cs: When calling PushData, return if manager.Count == 0,
3811         since we just don't have data to be read. Also, when setting the
3812         Control for binding, hook up some events to refresh the IsBinding
3813         state when BindingContext change or control gets created; use
3814         Control.IsHandleCreated instead of Control.Created check to set
3815         IsBinding state - we *actually* need to modify IsBinding when control
3816         is created, but we don't have any Created event, only HandleCreated.
3817         Fixes part of #349364.
3818
3819 2008-04-11  Geoff Norton  <gnorton@novell.com>
3820
3821         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
3822         warping a null Caret.
3823
3824 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
3825
3826         * DataGridView.cs: Implement row/column autosizing methods. Implement
3827         autosorting.
3828         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
3829         * DataGridViewRowCollection.cs: Add an internal sorting method.
3830
3831 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
3832
3833         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
3834         value in ListView drawing code.
3835
3836 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
3837
3838         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
3839         is clicked.  Respect the user setting Cancel in FileOk.
3840
3841 2008-04-11  Geoff Norton  <gnorton@novell.com>
3842
3843         * ListView.cs: Avoid setting and resetting control Width/Heights and
3844         calculate the final value and set it once.  Prevents a feedback loop
3845         on the mac.
3846
3847 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
3848
3849         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
3850         [Fixes bug #378869]
3851
3852 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
3853
3854         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
3855           Add some on-the-spot code, but it seems we don't need it.
3856
3857 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
3858
3859         * Form.cs: Add method for DataGridView to trigger focus cues
3860         even when it handles the tab keypress.
3861
3862 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
3863
3864         * DataGridView.cs: More keyboard handling, tab, esc.
3865         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
3866         when at the beginning or end of the text in the text box.
3867
3868 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
3869
3870         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
3871
3872 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
3873
3874         * DataGridView.cs: Some fixups for showing and adding the edit control.
3875         * DataGridViewButtonColumn.cs: Implement ToString.
3876         * DataGridViewCell.cs: Size and position the control simultaneously.
3877         * DataGridViewTextBoxCell.cs: Use base to position control.
3878
3879 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
3880
3881         * DataGridViewCell.cs: Fix up some formatting and painting code.
3882         * DataGridViewImageCell.cs: Implement some NIEX methods.
3883
3884 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
3885
3886         * ToolStripItemCollection.cs: What moving an item from one owner
3887         to another, remove from source owner before adding to destination.
3888         [Fixes bug #378109]
3889
3890 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
3891
3892         * PictureBox.cs: Call Load when ImageLocation is set.
3893         [Fixes bug #378308]
3894
3895 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
3896
3897         * X11Keyboard.cs, XplatUIX11.cs :
3898           Implement over-the-spot mode (with some odd offsets).
3899           - set preedit position when caret is set.
3900           - Wrap XMoveResizeWindow() to move preedit position.
3901
3902 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
3903
3904         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
3905         array lenght.
3906
3907 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
3908
3909         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
3910         and ScanTableIndex public, it fix compilations errors when compiling
3911         WinForms to generate keyboard layout resources.
3912
3913 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
3914
3915         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
3916         different element count than scan table. It prevents some errors in non
3917         standard keyboards.
3918
3919 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
3920
3921         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
3922
3923 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
3924
3925         * DataGridView.cs: Call OnContentClick.
3926         * DataGridViewCell.cs: Do a null check on ValueType instead
3927         of valueType.
3928         * DataGridViewCheckBoxCell.cs: Implement.
3929
3930 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
3931
3932         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
3933
3934 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
3935
3936         * X11Keyboard.cs : Check XGetIMValues() return value in
3937           case it does not return input styles in some environment.
3938
3939 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
3940
3941         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
3942
3943 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3944
3945         * BindingContext.cs: Stub UpdateBinding method.
3946
3947 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
3948
3949         * X11Structs.cs : added couple of structs for XIM support.
3950         * X11Keyboard.cs :
3951           Release XIM in case it failed to create XIC. 
3952           Use consts for XNblah string.
3953           Add support for IM style customization and XIC creation
3954           for preedit-position and preedit-callback.
3955           Right now use MONO_WINFORMS_XIM_STYLE environment variable
3956           (list of: over-the-spot | on-the-spot | root). Only root
3957           mode works so far.
3958
3959           (redoing r99172 with fix.)
3960
3961 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
3962
3963         * TreeView.cs: Center the checkbox a little better.
3964
3965 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
3966
3967         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
3968         Apply very nice patch from Ernesto Carrea that simplifies our
3969         scrollbar drawing.  [From bug #376146]
3970
3971 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
3972
3973         * TreeView.cs: Correct the location of the root node checkbox when
3974         ShowRootLines = false.  Don't draw the root lines for the root node
3975         when ShowRootLines = false.  [Fixes bug #377535]
3976
3977 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
3978
3979         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
3980         Fixed line endings.
3981         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
3982         line endings.
3983         * MaskedTextBox.cs: Added missing attribute. Code formatting.
3984         * PageSetupDialog.cs: Added missing attribute. Code formatting.
3985         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
3986         * ImeMode.cs: Added missing field.
3987         * HtmlWindow.cs: Code formatting. Fixed line endings.
3988         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
3989         warnings.
3990         * HtmlHistory.cs: Code formatting. Fixed line endings.
3991         * HtmlDocument.cs: Code formatting. Fixed line endings.
3992         * ToolStripPanel.cs: Added missing IList implementation.
3993         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
3994
3995 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
3996
3997         * BindingContext.cs: Changed argument names to fix corcompare errors.
3998         * DataGridView.cs: Removed extra explicit interface implementation
3999         of IDropTarget. Code formatting.
4000         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
4001         * ComboBox.cs: Changed argument names to fix corcompare errors.
4002         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
4003         errors.
4004         * GridColumnStylesCollection.cs: Changed argument names to fix
4005         corcompare errors. Removed extra tabs.
4006         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
4007         errors.
4008         * Control.cs: Changed argument names to fix corcompare errors. Code
4009         formatting. Removed extra explicit IList implementation.
4010         * TextBox.cs: Changed argument names to fix corcompare errors. Code
4011         formatting. Use string.Empty instead of "".
4012         * GridItemCollection.cs: Changed argument names to fix corcompare
4013         errors. Code formatting.
4014         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
4015         corcompare errors. Code formatting.
4016         * ImageList.cs: Changed argument names to fix corcompare errors.
4017         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
4018         * DataGridViewRowCollection.cs: Changed argument names to fix
4019         corcompare errors. Code formatting.
4020         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
4021         * DataGridViewSelectedCellCollection.cs: Changed argument names to
4022         fix corcompare errors. Code formatting.
4023         * DataGridViewComboBoxCell.cs: Changed argument names to fix
4024         corcompare errors. Code formatting.
4025         * LinkLabel.cs: Changed argument names to fix corcompare errors.
4026         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
4027         formatting.
4028         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
4029         Code formatting.
4030         * BindingSource.cs: Changed argument names to fix corcompare errors.
4031         Removed extra explicit interface implementations.
4032         * DataGridViewSelectedRowCollection.cs: Changed argument names to
4033         fix corcompare errors. Code formatting.
4034         * ToolStripItemCollection.cs: Removed extra explicit interface
4035         implementation of IList.ReadOnly.
4036         * DataGridViewColumnCollection.cs: Changed argument names to fix
4037         corcompare errors. Code formatting.
4038         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
4039         * ListView.cs:  Changed argument names to fix corcompare errors.
4040         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
4041         errors.
4042         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
4043         errors.
4044         * ListBindingHelper.cs: Changed argument names to fix corcompare
4045         errors.
4046         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
4047         fix corcompare errors. Code formatting.
4048         * ToolStripPanel.cs: Removed extra explicit implementation of
4049         IDropTarget interface.
4050         * ListBox.cs: Changed argument names to fix corcompare errors. Code
4051         formatting. Removed extra tabs and spaces.
4052         * DataGridViewCellCollection.cs: Changed argument names to fix
4053         corcompare errors.
4054         * Help.cs: Changed argument names to fix corcompare errors. Code
4055         formatting.
4056         * TabControl.cs: Changed argument names to fix corcompare errors.
4057         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
4058         errors.
4059         * TableLayoutSettings.cs: Changed argument names to fix corcompare
4060         errors.
4061
4062 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4063
4064         * ListBindingHelper.cs: When returning properties, only return those
4065         that are browsable. Also, don't do a linear search of the properties,
4066         but use the indexer of the PropertyDescriptorCollection class.
4067
4068 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4069
4070         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
4071         Dictionary containing the related (child) currency managers. Also,
4072         when setting DataSource, add datasource to our List if it is not a list.
4073
4074 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
4075
4076         * PropertyGridTextBox.cs: Fix background color of the buttons.
4077         * PropertyGridView.cs: Make the entry less jumpy.
4078
4079 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
4080
4081         * PropertyGrid.cs: Fix unused variable warnings.
4082
4083 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
4084
4085         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
4086         double-click. It expanded it once in the mouse down and then 
4087         again in the double-click handler.
4088
4089 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
4090         
4091         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
4092         TypeConverter and UITypeEditors.
4093
4094 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
4095
4096         * Control.cs: Visibility should be set synchronously, 
4097         so we must also redraw once it is and not rely on layouting or 
4098         other code to repaint.
4099         [Fixes bug #339898]
4100
4101 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
4102
4103         * DataGridViewCell.cs: Respect DataGridView.GridColor.
4104
4105 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
4106
4107         * Control.cs: Invalidate when the alpha channel is less than 255,
4108         not only when control is transparent.
4109
4110 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
4111
4112         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
4113         Implement some painting convenience methods that threw NIEX.
4114
4115 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
4116
4117         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
4118         * DataGridViewLinkCell.cs: Implement.
4119
4120 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
4121
4122         * GridEntry.cs: Report the conversion exception error description.
4123         [Fixes bug #375792]
4124
4125 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
4126
4127         * PropertyGridView.cs: Do not scroll to item on resize.
4128         [Fixes bug #375789]
4129
4130 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4131
4132         * BindingContext.cs: When retrieving a BindingManagerBase, if the
4133         dataSource parameter is ICurrencyManagerProvider, then return
4134         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
4135         instead of creating a new one.
4136
4137 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4138
4139         * BindingSource.cs: Implement support for Type instances as
4140         DataSource.
4141
4142 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
4143
4144         * DataGridView.cs: Minor cleanups and call CellMouseUp.
4145         * DataGridViewCell.cs: Make some painting routines internally virtual.
4146         * DataGridViewButtonCell.cs: Implement.
4147
4148 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
4149
4150         * Control.cs: We always need to invalidate our children with
4151         transparent backgrounds when we are invalidated.
4152         [Fixes bug #376081]
4153
4154 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4155
4156         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
4157         and CancelCurrentEdit on CurrencyManager respectively. Implement
4158         support for ICancelAddNew too.
4159
4160 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4161
4162         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
4163         call EndNew/CancelNew if list is ICancelAddNew.
4164
4165 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
4166
4167         * DataGridView.cs: Guard against an exception while painting
4168         if there are no rows.
4169
4170 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
4171
4172         * DataGridView.cs: Implement a bunch of keyboard commands.
4173
4174 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
4175
4176         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
4177         isn't set, don't call OnPaint.  [Fixes bug #375300]
4178
4179 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4180
4181         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
4182         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
4183         hookup the remaining events related to CurrencyManager, and fire
4184         OnListChanged also for the Clear () method.
4185
4186 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4187
4188         * BindingSource.cs: Use Current and Position implementations in
4189         CurrencyManager instead of using our own routines, since we need 
4190         to be in synch with it. Count should NEVER return a -1 value, and 
4191         also report ListChanged events for both simple IList data 
4192         sources (manually) as well for IBindingList ones (by hooking up an
4193         event handler for it).
4194
4195 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4196
4197         * BindingSource.cs: Make one .ctor call the another, to avoid
4198         duplicate code. Add the CurrencyManager property, and also for AddNew
4199         throw the proper exceptions and show better error messages.
4200
4201 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
4202
4203         * ComboBox.cs: Only adjust selectedindex if Handle has been
4204         created.  Fixes failing test.
4205
4206 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
4207
4208         * ComboBox.cs: Adjust selectedindex if we insert a new item
4209         above the current selectedindex in a sorted ComboBox.
4210         [Fixes bug #374654]
4211
4212 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
4213
4214         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
4215         [Fixes bug #374712]
4216
4217 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
4218
4219         * DataGridViewTextBoxCell.cs: Implement stuffs.
4220
4221 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
4222
4223         * TreeView.cs: Create the scrollbars even earlier to be
4224         double dog certain they are created before they are accessed.
4225
4226 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
4227
4228         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
4229
4230 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
4231
4232         * ScrollBar.cs: Create an internal safe Value setter so we
4233         won't crash if we try to set a value outside the min and max.
4234         * TextBoxBase.cs: Use safe value setter to guard against a
4235         potential NRE that is being reported by Reflector.
4236
4237 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
4238
4239         * TreeView.cs: Create the scrollbars earlier in the constructor
4240         to attempt to guard against an NRE in SetTop in Reflector.
4241
4242 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
4243
4244         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
4245         DataGridViewRowCollection.cs: Do not scroll column and row headers,
4246         show messagebox on data format error, use column display index
4247         correctly, make sure HitTest supports new layout stuff,
4248         make sure scrollbars support new layout stuff.
4249
4250 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
4251
4252         * XplatUIX11.cs : Patch by Doug Rintoul.
4253           For some IM engines, keypress events need to delay call
4254           to XPending() and XNextEvent() in the loop so that it
4255           does not mess the orders in XIM commit callback.
4256           Some KeyRelease events such as shift keys need to be
4257           processed both in the IM engine and winforms driver
4258           itself since winforms holds its own state check.
4259
4260           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
4261
4262 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
4263
4264         * X11Keyboard.cs, XplatUIX11.cs :
4265           add primitive support for XIM input support (preedit-
4266           nothing and status-nothing). It requires precise event
4267           capturing (XSelectInput/"filterEvents") and different
4268           call to XFilterEvent against root window.
4269           Get composed string and send dummy WM_IME_COMPOSITION.
4270           Free XIM and XIC instances in finalizer.
4271
4272           (This first patch does not include suggested changes
4273            by Doug Rintoul. It will follow.)
4274
4275 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
4276
4277         * DataGridView.cs: When binding to a property, if the property
4278         doesn't have a setter, set the column to readonly.
4279         [Fixes bug #343965]
4280
4281 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
4282
4283         * ComboBox.cs: Guard against NRE if an arrow key is hit while
4284         we aren't dropped down.  Support Home/End in DropDownList mode.
4285         [Fixes bug #371990]
4286
4287 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
4288
4289         * TreeNodeCollection.cs: Don't increment count until we've
4290         saved our index to return.
4291         [Fixes bug #373603]
4292
4293 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
4294
4295         * Label.cs: Add padding to the label's AutoSize calculation.
4296         [Fixes bug #373792]
4297
4298 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4299
4300         * ListBindingHelper.cs: Actually implement GetListName method.
4301
4302 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4303
4304         * BindingSource.cs: Throw the propert expceptions for some methods, as
4305         well as detect the list item type for Add method if DataSource is null.
4306
4307 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
4308
4309         * DataGridViewCell.cs: I don't know why I commented this out,
4310         putting it back for now.
4311
4312 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
4313
4314         * DataGridViewCell.cs: Remove storage for owning column, just
4315         use column index.
4316         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
4317         * DataGridViewColumnHeaderCell.cs: If the header text has been
4318         explicitly set, return it.
4319         [Fixes bug #325979]
4320
4321 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
4322
4323         * DataGridViewRowCollection.cs: Disable row sharing when
4324         using data binding.  Its a great feature, but lets work on
4325         getting DGV usable first before we worry about optimizations.
4326
4327 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4328
4329         * BindingSource.cs: When resetting our internal list, compute list
4330         item type information to be used for indirect list access. Also
4331         implement/tune some properties and methods related to the list access
4332         too.
4333         * ListBindingHelper.cs: Add a stub for GetListName method, used from
4334         BindingSource.
4335
4336 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
4337
4338         * DataGridView.cs: If RowCount is increased while ColumnCount
4339         is zero, add a column.  [Fixes bug #331649]
4340
4341 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
4342
4343         * DataGridViewRowCollection.cs: When adding new rows for
4344         databinding, make sure they are place before the add row.
4345         [Fixes bug #343961]
4346
4347 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
4348
4349         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
4350         instead of Index order.
4351
4352 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
4353
4354         * DataGridView.cs: If columns are added by increasing ColumnCount,
4355         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
4356         [Fixes bug #325588]
4357
4358 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
4359
4360         * DataGridView.cs: Turn off and on the "new row" when 
4361         AllowUserToAddRows is toggled.  When the handle is created,
4362         set current cell and selected cell/row/col.
4363
4364 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
4365
4366         * ComboBox.cs: When navigating the drop down by keyboard, we
4367         need to scroll the list box if our selection moves out of the
4368         currently shown items.  [Fixes bug #371990]
4369
4370 2008-03-24  Luke Page <luke.a.page@gmail.com>
4371
4372         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
4373         on the control. Also now handles unicode compatibility characters and
4374         stores the unicode compatibility length on the stack. Fixes Bugs
4375         #355198 and #366436.
4376
4377 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4378
4379         * BindingSource..cs: Take into account DataMember when re-creating the
4380         List property, and also create a specific kind of list as needed.
4381
4382 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4383
4384         * ListBindingHelper.cs: Add a new case for GetList () method - when we
4385         get an empty IEnumerable, try to detect whether the datamember is
4386         valid or not for that type, if true, return null, and throw exception
4387         otherwise.
4388
4389 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
4390
4391         * ComboBox.cs: Alt-Down should drop down the list, Esc should
4392         retract it.  [Fixes bug #371989]
4393
4394 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
4395
4396         * PropertyGrid.cs: Initialize the sorting button as pushed.
4397
4398 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
4399
4400         * PropertyGrid.cs: 
4401          - Visually select the PropertyTab.
4402          - Filter Properties by Attributes properly.
4403
4404 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
4405
4406         * MenuItem.cs: Remove menu item from parent when disposed.
4407         [Fixes bug #372845]
4408
4409 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
4410
4411         * ToolBar.cs: Don't reset layout_type if Dock = None.
4412
4413 2008-03-21  Andreia Gaita <avidigal@novell.com> 
4414
4415         * UserControl.cs: Select the first available control when we get focus.
4416           Fixes #372616
4417
4418 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
4419
4420         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
4421         the content if we are in edit mode.  [Fixes bug #343964]
4422
4423 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
4424
4425         * DataGridViewCell.cs: Fix border painting for column headers.
4426
4427 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4428
4429         * BindingSource.cs: When setting or resetting data source,
4430         use ListBindingHelper.GetList () method, since it will get the list in
4431         case datasource is IListSource.
4432
4433 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
4434
4435         * DataGridViewCell.cs: Implement lots more stuffs.
4436
4437 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
4438
4439         * PropertyGridView.cs, GridEntry.cs: Implement support for 
4440         UITypeEditor.IsDropDownResizable.
4441
4442 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
4443
4444         * DataGridViewCell.cs: Remove unused variables, improve how
4445         several of the property getters work.
4446         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
4447         get its size from the parent row/col.
4448
4449 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
4450
4451         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
4452         user alters manually the PropertyTabs collection via the 
4453         PropertyTabs property.
4454
4455 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4456
4457         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
4458         new tests for them to be sure to be compatible with .net.
4459
4460 2008-03-20  Andreia Gaita <avidigal@novell.com> 
4461
4462         * WebBrowserBase.cs: Fix attributes, add events
4463         * WebBrowser.cs: Fix Padding signature
4464
4465 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
4466
4467         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
4468
4469 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
4470
4471         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
4472         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
4473         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
4474         passes the new suite of tests for it.
4475
4476 2008-03-18  Andreia Gaita <avidigal@novell.com> 
4477
4478         * WebBrowser.cs: Add missing attributes, missing Padding and
4479           DefaultSize properties, remove extraneous getters
4480
4481 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4482
4483         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
4484         method overloads.
4485
4486 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
4487
4488         * ComboBox.cs: Move resetting the selected index to keypress
4489         instead of textchanged.  Changing the text programmatically
4490         should not trigger resetting the selected index.  Fixes test.
4491
4492 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
4493
4494         * ComboBox.cs: When the user types into the textbox, reset
4495         the selected index to -1.  [Fixes bug #371672]
4496
4497 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
4498
4499         * FileDialog.cs: Support Control-A for selecting everything
4500         in an OpenFileDialog.  [Fixes bug #371564]
4501
4502 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
4503
4504         * DataGridView.cs: When row/column visible/height properties
4505         change, invalidate.  Take the NIEX out of InvalidateRow/Column
4506         etc.  We don't support them yet, but we can just invalidate
4507         everything until we do support them.  (Added MonoTODO).  Set
4508         proper control styles.
4509         * DataGridViewRow.cs: Don't call PaintHeader if row headers
4510         are turned off. 
4511
4512 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4513
4514         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
4515
4516 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
4517
4518         * DataGridViewRow.cs: Only paint the white background in
4519         cell bounds, the row bounds extends past the cells if the 
4520         grid width isn't as wide as the DGV.
4521
4522 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
4523
4524         * DataGridView*: Completely revamp the drawing to match the
4525         public API.  Our grids now look better, and call all the
4526         appropriate methods and event to allow users to override
4527         the painting and do their own.
4528
4529 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4530
4531         * ListBindingHelper.cs: Implement 2.0 GetList methods.
4532
4533 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
4534
4535         * DataGridView.cs: Implement BorderStyle.
4536
4537 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
4538
4539         * FileDialog.cs: Apply patch from Andy Hume: Any time we
4540         are comparing attributes, make sure we only look at the
4541         one we are interested.  These calls were failing if there
4542         were more than one attribute.
4543         [Fixes bug #370385]
4544
4545 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
4546
4547         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
4548
4549 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
4550
4551         * PageSetupDialog.cs: Stub EnableMetric.
4552         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
4553         * PrintPreviewDialog.cs: Add ProcessDialogKey,
4554         ProcessTabKey.
4555
4556 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
4557
4558         * MonthCalendar.cs: Remove unused variable.
4559
4560 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
4561
4562         * DataGridView*.cs: corcompare stuffs.
4563
4564 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
4565
4566         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
4567         The savings aren't worth the extra code to fix the optimization.
4568         [Fixes bug #368585]
4569
4570 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
4571
4572         * ToolBar.cs: Always call base.Dock in the Dock override so that
4573         Control's layout_type gets reset correctly.
4574         [Fixes bug #368882]
4575
4576 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
4577
4578         * X11Dnd.cs: End DnD operation also for the middle mouse button.
4579
4580 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
4581
4582         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
4583         at the same time we do explicit ones, because we have to give all
4584         other controls on the container a chance to handle explicit ones
4585         first.  If no one has an explicit mnemonic, then we can let the
4586         MenuStrip have a shot at implicit mnemonics.
4587         * MenuStrip.cs: Create an implicit mnemonic function.
4588         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
4589         mnemonics for MenuStrips.
4590         [Fixes bug #368493]
4591
4592 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
4593
4594         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
4595         DataGridColumnStyle.cs: corcompare stuffs.
4596
4597 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4598
4599         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
4600         Details - This is needed after we added the bits to use any available
4601         column also for List and SmallIcon view. 
4602
4603 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4604
4605         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
4606         at the proper place, not only when changing SelectedIndex and changing
4607         the selection using keys/mouse, as .net does.
4608
4609 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4610
4611         * ControlBindingsCollection.cs: Implement last 2.0
4612         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
4613         in the new 2.0 Add methods.
4614
4615 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4616
4617         * ListBox.cs: When calling SelectedIndexCollection.Clear,
4618         return if no items are previously selected - this is done to avoid 
4619         firing OnSelectedIndexChanged without need to do so. Also,
4620         when creating handle ensure that the focused item is visible (as
4621         .net does).
4622
4623 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4624
4625         * ListBox.cs: Rewrote/refactored most of selection code. We require
4626         the following things in selection: a) keep selection sorted (both
4627         indices and items), b) SelectedIndices automatically detect the
4628         selection mode, c) SelectedIndex should be the first selected item
4629         index, d) Need to Focus/adjust scroll bar when selecting a new item,
4630         not only for SelectedIndex, which is specially important in Multi*
4631         selection modes. To achieve this we are moving the selection core to
4632         SelectedIndexCollection and make depend all selection modifications on
4633         it.
4634         Fixes #366438.
4635
4636 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
4637
4638         * ToolStrip.cs: Enable implicit mnemonics for drop down
4639         menu strips.  [Fixes part of bug #367692]
4640
4641 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
4642
4643         corcompare - fix parameter names [stragglers].
4644         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
4645         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
4646         TabControl.cs.
4647
4648 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
4649
4650         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
4651         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
4652         mnemonic, let the ToolStripManager have it even if it doesn't
4653         have a matching mnemonic.
4654         [Fixes bug #367499]
4655
4656 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
4657
4658         corcompare - fix warning about implicit implementation
4659         * ToolStrip.cs: Add IToolStripData interface.
4660         * IToolStripData.cs: Add.
4661
4662 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
4663
4664         corcompare - fix warning about implicit implementation
4665         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
4666         * IBounds.cs: Add.
4667
4668 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
4669
4670         corcompare - fix parameter names [N-Z].
4671         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
4672         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
4673         PropertyManager.cs, RichTextBox.cs,
4674         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
4675         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
4676         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
4677         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
4678         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
4679         ToolStripContentPanel.cs, ToolStripDropDown.cs,
4680         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
4681         ToolStripPanel.cs, ToolStripSeparator.cs,
4682         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
4683         UICuesEventHandler.cs, UpDownBase.cs.
4684
4685 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
4686
4687         corcompare - fix parameter names [G-M].
4688         GridColumnStylesCollection.cs, GridItemCollection.cs,
4689         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
4690         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
4691         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
4692         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
4693         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
4694
4695 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
4696
4697         corcompare - fix parameter names [A-F].
4698         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
4699         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
4700         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
4701         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
4702         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
4703         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
4704         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
4705
4706 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
4707
4708         * GridEntry.cs: Do not convert not only if the types match, 
4709         but also if the property type is assigneable from the value's
4710         type.
4711         [Fixes bug #366566]
4712
4713 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
4714
4715         * PropertyGridView.cs: 
4716          - Subscribe to the listbox only once and not everytime.
4717          - Update the textbox even if SetValue fails.
4718          - Close the listbox before calling TrySetValue just in case.
4719          [Fixes bug #366569]
4720
4721 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
4722
4723         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
4724
4725 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4726
4727         * ListView.cs: Implement support for custom column width based on
4728         Columns collection (we were previously using this collection only
4729         with Details view).
4730         Fixes #364484.
4731
4732 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4733
4734         * ListViewItem.cs: For Tile view, always set bounds for the first
4735         subitem (which is the main one), and also don't let Width be larger
4736         than ListView.TileSize.Width. Improve code readibility also.
4737         * ThemeWin32Classic.cs: When painting the ListViewItem instances
4738         in Tile view, _always_ use the NoWrap flag.
4739         Fixes #360798.
4740
4741 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
4742
4743         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
4744         in case.
4745         * GridEntry.cs: For MS compitability make all child properties 
4746         readonly if the parent is readonly. Ugh.
4747         [Fixes bug #365945 and #365944]
4748
4749 2008-02-29  Andreia Gaita <avidigal@novell.com> 
4750
4751         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
4752           relative to the history
4753
4754 2008-02-29  Andreia Gaita <avidigal@novell.com>
4755
4756         * HtmlElement.cs: More handlers for mouse and key events
4757
4758 2008-02-28  Andreia Gaita <avidigal@novell.com>
4759
4760         * WebBrowserBase.cs: MouseClick sig changed.
4761         * HtmlHistory.cs: Implement history navigation
4762         * HtmlElement.cs: Add event handlers, and connect them.
4763
4764 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
4765
4766         * GridEntry.cs: 
4767          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
4768            so that DisplayNameAttribute doesn't get ignored.
4769          - Check for ParenthesizeNameAttribute and parenthesize the Label.
4770          - Add support for PasswordPropertyTextAttribute
4771         * PropertyGridView.cs: Check if an entry is a password.
4772         [Fixes bugs #365589, #365586, #365588]
4773
4774 2008-02-28  Andreia Gaita <avidigal@novell.com>
4775
4776         * PropertyGridView.cs: Revert the message filtering change, as we
4777         need it to block after all. Remove block parameter, unnecessary.
4778
4779 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
4780
4781         * UserControl.cs: Better implementation of GetPreferredSize.
4782         First step to fixing bug #361441.
4783
4784 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4785
4786         * Binding.cs: Actually implement data binding support for 
4787         classes implementing IBindableComponent.
4788         * ControlBindingsCollection.cs: Likewise.
4789
4790 2008-02-26  Andreia Gaita  <avidigal@novell.com>
4791
4792         * PropertyGridView.cs: Use a message filter to check when to 
4793         close the dropdown
4794
4795 2008-02-26  Andreia Gaita  <avidigal@novell.com>
4796
4797         * Application.cs: Change the message_filters loop so a filter 
4798         can be removed while looping.
4799
4800 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
4801
4802         * GridEntry.cs: Optimization in ToggleValue so that it caches
4803         the current value.
4804         * PropertyGridView.cs: An optimization so that the property isn't 
4805         re-read twice for each StandardValue added to the drop-down menu.
4806         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
4807         license.
4808         [Fixes bug #362755]
4809
4810 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
4811
4812         * Application.cs: Apply patch from Justin Cherniak to match
4813         MS better for ProductName, ProductVersion, and CompanyName.
4814         [Fixes bug #361709]
4815
4816 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4817
4818         * Binding.cs: Actually implement 2.0 NullValue property. Also
4819         when changing the formatting related properties, only update the state
4820         if formatting_enabled is true (we don't mind otherwise).
4821
4822 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
4823
4824         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
4825         [Fixes bug #364486]
4826
4827 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
4828
4829         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
4830         of GetType on the current value as it uses reflection to 
4831         determine the type. This fixes the case where the new value is 
4832         null. 
4833
4834 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
4835
4836         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
4837         past the view.
4838
4839 2008-02-24  Luke Page  <luke.a.page@gmail.com>
4840
4841         * Line.cs, TextControl.cs: Implement offset x and y so that a
4842         document doesn't have to begin  at (0,0) on the viewpoint.
4843         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
4844         bars and switches the text alignment (and therefore is now
4845         implemented for textbox). Fixes #321383.
4846
4847 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4848
4849         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
4850         properties. Also when changing FormattingEnabled update the control
4851         property -as .Net does-.
4852
4853 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
4854
4855         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
4856         * Binding.cs: Add stubs for the overloads of the Add method in
4857         CBCollection.
4858
4859 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4860
4861         * Binding.cs: PullData () returns a false value if we got an exception.
4862         Also when validating the control and we get an error, instead of
4863         setting the value of the previous one, cancel the event (tested in 1.1
4864         and 2.0).
4865
4866 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
4867
4868         * TreeView.cs: Make selected_node and highlighted_node internal.
4869         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
4870         to null when Nodes.Clear is called.
4871         [Fixes bug #363884]
4872
4873 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
4874
4875         * FontDialog.cs: Ensure that when the Font is set in code,
4876         all the gui pieces are updated accordingly.
4877         [Fixes bug #361020]
4878
4879 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
4880
4881         * TextRenderer.cs: Respect proposed size for MeasureString.
4882         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
4883         autosize, use a proposed width to force wrapping for long text.
4884         [Fixes bug #360981]
4885
4886 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
4887
4888         * TreeView.cs: Factor in checkboxes = false and state images in
4889         to HitTest.  [Fixes bug #363360]
4890
4891 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
4892
4893         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
4894         when drawing the selected range.
4895         [Fixes bug #363648]
4896
4897 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
4898
4899         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
4900         ResizeRedraw control styles.
4901         [Fixes bug #363555]
4902
4903 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
4904
4905         * TreeView.cs: StateImages are basically custom checkboxes, so
4906         factor their size the same as real checkboxes when determining
4907         what got clicked.
4908         [Fixes bug #363367]
4909
4910 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
4911
4912         * MessageBox.cs: Make the message box wider if the form caption
4913         is longer than the text in the form.
4914         [Fixes bug #361137]
4915
4916 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
4917
4918         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
4919
4920 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
4921
4922         * TreeNode.cs: Guard against an NRE when the parent's
4923         StateImageList hasn't been set.
4924         [Fixes bug #363353]
4925
4926 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
4927
4928         * SplitContainer.cs: Add SupportsTransparentBackColor and
4929         OptimizedDoubleBuffering control styles.
4930         [Fixes bug #363303]
4931
4932 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
4933
4934         * Application.cs: For the app data paths and the registry key paths,
4935         ensure they are created before returning them to the user.
4936         [Fixes bug #361709]
4937
4938 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
4939
4940         * Application.cs: Guard against an NRE in CompanyName and
4941         ProductName.
4942
4943 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
4944
4945         * Application.cs: For CompanyName, ProductName, and ProductVersion,
4946         make sure we handle all three cases correctly: attribute is present,
4947         attribute is present but is an empty string, and attribute is not
4948         present.
4949
4950 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
4951
4952         * PropertyGridView.cs: 
4953          - Fix a NRE that caused a test failure
4954          - Another performance improvement - cache the standard values
4955          listbox.
4956
4957 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
4958
4959         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
4960         code paths.
4961
4962 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
4963
4964         * PropertyGridView.cs: Fix a big performance bug.
4965
4966 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
4967
4968         * SelectionRange.cs: Apply patch from Andy Hume to make
4969         constructor behavior more accurate.  [Fixes bug #362117]
4970
4971 2008-02-19  Andreia Gaita <avidigal@novell.com> 
4972
4973         * Control.cs: Added a new flag is_disposing to track if the
4974         window is currently in the process of being disposed of.
4975         This is used so that, when firing visibility changes triggered
4976         by unparenting controls during Dispose, the control doesn't
4977         get created again.      
4978
4979 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
4980
4981         * ComboBox.cs: Set height to preferred height when the handle
4982         is created.  [Fixes bug #360862]
4983
4984 2008-02-18  Andreia Gaita <avidigal@novell.com>
4985
4986         * XplatUIX11.cs: Create FosterParent with border width at 0.
4987         With the previous value of 4, everytime a control got reparented
4988         from parent = null, it's location would be shifted right and 
4989         down by 4, since these coordinates would be offset by the 
4990         FosterParent's border width.
4991
4992 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
4993
4994         * Control.cs: During diposing firstly remove ourselfes from
4995         the parent and *then* destroy our handle, because removing
4996         ourselfes from the parent controls collection causes 
4997         VisibilityChange, etc events, which require a handle and end
4998         up recreating the control.
4999
5000 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
5001
5002         * GridEntry.cs: Set expanded state before notifying that the
5003         expansion has taken place.
5004         * PropertyGridView.cs:
5005          - Set the propertygridtextbox text to the selected 
5006          StandardValue before proceeding to setting it.
5007          - Scrolling bugfixes.
5008
5009 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
5010
5011         * GridEntry.cs:
5012          - Fix ValueText to not return null.
5013          - Fix conversion error reporting to actually happen.
5014         * PropertyGridView.cs: Set entry only if the text has changed.
5015         [Fixes bug #362116]
5016
5017 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
5018
5019         * GridEntry.cs: 
5020          - Fix handling of a null current value.
5021          - Swallow editor exceptions.
5022         [Fixes bug #362114]
5023
5024 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
5025
5026         * PropertyGrid.cs: Clear current items first thing before 
5027         repopulating subitems.
5028         * GridEntry.cs: 
5029          - Handle null StandardValuesCollection.
5030          - Mark as not editable if there is no PropertyDescriptor and
5031          if the Converter cannot convert from string.
5032         [Part of fix for bugs #360666 and #358332]
5033
5034 2008-02-15  Luke Page  <luke.a.page@gmail.com>
5035         * MaskedTextBox.cs: Now skips non editable characters after a
5036         character has been entered and we are progressing to the next
5037         position in the MaskedTextBox.
5038
5039 2008-02-15  Luke Page  <luke.a.page@gmail.com>
5040         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
5041         that it changes the selection rather than just repositioning the
5042         cursor. Fixes Bug #360873.
5043
5044 2008-02-15  Luke Page  <luke.a.page@gmail.com>
5045         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
5046         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
5047         correctly. See #359330
5048
5049 2008-02-15  Andreia Gaita <avidigal@novell.com>
5050
5051         * XplatUIX11.cs: If the handle is null when posting a message, use the
5052         current thread queue to post instead. Fixes #332409
5053
5054         * SendKeys.cs: Slight optimization
5055
5056 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
5057
5058         * PropertyGrid.cs, PropertyGridView.cs:
5059         Fix multiple scrolling and sizing issues.
5060         [Fixes bug #359199]
5061
5062 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
5063
5064         * PropertyGridView.cs: Ensure that drop down editors are shown
5065         in the WorkingArea of the screen.
5066         [Fixes bug #359807]
5067
5068 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
5069
5070         * GridEntry.cs: Fail silently when UITypeEditor is missing.
5071         [Fixes bug #360666]
5072
5073 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5074
5075         * Binding.cs: Implement 2.0 DataSourceNullValue property.
5076
5077 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
5078
5079         * PropertyGridView.cs:
5080          - Clear the controls in the drop down form after it is hidden.
5081          - Fix Width sizing of the dropdown editors to match MSFT.
5082
5083 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
5084
5085         * PropertyGridView.cs: 
5086          - Fix height for drawing the grid entry
5087          text value, so that it clips multiline text properly.
5088          - Fix unfocusing to match MSFT.
5089
5090 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
5091
5092         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
5093         Fixes a bug where on repopulation after value changed items become
5094         expandable.
5095
5096 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5097
5098         * Binding.cs: For the 2.0 profile, look for a 
5099         'PropertyChanged' event in the target control, and add checks for
5100         DataSourceUpdateMode property to change -or not- the data source
5101         from validation/control property change.
5102
5103 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
5104
5105         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
5106           not compare struct with null in 2.0).
5107
5108 2008-02-10  Luke Page <luke.a.page@gmail.com>
5109
5110         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
5111         updates the provider and if not using a provider, uses the internal document
5112         class implementation of password char. Also when showing text, uses display string
5113         from the provider, instead of the actual text.
5114
5115 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5116
5117         * Binding.cs: Ooooops, forgot to take into account the data_source
5118         and binding_member_info null case (it was breaking the Binding tests).
5119
5120 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5121
5122         * Binding.cs: Implement support for data source changes exposed by
5123         'PropertyNameChanged' events, and update the control property as
5124         needed.
5125
5126 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5127
5128         * Binding.cs: Implement 2.0 WriteValue method.
5129
5130 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
5131
5132         Commit patch from James Purcell for better AutoScale implementation:
5133
5134         * ScaleControl should call GetScaledBounds with the control's total size rather
5135         than client size.  GetScaledBounds should handle ignoring the borders in its
5136         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
5137         (for the most part they just call the base code now since that is fixed).
5138         * Added ScaleChildrenInternal to allow controls to disable scaling of children
5139         without having to override ScaleChildren (since none of .NET's controls do). 
5140         This is required for most controls in Mono that have scrollbars to prevent the
5141         scrollbars from being moved/resized.
5142         * Nested ContainerControls can have a different scale mode than their parent. 
5143         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
5144         designer produce different results both of which look incorrect).
5145         * Default AutoScaleMode for ContainerControl should be Inherit.
5146         * Simplified workaround for ComboBox scaling issue.
5147         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
5148         1.0 style auto scaling should scale the whole control's size instead of
5149         ignoring the borders (except for Form) and the rounding is done differently to
5150         preserve control alignment.
5151         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
5152         GetAutoScaleSize.
5153         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
5154         * CurrentAutoScaleDimensions should round the estimated character width instead
5155         of truncating.
5156         * ListBox's GetScaledBounds should always use the height it was set to instead
5157         of the height that was passed in.  This prevents rounding errors from
5158         accumulating quickly with IntegralHeight.
5159         [Bug #359098]
5160
5161 2008-02-08  Andreia Gaita <avidigal@novell.com>
5162
5163         * Form.cs: Add a null check (darn it). 
5164
5165 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
5166
5167         * MdiClient.cs: Make sure the requesting form actually owns the
5168         control menu items before removing them.  Also, use
5169         Suspend/ResumeLayout when adding or removing items so we only
5170         layout once.
5171         [Fixes bug #359887]
5172
5173 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
5174
5175         * Control.cs: Guard against an NRE in ShowFocusCues.
5176         [Fixes bug #359830]
5177
5178 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5179
5180         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
5181         property, as well as stubbing DataSourceUpdateMode.
5182
5183 2008-02-08  Andreia Gaita <avidigal@novell.com>
5184
5185         * Form.cs: When closing forms, get focus back to the active control of the
5186         active form. [Fixes #341314, corner case]
5187         
5188 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
5189
5190         * MdiClient.cs: After we move the scrollbars, invalidate the NC
5191         area, so any old scrollbar artifacts are cleaned up.
5192         [Fixes bug #336305]
5193
5194 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
5195
5196         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
5197         for our menus, display that control box menu instead of the 1.1
5198         menu one.
5199
5200 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
5201
5202         * MdiControlStrip.cs: Add property to access the mdi form tied to
5203         each toolstripitem.
5204         * MdiClient.cs: Be smarter about removing and adding toolstripitems
5205         to the implicitly merged menu.  Every time we clicked the form, items
5206         were getting removed and the re-added, causing the form to jump around
5207         as the menu resized.
5208
5209 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
5210
5211         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
5212         was being reset by the implicit menu merge for menustrips.
5213         [Fixes bug #336296]
5214
5215 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
5216
5217         * Form.cs: Don't do the previous change when WindowState = Normal,
5218         or it messes up where the window is placed.  Fixes test failure.
5219
5220 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
5221
5222         * Form.cs: When becoming visible, if we are an MDI child, call
5223         SetWindowState with a dummy old_state so that changes will actually
5224         be made.
5225         [Fixes the 2nd part of bug #325473]
5226
5227 2008-02-07  Andreia Gaita <avidigal@novell.com>
5228
5229         * Control.cs: Reset properties to their pre parent-change values in case
5230         the new parent == null (in which case we're basically removing the control, 
5231         and don't want any events fired due to fake property changes)
5232         [Fixes #355850]
5233
5234 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
5235
5236         * PropertyGridView.cs: 
5237          - Refactor SetValue to allow setting the value
5238         when a custom editor is used, but the entry is not editable.
5239          - Remove the custom editor control on CloseDropDown.
5240         [Fixes #359196]
5241
5242 2008-02-06  Andreia Gaita <avidigal@novell.com>
5243
5244         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
5245         reflection only on 1.1, this property is public on system.drawing on 2.0.
5246         Fixed #359247
5247
5248 2008-02-06  Andreia Gaita  <avidigal@novell.com>
5249         
5250         * WebBrowser.cs: Do a normal page refresh by default.
5251
5252 2008-02-05  Andreia Gaita  <avidigal@novell.com>
5253
5254         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
5255         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
5256         platforms. Fixes #359036
5257         
5258         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
5259         platform-specific flags.
5260
5261 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5262
5263         * Binding.cs: Add 2.0 BindableComponent property - just return control
5264         by now.
5265
5266 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
5267
5268         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
5269         Jonathan for this patch. Fixes #358442.
5270
5271 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
5272
5273         * Form.cs: If we change the active MDI child form, let the others
5274         know they need to repaint their title bar so it will appear inactive.
5275         [Fixes part 1 of bug #325473]
5276
5277 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
5278
5279          * PropertyGridView.cs: Do not trucate custom editors' width
5280          and align them to the left.
5281          [Fixes #358353 and #358349]
5282
5283 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5284
5285         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
5286         Also fix the arguments passed to CollectionChangeEventArgs in the
5287         related methods.
5288
5289 2008-02-04  Geoff Norton  <gnorton@novell.com>
5290
5291         * Hwnd.cs: The conversion to Quartz coordinates happens in
5292         System.Drawing.  Removing this translation from here.
5293
5294 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
5295
5296          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
5297          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
5298          GridItemCollection.cs:
5299          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
5300
5301 2008-02-04  Geoff Norton  <gnorton@novell.com>
5302
5303         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
5304         SYSKEYUP if any other key has been pressed in the mean time.
5305         Fixes #324404
5306
5307 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5308
5309         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
5310         when the item in current position is different than 0. Also, save the
5311         item index in the beginning of the operation, instead of getting the
5312         index of the item when the event is actually performed. Lastly clean
5313         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
5314         triggered.
5315         [Fixes #357873]
5316
5317 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
5318
5319         * Form.cs: Alt-Minus for MDI children system menu should work
5320         with both the minus keys on the keyboard.
5321         [Fixes bug #336295]
5322
5323 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
5324
5325         * Control.cs: Don't invalidate on region change.  The WM should
5326         take care of this automagically.  Keeps us out of an infinite
5327         paint loop if someone changes the Region in the OnPaint.
5328         [Fixes bug #358327]
5329
5330 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
5331
5332          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
5333
5334 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
5335
5336         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
5337         down the MonthCalendar only on F4, not Alt+F4.
5338         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
5339         [Fixes bug #358340]
5340
5341 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
5342
5343         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
5344         if its part of a DateTimePicker, else, use the back color.
5345         [Fixes bug #358339]
5346
5347 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
5348
5349         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
5350         [Fixes bug #358342]
5351
5352 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5353
5354         * CurrencyManager.cs: When we get a ListChanged event from our source,
5355         always fire our own ListChanged event, as .Net does.
5356
5357 2008-02-03  Luke Page  <luke.a.page@gmail.com>
5358
5359         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
5360         #358379.
5361
5362 2008-02-03  Luke Page  <luke.a.page@gmail.com>
5363
5364         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
5365         property. Removed if for richtext property that was always true.
5366         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
5367
5368 2008-02-03  Luke Page  <luke.a.page@gmail.com>
5369
5370         * TextBoxBase.cs - commited patch from James Purcell that
5371         correctly sets the FixedHeight control style when the MultiLine
5372         property is changed on a TextBox control. Fixes bug 358229.
5373
5374 2008-02-02  Luke Page  <luke.a.page@gmail.com>
5375
5376         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
5377         Fixes bug 351938 - caret is positioned correctly when drawn
5378         and when calculating textual position of caret, no longer
5379         has a NRE in certain situations.
5380         
5381 2008-02-01  Geoff Norton  <gnorton@novell.com>
5382
5383         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
5384         get that region removed from the paint event.
5385         * XplatUICarbon.cs: Remove the window mapping after disposing of 
5386         window.  Prevents a crash with handle reuse.  Optimize exposes
5387         only onto visible windows (rare; but possible).
5388
5389 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
5390
5391         * UpDownBase.cs: Make sure the internal textbox calls the base's
5392         OnMouseDown and OnMouseUp so the textbox will function correctly.
5393         There were notes saying it doesn't chain up, but its an internal
5394         class, so our implementation may differ.
5395         [Fixes bug #357482]
5396
5397 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
5398
5399         * ListBox.cs: Fix a logic error and don't process MouseDown
5400         for mouse buttons other than Left.
5401
5402 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
5403
5404         * Control.cs: Remove HeightInternal.
5405         * ListBox.cs: Commit patch from James Purcell that correctly
5406         calculates heights for ListBoxen.
5407         [Fixes bug #357152]
5408
5409 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
5410
5411         * Label.cs: Apply patch from James Purcell that corrects the 
5412         signature of the AutoSize property.
5413         [Fixes bug #357605]
5414
5415 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
5416
5417         * ListBox.cs: Don't throw [Mouse]Click events for buttons
5418         other than the left mouse button.
5419
5420 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
5421
5422         * Control.cs: Remove my awesome optimization as it caused some
5423         regressions with control ordering.  :(
5424         [Fixes bug #357467]
5425
5426 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
5427
5428          * PropertyGridView.cs: Fix a NRE on double click when there is no
5429          selected object.
5430
5431 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5432
5433         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
5434
5435 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
5436
5437         * ListBox.cs: Call MouseClick and MouseDoubleClick.
5438         [Fixes bug #357146]
5439
5440 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
5441
5442         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
5443         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
5444         instead of Hwnd.bmp_g.
5445
5446 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
5447
5448         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
5449         Use the Hwnd one instead.
5450
5451 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
5452
5453         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
5454
5455 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
5456
5457         * Form.cs: corcompare for RestoreBounds.
5458
5459 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
5460
5461         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
5462
5463 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
5464
5465         * Form.cs: Handle Alt-Minus for MDI children forms.
5466         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
5467         Add mnemonics to the control menu.
5468         [Fixes bug #336295]
5469
5470 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5471
5472         * Binding.cs: Initial implementation bits of FormattingEnabled
5473         property and BindingComplete event (2.0). 
5474         * BindingCompleteEventArgs.cs: Internal methods for setting error text
5475         and exception.
5476
5477 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
5478
5479         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
5480         table.Location.  [Fixes bug #354672]
5481
5482 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
5483
5484         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
5485         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
5486
5487 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5488
5489         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
5490         of doing all the re-bound work, just invalidate and call SetControlText 
5491         to set the updated text of selected item to our textbox.
5492         Fixes #333750.
5493
5494 2008-01-28  Andreia Gaita <avidigal@novell.com>
5495
5496         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
5497         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
5498         missing properties and methods. Add Load, Unload, Error, GotFocus, 
5499         LostFocus, Resize, Scroll events (only load and unload are connected)
5500
5501 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
5502
5503         * AccessibleObject.cs: Modified argument names to match MS.
5504         * Button.cs: Modified argument names to match MS.
5505         * BindingContext.cs: Modified argument names to match MS.
5506         * BindingMemberInfo.cs: Modified argument names to match MS.
5507         * ButtonBase.cs: Modified argument names to match MS.
5508         * ComboBox.cs: Modified argument names to match MS.
5509         * Control.cs: Modified argument names to match MS.
5510         * CheckedListBox.cs: Modified argument names to match MS.
5511         * CommonDialog.cs: Modified argument names to match MS.
5512         * DataGrid.cs: Modified argument names to match MS.
5513         * CursorConverter.cs: Modified argument names to match MS.
5514         * ControlPaint.cs: Modified argument names to match MS.
5515         * CheckBox.cs: Modified argument names to match MS.
5516         * ControlBindingsCollection.cs: Modified argument names to match MS.
5517         * BindingSource.cs: Modified argument names to match MS.
5518         * DataFormats.cs: Modified argument names to match MS.
5519         * ContainerControl.cs: Modified argument names to match MS.
5520         * CurrencyManager.cs: Modified argument names to match MS.
5521         * Application.cs: Modified argument names to match MS.
5522         * ContextMenuStrip.cs: Modified argument names to match MS.
5523         * ContextMenu.cs: Modified argument names to match MS.
5524         * BindingManagerBase.cs: Modified argument names to match MS.
5525         * WindowsFormsSection.cs: Fixed line ending.    
5526
5527 2008-01-27  Andreia Gaita <avidigal@novell.com>
5528
5529         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
5530         detecting that the dropdown toolwindow is hidden. EndLoop outside the
5531         while.
5532
5533 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
5534
5535         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
5536         MS. Code formatting.
5537
5538 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5539
5540         * Binding.cs: Don't avoid the Format event if the control 
5541         property type is object. Also, if the value retrieved by 
5542         the data source is null _and_ the control proeprty type 
5543         is object, return Convert.DBNull (match .Net).
5544         Fixes part of #324286.
5545
5546 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5547
5548         * ListControl.cs: Since we are getting two BinginContextChanged events
5549         for the same binding context instance (when the control is added to
5550         form, and when the form is actually shown), take it into account only the
5551         first time for a given binding context instance.
5552         Fixes part of #324286.
5553
5554 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
5555
5556          * PropertryGridView.cs: Ops.
5557
5558 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
5559
5560          * PropertyGridView.cs: Close dropdown form if the owner form is
5561          moved or minimized.
5562          [Fixes bug #322446]
5563
5564 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
5565
5566          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
5567          RootGridEntry.cs, CategoryGridEntry.cs:
5568          PropertyGrid rewrite.
5569          - Rewrite all of the control logic in PropertyGrid.
5570          - Rewrite all of the ComponentModel logic in GridEntry.
5571          - Rewrite all UI work in PropertyGridView.
5572          - Many bugfixes, etc.
5573
5574 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
5575
5576         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
5577         when all contained controls are autosize or dock-fill.  Also take into
5578         account when the total percentage of column/row sizes is not 100%.
5579         [Fixes bug #354672]
5580
5581 2008-01-24  Andreia Gaita <avidigal@novell.com>
5582
5583         * HtmlDocument.cs:
5584         - Save a reference to the IDocument in the instance and
5585           use that one instead of going to WebHost.Document; the document that the 
5586           WebHost returns might not be the right one (in case of frames).
5587         - Use the hashcode returned from the IDocument interface.
5588         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
5589           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
5590           LinkColor, Url, VisitedColor, Window
5591
5592         * HtmlElement.cs: 
5593         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
5594           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
5595           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
5596           SetAttribute, Equals, equality operators.
5597         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
5598           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
5599         
5600         * HtmlElementCollection.cs: Change implementation to use a generic
5601         collection. Implemented Enumerator and CopyTo
5602
5603         * HtmlHistory.cs: Add constructor, no implementation yet.
5604
5605         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
5606         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
5607         Equals, equality operators.
5608
5609         * HtmlWindowCollection.cs: Implemented. 
5610
5611         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
5612         has been deprecated).
5613
5614         * WebBrowserBase.cs: Use Completed event to track document loading
5615         (Navigated has been deprecated)
5616
5617 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
5618
5619         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
5620         level MenuItems do not respect tabs.
5621         [Fixes bug #355196]
5622
5623 2008-01-23  Geoff Norton  <gnorton@novell.com>
5624
5625         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
5626         FormWindowState.  Finished fixing Fullscreen windows on Carbon
5627
5628 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
5629
5630         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
5631         be used as grab_control. Also save status of capture before show ContextMenu
5632         and restore it after close.
5633
5634 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
5635
5636         * Control.cs: Internal FindRootParent method added to return high control
5637         in parent tree.
5638
5639 2008-01-23  Geoff Norton  <gnorton@novell.com>
5640
5641         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
5642         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
5643         it work again.  Handle HITTEST events.
5644
5645 2008-01-23  Geoff Norton  <gnorton@novell.com>
5646
5647         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
5648         a crash in certain cases.  Support for fullscreen windows in certain cases.
5649
5650 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
5651
5652         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
5653         [Fixes bug #355703]
5654
5655 2008-01-23  Geoff Norton  <gnorton@novell.com>
5656         
5657         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
5658
5659 2008-01-23  Geoff Norton  <gnorton@novell.com>
5660
5661         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
5662
5663 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
5664
5665         * SplitContainer.cs: Remove unused declarations.
5666         * Binding.cs: Remove unused declarations.
5667
5668 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
5669
5670         * Form.cs: Remove unused declaration of 'active' in Activate method.
5671         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
5672         prevent compilation warnings.
5673         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
5674         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
5675         * Bindings.cs: Remove unused formatting_enabled declaration.
5676         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
5677         warnings.
5678         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
5679         warnings.
5680         * PropertyGridView.cs: Remove usused 'ex' declaration.
5681         * DataGridView.cs: Remove unused declarations.
5682
5683 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
5684
5685         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
5686         
5687         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
5688         to Control class, it makes possible to grab menu to controls that can't 
5689         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
5690         WmMouseMove removed since it was used only to track menu events.
5691
5692         * Control.cs:
5693         - Moved all active_tracker stuff from Form.
5694         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
5695         can call this method instead of reimplement all necessary code handle for
5696         menu tracker.
5697         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
5698         and WmMouseMove).
5699         
5700         * MenuAPI.cs: 
5701         - Remove special handle to ToolStripOverflow, now we can grab menu to 
5702         controls that can't reach Form using parent tree.
5703         - Change type of grab_control from Form to Control.
5704
5705 2008-01-22  Geoff Norton  <gnorton@novell.com>
5706
5707         * TextBoxBase.cs: Split up the sizing of controls and placing of 
5708         controls.  Fixes a bug where scrollbars in Reflector could be sized
5709         wrong and have non-working thumbers.
5710
5711 2008-01-23  Geoff Norton  <gnorton@novell.com>
5712
5713         * XplatUI.cs: Refactor environment variables to default support to the
5714         Carbon driver on the Mac.
5715
5716 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
5717
5718         * Label.cs: Uses new LabelPainter for drawing operations.
5719         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
5720         * Theme.cs: DrawLabel and LabelDefaultSize removed.
5721
5722 2008-01-22  Geoff Norton  <gnorton@novell.com>
5723
5724         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
5725
5726 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
5727
5728         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
5729         through the normal flat button code and don't draw the checkbox glyph.
5730         * Theme.cs: Button->ButtonBase signature change.
5731         [Fixes bug #324755]
5732
5733 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
5734
5735         * LinkLabel.cs: Uses new class LinkLabelPainter.
5736
5737 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
5738
5739         * MessageBox.cs: Adjust right border space, we don't need to add 
5740         "space_border*2" two times.
5741
5742 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
5743
5744         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
5745         becomes a wrapper around Padding.
5746         [Fixes a part of bug #354676]
5747
5748 2008-01-22 Geoff Norton  <gnorton@novell.com>
5749
5750         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
5751         acquired.  Also ensure the buffer is large enough to grab the header
5752         we need on linux boxes.
5753
5754 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
5755
5756         * Control.cs: Implement a custom enumerator so people can delete
5757         from the Controls collection while in a foreach.
5758         [Fixes bug #355074]
5759
5760 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
5761
5762          * PropertyGridView.cs: Fix focusing behavior:
5763          - Tab should focus the grid text box.
5764          - Clicking on the labels shouldn't focus the grid text box.
5765
5766 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
5767
5768          * PropertyGridView.cs: IsValueTypeGridItem should return true 
5769          for Arrays as well.
5770
5771 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
5772
5773          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
5774           - Renamed GridEntry.SelectedObjects to TargetObjects to better
5775           reflect the property name role.
5776           - PropertyGrid.GetTarget is not required as the target is known
5777           (TargetObjects).
5778           - Setting values will handle value types as a special case now and
5779           populate them up in the chain.
5780           [Fixes #354990]
5781
5782 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
5783
5784         * Hwnd.cs: Create a public property for the Graphics we keep around.
5785
5786 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
5787
5788          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
5789          when the current object selection changes. 
5790          Fixes failing test SelectedObject_Null2.B5.
5791
5792 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
5793
5794          * PropertyGrid.cs: Process Browsable properties with 
5795          DesignerSerializationVisibilityAttribute.Content as being expandable.
5796          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
5797          will not be expandable. We should be nested components-friendly now.
5798
5799 2008-01-21  Andreia Gaita <avidigal@novell.com>
5800
5801         * WebBrowserBase.cs: Check if control was loaded properly, 
5802         don't bind if it wasn't.
5803
5804         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
5805         GetElementFromPoint, equality operators, OpenNew, Write.
5806         Remove extra set_Body
5807
5808 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
5809
5810         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
5811         that makes our AutoScale* stuff more tolerant to different orders
5812         of being set.  [Fixes bug #354669]
5813
5814 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
5815
5816          * PropertyGridView.cs, PropertyGridTextBox.cs: 
5817          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
5818          [Fixes #339005 and #348209]
5819
5820 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
5821
5822          * PropertyGridView.cs: Hide the grid text box before adjusting it
5823          for the newly selected GridItem.
5824          [Fixes #338999]
5825
5826 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
5827
5828         * Form.cs: Give MDI children the opportunity to cancel the parent form
5829         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
5830         properly for both the parent and child.
5831         * Application.cs: Signature of internal method changed, pass the previous
5832         default of false.
5833         [Fixes bug #354286]
5834
5835 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
5836
5837         * PropertyGridView.cs: Set the property value only if it has changed.
5838         [Fixes bug #338997]
5839
5840 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
5841
5842         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
5843         If the mouse hasn't actually moved, ignore these messages so the currently
5844         highlighted menuitem isn't reset to the one under the mouse.
5845         [Fixes bug #333668]
5846
5847 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
5848
5849         * PropertyGridView.cs: When the property changes Invalidate the GridItem
5850         in order for the properties with UITypeEditor.GetPaintValueSupported == true
5851         to reflect the change visually.
5852         [Fixes bug #338998]
5853
5854 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
5855
5856         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
5857         to 2.0 button drawing.
5858         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
5859         the button text is tall enough for one line.  LineLimit says it will
5860         always draw at least one line, but it is a lie.
5861         [Fixes bug #324941]
5862
5863 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
5864
5865         * XplatUIStructs.cs, X11Keyboard.cs :
5866           added some more VK_* keys to be handled.
5867
5868 2008-01-16  Andreia Gaita <avidigal@novell.com>
5869
5870         * Control.cs: Check if there is a container before setting or getting
5871         the validation flag.
5872
5873 2008-01-16  Andreia Gaita <avidigal@novell.com>
5874
5875         * ContainerControl.cs: Add flag to track if a control cancels validation, 
5876         so we don't fire click events.
5877
5878         * Control.cs: 
5879         - (HandleClick) Check if validation was cancelled before  firing the click
5880         events (doubleclicks are fired, but not clicks)
5881         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
5882         ContainerControl.set_ActiveControl, but in the case of non-selectable
5883         controls, like a Label, activecontrol is not set. 
5884
5885         * ButtonBase.cs: Only fire clicks if validation passes.
5886         
5887         Fixes #353310
5888
5889 2008-01-16  Geoff Norton  <gnorton@novell.com>
5890
5891         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
5892         trunk
5893
5894 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
5895
5896         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
5897         SelectedPath, just display the default dialog instead of crashing.
5898         [Fixes bug #348989]
5899
5900 2008-01-16  Geoff Norton  <gnorton@novell.com>
5901
5902         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
5903         AddExpose instead of trusting apples compositing manager which doesn't
5904         work for our use case.  Remove some dead code causing warnings and 
5905         redecorate some other code to prevent warnings.
5906
5907 2008-01-16  Geoff Norton  <gnorton@novell.com>
5908
5909         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
5910         carbon signals us to redraw.  Fixes another portion of the flickering bug
5911
5912 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
5913
5914         * Form.cs: Prevent the MdiParent property to be set when value is the same
5915         as value already set. Fixes bug #328019.
5916
5917 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
5918
5919         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
5920         it prevents NRE when closing mdi child windows. Fixes bug #325211.
5921
5922 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
5923
5924         * InternalWindowManager.cs: Invalidade close button after mouse up when 
5925         mdi form is prevented to close.
5926
5927 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
5928
5929         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
5930         thanks to Andy Hume. Fixes bug #325433.
5931
5932 2008-01-16  Andreia Gaita <avidigal@novell.com>
5933
5934         * LinkLabel.cs: Reset focused_index when resellecting the control.
5935         Fixes #323190
5936
5937 2008-01-15  Geoff Norton  <gnorton@novell.com>
5938
5939         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
5940         messages.
5941
5942 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
5943
5944         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
5945         of truncate.
5946
5947 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
5948
5949         * ContainerControl.cs: Setting AutoScaleMode to anything should set
5950         Form.AutoScale to false.
5951         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
5952         AutoScaleBaseSize should be changed on Font change unless it has been
5953         explicitly set.
5954         [Fixes bug #353827]
5955
5956 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
5957
5958         * MenuAPI.cs: On instance of MenuTracker check if source control is
5959         ToolStripOverflow and use properly method to find form.
5960         [Fixes bug #338511]
5961
5962 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
5963
5964         [Fixes bug #323241 Transparent toolbar support]
5965
5966         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
5967         is flat.
5968
5969         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
5970         defined in control style to mimic win32 behavior.
5971
5972         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
5973         it will be transparent.
5974
5975 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
5976
5977         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
5978         CreateParams for ToolBar controls.
5979
5980 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
5981
5982         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
5983         FixedToolWindow, SizeableToolWindow, or None for border styles have
5984         different minimum sizes than regular forms.  Implemented to fix
5985         regression in PDN with toolbox being too wide.
5986
5987 2008-01-14  Andreia Gaita <avidigal@novell.com>
5988
5989         * HtmlElementCollection.cs: Implemented
5990
5991         * HtmlElement.cs: Implemented:
5992           - All
5993           - InnerHtml
5994           - InnerText
5995           - Id
5996           - Name
5997           - FirstChild
5998
5999         * HtmlDocument.cs: Implemented GetElementsByTagName.
6000
6001 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
6002
6003         * Screen.cs: Stub BitsPerPixel to always return 32.
6004
6005 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
6006
6007         * Form.cs: Implement RestoreBounds.
6008
6009 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
6010
6011         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
6012         Sebastien and his fabulous magical problem-finding machine:
6013         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
6014         respect the value set.
6015
6016 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
6017
6018         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
6019         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
6020
6021 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6022
6023         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
6024         messages (to match .Net), we need to remove the capture ourselves.
6025
6026 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
6027
6028         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
6029         will process the message and close our window.
6030         [Fixes bug #324328]
6031
6032 2008-01-10  Geoff Norton  <gnorton@novell.com>
6033
6034         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
6035         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
6036         window manager.
6037
6038 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
6039
6040         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
6041         failing test.
6042
6043 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
6044
6045         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
6046         Linux doesn't care, having a minimum matches MS and keeps the window
6047         from becoming too small to use window decorations.
6048         [Fixes bug #338996]
6049
6050 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
6051
6052         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
6053         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
6054         control.  [Fixes bug #325419]
6055
6056 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
6057
6058         * ComboBox.cs: Guard against an NRE if the user open a new form from a
6059         SelectedIndexChanged event.  This closes the combobox dropdown, and we
6060         were trying to dispose it.  [Fixes bug #352830]
6061
6062 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
6063
6064         * Control.cs, Form.cs: Implement the necessary semantics for
6065         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
6066         to determine if a focus rectangle should be drawn.
6067         * PropertyGrid.cs: Fix property visibility to match override.
6068         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
6069
6070 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
6071
6072         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
6073         [Fixes bug #323552]
6074
6075 2008-01-09  Geoff Norton  <gnorton@novell.com>
6076         
6077         * XplatUICarbon.cs: Scroll windows in the correct direction.
6078
6079 2008-01-09  Geoff Norton  <gnorton@novell.com>
6080
6081         * XplatUICarbon.cs: Track all created utility windows so we can hide them
6082         when the app is deactivated or spaces is enabled.
6083
6084 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6085
6086         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
6087         extra separation pixel for the label rect origin if SmallImageList is
6088         null, and thus we don't need that separation between icon and label
6089         rects.
6090         Patch by Ernesto Carrea.
6091         Fixes # 340195.
6092
6093 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
6094
6095         * StatusStrip.cs: Invalidate after completing a layout.  The base
6096         OnLayout does this, but we don't call the base.
6097         * ToolStripItem.cs: Revert the previous change to invalidate after
6098         the item moves.
6099         [Fixes bug #351341 better.]
6100
6101 2008-01-07  Geoff Norton  <gnorton@novell.com>
6102
6103         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
6104         not a notification to exit the application.  Listen for WM_QUIT
6105         instead.
6106
6107 2008-01-07  Andreia Gaita <avidigal@novell.com>
6108
6109         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
6110
6111 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
6112
6113         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
6114         so it can repaint at the correct location.
6115         [Fixes bug #351341]
6116
6117 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6118
6119         * ListControl.cs: SelectedValue should return a null value if
6120         SelectedIndex is -1. Also, when setting it, it should throw an
6121         ArgumentNullException if the value is null, as well as taking
6122         into account the String.Empty value, instead of ignoring it (we have
6123         tests for that now).
6124         Fixes part of #324286.
6125
6126 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
6127
6128         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
6129         SelectionStart is updated after pressing enter.  Fixes bug #351918.
6130
6131 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
6132
6133         * TextControl.cs: Revert a piece r92316 that prevented the fix
6134         from working when there were multiple tags in the text box.
6135         Fixes bug #351881.
6136
6137 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
6138
6139         * TextControl.cs: Apply patch from Luke Page that prevents an
6140         NRE when determining the beginning of a paragraph.
6141         Fixes bug #351886.
6142
6143 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
6144
6145         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
6146         caret gets moved with clicking away from a selected block of
6147         text.  Fixes bug #351885.
6148
6149 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
6150
6151         * TextControl.cs: Apply patch from Luke Page that takes line
6152         alignment into account for mouse selection, so that center and
6153         right aligned text can be selected.
6154         Fixes bug #351881.
6155
6156 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
6157
6158         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
6159         issues after loading an RTF file by using the correct line feeds.
6160         Fixes bug #351841.
6161
6162 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
6163
6164         * TextControl.cs: When deleting multiple line selections, we need
6165         to invalidate every line beginning at the first line of the selection.
6166         Patch from Luke Page fixes bug #351791.
6167
6168 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6169
6170         * ListControl.cs: When getting a CurrencyManager.PositionChanged
6171         event, don't set SelectedIndex if the number of items is 1. This is
6172         because, for the first item, PositionChanged is fired _before_
6173         ItemChanged (the place where we actually populate the items), and
6174         leave us in a temporary invalid state (since items collection is
6175         empty).
6176         Fixes #349655.
6177
6178 2008-01-04  Geoff Norton  <gnorton@novell.com>
6179
6180         * XplatUICarbon.cs:  Create native toolwindows instead of
6181         the managed drawing ones.
6182
6183 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
6184
6185         * LineTag.cs: If the line doesn't have any characters, return
6186         0 for GetCharIndex.  Fixes an AOORE exception after certain
6187         caret movements.  Fixes bug #351683.  Patch by Luke Page.
6188
6189 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
6190
6191         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
6192         is hit when there is selected text, only the selected text gets
6193         deleted, not the character in front of the selection as well.
6194         Fixes bug #351578.
6195
6196 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6197
6198         * ComboBox.cs: When the values are displayed, calculate the
6199         ComboListBox scrollbar's LargeChange based on the visible area's
6200         height and  the actuall ItemHeight, instead of calculating it
6201         based on MaxDropItems value, since it's not used by our _current_ 
6202         2.0 profile.
6203         Fixes #332366.
6204
6205 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
6206
6207         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
6208         Patch from Luke Page that fixes issues with font colors and styles
6209         not showing up in a readonly RichTextBox.  Fixes bug #324354.
6210
6211 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
6212
6213         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
6214         from Luke Page.  This one fixes bug #349926.
6215
6216 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6217
6218         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
6219         an item in the IBindingList source changes with
6220         ListChangedType.ItemAdded. Ignore for now firing the event for other
6221         changes, since we want to have tests for those cases as well.
6222
6223 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
6224
6225         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
6226         created.
6227
6228 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
6229
6230         * TextBoxTextRenderer.cs: Implement a cache for measuring each
6231         character.  This is effective because the typical usage of a
6232         TextBox is with a limited amount of fonts and characters, and
6233         the current implementation of TextBox measures everything one
6234         character at a time.  Another second or two speedup for bug #347238.
6235
6236 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
6237
6238         * Control.cs: Rewrite the Font getter to only query the parent's
6239         Font property once instead of twice.  Since this operation is
6240         recursive, the queries were growing exponentially as the control
6241         tree got deeper.  Another second or two speedup for bug #347238.
6242
6243 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
6244
6245         * Control.cs: Avoid setting a parent (and more importantly, updating
6246         the zorder of all its children) if the parent is already correct in
6247         WmShowWindow.  Decreases the startup time of the test case on bug
6248         #347238 from 35 seconds to 11 seconds.
6249
6250 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6251
6252         * X11Dnd.cs: When the dnd operation has started and we are 
6253         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
6254         This is done to match .Net, which doesn't send those messages after
6255         dnd operation was completed/cancelled.
6256         Fixes #349922.
6257
6258 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
6259
6260         * ToolStrip.cs: Previous change should be != null, not == null.
6261         Thanks Gert!
6262
6263 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
6264
6265         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
6266         user may have moved the mouse off the current item during the event.
6267
6268 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6269
6270         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
6271         calling GetItemAt for every MouseMove event by also taking into
6272         account whether any mouse button is pressed (probably dragging); 
6273         if so, we can call GetItemAt, and if not, try to not call it 
6274         (GetItemAt can be quite expensive when used with a large number of items).
6275
6276 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6277
6278         * ListView.cs: Implement -finally- support for dnd, by calling
6279         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
6280         authors list ;-).
6281         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
6282         simple calculation of distances for all the items in the owner
6283         listview.
6284
6285 2007-12-21  Geoff Norton  <gnorton@novell.com>
6286
6287         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
6288         for windows that are originally created as invisible.  Fixes missing
6289         main window in paint-mono.
6290
6291 2007-12-21  Geoff Norton  <gnorton@novell.com>
6292
6293         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
6294         subclass handler for com.novell.mwfview subclassing HIView.  Implement
6295         Pasteboard and Dnd methods.
6296
6297 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6298
6299         * ListBox.cs: When we got focus, give focus to first item if there
6300         wasn't any pervious focused item. Also update navigation to depend on
6301         SelectedIndex rather than FocusedItem, just as .Net does.
6302         Fixes #349174.
6303
6304 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6305
6306         * ListBox.cs: Both FindString and FindStringExact methods must do an
6307         case insensitive search, should allow the last valid index to be
6308         passed in the overload taking an initial index, and should also
6309         continue searching from the top back to the specified index when it
6310         reaches the bottom.
6311
6312 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
6313
6314         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
6315         redraw issue, and allows RichTextBox to draw colored text even while
6316         disabled or readonly.
6317
6318 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
6319
6320         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
6321         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
6322         and doesn't grey text in a disabled RichTextBox.
6323
6324 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
6325
6326         * RichTextBox.cs: Apply patch from Luke Page that adds better support
6327         for many RTF commands: quad alignment, separate formatting for blocks
6328         inside groups, and ParDef support.  Makes the test case from bug #324589
6329         look much better.
6330
6331 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
6332
6333         * LineTag.cs: Fix an error in the new Draw method that caused
6334         a crash when rendering the document on bug #324589.
6335
6336 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
6337
6338         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
6339         TextControl.cs: Apply patch from Luke Page that adds support
6340         for URL links in RichTextBox.
6341         [Fixes enhancement #342516]
6342
6343 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
6344
6345         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
6346         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
6347
6348 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6349
6350         * ListBox.cs: When a key gets pressed, try to find a string
6351         if the key is a character or a digit.
6352         Fixes #343971.
6353
6354 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
6355
6356         * TableLayoutPanel.cs: Remove some unused variables.
6357
6358 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
6359
6360         * DateTimePicker.cs: Commit patch from Luke Page that ensures
6361         we don't end up at an invalid date when we click the up/down
6362         spinner to change the month or year.  Fixes bug #348682.
6363
6364 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
6365
6366         * Application.cs: Calling Exit in 2.0 should chain to the
6367         Exit (CancelEventArgs) version so it can be cancelled.
6368         * Form.cs: Create a flag to allow raising the Closing
6369         events to be skipped.  We raise them once in Application.Exit
6370         and don't want to raise them again when the Form is actually
6371         closed.  [Fixes bug #349073]
6372
6373 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
6374
6375         * ToolStripDropDown.cs: Guard against an NRE when there
6376         hasn't been a mainform set in the application context.
6377         [Fixes bug #349108]
6378
6379 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6380
6381         * ListBox.cs: When SetBoundsCore gets called, besides
6382         calling UpdateScrollBars, update the value of
6383         last_visible_index, since we could need to show more items
6384         than before, and we need to let the paint routines know that.
6385         Fixes #344445.
6386
6387 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6388
6389         * ListView.cs: Add DesignerSerializationVisibility attribute to
6390         InsertionMark property.
6391         * ListViewItem.cs: Add same attribute to Position property.
6392
6393 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6394
6395         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
6396         is 2.0 only.
6397
6398 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
6399
6400         * ThemeWin32Classic.cs: Don't draw the background on a
6401         flat button if there is a background image.
6402         [Fixes bug #348649]
6403
6404 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6405
6406         * ListBox.cs: If we remove the item currently selected,
6407         remove it not only from SelectedItems, but also
6408         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
6409         the items count decreased and focused_item has bigger value than that.
6410
6411 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
6412
6413         * Control.cs: Perform our layout after we resize ourselves
6414         if we had to adjust our AutoSize.  Missed commit for bug
6415         #346246.
6416
6417 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
6418
6419         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
6420         we can provide an implementation of AutoSize.
6421         [Fixes bug #346246]
6422
6423 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6424
6425         * ListBox.cs: Add the internal overload Sort (bool paint),
6426         to indicate whether we actually need a paint or we will
6427         call Refresh ourselves. This way we don't request a paint
6428         _before_ having an updated and valid layout.
6429         Fixes #347233.
6430
6431 2007-12-12  Andreia Gaita <avidigal@novell.com>
6432
6433         * XPlatUIX11.cs: Send paint messages when updating a systray icon
6434         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
6435         properly invalidated. 
6436         Fixes #324237
6437
6438 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6439
6440         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
6441         don't simply assign it to our internal group field, but instead 
6442         use our Group property, which should do all the neccessary work
6443         required to support groups. Fixes an issue reported to me (mail) by a 
6444         guy using this new feature.
6445
6446 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
6447
6448         * Control.cs: Use Scale instead of ScaleControl to ensure the
6449         whole hierarchy gets scaled.
6450         [Fixes bug #347282]
6451
6452 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
6453
6454         * DateTimePicker.cs: Don't set the internal MonthCalendar's
6455         Parent property.  Doing this causes the control to be hosted by
6456         the Form instead of being a popup window.
6457         [Fixes bug #347665]
6458
6459 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
6460
6461         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
6462         at an index higher than Count, just use Add instead of Insert.
6463         [Fixes bug #347669]
6464
6465 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
6466
6467         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
6468         DrawPictureBox, this is handled by Control.PaintBackground.
6469         [Fixes bug #347276]
6470
6471 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
6472
6473         * MenuAPI.cs: When process menu keys return true by default only if menu is
6474         active. Fixes bug #342892.
6475
6476 2007-12-09  Andreia Gaita <avidigal@novell.com>
6477
6478         * Control.cs: check if windows are actually mapped before
6479         trying to zorder. Fixes #342509, #346955
6480
6481 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6482
6483         * ListView.cs:
6484         * ListViewInsertionMark.cs:
6485         * ThemeWin32Classic.cs: Implement the drawing side of the
6486         new 2.0 ListView.InsertionMark property.
6487
6488 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
6489
6490         * CurrencyManager.cs: Silence some debug spew.
6491
6492 2007-12-07  Geoff Norton  <gnorton@novell.com>
6493         
6494         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
6495         masks for our children as well as siblings to avoid having to query
6496         Quartz for this information.
6497         * XplatUICarbon.cs: Implement a delegate based system to pass
6498         information to System.Drawing.  Implement Async methods.  Remove
6499         the hack for the resize thumb and imlpement a transparent Grow Box.
6500         Rework the messaging system to proplery create window's and messages,
6501         fixes TabControl.
6502
6503 2007-12-06  Andreia Gaita <avidigal@novell.com>
6504
6505         * X11Keyboard.cs: Use Xutf8LookupString to support international 
6506         characters under alternate codepages. Patch from #340878
6507
6508 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6509
6510         * ListView.cs: When doing layout computations, set position in the
6511         ListView instances (we cache the position just as .Net does).
6512         * ListViewItem.cs: New internal setter method for Position. Also set
6513         position field as also available in 1.1, since we are going to use it
6514         now in the common case.
6515
6516 2007-12-06  Andreia Gaita <avidigal@novell.com>
6517
6518         * Control.cs: When removing controls, get the actual container
6519         to notify about active control changes. Fixes 341314.
6520
6521 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6522
6523         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
6524
6525 2007-12-05  Andreia Gaita <avidigal@novell.com>
6526
6527         * Control.cs: When updating the zorder, ignore windows that are not
6528         mapped. Fixes #342509
6529
6530 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6531
6532         * ListViewItem.cs: Actually implement serialization on this class.
6533
6534 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
6535
6536         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
6537         LinkCollection. Spaces to tabs, and removed extra tabs.
6538
6539 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6540
6541         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
6542           tests to fail (hopefully).
6543
6544 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
6545
6546         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
6547         the image margin so custom renderers can correctly place it.
6548
6549 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
6550
6551         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
6552         so custom renderers can correctly place it.
6553
6554 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
6555
6556         * Application.cs: Let WM_CHAR messages flow through to controls
6557         hosted in Strips.  [Fixes bug #343972]
6558
6559 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
6560
6561         * ToolStripManager.cs: Guard against an NRE I ran into.
6562
6563 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
6564
6565         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
6566         a Link is manually added to the Links collection, we need to set
6567         its owner, so it can invalidate properly.
6568         [Fixes bug #344012]
6569
6570 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6571
6572         * ListView.cs: When changing ListViewItem.Position (which calls
6573         ListView.ChangeItemLocation), invalidate not only the area
6574         corresponding to the main item, but also to the area occupied
6575         by the items being moved.
6576
6577 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6578
6579         * ListView.cs: When changing the position of a given item,
6580         don't use item bounds, but item areas (which includes the item spacing
6581         between them). Also, use first/last position if the requested
6582         position is outside bounds (as .Net does). Invalidate the previous and
6583         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
6584         in a specific position, instead of directly accessing Items collection
6585         (this is done to get the right item - remember an Item can have a
6586         different position in the grid than in the Items collection).
6587
6588 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
6589
6590         * MessageBox.cs: Calculate text area instead of just top left, this rect 
6591         area will be used in DrawString. Fixes bug #343364.
6592
6593 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
6594
6595         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
6596         screen width. Partially fixes bug #343364.
6597
6598 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
6599
6600         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
6601         code inside recalculate, it makes code more simple.
6602
6603 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
6604
6605         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
6606         between update or add icon. Fixes bug #324344.
6607
6608 2007-11-21  Andreia Gaita <avidigal@novell.com>
6609
6610         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
6611         window manager, since that stretches the drawing area to include
6612         the window decorations, and they get hidden. Reverts r84444 and fixes
6613         #335849 and #342790 (mdi and pdn3 regression)
6614
6615 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6616
6617         * ListView.cs: When setting focused item, try to give focus to the
6618         previous one _only_ if the previous one remains valid. 
6619         Fixes #342504.
6620
6621 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
6622
6623         * Application.cs: Revert r89650, as it broke a common case to fix
6624         an obscure case.  Fixes bug #342606.
6625
6626 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
6627
6628         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
6629
6630 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
6631
6632         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
6633         alignment. [Fixes #324228]
6634
6635 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
6636
6637         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
6638         [Fixes bug #342123]
6639
6640 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
6641
6642         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
6643         it prevent problems when empty captions. [Fixes #342141]
6644
6645 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
6646
6647         * Label.cs: Use Size instead of None.  Fixes bug #342077.
6648
6649 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6650
6651         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
6652
6653 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
6654
6655         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
6656         but there isn't a MdiContainer.
6657         [Fixes bug #342358]
6658
6659 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
6660
6661         * TextControl.cs: Don't recalculate document if the recalc_start and
6662         recalc_end hasn't changed.
6663         [Fixes bug #342505]
6664
6665 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
6666
6667         * DataGridViewTextBoxCell.cs: Removed CWL.
6668
6669 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6670
6671         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
6672
6673 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
6674
6675         * TextControl.cs: Missed some code for bug 341534 to trigger a
6676         recalculation when the font changes.
6677
6678 2007-11-16  Andreia Gaita <avidigal@novell.com>
6679
6680         * Control.cs: When updating the zorder, check if the child to update is
6681         the same control that is set to always be on top (i.e., scrollbars), and 
6682         just put it on top directly. Fixes BadMatch error on pdn3
6683
6684 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6685
6686         * ListView.cs: Throw the needed exceptions for FindNearestItem.
6687
6688 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
6689
6690         * Control.cs: Don't perform a new layout when a label changes its text,
6691         cause label handles its own autosizing.
6692         [Fixes bug #342077]
6693
6694 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6695
6696         * ListView.cs: Implement 2.0 FindNearestItem methods.
6697
6698 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
6699
6700         * ToolStripPanel.cs: Make Join at least add the control to the panel,
6701         even if the rest of what Join does isn't supported.  Add some more
6702         support for vertical toolbars.
6703         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
6704         [Fixes the application breaking parts of bug #341998]
6705
6706 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
6707
6708         * ToolStripItem.cs: When determining if we have a check/image margin,
6709         we need to look at ShowCheckMargin as well as ShowImageMargin.
6710
6711 2007-11-15  Geoff Norton  <gnorton@novell.com>
6712
6713         * XplatUIOSX.cs: Rename to...
6714         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
6715         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
6716
6717 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
6718
6719         * KeysConverter.cs: The default values should be an array of Keys, not
6720         strings.  Also, the array has more values for 2.0.
6721         [Fixes bug #341851]
6722
6723 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
6724
6725         * Application.cs: Change ExecutablePath to use 
6726         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
6727         [Fixes bug #323552]
6728
6729 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
6730
6731         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
6732         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
6733         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
6734         be ignored.  Create a new GetLineEnding that can specify which types of
6735         line endings to look for.  On Insert, only create new lines for \n and \r\n.
6736         [Fixes bug #324274]
6737
6738 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
6739
6740         * TextBoxBase.cs: As we loop through each line changing the font, tell
6741         the document that the line needs to be recalculated.  Fixes bug #341534.
6742
6743 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
6744         [Another round of refactoring]
6745         * Line.cs: Add DeleteCharacters.
6746         * LineTag.cs: Add Delete.
6747         * TextBoxBase.cs: Update to use new methods.
6748         * TextControl.cs: Refactor the Delete* methods.
6749
6750 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
6751
6752         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
6753         the patch. [Fixes #324856]
6754
6755 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6756
6757         * ListView.cs:
6758         * ListViewItem.cs: Add an initial implementation of
6759         2.0 ListViewItem.Position getter.
6760
6761 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6762
6763         * ListView.cs: Add a reordered_items_indices array, to allow us
6764         to have a different sorting than that of Items (the sorting in Items
6765         could not match the actual sorting in screen). This is needed to
6766         implement a pair of 2.0 features.
6767         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
6768         actual position in the ListView grid, since it could have a position
6769         different than its Index (position in ListViewItemCollection). 
6770
6771 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
6772
6773         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
6774         not draw partial lines.
6775         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
6776         LineLimit flag from the base is preserved.
6777         Fixes the windows part of bug #338965.
6778
6779 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
6780
6781         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
6782         so that it can be canceled in KeyPress.
6783         Fixes bug #340078.
6784
6785 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6786
6787         * ListView.cs: In ItemControl, reset mouse-handling related
6788         fields even if we dont' have items (we still should reset them when
6789         we had items but then called Items.Clear). Partially based in a patch
6790         by George Giolfan.
6791         Fixes #338399.
6792
6793 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
6794
6795         * Application.cs: In ProductVersion first try AssemblyFileVersion
6796         before falling back to assembly version. Fixes bug #339787.
6797
6798 2007-11-08  Andreia Gaita <avidigal@novell.com>
6799
6800         * HtmlElement.cs: Implement InnerText setter.
6801         * WebBrowserBase.cs: Implement Navigated event support.
6802         Add flag to track when the browser "document" is ready to be retrieved.
6803         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
6804         Make sure browser document is ready before retrieving it.
6805         Clean up cached objects (document) when moving to a new page through
6806         any of the navigation methods.
6807         Use the new Mono.WebBrowser.INavigation interface to control navigation.
6808         Implement OnNavigated event.
6809
6810 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
6811
6812         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
6813         DrawLinkLabel, this is handled by OnPaintBackground.
6814         Fixes bug #339565, part II.
6815
6816 2007-11-07  Andreia Gaita <avidigal@novell.com>
6817
6818         * Control.cs: Revert r88915. Selecting text on a textbox depends on
6819         getting a Select call on click, so this call needs to be here for now.
6820         Unfixes #325809
6821
6822 2007-11-07  Geoff Norton  <gnorton@novell.com>
6823
6824         * OSXStructs.cs: Add the kEventClassApplication constants.
6825         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
6826         application is deactivated otherwise Menu overlays linger on top of
6827         other application windows.
6828
6829 2007-11-07  Geoff Norton  <gnorton@novell.com>
6830
6831         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
6832         dont support cursors yet anyways.  This allows Reflector to run.
6833
6834 2007-11-07  Geoff Norton  <gnorton@novell.com>
6835
6836         * XplatUIOSX.cs: Implement DragSize.
6837
6838 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6839
6840         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
6841         ItemControl, request the focus, as .Net does. This is needed after 
6842         Control does not request focus anymore when it receives a
6843         WM_LBUTTONDOWN.
6844
6845 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
6846
6847         * Label.cs: Make DrawImage internal so it can be called from Theme code.
6848         Remove the DrawImage call from OnPaint.
6849         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
6850         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
6851         but before we draw the text for DrawLabel and DrawLinkLabel.
6852         Fixes bug #339565.
6853
6854 2007-11-05  Andreia Gaita <avidigal@novell.com>
6855
6856         * Control.cs: Remove select call on click. Fixes #325809
6857
6858 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6859
6860         * ListViewItem.cs: Add 2.0 Position property getter.
6861
6862 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6863
6864         * ListView.cs: Add 2.0 BackgroundImageTiled property.
6865         Also, to make it work properly, change item's BackColor and
6866         BackgroundImageLayout as needed.
6867         * ThemeWin32Classic.cs: Don't fill any background rectangle 
6868         in ListView.ItemControl when drawing items; just let the Control
6869         base implementation fill it.
6870
6871 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6872
6873         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
6874         as well as adding a custom 'dummy' Converter, as .net does.
6875
6876 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6877
6878         * PropertyGridView.cs: When clicking drop-down button,
6879         select an index in the listbox only if our standard values collection 
6880         has one or more items.
6881
6882 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6883
6884         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
6885         property.
6886
6887 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
6888
6889         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
6890         the value is not changed. This ensure a pushed button remains in that
6891         state when clicked again. When switching the value of PropertySort
6892         between Categorized and CategorizedAlphabetical, do not update the
6893         grid items and do not fire a PropertyChangedEvent. When clicking the
6894         sorting buttons, do not modify the PropertySort value when switching
6895         between Categorized and CategorizedAlphabetical but only update the
6896         button state.
6897
6898 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
6899
6900         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
6901         formatting.
6902         * PropertyGrid.cs: Also put Categorized button in pushed state when
6903         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
6904         for help description label.
6905
6906 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6907
6908         * ListView.cs: When calculating the biggest item for a given column,
6909         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
6910         the item's width.
6911
6912 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
6913
6914         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
6915         value for PropertySort on 1.0 profile. PropertySortChanged event
6916         should only be fired on 2.0 profile. Fixed NullReferenceException
6917         in UpdateSortLayout when PropertyGrid contains no items.
6918
6919 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
6920
6921         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
6922         [Fixes bug #338554]
6923
6924 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6925
6926         * ListViewItem.cs: Implement 2.0 IndentCount property.
6927
6928 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6929
6930         * X11Dnd.cs: When sending status in a dnd operation, compare current
6931         effect with the 'allowed' field instead of 'drag_data.Allowed', since
6932         the later is only created when a Winforms application is both the
6933         source and the target, but not when we are the target only.
6934         Fixes part of #324251.
6935
6936 2007-11-01  Geoff Norton  <gnorton@novell.com>
6937
6938         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
6939         order of Z-Order.
6940         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
6941         children out of the drawing view on mac.
6942         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
6943         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
6944         
6945 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
6946
6947         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
6948         on the non-hosted-control part of it shouldn't do anything.
6949         Fixes part of bug #327498.
6950
6951 2007-11-01  Andreia Gaita <avidigal@novell.com>
6952
6953         * WebBrowserBase.cs: revert previous change, resize can be called anytime
6954
6955 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
6956
6957         * Application.cs: When a toolstrip has the keyboard input loop, let messages
6958         it does not use flow through to controls that are hosted in menus.
6959         Same with mouse clicks.
6960         * Form.cs: Don't close all menus on click if the click is on a
6961         control hosted in a menu.
6962         Fixes part of bug #327498, and part of bug #325969.
6963
6964 2007-10-31  Andreia Gaita <avidigal@novell.com>
6965
6966         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
6967
6968 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
6969
6970         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
6971         Addresses an issue raised in bug #336218.
6972
6973 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
6974
6975         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
6976         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
6977
6978 2007-10-30  Andreia Gaita <avidigal@novell.com>
6979
6980         * ContainerControl.cs: Check if the active control is a
6981         child of a removed control and update active_control accordingly.
6982         Fixes #329718
6983
6984 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
6985
6986         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
6987         or the MaxDate.  Fixed bug #337693.
6988
6989 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
6990
6991         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
6992         after calling SetWindowLong for a form, to force an immediate NC refresh.
6993         Fixes first part of bug #325150.
6994
6995 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
6996
6997         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
6998         simple.  Fixes the last part of bug #322668.
6999
7000 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
7001
7002         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
7003         needs to be TopMost as well, or else the MessageBox is under the form.
7004         Patch by George fixes bug #325300.
7005
7006 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7007
7008         * X11Dnd.cs: When starting a new drag operation, reset the static
7009         'dropped' field to false (previously the implementation didn't reset
7010         it and got confused after the first drag).
7011         Fixes #325071.
7012
7013 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7014
7015         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
7016         items instead of re-creating them all. For this purpose we now cache
7017         both CategoryGridEntry items and the GridEntries for the main object's
7018         properties.
7019         * GridItem.cs: Make SetParent method abstract.
7020         * GridEntry.cs: Override the SetParent method (already there, but now
7021         we override it).
7022         Fixes #324866.
7023
7024 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7025
7026         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
7027         depending on its depth (as .Net does). Update the needed values in
7028         MouseDown handler. Also draw the plus/minus rect after the label,
7029         so we don't draw on top of it.
7030
7031 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
7032
7033         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
7034         processed by forms or controls when menu is active. [Fixes #333548]
7035
7036 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
7037
7038         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
7039         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
7040         focus on mouse over.
7041
7042 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
7043
7044         * TextControl.cs: Code cleaning, simplifying.
7045
7046 2007-10-24  Geoff Norton  <gnorton@novell.com>
7047
7048         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
7049         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
7050
7051 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
7052
7053         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
7054         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
7055
7056 2007-10-24  Andreia Gaita <avidigal@novell.com>
7057
7058         * SendKeys.cs: apply jpobst's patch to bug #332409
7059
7060 2007-10-23  Andreia Gaita <avidigal@novell.com>
7061
7062         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
7063         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
7064         for some reason
7065
7066 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7067
7068         * PropertyGridView.cs: If a property has an UIEditor available,
7069         make the drop-down/editor button available only if the property
7070         is _not_ read only.
7071
7072 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7073
7074         * PropertyGridView.cs: Don't make the grid item textbox 
7075         editable when a drop-down control is available, but 
7076         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
7077         true. The same bur the color of the grid item value's label.
7078
7079 2007-10-22  Geoff Norton  <gnorton@novell.com>
7080
7081         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
7082         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
7083         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
7084         driver.  Padd the bottom of all real windows so the resize thumb doesn't
7085         obscure scroll/status bars.
7086
7087 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
7088
7089         * WindowsFormsSection.cs: Implement.
7090
7091 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
7092
7093         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
7094         closed see #325434 patch.
7095
7096 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
7097
7098         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
7099         see #325434 patch.
7100
7101 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7102
7103         * PropertyGridView.cs: When showing the textbox for a grid item,
7104         have two local variables to store the read-only and non-editable
7105         status of a grid item (we were previously using just one variable
7106         to do this, when actually they are slightly different).
7107         Fixes part of #325023.
7108
7109 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7110
7111         * PropertyGridView.cs: When showing a drop-down list, try to get the
7112         values using TypeConverter.ConvertTo (to convert to a string). Fixes
7113         part of #325023.
7114
7115 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7116
7117         * PropertyGrid.cs: When updating a property and populating sub grid
7118         items, remove the previous ones, and invalidate the specific area.
7119         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
7120         area behind a grid item.
7121         * GridItemCollection.cs: Add an internal Clear method, to allow us to
7122         clean the items if needed (specially for controls implementing 
7123         ICustomTypeDescriptor and returning a variable number of properties).
7124         Fixes #324865.
7125
7126 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
7127
7128         * TextControl.cs: Clean up and document the Insert function.
7129
7130 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
7131
7132         * TextControl.cs: Make sure we know our start point for updating the view
7133         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
7134         update the view.
7135
7136 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
7137
7138         * ListView: Couple of corcompare fixes.
7139
7140 2007-10-17  Geoff Norton  <gnorton@novell.com>
7141
7142         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
7143         the title caption of real window.
7144
7145 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
7146
7147         * ErrorProvider.cs: Add the error provider's internal window to a 
7148         containercontrol when the parent changes.  [Fixes bug #329714]
7149
7150 2007-10-17  Geoff Norton  <gnorton@novell.com>
7151
7152         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
7153         When we make a new window; restore the old active window - fixes dialogs.
7154
7155 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7156
7157         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
7158         when modifying a property, and if found then invalidate as
7159         requested.
7160         Fixes part of #324865.
7161
7162 2007-10-17  Geoff Norton  <gnorton@novell.com>
7163
7164         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
7165         highly experimental.  Fixed coordinate translation.  Fixed window locations.
7166         Initial support for clipping. Implemented NC areas and menus.  Support for
7167         launching from command line from Will Johansson (wjohansson@atacomm.com).
7168         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
7169         wjohansson@atacomm.com)
7170         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
7171         Hwnds now track the existence of all of their children for Mac clipping.
7172     * XplatUI.cs: Re-enabled the native driver on the Mac.
7173
7174 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
7175
7176         * Line.cs: Move the InsertString function to here.
7177         * TextControl.cs: Cleanup some duplicate code, move some InsertString
7178         functionality to Line.
7179
7180 2007-10-17  Geoff Norton  <gnorton@novell.com>
7181
7182         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
7183
7184 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
7185
7186         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
7187         always setting value to true.
7188         * Form.cs: When changing AcceptButton, notify new and original button.
7189
7190 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
7191
7192         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
7193         a custom control that implements IButtonControl instead of an actual
7194         button.  [Fixes bug #334244]
7195
7196 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
7197
7198         * Form.cs: Change SelectActiveControl to internal, we need to call it in
7199         MdiWindowManager.
7200         
7201         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
7202         active control when activate a new mdi window.
7203         
7204         [Fixes bug #330495]
7205
7206 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
7207
7208         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
7209         is already added.
7210         [Fixes bug #333617]
7211
7212 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
7213
7214         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
7215         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
7216         so we always recalculate the whole document instead of just the new part.
7217         [Fixes bug #325082]
7218
7219 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
7220
7221         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
7222         when the mouse was to the left of the first character in the line.
7223
7224 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
7225
7226         * TextBox.cs, TextBoxBase.cs: When setting the document's password
7227         character, use the property instead of the variable so that the
7228         UseSystemPasswordChar property is taken into account.
7229         [Fixes bug #333748]
7230
7231 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7232
7233         * FolderBrowserDialog.cs: When a node is right clicked and the "New
7234         folder" contex menu appears, actually add the new folder to it, even
7235         if the node is not currently selected. Still use SelectedNode in case 
7236         there wasn't found a node under the pointer.
7237         Fixes #325452.
7238
7239 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7240
7241         * ListViewItem.cs: When retrieving the focused state, the index check
7242         should be done only when ListView is in virtualmode, as it is an
7243         expensive check for normal mode.
7244
7245 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7246
7247         * ListViewItem.cs: Make the focus state information be stored
7248         in the ListView, not in the items. This is done to match the MS
7249         behaviour for items that are not yet part of a ListView control;
7250         besides that, since just one item can be focused at the same time,
7251         we save a little space in our items.
7252         Fixes part of #331643.
7253
7254 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
7255
7256         * ComboBox.cs: When focus is lost, deselect the text. When setting
7257         text of control, select all text. Do not hide selection when control
7258         does not have focus. Fixes bug #333663.
7259
7260 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
7261
7262         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
7263         instead of ArgumentException when SelectionLength is set to negative
7264         value. Added same check to SelectionStart. Code formatting.
7265
7266 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
7267
7268         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
7269         or SelectionStart. Code formatting.
7270
7271 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7272
7273         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
7274         indicating that there was not a previous drag-and-drop operation going
7275         on.
7276         Fixes part of #325071.
7277
7278 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7279
7280         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
7281         AllowedEffect, don't let the drop operation happen. 
7282         Fixes #32580.
7283
7284 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
7285
7286         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
7287
7288 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
7289
7290         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
7291         is called.
7292
7293 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
7294
7295         * Line.cs: Add a method that finds the tag that contains an x-coord.
7296         * LineTag.cs: Add a method that finds the character at an x-coord using
7297         a binary search, the old way was a linear search.
7298         * TextControl.cs: Change FindCursor to use the above new methods.
7299
7300 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7301
7302         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
7303         value different than AllowedEffect). This should be possible to
7304         indicate that dragging is not possible in some control/area.
7305
7306 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
7307
7308         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
7309         descent internally when font changes instead of outside code being responsible
7310         for setting it.
7311         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
7312         instead of accessing internal variables.
7313
7314 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
7315
7316         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
7317         remove special treatment for ArrangeIcons since it is already arranged.
7318
7319 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
7320
7321         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
7322         the Win32 backend uses Color.
7323         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
7324         Refactor to store a Color instead of a Brush for Color.
7325
7326 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
7327
7328         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
7329         away.  I didn't realize I needed this when I refactored these earlier.
7330
7331 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
7332
7333         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
7334         store a Color structure and use the ResPool for back color instead of
7335         holding onto brushes.
7336
7337 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
7338
7339         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
7340         [Fixes bug #325592]
7341
7342 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
7343
7344         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
7345         to recalculate its size.  Fixes a part of bug #331052.
7346
7347 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
7348
7349         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
7350         button.  Fixes a part of bug #331052.
7351
7352 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
7353
7354         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
7355         the CreateParams.
7356         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
7357         decorations.
7358         [Fixes bug #330986]
7359
7360 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
7361
7362         * TextBoxTextRenderer.cs: Don't make this a static class, as static
7363         doesn't exist in 1.1.  (Thanks jb!)
7364
7365 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
7366
7367         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
7368         class to allow us to use different backends on different platforms.
7369         Linux uses the current [Draw|Measure]String backend.  Windows uses
7370         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
7371         of GDI+.  This leads to better looking text and more accurate measurements
7372         on Windows, fixing many of the reported issues.
7373         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
7374
7375 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7376
7377         * FolderBrowserDialog.cs: When running on Windows,
7378         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
7379         since we must match both "C:" and "C:\" forms. A little hackish, but
7380         works.
7381         Fixes #325247.
7382
7383 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7384
7385         * ListView.cs: When calling EndEdit (after editing an item),
7386         create a new instance of LabelEditEventArgs to keep clean the fields
7387         in case we get a new call to BeginEdit; also do Application.DoEvents
7388         to have focus in synch. This is a fix similar to TreeView's #325244.
7389
7390 2007-10-07  Andreia Gaita <avidigal@novell.com>
7391
7392         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
7393         * WebBrowserBase.cs: Added dialog support, calling the
7394           WebBrowserDialogs classes for each specific dialog type.
7395
7396 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7397
7398         * ListView.cs: When the last item is focused and is removed,
7399         move the focus to the previous item (in Items order). This is what MS
7400         does.
7401         Fixes #330415.
7402
7403 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7404
7405         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
7406         instead of the opposite (RemoveAt call Remove). This is a better
7407         approach since we don't need to to a pair of traversals when using
7408         RemoveAt.
7409
7410 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7411
7412         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
7413         check that the node actually has nodes, and if not, move to the
7414         parent node instead. 
7415         Fixes #325265.
7416
7417 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7418
7419         * TreeView.cs: Move the previous change to the general case (to
7420         call Application.DoEvents in cases where the method was called by
7421         different places).
7422
7423 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7424
7425         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
7426         call Application.DoEvents. This is neccessary when we get a call to
7427         BeginEdit from an AfterLabelEdit handler, because the focus always
7428         goes to the TreeView, even if we try to give it to our
7429         LabelEditTextBox. The call do Application.DoEvents seems to
7430         synchronize the focus, basically.
7431         Fixes #325244.
7432
7433 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7434
7435         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
7436         should be false. This also removes some nasty recursive paths. Fixes
7437         part of #325244.
7438
7439 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
7440
7441         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
7442         state to normal. Also resize window when cascading. Fixes #325433. 
7443
7444 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
7445
7446         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
7447         DefaultForeColor, as drawing empty colored lines isn't very useful.
7448         [Fixes the not drawn lines part of bug #324358]
7449
7450 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
7451
7452         * TextControl.cs: Move Line and LineTag classes into separate files to
7453         make things easier to find.
7454         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
7455         * RichTextBox.cs: Capitalize LineTag.Length property access.
7456         - This is purely an organizational/formatting change, no logic changed. -
7457
7458 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
7459
7460         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
7461         text is empty.
7462
7463 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
7464
7465         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
7466         text is empty.
7467
7468 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
7469
7470         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
7471         prevent calling of OnBackColorChanged. Fixes #325321.
7472
7473 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
7474
7475         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
7476         because control can be disabled because owner is disabled.
7477
7478 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
7479
7480         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
7481         string.Empty, test failed from previous change.
7482
7483 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
7484
7485         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
7486         is null, not String.Empty.  See bug #323038.
7487
7488 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
7489
7490         * TextControl.cs: Change the margins to match MS a little better.
7491         Still not perfect for X11 due to some DrawString differences, but
7492         is still an improvement over the old stuff.
7493         Partially fixes #324467.
7494
7495 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7496
7497         * FolderBrowserDialog.cs: When using MyComputer as 
7498         RootFolder, let absolute paths be considered as valid ones. Also, use
7499         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
7500         for Windows compatibility.
7501         Partially fixes #325247.
7502
7503 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7504
7505         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
7506         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
7507         method, since it causes the dialog to not select folders directly
7508         under the root path (when setting SelectedPath property).
7509
7510 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7511
7512         * TreeNode.cs: When calling Expand/Collapse and need to call 
7513         ExpandBelow/CollapseBelow respectively, take into account
7514         partially visible nodes (previously Expanding/Collapsing
7515         a partially visible node in the bottom was not updating its +- sign).
7516
7517 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7518
7519         * TreeView.cs: When calling Expand on a TreeNode, and we need to
7520         expand nodes below (ExpandBelow), scroll the entire Viewport
7521         area if the node is above it and not visible (instead of scrolling
7522         the area from node's Bottom, which applies only when the node is
7523         visible).
7524         Fixes #325266.
7525
7526 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7527
7528         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
7529         node in the bottom area (as .Net does). This is done to preserve the
7530         scroll position when ExpandAll is called before handle is created for
7531         the 1.1 profile (bottom area, as opposed to top area in 2.0).
7532         Fixes #324103.
7533
7534 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7535
7536         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
7537         bottom area if we are in fact not using the vertical scroll bar.
7538         Fixes #324824.
7539
7540 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
7541
7542         * Control.cs: Comment out a double buffering optimization that doesn't
7543         take into account invalidates created in OnPaint, causing the control
7544         to never be redrawn.  It would take quite a bit of work to work around
7545         this, but I left it commented with an explanation for later possible
7546         optimization.
7547         [Fixes bug #328681]
7548
7549 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
7550
7551         * Control.cs: Ask parent to perform a layout if control is AutoSize and
7552         the text changes.
7553         * RadioButton.cs: Implement GetPreferredSizeCore.
7554         [Fixes bug #328672]
7555
7556 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
7557
7558         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
7559         corcompare stuffs.
7560
7561 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
7562
7563         * Application.cs: Move the sync context stuff to Run instead of RunLoop
7564         so that it doesn't get uninstalled on modal forms.
7565         * Control.cs: Install a sync context when a control is created.
7566         * WindowsFormsSyncronizationContext.cs: Create a private static control
7567         to invoke on.  This is easier than trying to find a created control we
7568         can use.
7569         [Fixes bug #327608]
7570
7571 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
7572
7573         * Application.cs: Install a WindowsFormsSynchronizationContext in the
7574         run loop, and uninstall it when done.
7575         * WindowsFormsSynchronizationContext.cs: Implement.
7576         [Fixes the common case in bug #327608]
7577
7578 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
7579
7580         * DataGridViewCellCollection.cs: Added argument checks for indexers.
7581         Use case-insensitive lookup of column name in indexer. Code
7582         formatting.
7583
7584 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7585
7586         * TreeNode.cs: When collapsing or expanding a node, check whether its
7587         change will affect the visible area (we were previously doing a
7588         IsVisible check, but that check is not enough since children nodes
7589         could be still visible). Fixes part of #325266.
7590
7591 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
7592
7593         * TreeView.cs: Always select the first node when the TreeView gets
7594         focus if there is no currently selected node.
7595         [Fixes bug #324279]
7596
7597 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
7598
7599         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
7600         node being selected is null.
7601         [Patch from Yves Bastide fixes bug #326858]
7602
7603 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7604
7605         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
7606         whether all the parent nodes are expanded.
7607         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
7608         call RecalculateVisibleOrder if all previous nodes are expanded.
7609         Before that we were doing a IsVisible check, but sometimes the node
7610         is not in the visible area, but _should_already be ready, because of
7611         all previous nodes are expanded. Fixes #325259.
7612
7613 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
7614
7615         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
7616         portion of the item is clicked.
7617
7618 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
7619
7620         * TextControl.cs: Do not tell the system to move the cursor if the
7621         textbox isn't focused.  Fixes part of bug #322668.
7622
7623 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
7624
7625         * ComboBox.cs: When there are no items, do not show the dropdown if
7626         the down arrow is clicked.  Fixes part of bug #322668.
7627
7628 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
7629
7630         * ToolStripComboBox.cs: Manually set the size of this control in the
7631         constructor, as it doesn't seem to be the same as DefaultSize.
7632         Fixes a failing monobuild test.
7633
7634 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
7635
7636         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
7637         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
7638
7639 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
7640
7641         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
7642         Desktop.  This lets it work for people who have moved their desktops
7643         from the default location on windows.  For people who have not, both
7644         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
7645
7646 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
7647
7648         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
7649         but when the base constructor sets this, the control is null.  Set it
7650         again in the constructor.  Fixes a failing monobuild test.
7651
7652 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
7653
7654         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
7655         get called.
7656         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
7657         called.
7658
7659 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
7660
7661         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
7662         will handle it themselves.
7663         * ToolStripItem.cs: When deciding what the text of a tooltip should
7664         be, use the Text property instead of the text field.
7665         * ToolStripTextBox.cs: Handle tooltips.
7666         [Fixes bugs #325417 and #325973]
7667
7668 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
7669
7670         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
7671         left click.  Fixes the easy part of bug #325969.
7672
7673 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
7674
7675         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
7676         bug #325406, but set a minimum for StatusStrip to 22 to keep
7677         bug #325390 fixed.  I think this minimum would have been figured
7678         up automatically if the grip was actually a ToolStripItem, but it
7679         currently is not.
7680
7681 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7682
7683         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
7684         as this is apparently the actual value used by .Net. Also apply
7685         ItemPadding in Details view only, and decrease the general width padding,
7686         to have only the needed. This should fix #324340 in Windows too.
7687
7688 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7689
7690         * ListViewItem.cs: Don't Invalidate item if parent is inside
7691         a BeginUpdate/EndUpdate block. This prevents to have differences
7692         between the ListView and items state, as well as avoid some exceptions
7693         there.
7694         * ListView.cs: Make 'updating' field internal.
7695
7696 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
7697
7698         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
7699         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
7700         size if appropriate.
7701         Fixes reopened bug #325414.
7702
7703 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
7704
7705         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
7706         * ToolStripItem.cs: Invalidate before and after our new autosize when
7707         text changes.
7708         Fixes reopened bug #325390.
7709
7710 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
7711
7712         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
7713         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
7714         #325044.
7715
7716 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
7717
7718         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
7719
7720 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7721
7722         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
7723         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
7724         #82734.
7725
7726 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
7727
7728         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
7729         item to select when the ToolStrip is selected.
7730         * ToolStripControlHost: Realign the control when the bounds or visibility
7731         change.
7732         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
7733         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
7734         preferred height.
7735         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
7736         base.OnPaint.  Was causing text not to be drawn.
7737
7738 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
7739
7740         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
7741
7742 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7743
7744         * TreeView.cs: When creating the label edit text box,
7745         set is initially to Visible = false. This is done to
7746         prevent a confusion in the layout which makes it to lose
7747         focus when shown the first time. Fixes part of #82592.
7748
7749 2007-09-13 Andreia Gaita <avidigal@novell.com>
7750
7751         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
7752
7753 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
7754
7755         * ToolStrip.cs: Take Margin into account when calculating preferred
7756         size.  Also, allow preferred size to get smaller than the explicit
7757         size.
7758         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
7759         First step towards fixing bug #82747.
7760
7761 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
7762
7763         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
7764         full row select background over the plus/minus glyph.  Also, turn
7765         off the focus rectangle for full row select since MS doesn't seem
7766         to ever paint it.  [Fixes bug #81839]
7767
7768 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
7769
7770         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
7771         This was causing keyboard opened dropdowns to lose focus.
7772         [Fixes bug #82803]
7773
7774 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
7775
7776         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
7777         ClientRectangle instead.  [Fixes bug #82838]
7778
7779 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
7780
7781         * SplitContainer.cs: We can't reset Visible on every layout because
7782         someone may have set Visible = false explicitly on a SplitterPanel.
7783         Make sure when we switch orientation the SplitterDistance does not
7784         change.  Fixes two failing tests.
7785
7786 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7787
7788         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
7789         TextRenderer, since the latter is only available in 2.0.
7790
7791 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
7792
7793         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
7794         * SplitContainer.cs: Implement FixedPanel layouting.
7795
7796 2007-09-12  Andreia Gaita  <avidigal@novell.com>
7797
7798         * WebBrowserBase.cs: setup shutdown routine
7799
7800 2007-09-12  Andreia Gaita  <avidigal@novell.com>
7801
7802         * Application.cs: Let keyboard events that are targetted 
7803                 to non-mwf windows hosted inside mwf (as in, webbrowser),
7804                 propagate properly. Fixes keyboard handling on the webbrowser.
7805
7806 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7807
7808         * ListView.cs: When handling MouseUp event and we are 
7809         highligting a node with the mouse right button, don't trigger
7810         Before/AfterSelecting event, since we are not actually selecting
7811         the node.
7812
7813 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7814
7815         * TreeView.cs: When editing a node, modify the edit text box
7816         depending on the text length (as you are typing), like MS does.
7817
7818 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
7819
7820         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
7821         Override GetPreferredSizeCore to perform calculations.  Remove custom
7822         autosize logic.  [Fixes bug #82739]
7823
7824 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
7825
7826         * TextBoxBase.cs: Modified should default to false.
7827
7828 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
7829
7830         * Control.cs: Update the anchoring distances even when layout is supspended.
7831         Patch provided by George fixes bug #82805.
7832
7833 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
7834
7835         * Control.cs: Provide a setter for ExplicitHeight.
7836         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
7837         remove the hacks in here for requested_height.
7838         [Fixes bug #82749]
7839
7840 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
7841
7842         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
7843         Maximum to lower that its current Value caused an ArgumentException by setting
7844         the Value to the new Maximum.
7845
7846 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
7847
7848         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
7849         handle moves to the closest tick when it is being dragged.
7850         [Fixes bug #82751]
7851
7852 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
7853
7854         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
7855         can't let them count as real items when calculating where to merge in the
7856         user's items.  [Fixed bug #82786]
7857
7858 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
7859
7860         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
7861         who want to add a menu item directly onto a toolstrip.
7862         [Fixes bug #82775, part II]
7863
7864 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
7865
7866         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
7867         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
7868         don't set it to available.
7869         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
7870         [Fixes bug #82727, part II]
7871
7872 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
7873
7874         * StatusStrip.cs: Change item placement to None if not visible.
7875         * ToolStripItem.cs: Invalidate when InternalVisible changes.
7876         These should have been committed to fix 82723, but I missed them.
7877
7878 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
7879
7880         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
7881         Click, and that it is only called once.
7882         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
7883         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
7884         dropped down.
7885         [Fixes bug #82775]
7886
7887 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7888
7889         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
7890         to match .Net.
7891         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
7892         instead of 8, just like above. Partially fixes #82734.
7893
7894 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7895
7896         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
7897         fixes #82734.
7898
7899         * ListView.cs: Remove extra space between rows in Details view (match
7900         .Net). 
7901         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
7902         the DefaultFont.
7903
7904 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
7905
7906         * Application.cs: Modified ProductVersion to return value of
7907         AssemblyInformationVersion if available, and fallback to assembly
7908         version. Fixes bug #82746. Code formatting.
7909         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
7910         instead.
7911
7912 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7913
7914         * Control.cs: When updating ZOrder for a child control,
7915         take into account the implicit ones (we need it in our controls
7916         using them). Fixes #82642.
7917
7918 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
7919
7920         * ToolStripItem.cs: Add support for animated images.
7921         [Fixes bug #82726]
7922
7923 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
7924
7925         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
7926         visible.  [Fixes bug #82727]
7927
7928 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7929
7930         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
7931         so we repaint using the new size.  [Fixes bug #82723]
7932
7933 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7934
7935         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
7936         option.  [Fixes bug #81779]
7937
7938 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7939
7940         * TreeView.cs: Override HandleClick because the StandardClick style is
7941         set to false.  According to MSDN (and testing), the click events should
7942         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
7943
7944 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7945
7946         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
7947         the border will disappear.  Fixes reopened #82653.
7948
7949 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7950
7951         * Control.cs: If the control is autosize, and its preferred size changes
7952         when it lays out its children, tell its parent so it can be re-layed out.
7953         Fixing some of the fallout from r85433.
7954
7955 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7956
7957         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
7958         and CheckBox share some code.
7959
7960 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7961
7962         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
7963         the TrackBar, not every mouse move.  [Fixed bug #82718]
7964
7965 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7966
7967         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
7968         under 2.0 rendering.  [Fixes bug #82657]
7969
7970 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7971
7972         * TreeView.cs: If we found a TreeNode to display a context menu, but
7973         it doesn't have one to show, let the TreeView display its menu
7974         instead.  [Fixes bug #82680]
7975
7976 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7977
7978         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
7979         OnPaintInternal instead.  Give the internal TextBox a Border property
7980         so it can draw itself more correctly.  [Fixes bug #82653]
7981
7982 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
7983
7984         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
7985
7986 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
7987
7988         * ComboBox.cs: Adjust combobox button state to reflect current state when
7989         back to enabled = true. Fixes first issue of #82654.
7990
7991 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
7992
7993         * Control.cs: Fix last patch regression, prevent forms to update zorder when
7994         setting visible property.
7995
7996 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
7997
7998         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
7999         fix zorder for controls initially created as non visible. Fixes #82667.
8000
8001 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
8002
8003         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
8004         mimic win32 look. Fixes #82656.
8005
8006 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
8007
8008         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
8009         Stubs for new net 3.5 classes.
8010
8011 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8012
8013         * ListViewItem.cs: In ListViewItemCollection operations calculate
8014         Layout for owner as well as invalidate it. Fixes part of #82642.
8015
8016 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
8017
8018         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
8019         when returning Enabled.  [Fixes bug #82651]
8020
8021 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
8022
8023         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
8024
8025 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8026
8027         * ListView.cs: Put item padding info in a single place
8028         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
8029         columns again.
8030         * ThemeWin32Classic.cs:
8031         * Theme.cs: Likewise.
8032
8033 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8034
8035         * ListView.cs: When a ListViewSubItem instance is invalidated,
8036         invoke Invalidate on parent ListViewItem, not parent ListView.
8037         Fixes #81570.
8038
8039 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
8040
8041         * ListView.cs, ListViewItem.cs: corcompare stuffs.
8042
8043 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
8044
8045         * BindingMemberInfo.cs: Implement == and != operators.
8046
8047 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
8048
8049         * HtmlElementEventArgs.cs: Implement properties.
8050
8051 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
8052
8053         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
8054
8055 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
8056
8057         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
8058         Add (string,string,string) to implement the imagekey.  It turns out, we
8059         use the requested imagekey whereas .Net does not.  So I broke ours to match
8060         theirs.  :(
8061
8062 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
8063
8064         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
8065
8066 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
8067
8068         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
8069
8070 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
8071
8072         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
8073         up-to-date. Fixes bug #82618.
8074
8075 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
8076
8077         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
8078         reflect document changes. Fixes #82367.
8079
8080 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8081
8082         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
8083         as well as add new ones. This should make work the BackgroundImage
8084         property for ListView again.
8085
8086 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
8087
8088         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
8089         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
8090         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
8091
8092 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
8093
8094         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
8095         IsKeyLocked.
8096
8097 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
8098
8099         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
8100         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
8101
8102 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
8103
8104         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
8105         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
8106
8107 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
8108
8109         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
8110
8111 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
8112
8113         * GridEntry.cs: Implement GetService.
8114
8115 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
8116
8117         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
8118         for label editting, make sure we focus back on the TreeView.
8119         [Fixes bug #82590]
8120
8121 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8122
8123         * ListView.cs: Add some 2.0 overrides.
8124
8125 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
8126
8127         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
8128         because getter dont returns right value before handle creation. Thanks 
8129         to George. Fixes #82569.  
8130
8131 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
8132
8133         * Theme.cs: Revert last patch, it causes error under win32. 
8134
8135 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
8136
8137         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
8138         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
8139         logical Desktop rather than the physical file system location. Fixes #82603. 
8140
8141 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
8142
8143         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
8144         for the patch. Fixes #82568.
8145
8146 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8147
8148         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
8149         methods.
8150
8151 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8152
8153         * ListViewInsertionMark.cs: New stubbed class.
8154
8155 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
8156
8157         * FolderBrowserDialog.cs: When adding folder, immediately create the
8158         directory with temporary name and rename the directory when editing
8159         finishes. This matches MS. Ensure the node for the new folder is 
8160         selected and LabelEdit is disabled, when editing is either finished
8161         or cancelled.
8162
8163 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
8164
8165         * TreeView.cs: When editing label of node, ensure node is visible.
8166
8167 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
8168
8169         * PropertyGridView.cs: Set the value only if it has changed.
8170
8171 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8172
8173         * ListView.cs: Some more code refactoring to add support sorting
8174         with groups (now for Details view). Remove unused code also.
8175
8176 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
8177
8178         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
8179         Not a big fan of reacting immediately to a field in an EventArg, but that's
8180         the way it's done.  (This is part of the previous commit that got left out.)
8181
8182 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
8183
8184         * FolderBrowserDialog.cs: Removed need for separate description field.
8185         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
8186         has focus when dialog box is displayed again, regardless of what
8187         button was pressed the previous time. Set RootFolder and SelectedPath
8188         each time dialog box is displayed. This ensures the treeview is
8189         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
8190         when it does not have focus. Added support for more special folders.
8191
8192 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
8193
8194         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
8195         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
8196         it resets the edit_args.
8197         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
8198         [Fixes bug #82577]
8199
8200 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
8201
8202         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
8203         button to match MS. Provide more meaningful exception message for
8204         invalid RootFolder value. Use zero-length string when SelectedPath
8205         is set to null. Allow non-rooted paths in SelectedPath, but ignore
8206         them in FolderBrowserTreeView. Allow folders to be created in
8207         RootFolder. Fixes bug #82576.
8208
8209 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8210
8211         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
8212         since we need to take into account the group headers and the margin
8213         between them.
8214         * ListViewGroup.cs: Add a rows field to store the number of rows per
8215         group.
8216
8217 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8218
8219         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
8220           Anyways, let's just follow the lead.
8221
8222 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
8223
8224         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
8225         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
8226         controls in GetPreferredSizeCore.
8227         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
8228         [Fixes bug #82488]
8229
8230 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
8231
8232         * PrintDialog.cs: Need to instantiate the form variable here too.
8233
8234 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8235
8236         * ListView.cs: Do some reorganization to support sorting in groups,
8237         by doing the layout sequentially in ListView.Items. Also add support
8238         for the Default Group, which should be available for items with no
8239         group assigned.
8240         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
8241         for storing layout info also.
8242         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
8243         collection, as well as providing internal members to do a traversal
8244         including the default group (needed when doing layout/drawing).
8245         * ThemeWin32Classic.cs: When drawing group headers use internal
8246         ListViewGroupCollection members to take into account the default
8247         group.
8248
8249 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
8250
8251         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
8252
8253 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
8254
8255         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
8256         been created.  If handle is created, we want arror keys.  If we are editing
8257         a node, we want things like enter, esc, home, end, page up, page down.
8258         Allows Esc to work for FolderBrowserDialog.
8259
8260 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
8261
8262         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
8263         they close when ESC is pressed.  Thanks Andy!
8264
8265 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
8266
8267         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
8268         This way we can tell if this is a CommonDialog provided with mono, or one
8269         that is being implemented outside by a developer.  If it is an external one,
8270         the developer is responsible for showing their own form.  We were showing
8271         our blank form after the developer showed his.
8272         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
8273         PageSetupDialog.cs: Instantiate form variable in our constructor.
8274         [Fixes bug #82531]
8275
8276 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
8277
8278         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
8279         and always return true.  [Fixes bug #81616]
8280
8281 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
8282
8283         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
8284         TextBox.  [Fixes bug #82549]
8285
8286 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
8287
8288         * FileDialog.cs: When Save/Open is clicked and no filename is selected
8289         or entered then do not close the dialog. Fixes bug #82539. Removed
8290         CWLs.
8291
8292 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
8293
8294         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
8295         code to this method. It is calling every time filter changes. This method
8296         will help to fix the bug #80887.
8297
8298 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
8299
8300         * CheckBox.cs: Implement AutoSize calculation.
8301
8302 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
8303
8304         * CheckBox.cs: Use new 2.0 rendering for 2.0.
8305         * Theme.cs: Method declarations for 2.0 rendering path.
8306         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
8307
8308 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8309
8310         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
8311
8312 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8313
8314         * ListViewGroupCollection.cs: Implement AddRange the right way, to
8315         only call Redraw on the parent one time.
8316
8317 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8318
8319         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
8320           GetClipboardContent.
8321         * DataGridViewCell.cs: Implemented GetClipboardContent,
8322           GetEditedFormattedValue, GetFormattedValue.
8323         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
8324
8325 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
8326
8327         * TableLayoutStyleCollection.cs: corcompare fix.
8328
8329 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8330
8331         * DataObject.cs: Implemented retrieval of convertible / not convertible
8332           objects.
8333
8334 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
8335
8336         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
8337         ourselves.  This ensures the entire old bounds are repainted, in case our new
8338         size is smaller.  [Fixes bug #82518]
8339
8340 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
8341
8342         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
8343         flag to make fast handle of mouse events, without this the mouse move is
8344         handled in some manner, whether it is a mouse move or not. Fixes #81588.
8345
8346 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8347
8348         * ListView.cs: When doing layout calculations don't use a ref
8349         param to keep the current item; instead use its Index value (this 
8350         is specially important when doing the layout with Groups
8351         and Items being sparse). Also don't take into account items added to
8352         the Group but not yet added to the main ListView.Items collection.
8353
8354 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8355
8356         * ListViewGroupCollection.cs: Forgot to mimic an issue
8357         in the indexer (don't assign the ListView owner for new values).
8358
8359 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8360
8361         * ListViewGroupCollection.cs: Make the string indexer use
8362         the int based indexer to re-use code, instead of duplicate the code.
8363         Also Redraw as needed and take into account null values.
8364
8365 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
8366
8367         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
8368         [Fixes bug #82481]
8369
8370 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
8371
8372         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
8373         when other buttons are clicked or navigated to.
8374
8375 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8376
8377         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
8378           it's XplatUIX11 that attaches them.
8379
8380 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8381
8382         * DataGridView.cs: If a column has been added, recreate the editing row.
8383           Fixes #82226.
8384
8385 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8386
8387         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
8388           of the tag to draw. Makes disappearing text show up again.
8389
8390 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8391
8392         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
8393           Contents. Fixes #82487.
8394
8395 2007-08-19  Andreia Gaita  <avidigal@novell.com>
8396
8397         * Added HtmlElement.cs, HtmlElementCollection.cs, 
8398           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
8399           
8400 2007-08-19  Andreia Gaita  <avidigal@novell.com>
8401
8402         * BindingSource.cs: Implement this, dispose and getenumerator.
8403         * DataGridViewRowCollection.cs: Move the InvalidOperationException
8404         out of AddInternal, throw it only on public Add calls. The 
8405         UsingWebBrowser sample was blowing up with this when setting the
8406         DataSource after adding DataBindings, so it's likely that .net
8407         only throws this exception when Add is called directly. 
8408         
8409         * ToolStripControlHost.cs: Return the hosted control's text
8410         property, and not the ToolStripItem one (it would always return
8411         the initial value).
8412         
8413         * HtmlDocument.cs: Implement GetElementById and All
8414         * WebBrowser.cs: Remove exception on set_DocumentStream.        
8415
8416 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
8417
8418         * Form.cs: Fix the max and min value for opacity (0~1).
8419
8420 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
8421
8422         [Fixes #80118]
8423         * DataGridTableStyle.cs: Default header font is now null, on getter it 
8424         returns datagrid font when is null. On setter permits null.
8425
8426         * DataGrid.cs:
8427         - When ResetHeaderFont set header font to null.
8428         - On EndInit set grid_style.DataGrid.
8429
8430 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
8431
8432         * TabControl.cs: Fix regression in default padding x.
8433
8434 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
8435
8436         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
8437
8438 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
8439
8440         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
8441         not 2. Fixes #82229.
8442
8443 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
8444
8445         * TabControl.cs: Fix tab size when image height is less than text height.
8446         Partially fixes #81837.
8447
8448 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
8449
8450         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
8451         "alt + tab". It works only for Win32, for X11 theres no way to remove window
8452         from taskbar and keep it on "alt_tab". Fixes #81722.
8453
8454 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
8455
8456         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
8457         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
8458         Fixes #80877 and #79418.
8459
8460 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
8461
8462         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
8463         between position and one of the screen borders. Fixes #82349.
8464
8465 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
8466
8467         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
8468         the MessageBox in the taskbar. Fixes #82457.
8469
8470 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
8471
8472         * MessageBox.cs: Fix form size when icon is set and text height is bigger
8473         than icon. Fixes #82468.
8474
8475 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8476
8477         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
8478         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
8479           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
8480           Refactored HandleNCCalcSize somewhat to avoid code duplication.
8481         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
8482           FormBorderStyle to decide if we're calculating a new size from the
8483           client size or not. CreateParams: Don't fake tool windows, only the X11
8484           backend manages toolwindows manually.
8485
8486 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
8487
8488         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
8489         ObjectDisposedException.
8490
8491 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
8492
8493         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
8494         in OnLoad should not have any effect.  [Fixes bug #82470]
8495
8496 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
8497
8498         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
8499         paint for controls that create their own ToolTipWindow instead of
8500         going through ToolTip.
8501
8502 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
8503
8504         * ToolTip.cs: Make Hide internal instead of public to match MS API.
8505
8506 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8507
8508         * ListViewGroupCollection.cs: Use generic List instead of an
8509         ArrayList, since this collection is 2.0 only.
8510
8511 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
8512
8513         * ToolTip.cs (Hide): Made public to make the build work (should
8514         this not be public?).
8515
8516 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
8517
8518         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
8519         ToolTipWindow.
8520         * ToolTip.cs: Add an internal Visible property to facilitate transition.
8521
8522 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
8523
8524         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
8525         PopupEventHandler.cs: Make these internal for 1.1.
8526         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
8527         use ToolTipWindow internals.
8528         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
8529         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
8530
8531 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8532
8533         * X11Dnd.cs: Add a null check.
8534
8535 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8536
8537         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
8538           nothing else succeeds. Fixes #82453.
8539
8540 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8541
8542         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
8543           rectangle if we're painting to another window than the one the paint
8544           message was generated on. Simplify the code somewhat, which makes
8545           PaintEventEnd also simpler.
8546
8547 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8548
8549         * Control.cs: When changing parent of a form, let the form decide whether
8550           XplatUI.SetParent should be called or not.
8551         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
8552           recreating the handle. If the new parent's handle isn't created, don't
8553           recreate our handle, just destroy it. CreateParams: Check if the
8554           parent's handle is created before fetching it.
8555
8556 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8557
8558         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
8559           Update calls to PaintEventStart/End to take a Message argument.
8560         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
8561           take a Message argument.
8562         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
8563           Message argument, and handle the case where we don't paint to the window
8564           for which the paint message was generated.
8565
8566 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8567
8568         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
8569           Marshal.GetLastWin32Error. Plug nasty memory leak in
8570           PaintEventStart/End, we were creating a DC we weren't releasing.
8571
8572 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8573
8574         * ListView.cs: Add Groups support in Details view. Also have a small
8575         method to do the layout of the group header. Don't use a separate
8576         method to do the groups calculation in Icons view, since our methods
8577         are now a little simpler.
8578         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
8579         `Bounds'.
8580         * ThemeWin32Classic.cs: Likewise.
8581
8582 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
8583
8584         * Application.cs: Add FilterMessage method and rework our message loop
8585         logic to use it.
8586
8587 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
8588
8589         * Application.cs: Add some methods and stub a few methods that are
8590         pretty much never used.
8591
8592 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
8593
8594         * TreeNode.cs: Add some serialization methods.
8595
8596 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8597
8598         * ListView.cs: In ListViewItemCollection have a 
8599         'is_main_collection' field to not modify ListViewItem.ListView
8600         when using it as ListViewGroup.Items (and not ListView.Items)
8601         and also don't modify selection state (.Net behaviour). 
8602         Instead, set group for items contained in a ListViewGroup.Items collection.
8603         * ListViewItem.cs: Simplify some code in Group setter.
8604         * ListViewGroup.cs: use the new .ctor to pass the current instance
8605         to the ItemsCollection.
8606         * ListViewGroup.cs: Set the ListView property for ListViewGroup
8607         instances when adding/removing. Also make Remove use RemoveAt, which
8608         should perform better.
8609
8610 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
8611
8612         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
8613         that crept into the 1.1 profile.
8614
8615 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
8616
8617         * ToolBarButton.cs: Implement ImageKey.
8618
8619 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
8620
8621         * ToolBar.cs: Implement ScaleControl/ScaleCore.
8622
8623 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8624
8625         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
8626           created, it might have gotten destroyed since we last checked. Fixes
8627           #82405.
8628
8629 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
8630
8631         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
8632         tooltip will hide when mouse is moved off the control.
8633         [Fixes bug #82407]
8634
8635 2007-08-11 Andreia Gaita <avidigal@novell.com>
8636
8637         * WebBrowserBase.cs, WebBrowser.cs: add implementation
8638         using Mono.Mozilla for loading and navigating webcontrol
8639         with xulrunner.
8640         The initial implementation was done on 
8641         /trunk/mozembed/tests/browser , and copied here.
8642
8643 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
8644
8645         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
8646         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
8647
8648 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8649
8650         * DataGridView.cs: Add support for an editing row. Fixes #82226.
8651           RowTemplateFull: throw an exception if a column doesn't have a template.
8652         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
8653           add the row just before it.
8654         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
8655           selected.
8656         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
8657           DataGridView field to be able to reach the grid's editing row.
8658
8659 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
8660
8661         * ToolTip.cs: If the control's handle hasn't been created when it has a
8662         tooltip set on it, don't check to see if we need to show the tooltip.  This
8663         check was causing the control's handle to be created.
8664         [Fixes bug #82399]
8665
8666 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
8667
8668         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
8669                                         1.1             2.0
8670         Handle Not Created      -1              0
8671         Handle Created          0               0
8672         [Fixes bug #82371]
8673
8674 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
8675
8676         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
8677         [Fixes bug #82348]
8678
8679 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
8680
8681         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
8682         * ToolTip.cs: Implement some properties and owner draw.
8683
8684 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8685
8686         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
8687           show them again, since setting visibility causes a paint, causing an
8688           endless loop (instead use a temporary and set it all when it's known if
8689           they should be shown or not). Fixes #79265.
8690
8691 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8692
8693         * DataGridView.cs: Only do a full column/row selection if a header was
8694           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
8695           isn't pressed, deselect everything before selecting something.
8696
8697 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8698
8699         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
8700           behaviour according to bug #81075 - they are returned in the order they
8701           are selected. Fix HitTest to check if the point is within any of the
8702           headers. Allow for row/column selection when in ColumnHeader or
8703           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
8704           the row and column to call when their selected state changes, and
8705           updated selected_[rows|columns] whenever SetSelected* is called.
8706         * DataGridViewBand.cs: Initialize isRow correctly. Call
8707           SetSelected[Row|Column]CoreInternal when the selected state changes, and
8708           add a SelectedInternal to avoid StackOverflows.
8709         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
8710           ReadOnly no matter what.
8711         * DataGridViewSelectedColumnCollection.cs,
8712           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
8713           the items in reverse order (just as MS does...)
8714
8715 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
8716
8717         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
8718         itself, not part of a mnemonic.  [Fixes bug #82378]
8719
8720 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8721
8722         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
8723         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
8724           the DGV, the column, the row, or the cell itself is readonly.
8725
8726 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
8727
8728         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
8729         OSVersion.Platform.
8730         * FileDialog.cs: Same.
8731         * TextRendered.cs: Same.
8732         * FolderBrowserDialog.cs: Same.
8733         * TextBoxBase.cs: Same.
8734         * Application.cs: Same.
8735         * Cursors.cs: Same.
8736         * ThemeClearLooks.cs: Same.
8737
8738 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
8739
8740         * XplatUI.cs: Added RunningOnUnix property to be used by controls
8741         instead of duplicating these checks everywhere.
8742         * FileDialog.cs: Use case-insensitive comparison for populating the
8743         DirComboBox when not running on unix. Fixes bug #82385.
8744         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
8745         "Look in".
8746
8747 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8748
8749         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
8750           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
8751           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
8752           cell and column selection with ctrl and shift pressed. Call the correct
8753           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
8754           the corresponding virtual method (PaintBackground to paint background,
8755           etc).
8756         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
8757           either the column, row or the cell itself is selected.
8758         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
8759           OnRowsAdded.
8760         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
8761           here. When the row is selected, don't select all cells. Each cell now
8762           queries the row to see if the row is selected.
8763
8764 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8765
8766         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
8767           SelectionMode.
8768
8769 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8770
8771         * ListView.cs: In ListViewItemsCollection check that owner is
8772         not null before trying to access it (this happens quite often
8773         using Groups). Also don't duplicate calls by calling CollectionChanged
8774         method.
8775
8776 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
8777
8778         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
8779         when we are dismissed to clear keyboard mnemonics.
8780         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
8781         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
8782         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
8783         was activated by keyboard or the OS tells us to always draw them.
8784         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
8785         [Fixes bugs #82376, #82377]
8786
8787 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
8788
8789         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
8790         shot at having it because Alt was pressed.
8791         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
8792         the first real menu item.
8793         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
8794         a mnemonic if Text is null.
8795         [Fixes bug #82374]
8796
8797 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8798
8799         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
8800         search do check whether the item is already contained in the
8801         collection or not; instead check if the owner of the item is the same
8802         as ours. Also, remove a redundant check in the same method. 
8803
8804 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
8805
8806         * Control.cs: Allow the clip region to be set back to null.
8807         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
8808         [Fixes button still showing up in bug #82370 when Show Through is turned off]
8809
8810 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8811
8812         * GridEntry.cs: Add a null check.
8813         * PropertyGrid.cs: When checking for existing grid entries, ignore category
8814           entries. Fixes #82297.
8815
8816 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
8817
8818         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
8819         for 2.0.
8820
8821 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
8822
8823         * ListBox.cs: Implement ScaleControl.
8824
8825 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8826
8827         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
8828           have a menu strip.
8829         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
8830           parent has a menu strip. Fixes #81689.
8831
8832 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8833
8834         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
8835           moments, so apply some fuzzy logic to determine if the mouse is still
8836           inside a control or not. Fixes #82288 (for the third time).
8837
8838 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8839
8840         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
8841           Don't create the child if it has been disposed already (may happen if
8842           the user closes the form the Load event).
8843
8844 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8845
8846         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
8847           #82288.
8848
8849 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8850
8851         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
8852           might call us after we've been destroyed, in which case our own private
8853           parent field is null. Fixes #82326.
8854
8855 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
8856
8857         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
8858         check for setting the dropdown's owner.
8859
8860 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
8861
8862         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
8863         before removing system menu items.
8864
8865 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
8866
8867         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
8868         folding.
8869         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
8870         folding.
8871         * ToolStrip.cs: Add a null check to mnemonics.
8872         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
8873         no ConnectedArea.
8874         [Fixes most of bug #81689]
8875
8876 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8877
8878         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
8879
8880 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8881
8882         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
8883
8884 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8885
8886         * DataGridViewCell.cs: EditType: returns
8887           DataGridViewTextBoxEditingControl always.
8888
8889 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
8890
8891         * TextRenderer.cs: Remove the LineLimit string format flag from the
8892         DrawString fallback method so that things like buttons that aren't
8893         tall enough to draw a full line will still draw part of the text.
8894         [Fixes part of bug #82272]
8895
8896 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8897
8898         * DataGridView.cs: Implemented AutoResizeColumn(s).
8899         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
8900           according to the Alignment.
8901         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
8902           Implement alignment and padding when painting.
8903         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
8904           exists.
8905         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
8906           way.
8907         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
8908           a column is added.
8909
8910 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
8911
8912         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
8913         which is internal.
8914
8915 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
8916
8917         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
8918         hide GetPreferredSize from public API.
8919         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
8920         * ToolStripItem.cs: Stub out drag and drop methods and events.
8921         * ToolStripManager.cs: Stub out Save/LoadSettings.
8922         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
8923         * ToolStripPanel.cs: Fix corcompare error.
8924         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
8925         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
8926         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
8927
8928 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
8929
8930         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
8931         bounds height instead of PreferredHeight.  Puts things back the way 
8932         they were for height while still fixing the width.  Fixes broken unit
8933         tests.
8934
8935 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8936
8937         * Binding.cs: Implement 2.0 constructors and add a null check.
8938
8939 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8940
8941         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
8942           and fix row index (off by one).
8943
8944 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8945
8946         * PropertyGridView.cs: Remove debug output.
8947
8948 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8949
8950         * Control.cs: We need to reset the is_created flags when the handle is
8951           destroyed. Fixes #82187.
8952         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
8953           client coordinates if the window doesn't have a parent.
8954           Win32GetParent returns the parent or the owner, and for top-level
8955           windows with no parent (but with an owner) we were calculating the
8956           location from the location of the owner.
8957         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
8958           form has been disposed.
8959         * MdiClient.cs: Add a null-check.
8960
8961 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
8962
8963         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
8964         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
8965         so we can provide an implementation that returns the current width
8966         and preferred height.  Allows anchor = right to work with TextBox 2.0.
8967         [Fixes bug #82233]
8968
8969 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8970
8971         * ListView.cs: Add support for navigating items in Groups mode, by
8972         creating a big matrix containing all rows and cols of all groups. When
8973         are in other mode than Details, pressing Up should have a similar
8974         behaviour as that one of Down (moving to the next available column if
8975         current one doesn't have an item in the requested row). Also, don't
8976         proceed to use groups if ShowGroups is false.
8977         * ListViewGroup.cs: Add an internal int field to store the starting
8978         row of the group (used by the big matrix used for navigating the
8979         ListView).
8980         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
8981         false.
8982
8983 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
8984
8985         * ToolStripDropDown.cs: When we do Show, start with the 
8986         DefaultDropDownDirection, but if our popup menu is going to off-screen,
8987         modify the direction to keep it on screen.  [Fixes bug #82210]
8988
8989 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
8990
8991         * FileDialog.cs: Accept any FilterIndex value, and store it
8992         unmodified. When FilterIndex is less than 1, or greater than number
8993         of filters, then default to first filter. Only add filter extension to
8994         file if user did not specifiy an extension. When type of dialog is
8995         OpenFileDialog and DefaultExt is set, then only use filter extension
8996         if: CheckFileExists is true and no file wih the default extension
8997         exists, or CheckFileExists is false, and user specified file does not
8998         exist. When CheckFileExists is true, then add first extension of 
8999         selected filter that matches existing file. Perform checks for
9000         existing file, overwrite and create after extension has been added to
9001         file name. When CheckFileExists is true and type is SaveFileDialog,
9002         then only consider first filter extension if DefaultExt is set.
9003         When CheckFileExists is true, then ignore DefaultExt if file with that
9004         extension does not exist. Also perform check for existing file when
9005         type is SaveFileDialog. Changed some field to constants.
9006
9007 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9008
9009         * ListView.cs: Take into account the region used by header
9010         control when doing the vertical scroll (this way we invalidate
9011         the precise area, and don't get any dirty one).
9012
9013 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
9014
9015         * FileDialog.cs: Check for valid filterIndex on button open/save. 
9016         Fixes #82184.
9017
9018 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9019
9020         * ListView.cs: Update some layout calculations in details view
9021         and clean the code in a pair of assignations.
9022
9023 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
9024
9025         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
9026         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
9027         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
9028         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
9029
9030 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
9031
9032         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
9033         performance of thread-safe Graphic methods.  (Thanks rolf!)
9034
9035 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9036
9037         * ListView.cs: When doing the layout calculations, don't calculate
9038         scroll bars before handle is created. This is unnecessary and also
9039         calculating them before handle creation item causes a number of random
9040         bugs (which begin to appear after Chris' big patch for handle creation
9041         fixes). 
9042
9043 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
9044
9045         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
9046         for things that don't have a Graphics object.  Currently, things just use
9047         the static Hwnd.bmp_g which is not thread safe.
9048
9049 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9050
9051         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
9052           dialog. Fixes #82187.
9053
9054 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9055
9056         * DataGridViewElement.cs: Initialize state.
9057         * DataGridView.cs: Forward a few Mouse events to cells. Add
9058           GetRowInternal and GetCellInternal that doesn't unshare rows.
9059           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
9060           don't use the index, but look it up. Add
9061           DataGridViewControlCollection.RemoveInternal to remove controls
9062           that Remove won't remove (scrollbars, edit control).
9063         * DataGridViewColumn.cs: Initialize State correctly.
9064         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
9065           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
9066           implementing this.
9067         * DataGridViewRowCollection.cs: Implemented shared rows.
9068         * DataGridViewRow.cs: Throw exceptions as MS do.
9069         * DataGridViewCell.cs: A few properties are implemented by a
9070           Get<Property> method, so move implementation there and remove the
9071           NIEX in the method. Add a bunch of OnXInternal that DataGridView
9072           calls when necessary.
9073         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
9074           complicates matters.
9075         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
9076           unshare any rows.
9077
9078 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
9079
9080         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
9081         the children controls.  Instead, we will just set up the proper docking for the
9082         children controls so we don't have to worry about it.  [Fixes bug #82188]
9083
9084 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
9085
9086         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
9087         canceling and correct Before/AfterLabelEdit properties as layed out in bug
9088         81847.  [Fixes bug #81847]
9089
9090 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
9091
9092         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
9093         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
9094         an explicit size based on the design-time size of the text.  Since our fonts
9095         may not match this explicit size, we tend to cut off the ends of people's labels.
9096
9097 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
9098
9099         * Menu.cs: Add some missing methods to MenuItemCollection.
9100
9101 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9102
9103         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
9104         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
9105         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
9106         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
9107         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
9108         * DataGridViewElement.cs: State defaults to Visible.
9109         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
9110         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
9111
9112 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9113
9114         * Control.cs: Minor 1.1 corcompare fix.
9115
9116 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
9117
9118         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
9119         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
9120
9121 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9122
9123         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
9124           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
9125           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
9126           DataGridViewSelectedColumnCollection.cs,
9127           DataGridViewSelectedRowCollection.cs: Corcompare work.
9128
9129 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
9130
9131         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
9132         it is autoset by VS2005 designer and the effect is barely noticeable.
9133
9134 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
9135
9136         * TreeView.cs: Implement HitTest.
9137
9138 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9139
9140         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
9141           manually adding and removing the control from the Controls
9142           collecftion.
9143         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
9144           EditingControlInternal property that tracks the editing control.
9145           Always keeping the scrollbars in the Controls collection, as MS
9146           testing confirms is the right behaviour.
9147
9148 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9149
9150         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
9151           according to MSDN and new test.
9152
9153 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
9154
9155         * TreeNode.cs: Implement ToolTipText.
9156         * TreeView.cs: Implement tooltips, NodeMouse* events.
9157
9158 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
9159
9160         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
9161
9162 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
9163
9164         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
9165         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
9166
9167 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
9168
9169         * Control.cs, Form.cs, ContainerControl.cs,
9170         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
9171         for misc properties.
9172
9173 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
9174
9175         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
9176         * TreeView.cs: Implement StateImageList.
9177
9178 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9179
9180         * Form.cs: Don't check if the current form is the active form before
9181           activating it. Fixes #81904.
9182
9183 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9184
9185         * Form.cs: Don't check if the current form is the active form before
9186           activating it. Fixes #81904.
9187
9188 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9189
9190         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
9191
9192 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9193
9194         * Form.cs: Don't try to position the form after loading if the form was
9195           disposed. Fixes #81969.
9196
9197 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9198
9199         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
9200           properties. Had to change ToolBar into ToolStrip, which required a
9201           few #ifs.
9202
9203 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9204
9205         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
9206           resized, fixes part of #79829 (vertical lines in toolbar).
9207           PropertyGrid: Refactored Populate* to something that's easier to
9208           follow at least for me, as well as splitting it up into several new
9209           methods, required to update only subitems when something has
9210           changed by a popup editor or listbox. Don't use events to check
9211           when any values are changed, since the events are unreliable (we're
9212           changing the objects the events are registered with, and if the
9213           event handling requires the objects to be immutable (objects stored
9214           in hashtables for instance), the events will never be raised).
9215         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
9216           everytime we change a value, since events are unreliable.
9217           DropDownButtonClicked: For the same reason don't compare objects to
9218           check if it has changed or not, it would require all objects to
9219           derive Equals. Fix dialog location on windows, MS is doing weird
9220           things when creating parented forms.
9221         * GridEntry.cs: Add a SelectedObject setter.
9222
9223 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
9224
9225         * TreeNode.cs: Add some corcompare attributes.
9226         * TreeNodeCollection.cs: Implement 2.0 stuffs.
9227         * TreeView.cs: Implement some 2.0 stuffs.
9228
9229 2007-07-18  Andreia Gaita  <avidigal@novell.com>
9230
9231         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
9232         for moma.
9233
9234 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
9235
9236         * ListBox.cs: Implement custom tab offsets.
9237
9238 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
9239
9240         * ToolStripContentPanel.cs: Support System renderer.
9241         * ToolStripControlHost.cs: Set RightToLeft to default to No.
9242
9243 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
9244
9245         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
9246
9247 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
9248
9249         * CheckBox.cs: Chain TextAlign to base implementation instead of
9250         maintaining another one.
9251
9252 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
9253
9254         * ButtonBase.cs: Fix an incorrect string constant.
9255
9256 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
9257
9258         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
9259         of creating one for measuring strings.
9260
9261 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
9262
9263         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
9264         Implement MaxItemSize.
9265
9266 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
9267
9268         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
9269         for DeviceContext.  Instead, use the static one available in Hwnd.
9270         Informal tests show this saves about 500k on formtest.exe.
9271
9272 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
9273
9274         * ContainerControl.cs: Implement 2.0 AutoScaling.
9275
9276 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9277
9278         * ComboBox.cs: Work around bug #82120 (bug in mcs).
9279
9280 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
9281
9282         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
9283         Darken the focus color.
9284
9285 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
9286
9287         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
9288         for the checkbox.
9289         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
9290         X, Y instead of a rect for drawing text.
9291         - For ControlPaint.DrawCheckBox, center the check a little better when the
9292         checkbox is odd width.  When drawing a flat checkbox, use a white background
9293         when state != inactive.
9294         [Fixes bugs #82097, 82100]
9295
9296 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
9297
9298         * ListControl.cs: When changing CurrencyManager, disconnect event
9299         handlers from previous one. Fixes bug #81771. Code formatting.
9300
9301 2007-07-15  Andreia Gaita <avidigal@novell.com>
9302
9303         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
9304         full preview invalidation from layout invalidation, and only invalidate
9305         the layout when setting zoom or other properties. Invalidation should
9306         always be done even when resetting properties with the same values as
9307         what is there. Fixes #81744 and #79830.
9308
9309 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9310
9311         * ListView.cs: Implement initial support for Groups. Split some of the
9312         LayoutIcons code to render a partial list of the items (needed by
9313         items contained in ListViewGroup instances). Let the
9314         ListViewItemsCollection.ListView property be modifiable (needed when
9315         using Groups, too).
9316         * ListViewGroup.cs: Use a Bounds property rather than a Location
9317         one. Also invalidate the bounds when they get changed.
9318         * ThemeWin32Classic.cs: When drawing items, also draw the group header
9319         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
9320         method as well.
9321
9322 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9323
9324         * ListView.cs: When space gets pressed and CheckBoxes is true, 
9325         don't invoke the Begin and EndUpdate methods. We are generating 
9326         a redraw of the entire control without need to do so.
9327
9328 2007-07-13  William Holmes <billholmes54@gmail.com> 
9329
9330         * Control.cs: Changing logic in FindFlatForward and 
9331           FindFlatBackward to handle multiple Controls with 
9332           the same TabIndex.  
9333           This fixes bug 81687.
9334
9335 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
9336
9337         * OSFeature.cs: Enable IsPresent.
9338
9339 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9340
9341         * Control.cs: Don't do anything in WmShowWindow if the control has been
9342           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
9343           control is created, put on a form, the control is disposed (the
9344           form is never shown), and then we get a MapNotify, triggering a
9345           WM_SHOWWINDOW.
9346         * Form.cs: Exclude the current form when sending Deactivate to all
9347           MdiChildren.
9348         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
9349           there was a race condition because assigning the handle raises
9350           events, we can get more messages, therefore trying to assign the
9351           handle again, which would fail if any of those event handlers
9352           closed/disposed the control.
9353
9354 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9355
9356         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
9357
9358 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
9359
9360         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
9361         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
9362
9363 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9364
9365         * DateTimePicker.cs: If there's no part format specifier, return an
9366           empty string.
9367
9368 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
9369
9370         * FlatButtonAppearance.cs: Throw NotSupportedException for a
9371         Transparent BorderColor.
9372
9373 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9374
9375         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
9376           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
9377           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
9378           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
9379           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
9380           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
9381           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
9382           Remove warnings.
9383         * X11Structs.cs: Remove warnings, add ToString implementations.
9384
9385 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9386
9387         * XplatUIX11.cs: Translate min/max size according to the actual min/max
9388           size, and not the current size. Fixes #81798.
9389
9390 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9391
9392         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
9393           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
9394           to the control yet).
9395
9396 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9397
9398         * PropertyGridTextBox.cs: Add a method that sends any forwarded
9399           mousedowns to the contained textbox.
9400         * X11Structs.cs: More ToString implementation.
9401         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
9402           #81791.
9403
9404 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9405
9406         * PropertyGridView.cs: Add a null-check, fixes a few tests.
9407
9408 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
9409
9410         * TableLayoutPanelCellPosition.cs: TypeConverter.
9411
9412 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9413
9414         [ Fixes #79761]
9415         
9416         * PropertyGridTextBox.cs: Propagate any color changes to all contained
9417           controls.
9418         * PropertyGridView.cs: A few color fixes.
9419
9420 2007-07-10  Jackson Harper  <jackson@ximian.com>
9421
9422         * TextControl.cs: Remove some old unused text formatting stuff.
9423
9424 2007-07-10  Jackson Harper  <jackson@ximian.com>
9425
9426         * TreeView.cs: Update full row select invalidation to match the
9427         newer DrawSelection... method.
9428         - Make sure to invalidate the entire width when selecting a new
9429         node, if we have full row selection enabled.
9430
9431 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9432
9433         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
9434           display of properties again.
9435
9436 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
9437
9438         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
9439         to existing collections.
9440
9441 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
9442
9443         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
9444         that changed between 1.1 and 2.0.
9445
9446 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
9447
9448         * PowerStatus.cs: Added.  This is just a data class, it is filled
9449         in by SystemInformation.
9450
9451 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
9452
9453         * Message.cs: Add op_Equality and op_Inequality.
9454
9455 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
9456
9457         * MenuStrip.cs: Finish corcompare work.
9458
9459 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
9460
9461         * LinkArea.cs: Add op_Equality and op_Inequality.
9462
9463 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
9464
9465         * Application.cs: Add MessageLoopCallback delegate.
9466
9467 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
9468
9469         * ListBox.cs: First set of 2.0 stuffs.
9470
9471 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
9472
9473         * Control.cs: Make an internal Height property we can override
9474         without messing up the public API.
9475         * ListBox.cs: Override HeightInternal to always return the size
9476         the user set.  [Fixes bug #80466]
9477
9478 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
9479
9480         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
9481         paint cell borders if we haven't calculated where they go yet.
9482         [Fixes bugs #82040 and #82041]
9483
9484 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9485
9486         * ListView.cs: In Details view, set the location of item_control
9487         in the (0,0) position (and the header_control is thus on the
9488         item_control). This way the Bounds of the Items are relative to the
9489         ListView control (before this, they had a Bounds value without the
9490         header_control offset, which wasn't matching .Net). Fixes #82004.
9491
9492 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9493
9494         * ListControl.cs: When DataSource is set to null, pass an empty
9495         array of object to SetItemsCore. This is done to clean the items
9496         in the ListContol children. Fixes #81788.
9497
9498 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
9499
9500         * ListControl.cs: Add 2.0 stuffs.
9501
9502 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
9503
9504         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
9505         Refresh is overkill for just about every repaint request.
9506
9507 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
9508
9509         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
9510         so remove my custom Get method and fix the property getter.
9511
9512 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
9513
9514         * Label.cs: DefaultMargin for 2.0.
9515
9516 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
9517
9518         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
9519         reported issue where other controls with mnemonics would steal strokes
9520         from a selected ComboBox.
9521
9522 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
9523
9524         * ScrollOrientation.cs: Make internal for 1.1.
9525         * ScrollEventArgs.cs: Add 2.0 stuffs.
9526
9527 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
9528
9529         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
9530         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
9531         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
9532
9533 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9534
9535         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
9536
9537 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9538
9539         * ListView.cs: Implement the so-incredibly broken 2.0 
9540         VirtualItemsSelectionRangeChanged event.
9541
9542 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9543
9544         * ListView.cs: When enter is pressed and selection is non empty,
9545         an OnItemActivate event must be fired.
9546
9547 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9548
9549         * ListView.cs: Store the FocusedItem information as an
9550         int instead of a ListViewItem (needed by VirtualMode).
9551         Update the calls to SetFocusedItem to pass an index instead of
9552         an item.
9553         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
9554         the Focused state from the owner ListView. 
9555
9556 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9557
9558         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
9559         property. Also, invalidate previous focused item in the mentioned
9560         property (match .Net).
9561
9562 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9563
9564         * ListView.cs: Implement 2.0 FocusedItem property setter.
9565
9566 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9567
9568         * ListView.cs: Implement 2.0 TopItem property setter.
9569
9570 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
9571
9572         * StatusStrip.cs: The default renderer is System.
9573         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
9574         if the user specifies it.
9575         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
9576         if we are ManagerRenderMode.
9577         * ToolStripMenuItem.cs: Calculate our text color better.
9578         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
9579         from Professional to the base class based off working with the System renderer.
9580         * ToolStripSystemRenderer.cs: Added.
9581
9582 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9583
9584         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
9585
9586 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
9587
9588         * ToolTip.cs: Implement 2.0 Tag property.
9589
9590 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9591
9592         * ListView.cs: Implement 2.0 HitTest methods.
9593
9594 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9595
9596         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
9597         item is under the pointer or not (sugar). Also remove the TODO
9598         regarding to the cursor changes in OneClick activation.
9599         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
9600         the subitems use the parent's HotFont if UseItemStyleForSubItems is
9601         true; otherwise don't show the underline style.
9602
9603 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9604
9605         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
9606         the code to retrieve the item at position only one time. Also
9607         change cursor when Activation is ItemActivation.OneClick as well
9608         as invalidate the item if HotTracking is true (to show/hide the
9609         underline style). Add an internal HotItemIndex property to retrieve
9610         the current hot item's index.
9611         * ListViewItem.cs: Add an internal HotFont property to cache the
9612         font used when HotTracking is true and the pointer moves within the
9613         item's borders.
9614         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
9615         HotFont depending on the hot state of the item.
9616
9617 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9618
9619         * ListView.cs: Implement 2.0 HotTracking property.
9620
9621 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
9622
9623         * ToolStripControlHost.cs: If our hosted control never got created,
9624         don't try to dispose it.  [Fixes bug #81909]
9625
9626 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
9627
9628         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
9629
9630 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
9631
9632         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
9633
9634 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9635
9636         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
9637         Details view.
9638         * DrawListViewColumnHeaderEventArgs.cs:
9639         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
9640         using the DrawText () methods.
9641
9642 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
9643
9644         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
9645         background which got erased in my changes yesterday.
9646
9647 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9648
9649         * ListViewItem.cs: Actually set bounds for subitems in Details view
9650         (2.0 feature).
9651         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
9652         can invoke from the owner draw routines if we need it. Also, add
9653         support for Owner draw in Details view.
9654
9655 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
9656
9657         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
9658         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
9659         ShowImageMargin setting, properly align text in a ToolStripLabel
9660         hosted on a ToolStripDropDown.
9661
9662 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
9663
9664         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
9665         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
9666
9667 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9668
9669         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
9670
9671 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
9672
9673         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
9674         location to match ToolStripMenuItems.
9675
9676 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9677
9678         * DrawListViewColumnHeaderEventArgs.cs:
9679         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
9680         column headers in ListView. 
9681
9682 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
9683
9684         * UserControl.cs: Implement AutoSize.
9685
9686 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9687
9688         * DrawListViewItemEventArgs.cs:
9689         * ListView.cs:
9690         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
9691         ListView.
9692
9693 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
9694
9695         * ToolStripDropDownItemAccessibleObject.cs: Added.
9696         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
9697         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
9698         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
9699         ToolStripTextBox.cs: corcompare work.
9700
9701 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
9702
9703         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
9704         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
9705         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
9706                 corcompare.
9707
9708 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
9709
9710         * OSFeature.cs: Add IsPresent.
9711         * PrintPreviewControl.cs: Add RightToLeft.
9712         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
9713         * SplitterPanel.cs: Add AutoSizeMode.
9714
9715 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
9716
9717         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
9718         * MdiClient.cs: Add 2.0 ScaleControl.
9719         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
9720         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
9721
9722 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
9723
9724         * Form.cs: Implement some scaling methods, stub some RTL methods,
9725         corcompare work.
9726
9727 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
9728
9729         * Control.cs: corcompare work.
9730         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
9731
9732 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
9733
9734         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
9735         ControlPaint 2.0 stuffs.
9736
9737 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9738
9739         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
9740
9741 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9742
9743         * UpDownBase.cs: Add 2.0 stuffs.
9744
9745 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9746
9747         * NumericUpDown.cs: Add 2.0 stuffs.
9748
9749 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9750
9751         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
9752
9753 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9754
9755         * ErrorProvider.cs: Implement 2.0 stuffs.
9756
9757 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9758
9759         * DomainUpDown.cs: Implement 2.0 stuffs.
9760
9761 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9762
9763         * CheckedListBox.cs: Fix RefreshItems signature.
9764
9765 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9766
9767         * PictureBox.cs: Implement 2.0 stuffs.
9768
9769 2007-06-12  Andreia Gaita  <avidigal@novell.com>
9770         
9771         * TabControl.cs: Check if there are tabpages before checking
9772         the selected index - fix #81802 (font changes raise a ResizeTabs
9773         call on controls.add, which blew up nicely with no tabpages)
9774
9775 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9776
9777         * ListView.cs:
9778         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
9779
9780 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9781
9782         * ListView.cs:
9783         * ListViewItem.cs: In VirtualMode the selection information
9784         resides in the ListView, rather than in the Items. Also, throw
9785         InvalidOperationExceptions when VirtualMode is being used and
9786         CheckedItemCollection is accessed.
9787
9788 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
9789
9790         * ComboBox.cs: Add ScaleControl.
9791
9792 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
9793
9794         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
9795
9796 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
9797
9798         * GroupBox.cs: Add 2.0 stuffs.
9799
9800 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
9801
9802         * Panel.cs: Add autosize properties/event.
9803
9804 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
9805
9806         * Control.cs:
9807         - When we remove a control, remove it from the collection before performing the layout.
9808         - Setup an internal property for explicit_bounds.
9809         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
9810         - Perform a layout when we set a new AutoSizeMode.
9811
9812 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
9813
9814         * ScrollableControl.cs: Add 2.0 stuffs.
9815
9816 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
9817
9818         * ScrollBar.cs: Add 2.0 stuffs.
9819
9820 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
9821
9822         * Splitter.cs: Add 2.0 stuffs.
9823
9824 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
9825
9826         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
9827         to have BindingContext simply use base implementation.
9828
9829 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
9830
9831         * ColumnHeader.cs: corcompare fix.
9832
9833 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
9834
9835         * Button.cs: corcompare fixes.
9836         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
9837
9838 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
9839
9840         * Button.cs: Override GetPreferredSizeCore.
9841         * ButtonBase.cs: PerformLayout after changing properties that can affect
9842         AutoSize.  Simplify some mouse/keyboard code.
9843         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
9844         * MouseEventArgs.cs: Make Location internal for 1.1.
9845         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
9846         * Theme.cs: Add CalculateButtonAutoSize.
9847         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
9848
9849 2007-06-05  Miguel de Icaza  <miguel@novell.com>
9850
9851         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
9852
9853 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9854
9855         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
9856         since we can get different item instances every time we retrieve it.
9857
9858 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9859
9860         * ListView.cs: Work around for #81602, since an unkown an pretty
9861         infrequent condition appears only in some systems (old linux boxes, it
9862         seems).
9863
9864 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
9865
9866         * Button.cs: Completely reformat and a little refactor to bring
9867         this closer to Mono circa 2007.
9868
9869 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
9870
9871         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
9872         to be ButtonBase.Invalidate.
9873
9874 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
9875
9876         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
9877
9878 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
9879
9880         * ButtonBase.cs: Completely reformat and a little refactor to bring
9881         this closer to Mono circa 2007.
9882
9883 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
9884
9885         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
9886         values for autosize. Fixes #80137.
9887
9888 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
9889
9890         * Control.cs: Don't perform layout when AutoSize changes.
9891         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
9892         directly when autosizing, use SetBounds with BoundsSpecified.None.
9893         Fixes unit tests my last commit broke.
9894
9895 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
9896
9897         * Control.cs: Perform layout when AutoSize changes.
9898         * Form.cs: Implement AutoSizing.
9899
9900 2007-06-01  Chris Toshok  <toshok@ximian.com>
9901
9902         * DataGrid.cs: remove the XXX'ed check at the top of
9903         ProcessGridKey.  fixes #80464.
9904
9905 2007-06-01  Chris Toshok  <toshok@ximian.com>
9906
9907         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
9908         adding idempotent (add/remove in Edit()), and also make sure we
9909         don't add it until after we set the text, so it's not tripped in
9910         Edit().  Fixes unit test regression.
9911
9912 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
9913
9914         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
9915         change is user explicit, not when the layout engine moves stuff.  Fixes
9916         anchoring to bottom and right.  [Fixes bug #81790]
9917
9918 2007-06-01  Andreia Gaita  <avidigal@novell.com>
9919
9920         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
9921
9922 2007-06-01  Andreia Gaita  <avidigal@novell.com>
9923
9924         * ContainerControl.cs: 
9925         Fire enter event for common ancestor if it is not a ContainerControl.
9926         Send focus to the active_control and not the 'value', the active 
9927         control might have been changed in one of the events fired.     
9928         Definitely fixes #80159.
9929
9930 2007-06-01  Andreia Gaita  <avidigal@novell.com>
9931
9932         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
9933
9934 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9935
9936         * PropertyGrid.cs: Anchor the help description to the bottom of the
9937           help panel and refactor SelectGridItem into a
9938           SelectGridItemInternal that can be set to null (and update it to
9939           clear the help texts when it is set to null). Set root item to null
9940           when there's no SelectedObject. Fixes #80438.
9941         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
9942           when we're recalculating after a resize (only).
9943
9944 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9945
9946         * ListView.cs: Implement 2.0 RedrawItems method.
9947
9948 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9949
9950         * ListControl.cs: Disconnect PositionChanged and ItemChanged
9951         handlers from previous data manager when DataSource is set to
9952         null. Fixes #81771.
9953
9954 2007-05-31  Jackson Harper  <jackson@ximian.com>
9955
9956         * TextBoxBase.cs: These seem to be the correct values.
9957
9958 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
9959
9960         * FileDialog.cs: When close dialog with ok set filterindex using combobox
9961         value. Fixes #81784.
9962
9963 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
9964
9965         * Control.cs: Implement 2.0 scaling methods.
9966
9967 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9968
9969         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
9970           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
9971           corcompare issues.
9972
9973 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9974
9975         * ProgressBar.cs: Implemented missing 2.0 members.
9976
9977 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9978
9979         * Control.cs: Corcompare issues.
9980         * MessageBox.cs: Implemented missing 2.0 functions.
9981
9982 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9983
9984         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
9985           Implemented more 2.0 members.
9986
9987 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9988
9989         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
9990           null (strange, but it seems to happen when running unit tests).
9991
9992 2007-05-30  Andreia Gaita  <avidigal@novell.com>
9993
9994         * ContainerControl.cs: Set active_control even earlier, before 
9995         firing any events, and undo it if validation returns false.
9996
9997 2007-05-30  Andreia Gaita  <avidigal@novell.com>
9998
9999         * ContainerControl.cs: Raise Validation and Enter/Leave events
10000         even if there is no Form and set active_control earlier, just
10001         before firing Enter events (toshok's patches). Fixes #80647.
10002
10003 2007-05-30  Jackson Harper  <jackson@ximian.com>
10004
10005         * TextControl.cs: Redid the pageup/pagedown a little to simplify
10006         things and fix bug #81311.
10007
10008 2007-05-30  Jackson Harper  <jackson@ximian.com>
10009
10010         * X11Dnd.cs: Now that we have our own event loop, we need to
10011         cancel when we get a mouseup but it won't be accepted.
10012
10013 2007-05-30  Chris Toshok  <toshok@ximian.com>
10014
10015         * DataGrid.cs (set_CurrentCell): guard against negative
10016         column/row.
10017
10018         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
10019         array index syntax instead of looping over the property names.
10020
10021         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
10022         and set IsInEditOrNavigateMode to false there.
10023
10024 2007-05-30  Jackson Harper  <jackson@ximian.com>
10025
10026         * TreeView.cs: Make sure we don't get a bad visible order when
10027         setting to the top node.  Fixes some misc crashing in
10028         ControlInspector.
10029
10030 2007-05-30  Andreia Gaita  <avidigal@novell.com>
10031
10032         * UserControl.cs: Add 2.0 AutoSizeMode
10033
10034 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
10035
10036         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
10037
10038 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
10039
10040         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
10041         lines. Fixes #80285. 
10042
10043 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
10044
10045         * DataGridColumnStyle.cs: Add char trimming column header text format. 
10046
10047 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
10048
10049         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
10050         Fixes #80147.
10051
10052 2007-05-29  Jackson Harper  <jackson@ximian.com>
10053
10054         * TreeNode.cs: Fix off by one on calculating whether or not a node
10055         is visible.
10056
10057 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
10058
10059         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
10060         * ScrollableControl.cs: Force an UpdateDistances when we move the
10061         scrollbars.
10062         [Fixes bug #80605]
10063
10064 2007-05-29  Andreia Gaita  <avidigal@novell.com>
10065
10066         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
10067         update the page setup screen.
10068
10069 2007-05-29  Andreia Gaita  <avidigal@novell.com>
10070
10071         * PageSetupDialog.cs: Fix landscape mode.
10072
10073 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10074
10075         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
10076         IconSizeHorizontalSpacing.
10077
10078 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10079
10080         * ListView.cs: The declaration of prev_tooltip_item should be inside
10081         a NET_2_0 conditional (avoid a warning).
10082
10083 2007-05-28  Andreia Gaita  <avidigal@novell.com>
10084
10085         * PageSetupDialog.cs: Implement PrintPreview control to display
10086         the preview thumbnail. Change unit conversion to use 
10087         PrinterUnitConvert methods.
10088         
10089         Note: there is a huge bug in ms.net where the default margins are 
10090         interpreted as centimeters (?), when in fact they are set in inches. When 
10091         loading the page setup dialog initially (ms.net), the default margins 
10092         are set to 1 inch, and the dialog shows them with value 10, when in fact 
10093         it should be 25 (properly converted). Our dialog doesn't have this bug.
10094         
10095         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
10096         RectangleF.
10097         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
10098
10099 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10100
10101         * ListView.cs:
10102         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
10103         items.
10104
10105 2007-05-28  Andreia Gaita  <avidigal@novell.com>
10106
10107         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
10108         an IntPtr on csc (it builds fine on mcs, could it be a compiler
10109         bug?), convert the ptr to Int32 first.
10110
10111 2007-05-28  Jackson Harper  <jackson@ximian.com>
10112
10113         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
10114         recieved, we will exit the dnd tracking loop.
10115
10116 2007-05-28  Jackson Harper  <jackson@ximian.com>
10117
10118         * X11Dnd.cs: Keep tracking until the xdnd finished event is
10119         recieved. TODO: I should probably stick a timer on the dropped
10120         event, and finish the drag if the XDND Finished event never shows
10121         (because some apps don't seem to send it).
10122
10123 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
10124
10125         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
10126         #81733.
10127
10128 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10129
10130         * MonthCalendar.cs: Only mark the keypresses we actually handle as
10131           handled.
10132
10133 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10134
10135         * MonthCalendar.cs: Set the size after initializing all the relevant
10136           variables. Fixes #81742.
10137
10138 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10139
10140         * KeyEventArgs.cs: Fix typo.
10141
10142 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
10143
10144         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
10145         to match MS. Fixed MinDate to only accept value less than or equal
10146         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
10147         Removed TODO's that are now verified by unit tests.
10148
10149 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
10150
10151         * TreeNodeCollection.cs: Minor corrections to exceptions to match
10152         MS.
10153
10154 2007-05-25  Jackson Harper  <jackson@ximian.com>
10155
10156         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
10157         it's own message loop.
10158         * XplatUIX11.cs: Remove some of the dnd hooks
10159
10160 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
10161
10162         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
10163         instead of MinimizedWindowSize.
10164
10165 2007-05-25  Jackson Harper  <jackson@ximian.com>
10166
10167         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
10168
10169 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10170
10171         * KeyEventArgs.cs: Added SuppressKeyPress.
10172         * Control.cs: Added support for SuppressKeyPress.
10173
10174 2007-05-24  Andreia Gaita  <avidigal@novell.com>
10175
10176         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
10177         problems with PieChart. suppress_validation should not be a counter,
10178         if there are several BeginInit calls, the first EndInit will 
10179         activate validation. Fix exceptions thrown by set_Value.
10180         * UpDownBase.cs: ValidateText only if it's the user editing it.
10181
10182 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10183
10184         * ListControl.cs: FilterItemOnProperty should return the filtered
10185         item proeprty even if DataSource is null. The same applies for
10186         GetItemText. Fixes #80427.
10187
10188 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
10189
10190         * Control.cs: If a control doesn't have a parent when it's Dock is
10191         set, but it has children, it needs to do a layout.  Fixes some nested
10192         controls issues.  [Fixes bug #81199]
10193
10194 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10195
10196         * ComboBox.cs: If there are few items in the drop down list, make it
10197           the exact size the items need, no bigger. Fixes #81612.
10198
10199 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
10200
10201         * Application.cs: When we have captured the keyboard for a menu,
10202         check for mouse down events in case we need to close the menu.
10203         * Control.cs, Form.cs: Remove mouse down checks for menus.
10204
10205 2007-05-24  Jackson Harper  <jackson@ximian.com>
10206
10207         * TextControl.cs: Handle tabs in non multiline mode a little
10208         differently.
10209
10210 2007-05-24  Jackson Harper  <jackson@ximian.com>
10211
10212         * TextControl.cs: We need to manually break apart tabbed text and
10213         move the tabs, since the system.drawing tabbing mechanism relies
10214         on tab stops.
10215         * TextBoxBase.cs: Move the caret properly when the user enters a
10216         tab.
10217
10218 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
10219
10220         * ContainerControl.cs: Don't check CanSelect before calling
10221         ProcessMnemonic.
10222         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
10223         release a KeyboardActive on click if it's not ours.
10224
10225 2007-05-23  Andreia Gaita  <avidigal@novell.com>
10226
10227         * ColumnHeader.cs: Add TypeConverter
10228
10229 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
10230
10231         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
10232
10233 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
10234
10235         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
10236
10237 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
10238
10239         * LinkLabel.cs: Implement public Padding property.
10240
10241 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
10242
10243         * LinkLabel.cs: Implement public FlatStyle.
10244
10245 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
10246
10247         * Control.cs: Apply patch from George to call parent.PerformLayout
10248         when Visible is changed.  [Fixes bugs #81118, 81718]
10249
10250 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
10251
10252         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
10253
10254 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
10255
10256         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
10257
10258 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
10259
10260         * ContextMenu.cs: Implement Collapse.
10261
10262 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
10263
10264         * ToolBarButton.cs: Implement Name.
10265
10266 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
10267
10268         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
10269         use current_item, it prevents some NRE. Fixes #81675.  
10270
10271 2007-05-22  Andreia Gaita  <avidigal@novell.com>
10272
10273         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
10274         without updating the text.
10275
10276 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
10277
10278         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
10279         without calling DeleteObject.  [Should fix bug #81709]
10280
10281 2007-05-22  Jackson Harper  <jackson@ximian.com>
10282
10283         * RichTextBox.cs: Set the line endings correctly, when flushing
10284         RTF text.
10285
10286 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
10287
10288         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
10289          {Width=0,Height=0}.
10290
10291 2007-05-22  Jackson Harper  <jackson@ximian.com>
10292
10293         * TreeView.cs: Setting top with a null node should set to the very
10294         top.
10295
10296 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10297
10298         * Form.cs: ShowDialog: destroy the handle when message loop is
10299           finished, matches MS behaviour. Refactor parts of WmClose into
10300           RaiseCloseEvents, that only raises events if they haven't already
10301           been raised. Fixes #81688 and #81521.
10302         * Application.cs: Don't call close on the form when exiting a modal
10303           loop, it will raise all the (Form)Closed/Closing events again if
10304           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
10305           which doesn'r raise any events it they have been raised before.
10306
10307 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
10308
10309         * Control.cs: Add OnPrint.
10310         * ToolStrip.cs: Add GetChildAtPoint.
10311         * ToolStripContainer.cs: Add OnRightToLeftChanged.
10312         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
10313
10314 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
10315
10316         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
10317
10318 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10319
10320         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
10321           isn't visible anymore. Fixes #81651.
10322
10323 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10324
10325         * Control.cs: WmShowWindow: Update children's z-order after setting
10326           their parent. SetParent may show the window, thereby corrupting
10327           z-order, since the window will be shown on top.
10328         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
10329           multiple (and redundant) WM_SHOWWINDOW messages.
10330         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
10331           event has already been raised.
10332         * Form.cs: Change is_changing_visible_state to a counter, since
10333           SetVisibleCore can be called recursively. CreateHandle: when
10334           creating mdi children, send (De)Activated events.
10335         * MdiClient.cs: Update use of is_changing_visible_state.
10336         * Application.cs: OnThreadException: Surround exception handling with
10337           try/finally to ensure we always reset the error-handling state
10338           before leaving.
10339
10340 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10341
10342         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
10343           (#81704).
10344
10345 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10346
10347         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
10348         SmallIcon views, now that we have a standarized horizontal spacing.
10349
10350         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
10351         4, just like the other views (Match .Net).
10352
10353 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
10354
10355         * Control.cs: Delay calculating anchor distances until we actually layout.
10356         Always query the WM for the actual size and location it put us at instead of
10357         only when we send negative values.
10358         [Fixes bugs #81694, 81695]
10359
10360 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10361
10362         * Application.cs: Avoid a possible stack overflow when trying to exit
10363           the application.
10364
10365 2007-05-19  Marek Safar  <marek.safar@gmail.com>
10366
10367         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
10368         enum value.
10369
10370 2007-05-19  Andreia Gaita  <avidigal@novell.com>
10371
10372         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
10373         * NumericUpDownAcceleration.cs, 
10374           NumericUpDownAccelerationCollection.cs: Added 2.0
10375           implementation.
10376
10377 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
10378
10379         * RichTextBox.cs: Recalculate the document after the ScrollBars
10380         property is changed. Fixes bug #81681.
10381
10382 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
10383
10384         * DataObject.cs: Implement 2.0 methods.
10385
10386 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10387
10388         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
10389         in the center of the checkbox, not in the left-top corner. 
10390         Fixes #80037.
10391
10392 2007-05-18  Jackson Harper  <jackson@ximian.com>
10393
10394         * RichTextBox.cs: Recalculate the document after the scrollbars
10395         property is changed.
10396         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
10397         81486.
10398
10399 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10400
10401         * CreateParams.cs: Make HasWindowManager marginally faster.
10402         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
10403           into Hwnd so that other drivers can use it as well.
10404         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
10405           the default location from Hwnd. Fixes MDI client windows always
10406           showing up at (0,0) in Windows (Win32 won't set the default
10407           location since the window styles aren't correct).
10408
10409 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
10410
10411         * TreeView.cs: Modified DoubleBuffered to just use the base
10412         implementation.
10413
10414 2007-05-18  Jackson Harper  <jackson@ximian.com>
10415
10416         * TreeView.cs: Set the top node to the last child node when
10417         expanding all
10418         - When we get focus, if there is no selected node, use the top
10419         node.
10420
10421 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
10422
10423         * KeysConverter.cs: Add CanConvertTo.
10424         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
10425         * LinkConverter.cs: Added.
10426
10427 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
10428
10429         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
10430         it prevents error when file dont have write access. Fixes #81669 and #81667.  
10431
10432 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
10433
10434         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
10435         button text. Fixes #79640.  
10436
10437 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
10438
10439         * Control.cs: According to MSDN controls created in the designer theres 
10440         keyboard accelerators visible by default. So included check for design
10441         in ShowKeyboardCuesInternal.  
10442
10443 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
10444
10445         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
10446         text. Fixes #81621.  
10447
10448 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
10449
10450         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
10451         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
10452
10453 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
10454
10455         * Control.cs: Finish implementation of UI State using WmChangeUIState
10456         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
10457         in some controls to check for show_keyboard_cues to draw accell keys "_".  
10458
10459 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10460
10461         * ListBox.cs: When calculating the horizontal scrollbar
10462         in single column mode, don't use values less than 0 for
10463         Maximum. Fixes #81474.
10464
10465 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10466
10467         * ListBox.cs: Throw the some missing exceptions in
10468         ListBox.ObjectCollection methods.
10469
10470 2007-05-17  Jackson Harper  <jackson@ximian.com>
10471
10472         * TextBoxBase.cs: Recalculate the document when the word wrap
10473         value has changed. This fixes 81488.
10474
10475 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
10476
10477         * Clipboard.cs: Implement missing GetText overload.
10478
10479 2007-05-17  Chris Toshok  <toshok@ximian.com>
10480
10481         * Control.cs (CheckDataBindings): remove the binding_context arg
10482         to binding.Check.
10483
10484         * CurrencyManager.cs (OnItemChanged): fix this now that
10485         BindingManagerBase is fixed. also remove the comment telling where
10486         the fix should go.  We set transfering_data to true/false around
10487         the call to PushData to keep UpdateIsBinding from being called.
10488         (ListChangedHandler): remove the extra OnMetaDataChanged call for
10489         PropertyDescriptorAdded in the 1.1 case.  The extra call is
10490         actually generated by System.Data generating 2 metadata changed
10491         events of its own per column add.  The fix should go there.  Add a
10492         comment to that affect in our test's Assert.Ignore.
10493
10494         * BindingManagerBase.cs: Rework PullData and PushData slightly.
10495         we keep a boolean flag (transfering_data) that keeps us from
10496         calling UpdateIsBinding multiple times if we re-enter either of
10497         them.
10498
10499         * ControlBindingsCollection.cs (AddCore): remove the
10500         binding_context arg to binding.Check.
10501
10502         * Binding.cs (IsBinding): don't check if we're binding here, just
10503         return our cached value.  we update it in UpdateIsBinding.
10504         (Check): don't take the binding_context arg, we'll just use our
10505         control's.  Also, for some reason MS doesn't use the data member
10506         field when getting the bindingmanager for this binding.  it just
10507         uses the datasource.  Make this method callable multiple times,
10508         and only do the is_null_desc stuff if manager.Position != -1 (so
10509         we don't get an exception accessing manager.Current).
10510         (UpdateIsBinding): move the code from IsBinding here.
10511         (PositionChangedHandler): call Check here to we can initialize
10512         things that require a non- -1 position.
10513
10514 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
10515
10516         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
10517         control.
10518
10519 2007-05-17  Andreia Gaita  <avidigal@novell.com>
10520
10521         * TabControl.cs: Add 2.0 methods and events, including
10522         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
10523         * TabPage.cs: Add 2.0 methods
10524
10525 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
10526
10527         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
10528         keyboard_cues is properly handled by message method.  
10529
10530 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
10531
10532         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
10533
10534 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
10535
10536         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
10537
10538 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
10539
10540         * Control.cs: 
10541         - WmUpdateUIState added to handle state changes, it make call to
10542         OnChangeUICues event.
10543         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
10544         SystemInformation.
10545
10546 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
10547
10548         * ImageKeyConverter.cs: Added.
10549         * TreeViewImageKeyConverter.cs: Added.
10550
10551 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10552         
10553         * ToolTips.cs: Update Text if SetToolTip is called for a control
10554         already showing the tooltip, as well as restarting its timer; show
10555         tooltip if we are inside the control bounds by the time of calling
10556         SetToolTip. Inside ShowTooltip remove the check to not show the 
10557         tooltip again for the active control (it is allowed by .Net to 
10558         show the tooltip on the same control multiple times).
10559
10560 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10561
10562         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
10563
10564 2007-05-16  Andreia Gaita <avidigal@novell.com> 
10565
10566         * ContainerControl.cs: only process tab key if there are no 
10567         modifier keys present, otherwise the control does the 
10568         tab processing, if it needs to. Fixes #81622
10569         * TabControl.cs: Fixes calculation for which tab to select on
10570         shift+ctrl+tab.
10571
10572 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10573
10574         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
10575
10576 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
10577
10578         * Control.cs: Make IsInputCharInternal to allow controls to
10579         override it and still match MS API.
10580         * TextBoxBase.cs: Override IsInputCharInternal and always
10581         return true.
10582         [Fixes bug #81616]
10583
10584 2007-05-15  Jackson Harper  <jackson@ximian.com>
10585
10586         * TextBox.cs: Disable some of the menu options when using a
10587         readonly textbox.
10588
10589 2007-05-15  Jackson Harper  <jackson@ximian.com>
10590
10591         * TextBox.cs:
10592         * TextBoxBase.cs:
10593         * RichTextBox.cs: Some new 2.0 methods
10594
10595 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
10596
10597         * FileDialog.cs: On 1.0 profile, do not support multidotted 
10598         extensions.
10599
10600 2007-05-14  Jackson Harper  <jackson@ximian.com>
10601
10602         * TextBoxBase.cs: Implement some of the new 2.0 methods.
10603         * RichTextBox.cs: We need to override these methods on 2.0.
10604         * MaskedTextBox.cs: These are implemented now
10605         * TextControl.cs: This was off by one.
10606
10607 2007-05-14  Jackson Harper  <jackson@ximian.com>
10608
10609         * TextControl.cs: Because the line endings are including in the
10610         text, we don't need to add them in anymore.
10611
10612 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
10613
10614         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
10615         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
10616
10617 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
10618
10619         * ToolBar.cs: Adjust size to default size when button theres no text and
10620         image, it fixes remaining issues from #81524.
10621
10622 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
10623
10624         * ToolBar.cs: 
10625         - When not flat call redraw to recalculate sizes on creare handle to match
10626         win32 behavior.
10627         - Revert 77220 because it causes some regressions in toobar
10628         button.
10629
10630 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10631
10632         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
10633           now actually enters a usable state.
10634
10635 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
10636
10637         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
10638         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
10639         3 buttons.
10640
10641 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
10642
10643         * ToolBar.cs: Save default_size on create handle to use later for buttons
10644         without text, needed to mimic win32 behavior.
10645
10646 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
10647
10648         * ToolBar.cs: Fix button layour to best fit width or height according to
10649         vertical or not. Fixes #81524.
10650
10651 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
10652
10653         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
10654         toolbar size info because different styles theres different sizes.
10655         Fixes #81522.
10656
10657 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10658
10659         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
10660         if we are using checkboxes, checked is true, and we have less
10661         than two images in StateImageList; for the 1.1 in the same scenario
10662         draw the first image if we have at least one image in StateImageList.
10663         Fixes part of #81191.
10664
10665 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
10666
10667         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
10668         the owner's Items collection on merge.
10669
10670 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
10671
10672         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
10673         * ToolStripItemCollection.cs: Lots of fixes to when events get called
10674         and parent/owner gets changed based on gert's unit tests.
10675
10676 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10677
10678         * MaskedTextBox.cs: Started implementing parts of it.
10679
10680 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10681
10682         * ListView.cs: When clicking the checkbox on the items
10683         take into account the double clicks even if we have only
10684         one image in StateImageList (only for 1.0/1.1). Also 
10685         generate an extra change of checked state when we receive
10686         the second click on checkbox (match .Net behaviour). 
10687         Fixes part of #81191.
10688
10689 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
10690
10691         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
10692
10693 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
10694
10695         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
10696         even if OnLoad is overriden and base.OnLoad is not called.
10697         [Fixes bug #81582]
10698
10699 2007-05-10  Andreia Gaita  <avidigal@novell.com>
10700
10701         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
10702         shame. (I blame my ever-persisting and annoying cold)
10703
10704 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
10705
10706         * ListView.cs: Don't eat navigation keys.  Let them flow through to
10707         KeyDown/KeyPress routines.  [Fixes bug #81569]
10708
10709 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
10710
10711         * ListView.cs: When handling keys for selecting the item based off
10712         keyboard input, do not consider keys pressed with Alt or Control.  Also,
10713         correctly handle keys when the Shift key is down. [Fixes bug #81578]
10714
10715 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
10716
10717         * Control.cs: When using UseWaitCursor, we have to store the requested
10718         Cursor to use when UseWaitCursor is turned off.
10719
10720 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
10721
10722         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
10723         to false.
10724         * Application.cs: Use PreProcessControlMessage instead of
10725         PreProcessMessage.
10726         * PreProcessControlMessage.cs: Make internal for 1.1.
10727
10728 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10729
10730         * Control.cs: Add InternalContains focus property, which hast the same
10731         functionality of ContainsFocus, but also including implicit controls.
10732         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
10733         since we need to know if the focus is contained in our implicit
10734         ItemControl when calculating Layout. Fixes part of #80888.
10735
10736 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
10737
10738         * ToolTip.cs: Remove center form string alignment as it must be align to
10739         left.
10740
10741 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
10742
10743         * ToolStripItemCollection.cs: Set the new item's parent and owner
10744         in Insert like we do in Add.  [Fixes bug #81568]
10745
10746 2007-05-08  Jackson Harper  <jackson@ximian.com>
10747
10748         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
10749         - Off by one error in SetTop
10750         - Disable DoubeBuffering
10751         
10752 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10753
10754         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
10755           control as much as necessary in order to make it entirely visible,
10756           instead of centering the control in the container (matches MS
10757           behaviour). CalculateCanvasSize: we need to take the current scroll
10758           position into account when calculating the maximum canvas,
10759           otherwise the following scenario will fail: resize so that the
10760           scrollbars appear, use the scrollbars to scroll, resize again
10761           smaller, and now the canvas size is too small. Recalculate: when
10762           showing scrollbars make sure they start off at 0, and try to scroll
10763           the active control into view. Fixes #79540. HandleScrollBar: don't
10764           scroll anywhere if the scrollbar isn't visible.
10765
10766 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10767
10768         * ListView.cs: When focus changed, call Layout/Invalidate
10769         in the focused item to update the selected state (should show
10770         entire label when ListView is focused, and a part of it if is not).
10771         * ListViewItem.cs: When doing layout for LargeIcon, take into account
10772         for displaying the entire label not only the Focused state of the
10773         item, but also the Focused state of the ListView (match .Net
10774         behaviour).
10775
10776 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
10777
10778         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
10779         Implement UseWaitCursor. 
10780
10781 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
10782         Applying contributed patch from Sergey Volk.
10783
10784         * Clipboard.cs: Implement SetDataObject retry logic and new overload
10785         of SetDataObject.
10786         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
10787
10788 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
10789
10790         * Control.cs: Implement DrawToBitmap.
10791
10792 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
10793         Applying contributed patch from Stefan Noack.
10794         
10795         * Control.cs: Add [Get|Set]AutoSizeMode.
10796
10797 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
10798
10799         * MdiClient.cs: Unmerge menus when the last child is closed.
10800
10801 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
10802
10803         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
10804         * ToolStripManager.cs: Call Merge on DropDowns.
10805         [Fixes bug #81477]
10806
10807 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10808
10809         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
10810           uints.
10811         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
10812           visibility. We can't create forms visible, since we have to set the
10813           owner before making the form visible (otherwise Win32 will do
10814           strange things with task bar icons). The problem is that we set the
10815           internal is_visible to true before creating the control, so
10816           is_changing_visible_state is the only way of determining if we're
10817           in the process of creating the form due to setting Visible=true -
10818           this works because SetVisibleCore explicitly makes the form
10819           visibile afterwards anyways. Fixes #80775.
10820
10821 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10822
10823         * ThemeWin32Classic.cs: When drawing ListViewItems,
10824         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
10825         or LargeIcon _and_ item is not focused (match .Net behaviour).
10826
10827 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
10828
10829         * Control.cs, Form.cs: Fix some obsolete method warnings.
10830
10831 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
10832
10833         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
10834         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
10835
10836 2007-05-04  Andreia Gaita  <avidigal@novell.com>
10837
10838         * ContainerControl.cs: Fix active_control attribution when going
10839         up the parent chain so that the first parent container gets the control
10840         and the rest of the parent containers get the child containers (skips
10841         non-containers). Fixes #80729
10842
10843 2007-05-04  Randolph Chung  <tausq@debian.org>
10844
10845         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
10846         [Fixes bug #81499]
10847
10848 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10849
10850         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
10851           takes a size parameter, since the CreateParam's size isn't true for
10852           minimized forms. Fixes #81518,
10853
10854 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10855
10856         * Form.cs: Add OnDeactivateInternal.
10857         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
10858
10859 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10860
10861         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
10862           accessing the parent. Fixes #81508.
10863
10864 2007-05-03  Chris Toshok  <toshok@ximian.com>
10865
10866         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
10867         2.0 block, pass listposition + 1 to ChangeRecordState when a row
10868         was added before the current listposition.  Fixes the
10869         TestInsertRowBeforeCurrent unit test.
10870
10871 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
10872
10873         * Application.cs: Add RaiseIdle.
10874         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10875         XplatUIX11.cs: Implement RaiseIdle.
10876
10877 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
10878         corcompare work: N - Z
10879         * NotifyIcon.cs
10880         * ProgressBar.cs
10881         * RadionButton.cs
10882         * ScrollableControl.cs
10883         * SplitContainer.cs
10884         * SplitterPanel.cs
10885         * StatusBar.cs
10886         * SystemInformation.cs
10887         * TabControl.cs
10888         * TableLayoutControlCollection.cs
10889         * TableLayoutPanel.cs
10890         * TabPage.cs
10891         * ToolBar.cs
10892         * ToolBarButton.cs
10893         * ToolStrip.cs
10894         * ToolStripComboBox.cs
10895         * ToolStripContainer.cs
10896         * ToolStripContentPanel.cs
10897         * ToolStripDropDown.cs
10898         * ToolStripDropDownItem.cs
10899         * ToolStripDropDownMenu.cs
10900         * ToolStripItem.cs
10901         * ToolStripItemCollection.cs
10902         * ToolStripMenuItem.cs
10903         * ToolStripPanel.cs
10904         * ToolStripSplitButton.cs
10905         * ToolTip.cs
10906         * TreeNode.cs
10907         * TreeNodeCollection.cs
10908         * TreeNodeMouseHoverEventArgs.cs
10909         * TreeView.cs
10910
10911 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
10912
10913         * ContextMenu.cs: Add public method Show with alignment property to 2.0
10914         stuff. Thanks aatdark for the patch. 
10915
10916 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
10917
10918         * GridItem.cs: Implement 2.0 Tag property.
10919
10920 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
10921
10922         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
10923         count instead of Nodes.Length.  [Fixes bug #81448]
10924
10925 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
10926
10927         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
10928         [Fixes bug #81506]
10929
10930 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
10931         corcompare work: A - M
10932         * BindingNavigator.cs
10933         * Button.cs
10934         * ButtonBase.cs
10935         * CheckBox.cs
10936         * Control.cs
10937         * FlowLayoutPanel.cs
10938         * Form.cs
10939         * Label.cs
10940         * LinkLabel.cs
10941         * ListView.cs
10942
10943 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
10944
10945         * Application.cs: Give toolstrips a chance to process mnemonics.
10946         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
10947         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
10948         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
10949
10950 2007-05-01  Jackson Harper  <jackson@ximian.com>
10951
10952         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
10953         wider area too.
10954         - Don't set the BoundsSpecified
10955
10956 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
10957
10958         * Application.cs: When using the toolstrip shortcut mechanism, allow the
10959         message to pass through to a regular control if it hosted by a toolstrip.
10960         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
10961         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
10962
10963 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
10964
10965         * TextRenderer.cs: Use the flags argument when using the MeasureString
10966         fallback algorithm.
10967
10968 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
10969
10970         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
10971         the MDI menu item.  [Fixes bug #81483]
10972
10973 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
10974
10975         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
10976         string. When setting Name to null, use zero-length string instead.
10977
10978 2007-04-29  Andreia Gaita  <avidigal@novell.com>
10979
10980         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
10981         DeselectTab). Implement missing 2.0 TabPageCollection methods
10982         (Add, ContainsKey, RemoveByKey, IndexOfKey)
10983
10984 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
10985
10986         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
10987
10988 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
10989
10990         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
10991         Fixes bug #81479. Include details of exception when LoadFile fails.
10992
10993 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
10994
10995         * DrawListViewSubItemEventArgs.cs: Added missing setter
10996
10997 2007-04-27  Andreia Gaita  <avidigal@novell.com>
10998
10999         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
11000         Hide methods (not complete). Implement missing 2.0 OnPopup event.
11001
11002 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11003
11004         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
11005         removed in ly last commit (it was breaking the Label edit feature).
11006
11007         * ThemeWin32Classic.cs: When drawing a ListViewItem use
11008         StringAlignment.Near for LineAlignment (match .Net).
11009
11010 2007-04-27  Andreia Gaita  <avidigal@novell.com>
11011
11012         * TabControl.cs: Change SetTab so it adds the tabpage to the list
11013         of controls if it isn't already there - was blowing up when doing
11014         tabcontrol.TabPages[i]=new TabPage(). 
11015         SetTab now does a replace by removing the page at the index. 
11016         Add a new InsertTab method that inserts a page in a given index 
11017         instead of replacing. 
11018         Implements TabPageCollection.Insert(int, TabPage).
11019
11020 2007-04-27  Chris Toshok  <toshok@ximian.com>
11021
11022         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
11023         internal handler that can be invoked from our subclasses.)  Also,
11024         add a comment to PushData about how we need to fix it.
11025
11026         * CurrencyManager.cs: tons of changes here.  trying to get things
11027         matching the behavior of .net wrt event orders (ItemChanged,
11028         CurrentChanged, PositionChanged.)  I've implemented a private .net
11029         symbol (ChangeRecordState) that appears in stack traces because
11030         it's actually easier to do this than to effective inline all its
11031         various behaviors at every call site.
11032
11033         * RelatedPropertyManager.cs: guard against an exception here by
11034         not using parent.Current if the position is set to -1 (if the
11035         parent datasource is cleared, for instance).
11036
11037         * Binding.cs: don't parse data in PushData (this might be wrong,
11038         but it jives with MS's behavior.)  Also, don't call PushData when
11039         we get a CurrentChanged event.
11040
11041 2007-04-27  Andreia Gaita  <avidigal@novell.com>
11042
11043         * WebBrowser.cs,
11044           WebBrowserBase.cs,
11045           WebBrowserSiteBase.cs,
11046           HtmlDocument.cs: Added stubbed out classes, no real implementations 
11047           yet.
11048
11049 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
11050
11051         * MainMenu.cs: In draw method without parameters call draw method with 
11052         PaintEvent, another one (just rect) adjust rectangle and we dont need it
11053         as Rect property is already adjusted. Fixes #80694.
11054
11055 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
11056
11057         * Application.cs: Need to handle keyboard menu deselection here.
11058         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
11059         navigation, allowing keyboard to work on X11.
11060         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
11061
11062 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
11063
11064         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
11065         menu bar. It fixes some drawing issues in menu bar.
11066
11067 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
11068
11069         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
11070         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
11071         when <alt> key is pressed.
11072
11073 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
11074
11075         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
11076         example just set visible to false and make this prevent from other problems.
11077         In SystrayAdd always remove pending expose. Fixes #81072.
11078
11079 2007-04-26  Marek Safar  <marek.safar@gmail.com>
11080
11081         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
11082         value is set.
11083
11084 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
11085
11086         * ListView.cs: Added three missing 2.0 events and corresponding
11087         EventHandlers. Added the OwnerDraw property.
11088         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
11089
11090 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
11091
11092         * DrawListViewItemEventArgs.cs
11093         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
11094
11095 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
11096
11097         * TextControl.cs: Fixed typo in constructor
11098
11099 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
11100
11101         * Application.cs: Create a shortcut path so that currently selected
11102         MenuStrips can intercept keyboard events without having focus.
11103         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
11104         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
11105         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
11106         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
11107         generate WM_SYSCOMMAND message in X11 for other platforms.
11108         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
11109         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
11110         * ToolStripSplitButton.cs: Add DefaultItem property.
11111         
11112 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
11113
11114         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
11115         fixes some menu draw problem on Windows with border diferent from default
11116         it also fixes #81403.
11117
11118 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11119
11120         * Form.cs: Refactor WndProc into separate methods, just like Control is
11121           doing it.
11122
11123 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11124
11125         * Control.cs: set_Text: move the call to the driver into a seperate
11126           virtual method so that Form can override it.
11127         * MaskedTextBox.cs: Corcompare fixes.
11128         * Form.cs: Override UpdateWindowText and only update the styles if the
11129           form has been shown (fixes #81405).
11130
11131 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
11132
11133         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
11134         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
11135         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
11136         the form lost focus or another control was clicked.
11137
11138 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
11139
11140         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
11141         fixed.
11142
11143 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11144
11145         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
11146           DrawListViewItemEventHandler.cs,
11147           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
11148           Added.
11149         * X11Structs.cs: More ToString implementation.
11150
11151 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
11152
11153         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
11154         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
11155
11156 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11157
11158         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
11159           handle.
11160         * FormCollection.cs: Don't add a form if it's already in the
11161           collection.
11162         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
11163           according to behaviour and MSDN. The ownerWin32 is the active
11164           window at the moment when we call ShowDialog, not the context's
11165           main form (the context's main form may open another form that opens
11166           a form with ShowDialog, the win32 owner is the second form). Add
11167           and remove forms to the Application.OpenForms in other places to
11168           better match MS behaviour. Add an IsActive property that raises
11169           On(de)Activated only if the active state has changed (we were
11170           raising OnDeactivated before OnActivated while creating forms).
11171         * Application.cs: Refactor Enabling/Disabling of windows for modal
11172           dialog loops out to separate methods, and restore the thread
11173           context when we quit the method. Fixes #81407.
11174
11175 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11176
11177         * ListView.cs: In ItemControl.HandleClicks, also fire 
11178         2.0 MouseClick or MouseDoubleClick events on the parent,
11179         not only the Click/DoubleClick events.
11180
11181 2007-04-24  Andreia Gaita  <avidigal@novell.com>
11182
11183         * TableLayoutSettings.cs: 
11184         - Added a GetControls method and a support structure to help the 
11185         TypeConverter to enumerate the controls for     serialization. 
11186         - Added a new serialization constructor. 
11187         - Added a isSerialized flag initialized to true on the 
11188         serialization constructor so that the TableLayoutPanel.LayoutSettings 
11189         setter does not throw the designed NotSupportedOperation exception
11190         when the object is built through deserialization.
11191         - Implemented GetObjectData
11192         
11193         * TableLayoutPanel.cs: Added check on LayoutSettings.
11194
11195 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11196
11197         * ListView.cs: Report Click and DoubleClick events to the parent
11198         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
11199         from breaking the click count state when using dialog forms (Control
11200         reports the clicks in a similar fashion). In the previous behaviour
11201         the last WM_LBUTTONUP message in a  double click was sent to the
11202         ListView's form, instead of the ListView, which was breaking the click
11203         count for it. Fixes #80387.
11204
11205 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
11206
11207         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
11208
11209 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
11210
11211         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
11212         us from created dropdowns for menu items that do not have subitems.
11213         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
11214         Check HasDropDownItems before calling DropDown so a dropdown will not be
11215         created if it isn't needed.
11216
11217 2007-04-24  Jackson Harper  <jackson@ximian.com>
11218
11219         * TreeView.cs: Set the first node to the selected node when we get
11220         focus if there is no selected node.
11221
11222 2007-04-24  Andreia Gaita  <avidigal@novell.com>
11223
11224         * MimeIcon.cs: remove using blocks so that image streams are
11225         not disposed of. Fixes #80151
11226
11227 2007-04-24  Jackson Harper  <jackson@ximian.com>
11228
11229         * TextBoxBase.cs: Fixup the height of textboxes when the control
11230         is created.
11231
11232 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
11233
11234         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
11235         for each ToolStripItem when the parent's RightToLeftChanged is called.
11236
11237 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11238
11239         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
11240           Fixes #80163.
11241         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
11242           property, so that the setter can be overriden too.
11243         * TextBox.cs: Change GetContextMenuInternal() to use
11244           ContextMenuInternal.
11245
11246 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11247
11248         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
11249           #81406.
11250
11251 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11252
11253         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
11254           #81406.
11255
11256 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11257
11258         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
11259           avoid duplicate work. Mostily skeleton code, it's not working at
11260           all yet.
11261
11262 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
11263
11264         * NotifyIcon.cs : stub for MouseClick event
11265         * Application.cs: stub for SetUnhandledExceptionMode
11266
11267 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
11268
11269         * BindingNavigator.cs : Initial (partial) implementation
11270
11271 2007-04-23  Jackson Harper  <jackson@ximian.com>
11272
11273         * TreeView.cs: Do not create the treeview's handle when setting
11274         the scroll position.
11275         - ExpandAll needs to compute the scrollbars so it knows which
11276         position to set the bar too.
11277         * TreeNode.cs: 
11278         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
11279
11280 2007-04-23  Jackson Harper  <jackson@ximian.com>
11281
11282         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
11283         key. Fixes #81408.
11284
11285 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
11286
11287         * ToolStripItem.cs: Make GetImageSize internal.
11288         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
11289         need to draw an item.  Fixes a reported issue where images on menus
11290         that were not 16x16 were drawing incorrectly.
11291
11292 2007-04-21  Miguel de Icaza  <miguel@novell.com>
11293
11294         * Padding.cs: Use the converter, fixes the resgen2 issue with
11295         XMLNotePad. 
11296
11297 2007-04-21  Jackson Harper  <jackson@ximian.com>
11298
11299         * TreeView.cs: Dont try to unhighlight the selected node if there
11300         isn't a selected node.
11301
11302 2007-04-21  Jackson Harper  <jackson@ximian.com>
11303
11304         * UpDownBase.cs:
11305         * TextBoxBase.cs:
11306         * ListView.cs:
11307         * ListBox.cs:
11308         * TreeView.cs: Use the InternalBorderStyle property to set the
11309         initial border style, this forces the client rectangle to be sized
11310         correctly.
11311
11312 2007-04-20  Jackson Harper  <jackson@ximian.com>
11313
11314         * TreeView.cs: Simplify scrolling to the last node after expanding
11315         all.
11316         - Fix some off by ones with setting the bottom.
11317
11318 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
11319
11320         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
11321         that.  We were incorrectly doing it the other way around.  Also,
11322         update ClientSize if we change the BorderStyle before the control
11323         is created.
11324
11325 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
11326
11327         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
11328         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
11329         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
11330         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
11331         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
11332         Caption to CaptionHeight.
11333         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
11334         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
11335         and FixedFrameBorderSize to return value from current XplatUI driver.
11336         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
11337         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
11338         and FixedFrameBorderSize using win32 API. Renamed Caption to
11339         CaptionHeight.
11340         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
11341         * SystemInformation.cs: Fixed typo in BorderSize.
11342
11343 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
11344
11345         * XplatUI.cs: Added MenuAccessKeysUnderlined.
11346         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
11347         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
11348         returning false.
11349         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
11350         value from XplatUI driver.
11351         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
11352         SystemParametersInfo.
11353         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
11354         override.
11355         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
11356         returning false.
11357
11358 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11359
11360         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
11361
11362 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11363
11364         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
11365
11366 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
11367
11368         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
11369         MenuStrips that contain ToolStripSeparators.
11370
11371 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11372
11373         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
11374           DefineStdCursorBitmap.
11375         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
11376           has been created off a standard cursor. This is used to get a
11377           bitmap of the standard cursor when Draw or DrawStretched is called
11378           in order to draw the cursor.
11379         * X11Structs.cs: Added XcursorImage and XcursorImages.
11380         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
11381           DefineStdCursorBitmap.
11382         * Cursors.cs: Update all relevant creations of Cursor to use the new
11383           internal constructor.
11384
11385 2007-04-19  Jackson Harper  <jackson@ximian.com>
11386
11387         * TextBox.cs: Move the has_been_focused into the base control, so
11388         some of the text adding methods can manipulate it (probably time
11389         for a better name for this flag too).
11390         - Call a new version of selectall that doesn't scroll
11391         * TextBoxBase.cs: When we append text, if the document is empty,
11392         don't scroll.  If the document has text already, we scroll to the
11393         end of the appended text.
11394         - When the text is changed, we reset the has_been_focused, so the
11395         next time the control gets focused, all the text is selected.
11396
11397 2007-04-19  Jackson Harper  <jackson@ximian.com>
11398
11399         * TextControl.cs: Move the margins to the document, add a method
11400         so the margin sizes can be updated.
11401         * TextBoxBase.cs: When the border style is changed, update the
11402         border sizes.
11403
11404 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
11405
11406         * Control.cs: Respect DefaultPadding.
11407         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
11408         padding into account.
11409         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
11410
11411 2007-04-19  Jackson Harper  <jackson@ximian.com>
11412
11413         * TextControl.cs: Oops, we need to use the ClientRect not the
11414         bounds here.
11415
11416 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11417
11418         * ListView.cs: In ItemControl.ItemsMouseDown, take into
11419         account the double clicks when CheckBoxes are used and
11420         the pointer is inside the checkbox. Fixes part of #81191.
11421
11422 2007-04-18  Jackson Harper  <jackson@ximian.com>
11423
11424         * TextControl.cs: Pressing the end key shouldn't move the caret
11425         past the line ending.
11426         * TextBoxBase.cs: We can still delete if we are in the line
11427         ending and the combine will just kill the existing line ending.
11428
11429 2007-04-18  Jackson Harper  <jackson@ximian.com>
11430
11431         * TextControl.cs: We can't move lines, then invalidate their
11432         bounds, we need to get the old bounds and combine that with the
11433         new bounds.
11434         * TextBoxBase.cs: Before combining two lines for a delete, we need
11435         to invalidate the area of the old line, since that will be moved
11436         in the combine operation.
11437
11438 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
11439
11440         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
11441         with transparent background. Fixes #80482.
11442
11443 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
11444
11445         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
11446         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
11447         [Fixes bug #81391]
11448
11449 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11450
11451         * CreateParams.cs: Add a couple of helper methods and do a less string
11452           concatenation in ToString.
11453         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
11454           overload that takes a Control parameter, since this method may be
11455           called before a control is assigned to the hwnd (from
11456           CreateWindow), and update CreateWindow to use the new overload. In
11457           GetMenuOrigin subtract the title bar from the y position if the
11458           form has a window manager (since we're painting it and not X).
11459         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
11460           CreateParams to calculate the origin (since border sizes may vary).
11461           In ScreenToMenu only subtract the title height if we actually have
11462           a title.
11463         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
11464           mdi children never have menus of themselves.
11465         * InternalWindowManager.cs: Implement menu handling like form does.
11466           Added GetMenuOrigin to calculate the menu origin, can't use the
11467           CreateParams from the form like normally since it's lying.
11468         * Hwnd.cs: Implement GetBorderSize better (in the sense more
11469           windows-like) and add Inflate and comparison operators to the
11470           Borders type. When calculating MenuOrigin and it's a form with a
11471           window manager, use the window manager to calculate it.
11472
11473 2007-04-17  Chris Toshok  <toshok@ximian.com>
11474
11475         * Control.cs (CreateControl): turns out in 2.0 we don't need this
11476         OnBindingContextChanged thing here.  It's only generated from
11477         ContainerControl.OnCreateControl.  Fixes a newly written unit test
11478         - BindingTest.BindingContextChangedTest4.
11479         
11480 2007-04-17  Jackson Harper  <jackson@ximian.com>
11481
11482         * ScrollBar.cs: When setting values, make sure the current
11483         position stays within the new values range.
11484
11485 2007-04-17  Chris Toshok  <toshok@ximian.com>
11486
11487         * Control.cs (CreateControl): talk about a bizarre corner case.
11488         Don't emit OnBindingContextChanged here if we're a parentless
11489         control (i.e. if we're a form.).  Fixes
11490         BindingTest.BindingContextChangedTest2.
11491
11492 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
11493
11494         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
11495         from win32. Fixes #81255.
11496
11497 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
11498
11499         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
11500         already present in CalculateButtonTextAndImageLayout.
11501
11502 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11503
11504         * XplatUIX11.cs: When setting min/max size for a window we need to
11505           translate the coordinates to x coordinates. Create an overload of
11506           SetWindowMinMax that takes a CreateParams handling this, and change
11507           SetWMStyles to call this function (can't use Control.FromHandle in
11508           the SetWindowMinMax to get the control/CreateParams from the handle
11509           because the handle might not have been assigned to the control
11510           yet). Fixes #81371.
11511
11512 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11513
11514         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
11515         if StateImageList is non-null and it has less than two items (match MS
11516         behaviour). Also, in HandleNavKeys handle the Space key, calling
11517         the new ToggleItemsCheckState method, which tries to change the
11518         checked state of the selected items. Fixes part of #81191.
11519
11520 2007-04-16  Jackson Harper  <jackson@ximian.com>
11521
11522         * RichTextBox.cs: namespace cleanup.
11523
11524 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
11525
11526         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
11527
11528 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
11529
11530         [Fixes #79447]
11531         * Control.cs: Call invalidate in set_Region.
11532
11533         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
11534         it dont works here.
11535
11536 2007-04-16  Jackson Harper  <jackson@ximian.com>
11537
11538         * TextBoxBase.cs: When enter is pressed, we need to update all
11539         lines below the current.
11540
11541 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
11542
11543         * MdiClient.cs: Implement implicit menu merging for MDI
11544         children.  When a child form is active, if it has a menustrip
11545         and the parent form has a MainMenuStrip, automatically merge
11546         the menus.
11547
11548 2007-04-15  Andreia Gaita  <avidigal@novell.com>
11549
11550         * TabControl.cs: Refactored sizing methods to not repeat
11551         code all over the place. Tab bounds are now calculated
11552         as if alignment is top and single line, and only when 
11553         setting the bounds are the positions adjusted according
11554         to alignment. Replaced hardcoded positions, spacings and
11555         paddings by getting the values the ThemeEngine. 
11556         Fixes #79619.
11557         
11558         * Theme.cs: Change TabControl properties and methods so
11559         that all start with TabControl*. Added more properties
11560         to help remove hardcoded values on tabcontrol.
11561         Add CPDrawBorder3D declaration so the Theming classes
11562         can access it.
11563         
11564         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
11565
11566         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
11567         on the Theming namespace, and call the appropriate methods here.
11568         Change CPDrawBorder3D to public.
11569
11570 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11571
11572         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
11573         the control after firing the OnMouseUp event, instead of sending
11574         the message before the mentioned event. This is so we can match the
11575         MS behaviour. Fixes part of #80385.
11576
11577 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
11578
11579         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
11580         RightToLeft property.
11581
11582 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
11583
11584         * ToolStrip.cs: Add properties and internal methods to support merging.
11585         * ToolStripItem.cs: Add MergeAction and MergeIndex.
11586         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
11587         not trigger reparenting or layouts.
11588         * ToolStripManager.cs: Add Merge and RevertMerge methods.
11589         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
11590         is hosting the overflow menu.
11591
11592 2007-04-13  Jackson Harper  <jackson@ximian.com>
11593
11594         * TextControl.cs: Set the line ending correctly for the first
11595         inserted line.
11596
11597 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
11598
11599         * Theme.cs: Update GetMethod to get the new definition for 
11600         KnownColors.Update (and fix theme color updates).
11601
11602 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
11603
11604         * MessageBox.cs: Fix some test and button position.
11605
11606 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11607
11608         * Form.cs: Consider the implicit controls in
11609         GetRealChildAtPoint. We need it since this method
11610         is called on Form when handling the some messages in
11611         WndProc, and need to consider those implicit ones too.
11612         Fixes #80385.
11613
11614 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
11615
11616         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
11617         if there are no ShortcutKeys set.
11618         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
11619         set, use it when painting.
11620
11621 2007-04-12  Jackson Harper  <jackson@ximian.com>
11622
11623         * TextControl.cs: Fix some off-by-one issues in line duplication
11624         and insertion in the undo manager. Also, overwrite the first tag
11625         of a line on insert, if it is just a zero lengthed tag. This
11626         prevents us from getting an extra stranded tag at the beginning of
11627         the first line.
11628
11629 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
11630
11631         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
11632         to calculated proper size including when handle was not created yet.
11633
11634 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11635
11636         * MdiWindowManager.cs: When moving a form, allow the form to be moved
11637           when the mouse is outside of it's parent's client rectangle. Fixes
11638           #79982 (take 3, part 2).
11639
11640 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11641
11642         * X11Structs.cs: Add a few ToString() overrides.
11643         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
11644           the window location in a window-manager independent way. Reworked
11645           FrameExtents, it now actually works. Reworked AddConfigureNotify
11646           and ReparentNotify handling to use GetTopLevelWindowLocation
11647           instead of the earlier, more hacky solution. Reworked SetWMStyles,
11648           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
11649           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
11650           for all other windows (fixes #81281 part 1), a toolwindow is hidden
11651           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
11652           and generally refactored to do as few calculations as possible
11653           inside the lock.
11654
11655 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
11656
11657         * Theme.cs: Change "reflective-contract" between MWF and SD to 
11658         minimize # of calls, avoid Color serialization and avoid updating 
11659         every "known colors" each time a single one is updated.
11660
11661 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
11662
11663         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
11664         when not readonly and the text is explicitly set. Code style updates.
11665         * DataGridTableStyle.cs: Removed extra line.
11666         * DataGrid.cs: Code style updates. Removed extra whitespace.
11667         * DataGridColumnStyle.cs: Code style updates. Removed extra 
11668         whitespace.
11669
11670 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11671
11672         * XplatUIX11.cs: Added comment that "fixes" #80021.
11673
11674 2007-04-09  Jackson Harper  <jackson@ximian.com>
11675
11676         * TextControl.cs: We don't need this -1 on the line count anymore.
11677
11678 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
11679
11680         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
11681         entered value to underlying type, and convert it back to a string to
11682         apply formatting. Modified GetFormattedValue to use TypeConverter
11683         if available.
11684
11685 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
11686
11687         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
11688         Use SubItems property when we want to ensure there's at least one
11689         subitem. Modified SubItems property to ensure there's always at least
11690         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
11691         the NRE's reported by MS.
11692
11693 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
11694
11695         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
11696         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
11697         Spaces to tabs. Removed extra tabs.
11698
11699 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
11700
11701         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
11702         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
11703
11704 2007-04-06  Jackson Harper  <jackson@ximian.com>
11705
11706         * TextBoxBase.cs: When a delete removes a line, recalculate all
11707         lines below that line (they need to get offsets setup correctly)
11708         and invalidate.
11709
11710 2007-04-05  Jackson Harper  <jackson@ximian.com>
11711
11712         * TextControl.cs: We need to invalidate across the width of the
11713         document when we are invalidating multiple lines.
11714         * TextBoxBase.cs: Don't delete into the line ending.
11715
11716 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11717
11718         * ListView.cs: Restore the check for the MouseHover event
11719         in ListView. It looks like the ListView fires more than one MouseHover
11720         event when HoverSelection is true  _only_ in weird-corner scenarios, but
11721         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
11722         event.
11723
11724 2007-04-05  Mike Kestner  <mkestner@novell.com>
11725
11726         * ListView.cs : raise MouseDown before updating selection.
11727         [Fixes #80373 tab 1&3]
11728
11729 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
11730
11731         * ToolStripRenderer.cs: Add static method to mirror image.
11732         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
11733         and RightToLeftAutoMirrorImage.
11734         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
11735
11736 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
11737
11738         * ToolStripSplitStackLayout.cs: Support Alignment property.
11739         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
11740
11741 2007-04-05  Jackson Harper  <jackson@ximian.com>
11742
11743         * TextControl.cs: Move around the line endings when crossing line
11744         boundaries.
11745         - When combining lines, strip the ending text off the first line.
11746
11747 2007-04-05  Jackson Harper  <jackson@ximian.com>
11748
11749         * TextControl.cs:
11750         * TextBoxBase.cs: Try to never move the cursor into the line
11751         ending.
11752         
11753 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
11754
11755         * ToolStripItem.cs: Make sure we aren't firing mouse events when
11756         the item is disabled.  Also add a few missing methods.
11757
11758 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11759
11760         * ListView.cs: We don't need the MouseEnter/MouseLeave check
11761         to fire just one MouseHover event when HoverSelection is true, since
11762         .Net does fire more than one MouseHover event in that scenario. Also,
11763         fix the selection in HoverSelection, by invoking UpdateMultiSelect
11764         if MultiSelect is true, instead of only setting ListViewItem.Selected.
11765         Finally, we need to reset the Hover logic in MouseMove, even when we
11766         don't have a selected item.
11767
11768 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
11769
11770         * ToolStrip.cs: Add several missing methods, properties, and events.
11771
11772 2007-04-04  Chris Toshok  <toshok@ximian.com>
11773
11774         * DataGridTextBoxColumn.cs: set the bounds of the text box to
11775         (0,0,0,0) in Commit, as MS does.
11776
11777         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
11778         make sure we set CurrentRow on a row header click *before* calling
11779         Select.  This moves the current cell (and the textbox) to the new
11780         row.  The call to Select then hides the textbox, giving us the
11781         correct behavior.  Fixes #80362.
11782
11783         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
11784         (ListChangedHandler): reorder the position/current changed events,
11785         and call UpdateIsBinding in the ItemAdded case.
11786
11787         * GridColumnStylesCollection.cs: add some columns events, one of
11788         which raises the CollectionChanged event.
11789
11790 2007-04-04  Jackson Harper  <jackson@ximian.com>
11791
11792         * TextControl.cs: When we delete multiple selection lines
11793         invalidate the selection area, don't need to do that for single
11794         lines because the final update view will handle it.
11795
11796 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
11797
11798         * Control.cs: When we CreateControl, we need to also create all of the
11799         control's children.  The child's OnLoad must also fire before the parent's
11800         OnLoad.  Fixes the toolbox size in PDN.
11801
11802 2007-04-04  Jackson Harper  <jackson@ximian.com>
11803
11804         * TextBoxBase.cs: When the user presses enter, insert a line
11805         ending into the text. (Maybe this would be a good spot for
11806         Environment.NewLine).
11807         * TextControl.cs: Remove undo manager hack, line endings get
11808         inserted properly now.
11809         
11810 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
11811
11812         * MenuAPI.cs: 
11813         - Remove unneeded parameters in UpdateCursor.
11814         - Fix UpdateCursor to check if menu is active.
11815         - Call UpdateCursor when menu deactivate my click.
11816         [Fixes remaining issues from #80410]
11817
11818 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
11819
11820         * Control.cs: GetRealChildAtPoint method added, it make an
11821         recursive child control search for the point. 
11822
11823         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
11824         menu.
11825
11826         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
11827
11828 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
11829
11830         * Form.cs: Fix mouse position when send back mouse event after closes
11831         menu.
11832
11833 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
11834
11835         * Form.cs: Simplify the BUTTONDOWN for active tracker.
11836
11837 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
11838
11839         * Control.cs: Fix an issue where if a user resized a control inside
11840         a sizing method like OnResize, we would overwrite their explicit
11841         value.  Also, only call DefaultSize once in the constructor instead
11842         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
11843         nothing actually changed.
11844
11845 2007-04-03  Jackson Harper  <jackson@ximian.com>
11846
11847         * TextControl.cs: Don't attempt to copy text for lines with no
11848         text in them (technically this shouldn't happen, but we aren't
11849         always inserting line endings when we should be).
11850
11851 2007-04-03  Jackson Harper  <jackson@ximian.com>
11852
11853         * TextBoxBase.cs: Calculate the scrollbars before calculating the
11854         document, because this sets some of the document size properties
11855         that are needed.
11856
11857 2007-04-03  Jackson Harper  <jackson@ximian.com>
11858
11859         * TextBoxBase.cs: We need to calculate maximums even if this is
11860         not a multiline control, because the maxs are used for scrolling.
11861         - Display the caret after doing a page up/down, we need to
11862         manually display it because a proper CaretMoved event isn't
11863         triggered (this is because of the way the math is done to
11864         determine how far to scroll).
11865
11866 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
11867
11868         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
11869         (ToolBar was relying on SetBoundsCore to default the values sent 
11870         base off of BoundsSpecified.)
11871
11872 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11873
11874         * DateTimePicker.cs: Change Text so that when a null value or empty
11875           string is assigned to the test we always raise ValueChanged and
11876           TextChanged (earlier implementation would only raise ValueChanged
11877           if the current date value was different from DateTime.Now).
11878
11879 2007-04-03  Andreia Gaita <avidigal@novell.com> 
11880
11881         * ButtonBase: Call update after invalidation, fixes #80194
11882
11883 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11884
11885         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
11886           #79335.
11887
11888 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11889
11890         * XplatUIX11.cs: SetWMStyles: If the control is a form with
11891           FormBorderStyle = None, don't give the window any decorations.
11892           Fixes #81276.
11893
11894 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11895
11896         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
11897         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
11898           to check for is a mix of several styles (such as WS_CAPTION for
11899           instance).
11900         * Control.cs: Don't paint an area bigger than the client area when
11901           painting the background colour. Add an internal GetCreateParams.
11902           Update calls to XplatUI.CalculateWindowRect due to API change.
11903         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
11904           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
11905           the size if it hasn't been handled by any windows. When creating
11906           and moving windows, X wants the location of the entire window, but
11907           the size of the client window, so add
11908           TranslateClientRectangleToXClientRectangle,
11909           TranslateWindowSizeToXWindowSIze and
11910           TranslatedXWindowSizeToWindowSize to cope with this, and call them
11911           before every window creation and move. Update CalculateWIndowRect
11912           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
11913           In AddConfigureNotify don't do anything if the hwnd is a zombie
11914           (fixes the BadWindow we were getting while running the tests),
11915           always calculate the offsets when it's a parentless window, not
11916           only when reparented, and translate the window size, since we're
11917           getting the client size of the whole window, excluding entire
11918           window.
11919         * Theme.cs: Added BorderSizableSize.
11920         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
11921           anymore. Update calls to XplatUI.CalculateWindowRect due to API
11922           chang
11923         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
11924           change. Fake the window styles here instead of in XplatUIWin32 so
11925           that all back-ends get the same window styles (and it's Form that's
11926           deciding when to use wm, not the Win32 backend anyways)
11927         * Hwnd.cs: Completely reworked GetWindowRectangle and
11928           GetClientRectangle - they are now passed a CreateParams and they
11929           only use Style and ExStyle to determine the rectangles (they should
11930           now work just like Win32AdjustWindowRectEx - though quite a few
11931           special cases are probably missing). They should also be 100%
11932           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
11933           == rect), and all numbers (borders, menu sizes) are taken from the
11934           current theme. Added a GetBorders helper function that will return
11935           the borders for any given CreateParams (including captions and
11936           menus), and GetBorderSize that returns the given border size only.
11937         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
11938           Hwnd.GetClientRectangle.
11939
11940 2007-04-02  Chris Toshok  <toshok@ximian.com>
11941
11942         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
11943         logic between the values we present to the user and the values
11944         which are stored in the column's property.  Also, don't call
11945         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
11946
11947 2007-04-02  Jackson Harper  <jackson@ximian.com>
11948
11949         * TextBoxBase.cs: Scroll faster!
11950
11951 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
11952
11953         * StatusStrip.cs: Layout fixes for PDN.
11954         * ToolStrip.cs: Set item's available to true, and placement to main when
11955         added.
11956         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
11957         changing in setter before doing any work, add InternalVisible.
11958         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
11959         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
11960         infinite loop.
11961
11962 2007-04-02  Jackson Harper  <jackson@ximian.com>
11963
11964         * TextBox.cs: LBUTTON does not make the textbox select all of it's
11965         text on focus.
11966
11967 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11968
11969         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
11970           Makes ToolStripComboBoxes show up again.
11971
11972 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11973
11974         * ListView.cs: Add a hover_pending field in ListView
11975         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
11976         cycle (we are resetting the MouseHover logic in XplatUI
11977         to handle HoverSelection). Fixes #80429.
11978
11979 2007-04-02  Jackson Harper  <jackson@ximian.com>
11980
11981         * TextControl.cs: Make sure the attributes get set on the last
11982         tag.
11983         - Still have to do the end tag if we have stepped all the ways to
11984         the end.
11985
11986 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
11987
11988         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
11989         on an internal libgdiplus call when the information is already 
11990         available via the public API.
11991
11992 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11993
11994         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
11995           control is removed from a control collecftion.
11996         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
11997           Fixes FormPropertyTest (failed on rare occasions).
11998         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
11999           of Win32SetParent (when changing from no parent to a parent it
12000           might add the new parent's location in screen coordinates to this
12001           window's location).
12002         * Form.cs: Rework ChangingParent once again, now the handle is
12003           recreated whenever a FormWindowManager is added or removed (that is
12004           whenever a normal form is parented or abandoned). Also change
12005           CreateParams so that all non-toplevel windows always get the
12006           specified sice (StartupPosition is never considered for
12007           non-TopLevel forms).
12008         * ContainerControl.cs: Add ChildControlRemoved, the container control
12009           needs to be notified when a control is removed from it's
12010           collection, in the case the removed control is the active control.
12011
12012 2007-04-02  Jackson Harper  <jackson@ximian.com>
12013
12014         * RichTextBox.cs: Use the new methods for setting the font and
12015         color, these methods set the specified attribute without
12016         overriding the other attributes.
12017
12018 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
12019
12020         * ToolStripPanel.cs: Fixes for better layouts in PDN.
12021
12022 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
12023
12024         * TextBox.cs: Added internal ChangeBackColor method to special-case
12025         Color.Empty. Added check for invalid ScrollBars value.
12026         * TextBoxBase.cs: Added internal ChangeBackColor method.
12027         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
12028         internal ChangeBackColor method to special-case Color.Empty. Added
12029         check for invalid ScrollBars value.
12030
12031 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
12032
12033         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
12034
12035 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
12036
12037         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
12038         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
12039         [Based on submitted patch from Olivier Duff.]
12040
12041 2007-03-30  Jackson Harper  <jackson@ximian.com>
12042
12043         * TextBox.cs: Only select all on initial focus if the user has not
12044         specified a selection area.
12045
12046 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
12047
12048         * UserControl.cs: Override CreateParams.
12049
12050 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12051
12052         [ Fixes #80995 ]
12053
12054         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
12055         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
12056           check for is a mix of several styles (such as WS_CAPTION for instance).
12057         * Control.cs: Don't paint an area bigger than the client area when painting
12058           the background colour. Add an internal GetCreateParams. Update calls to
12059           XplatUI.CalculateWindowRect due to API change.
12060         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
12061           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
12062           hasn't been handled by any windows. When creating and moving windows, X
12063           wants the location of the entire window, but the size of the client
12064           window, so add TranslateClientRectangleToXClientRectangle,
12065           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
12066           to cope with this, and call them before every window creation and move.
12067           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
12068           removing DeriveStyles). In AddConfigureNotify don't do anything if the
12069           hwnd is a zombie (fixes the BadWindow we were getting while running the
12070           tests), always calculate the offsets when it's a parentless window, not
12071           only when reparented, and translate the window size, since we're getting
12072           the client size of the whole window, excluding entire window.
12073         * Theme.cs: Added BorderSizableSize.
12074         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
12075           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
12076         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
12077           Fake the window styles here instead of in XplatUIWin32 so that all
12078           back-ends get the same window styles (and it's Form that's deciding when
12079           to use wm, not the Win32 backend anyways)
12080         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
12081           they are now passed a CreateParams and they only use Style and ExStyle
12082           to determine the rectangles (they should now work just like
12083           Win32AdjustWindowRectEx - though quite a few special cases are probably
12084           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
12085           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
12086           sizes) are taken from the current theme. Added a GetBorders helper
12087           function that will return the borders for any given CreateParams
12088           (including captions and menus), and GetBorderSize that returns the given
12089           border size only.
12090         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
12091           Hwnd.GetClientRectangle.
12092
12093 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12094
12095         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
12096           layout of the mdi children is handled by CreateParams. Fixes
12097           #79964,
12098
12099 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
12100
12101         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
12102         processed.
12103
12104         * Form.cs: When active tracker mouse down is not processed, send event 
12105         back to control inside mouse position. [Fixes #81227]
12106
12107 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
12108
12109         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
12110         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
12111         stealing focus from the active form on Windows.  (Control will be made
12112         visible in ShowWindow.)
12113
12114 2007-03-29  Mike Kestner  <mkestner@novell.com>
12115
12116         * ImageList.cs : add internal Changed event.
12117         * ListView.cs : hook up to StateImageList.Changed to perform
12118         invalidations when the the state icon list changes. [Fixes #81191]
12119
12120 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
12121
12122         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
12123         to prevent tooltips from stealing focus from the active form on Windows.
12124
12125 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
12126
12127         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
12128
12129         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
12130
12131 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
12132
12133         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
12134         balloons.
12135
12136 2007-03-29  Jackson Harper  <jackson@ximian.com>
12137
12138         * TextControl.cs: When deleting text from non multiline textboxes,
12139         we need to update the entire document, because line offsets will
12140         be shifting.
12141
12142 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
12143
12144         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
12145         added to theme, now we can create themes that uses diferent notify engines
12146         like notification-daemon from galago project or growl for Mac OS.
12147
12148 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
12149
12150         * NotifyIcon.cs: Prevent Balloon to show in task bar.
12151
12152 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
12153
12154         * XplatUIX11.cs: Prevent system to open more than one balloon.
12155
12156         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
12157         some compiler warning messages.
12158
12159 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
12160
12161         [Fixes #79149]
12162
12163         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
12164
12165         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
12166         implemented, this methods is used by NotifyIcon.BalloonWindow class.
12167
12168         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
12169         systems.
12170
12171 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12172
12173         * ListViewItem.cs: Forgot to make Invalidate internal.
12174
12175 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12176
12177         * ListView.cs: Add a InvalidateSelection method to
12178         invalidate methods which are currently selected, and call
12179         it when setting FullRowSelect and HideSelection, instead of
12180         calling Redraw.
12181
12182 2007-03-28  Chris Toshok  <toshok@ximian.com>
12183
12184         * XplatUIX11.cs (UnmapWindow): reindent this block.
12185
12186         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
12187         the selection_start if we're moving the selection (that is, not
12188         extending it). Fixes bug #80461.
12189
12190 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
12191
12192         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
12193         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
12194         create private ControlCollection.
12195
12196 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
12197
12198         * Control.cs: We need to call OnVisibleChanged for our implicit
12199         children as well as our normal children.  Fixes scrollbars in
12200         comboboxes not showing up.
12201
12202 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
12203
12204         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
12205         the check for IsHandleCreated first.  The check in CreateHandle is not
12206         good enough because CreateHandle can be overriden, and the override 
12207         should not be called if the handle is already created.
12208
12209 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
12210
12211         * ToolStrip.cs: Remove MonoTODO for tooltips.
12212         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
12213         * ToolStripContainer.cs: Add custom ControlCollection class.
12214         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
12215         * ToolStripDropDown.cs: Add some missing properties/methods.
12216         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
12217         * ToolStripItem.cs: Remove MonoTODO for tooltips.
12218         * ToolStripManager.cs: Add IsShortcutDefined.
12219         * ToolStripOverflow.cs: Override LayoutEngine.
12220         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
12221         * ToolStripSeparator.cs: Add ImageKey.
12222
12223 2007-03-28  Jackson Harper  <jackson@ximian.com>
12224
12225         * TextControl.cs: If a char delete removes a line ending, we need
12226         to update the ending style.
12227         - Make sure the line ending calcs get called.
12228
12229 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12230
12231         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
12232           it was making the new code not work. Fixed a typo in the new code
12233           as well. Fixes #79826.
12234
12235 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
12236
12237         * XplatUIWin32.cs:
12238         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
12239         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
12240         - SystrayBalloon method implemented.
12241         [Add support for notifyicon balloon on win32, #79149]
12242
12243 2007-03-27  Mike Kestner  <mkestner@novell.com>
12244
12245         * ThemeWin32Classic.cs : update StateImageList selection to mirror
12246         the ms behavior when only one image is added to the list.
12247         [Fixes #81191]
12248
12249 2007-03-27  Jackson Harper  <jackson@ximian.com>
12250
12251         * TextControl.cs: Improvements to non multiline line ending
12252         drawing/measuing.
12253
12254 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
12255
12256         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
12257
12258 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
12259
12260         * NotifyIcon.cs: 
12261         - Balloon message handling added.
12262         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
12263
12264         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
12265         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
12266         to SystrayBalloon to me like other Systray method, also a
12267         handle parameter added.
12268
12269 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12270
12271         * ListView.cs: Show scrollbars even when items.Count == 0
12272         but the columns Width is bigger than the ListView.Width.
12273         Also, when columns.Count == 0 set layout_wd and layout_ht
12274         to the ClientRectangle values, so we don't show any scrollbar
12275         in that case.
12276
12277 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
12278
12279         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
12280
12281 2007-03-27  Jackson Harper  <jackson@ximian.com>
12282
12283         * RichTextBox.cs: The RTF library decodes the text properly for us
12284         now.
12285
12286 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12287
12288         * ListView.cs: Display HeaderControl even when columns.Count == 0.
12289         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
12290         ListView header (HeaderControl), instead of Control.BackColor.
12291
12292 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
12293
12294         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
12295         Fixes tab control issues where controls would not show up because they
12296         never received their OnVisibleChanged call.
12297
12298 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
12299
12300         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
12301         BalloonTipShown).
12302
12303 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
12304
12305         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
12306         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
12307         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
12308         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
12309         the handle.  Fix WindowState by using the internal variable until we are 
12310         sure that we've been shown.
12311         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
12312         max or min.
12313         [Fixes bug #81198]
12314
12315 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12316
12317         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
12318           (at least borders). Fixes #79386 on Linux (with a small difference
12319           in behaviour: when trying to resize a caption-less window metacity
12320           shows the sysmenu. Resizing is still possible though).
12321         * XplatUIWin32.cs: When setting window styles send request an extra
12322           WM_NCCALCSIZE when it's a form without title (due to no text and no
12323           caption), since Win32 seems to calculate it wrong the first time we
12324           get the message, though the second time things work as they should.
12325         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
12326           newly reparented window might show up unparented. Update
12327           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
12328           there's no title text. Fixes #79386.
12329
12330 2007-03-27  Mike Kestner  <mkestner@novell.com>
12331
12332         * ListBox.cs : don't perform invalidations if the handle hasn't been
12333         created.  [Fixes #80753]
12334
12335 2007-03-27  Mike Kestner  <mkestner@novell.com>
12336
12337         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
12338         [Fixes #80428]
12339
12340 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
12341
12342         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
12343         needed to implement Balloon.
12344
12345 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12346
12347         * ListViewItem.cs: In the constructors that take
12348         an array of strings, don't use ListViewSubItemCollection.AddRange
12349         method to add items, since we need to have a different behaviour (in
12350         the constructors we add an item for each null string, opposed to
12351         the behaviour of AddRange, which adds nothing).
12352
12353 2007-03-26  Andreia Gaita  <avidigal@novell.com>
12354
12355         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
12356
12357 2007-03-26  Jackson Harper  <jackson@ximian.com>
12358
12359         * TextControl.cs: Draw and measure line endings when in non
12360         multiline mode.
12361         - When searching the text, count the end of the last line as a
12362         word boundary.
12363
12364 2007-03-26  Jackson Harper  <jackson@ximian.com>
12365
12366         * RichTextBox.cs: The selection_start and selection_end don't
12367         really track the correct tags for the selection. So we'll manually
12368         compute the correct tag here.
12369
12370 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12371
12372         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
12373           and Continuous styles. Fixes #79469.
12374
12375 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
12376
12377         * ToolStrip.cs: Implement Tooltips.
12378         * ToolStripItem.cs: Create internal method for determining tooltip.
12379
12380 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
12381
12382         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
12383
12384 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
12385
12386         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
12387         it prevents a problem thak keeps icon visible after application 
12388         closes on win32.
12389
12390 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
12391
12392         * NotifyIcon.cs: Balloon properties and methods created.
12393
12394         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
12395         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
12396
12397 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
12398
12399         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
12400
12401 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
12402
12403         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
12404         parameter indicates which aspects were explicit/user-set.
12405         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
12406
12407 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
12408
12409         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
12410         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
12411         SmallChange, and Value (2.0).
12412         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
12413
12414 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12415
12416         * ListView.cs: Always set item_control.Width in LayoutDetails
12417         if View is Details. Setting it later in CalculateScrollBars
12418         in a not-so-corner scenario (the sum of columns width is
12419         not bigger than the ListView width when handle is created, and then
12420         that sum gets bigger by increasing the width of the columns)
12421         causes a very weird recursion path (which shouldn't be happening,
12422         since header_control sets it in CalculateScrollBars too). This bug
12423         appeared after Chris' fixes for handle created issues, so probably
12424         it's related to some handle-creation time.
12425
12426 2007-03-23  Chris Toshok  <toshok@ximian.com>
12427
12428         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
12429         case where there's an add row, just so we don't end up in a case
12430         where it's not displayed (this happens when the row is partially
12431         obscured).  Fixes bug #79574.
12432
12433 2007-03-23  Jackson Harper  <jackson@ximian.com>
12434
12435         * TextControl.cs:
12436         * TextBoxBase.cs:
12437         * RichTextBox.cs: Preserve line endings in the lines text buffer,
12438         also added an enum that represents the line ending type. 
12439
12440 2007-03-23  Andreia Gaita  <avidigal@novell.com>
12441
12442         * NumericUpDown.cs: Fix logic so Text and Value properties are not
12443         messed with in every method call, but only from DownButton, 
12444         UpButton, UpdateEditText() and ValidateText. Fixes #80346
12445
12446 2007-03-23  Chris Toshok  <toshok@ximian.com>
12447
12448         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
12449         format objects if the format spec is "".  Fixes bug #80889.
12450
12451 2007-03-22  Miguel de Icaza  <miguel@novell.com>
12452
12453         * ToolStripPanel.cs (Join): added stubs to build PDN3
12454
12455         * Control.cs (AutoScrollOffset): Add.
12456
12457         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
12458         property, its only implemented for Win32, on X11 it defaults to
12459         some hardcoded value.
12460
12461         * ToolStripItem.cs (AllowDrop): Add property
12462
12463 2007-03-22  Mike Kestner  <mkestner@novell.com>
12464
12465         * ListView.cs : in FullRowSelect Details mode, only enable box
12466         selection if the user clicks over the "item" column outside of the
12467         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
12468
12469 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12470
12471         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
12472           handle is not created yet.
12473         * Form.cs: Select: Don't call CreateHandle if the handle is already
12474           created, avoids a stack overflow on Windows when we are recreating
12475           controls.
12476         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
12477           they are made visible, and override AfterTopMostControl to keep
12478           them on top when other controls are brought to front.
12479           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
12480           or force_*scroll_visible is true (old implementation always shows
12481           scrollbars when needed, no matter what auto_scroll was set to).
12482         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
12483           IsHandleCreated check.
12484
12485 2007-03-22  Andreia Gaita  <avidigal@novell.com>
12486
12487         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
12488         row or col separator.
12489         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
12490
12491 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
12492
12493         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
12494
12495 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
12496
12497         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
12498         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
12499         every time. Fixes #80410.
12500
12501 2007-03-22  Chris Toshok  <toshok@ximian.com>
12502
12503         * BindingSource.cs (AddNew): partially implement.
12504
12505         remove a couple of NotImplementedException's
12506         to get bug #81148 closed.
12507
12508 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
12509
12510         [Fixes #80380]
12511         
12512         * Control.cs:
12513         - UpdateCursor method added to update the screen cursor.
12514         - GetAvailableCursor method added to return cursor for enabled tree,
12515         it searches for cursor on control and it's parent's for enabled control.
12516         - Call UpdateCursor method on setter of Cursor property.
12517         - On setter of Enabled call UpdateCursor when it is false, we need to
12518         change cursor to normal (or to this parent cursor) because cursor 
12519         setting theres no effect to disabled controls.
12520         - Some minor source changes to follow the coding style guidelines.
12521
12522         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
12523         controls.
12524
12525 2007-03-22  Chris Toshok  <toshok@ximian.com>
12526
12527         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
12528         generates.
12529
12530 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12531
12532         * XplatUIX11.cs: Implement default locations for forms.
12533         * Form.cs: Completely rework startup location for forms. Fixes #79964.
12534         * Hwnd.cs: Add previous_child_startup_location (to track the current
12535           startup location for any child forms of the current form) and
12536           previous_main_startup_location (to track the startup location for
12537           the current toplevel form).
12538
12539 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
12540
12541         * Control.cs: Don't trigger a layout if an implicit control is added
12542         that isn't visible.  Also, don't notify the owner when an implicit control
12543         is added.  (Owners shouldn't even know about their implicit controls.)
12544
12545 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
12546
12547         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
12548         to save some re-layouts.
12549
12550 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
12551
12552         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
12553         [Fixes #81203]
12554
12555 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
12556
12557         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
12558         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
12559
12560 2007-03-21  Mike Kestner  <mkestner@novell.com>
12561
12562         * ListView.cs : disable selection update for non-left button clicks
12563         with mods and over selected items.  [Fixes #80524]
12564
12565 2007-03-20  Jackson Harper  <jackson@ximian.com>
12566
12567         * TextControl.cs:
12568         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
12569         \r\r\n, \n.
12570
12571 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12572
12573         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
12574           very probably a more complicated calculation there. Update the
12575           textbox' ForeColor and BackColor when the ComboBox' colors are
12576           changed. Change the border change in LayoutComboBox to only affect
12577           the textbox, not all the calculations there. Seems to fix most of
12578           #79436.
12579
12580 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12581
12582         * ComboBox.cs: Handle Home and End keys as well as all combinations of
12583           modifiers + navigation keys as input keys, enables advanced text
12584           selection in the combobox (like Shift+Left Arrow for instance).
12585           ComboTextBox now overrides Focused and returns whatever
12586           ComboBox.Focused returns, since it really should be focused
12587           whenever the ComboBox is. Fixes #80795. Also make the border around
12588           the text box one pixel bigger, as mentioned in #79436.
12589
12590 2007-03-20  Jackson Harper  <jackson@ximian.com>
12591
12592         * TreeView.cs: Don't offset the images, this was causing some
12593         artifacts when expanding/collapsing with images that were the
12594         exact height of the treenode.
12595
12596 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12597
12598         * TrackBar.cs: Query the theme for the correct value when the mouse
12599           moves and the thumb is pressed. 
12600         * Theme.cs: Added TrackBarValueFromMousePosition
12601         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
12602           implementation was updating the trackbar value when drawing, now
12603           the drawing methods only draw. Fixes #80900. Refactored the
12604           calculations out to TrackBarValueFromMousePosition and
12605           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
12606           according to the mouse position whenever it wants to. Changed the
12607           light coloured pen when drawing the thumb from ControlLight to
12608           ControlLightLight, because the ControlLight is the same colour as
12609           the background so the 3D effect is lost. 
12610
12611 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
12612
12613         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
12614         defined. Fixes #80784.
12615
12616 2007-03-20  Marek Habersack  <mhabersack@novell.com>
12617
12618         * ContextMenuStrip.cs: align with the change introduced in
12619         revision 74664.
12620
12621 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
12622
12623         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
12624         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
12625         in SetTopmost.
12626
12627 2007-03-19  Chris Toshok  <toshok@ximian.com>
12628
12629         * Control.cs (WmPaint): don't make use of the Handle property
12630         after an event is emitted, as the user could have closed the
12631         form/destroyed the control.  Store the Handle in a local variable
12632         and make use of that.  Fixes bug #80768.
12633
12634 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
12635
12636         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
12637         behavior in X11 environments.
12638
12639 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
12640
12641         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
12642         because on setter of topmost we dont call SetTopmost when handle is not
12643         created.
12644
12645 2007-03-20  Jackson Harper  <jackson@ximian.com>
12646
12647         * TextControl.cs: Need to use SelectionLength () not
12648         selection_length, since that var is reset to -1.
12649         - Draw the caret when we don't have focus.
12650         * TextBox.cs: The selectall actually doesn't occur until the first
12651         focus.
12652         * TextBoxBase.cs: Need to update the caret position after a
12653         selectall.
12654         
12655 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12656
12657         * ListView.cs: Enable scrolling when using Tile view.
12658
12659 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
12660
12661         [Fixes #80902]
12662
12663         * XplatUIDriver.cs: Abstract SetOwner method created.
12664
12665         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
12666         must be implemented and was masked as todo.
12667
12668         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
12669         GWL_HWNDPARENT.
12670
12671         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
12672         cheking for null owner to remove transient. The SetTopmost will be change
12673         on a decond step.
12674
12675         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
12676         SetTopmost. Now owned forms will work properly in win32 and X11.
12677
12678 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12679
12680         * MdiWindowManager.cs: Update function name.
12681         * Form.cs: After closing a form MdiParent is always null.
12682         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
12683           better what it should do: necessary book-keeping when the form is
12684           closed, it should not close the form itself.
12685
12686 2007-03-19  Andreia Gaita  <avidigal@novell.com>
12687
12688         * ListViewItem.cs: Fix back and fore color. The subitems only
12689         use their own colors if they are set, otherwise use the listview's
12690         colors. Don't set default colors on constructor for subitem.
12691         Fixes #79315.
12692
12693 2007-03-19  Mike Kestner  <mkestner@novell.com>
12694
12695         * ListView.cs : make box selection for Details views with 
12696         FullRowSelect conform to MS behavior when clicking in the "item" 
12697         column and clicking outside the defined columns.
12698         [Fixes case 5-6 of #80374]
12699
12700 2007-03-19  Chris Toshok  <toshok@ximian.com>
12701
12702         * ScrollableControl.cs: create the controls from within the ctor,
12703         but don't actually add them until our handle is created.  this
12704         fixes a NRE possibility jpobst found (if you override OnLayout in
12705         a subclass, it's called before your ctor).  Also, add a
12706         IsHandleCreated guard to UpdateSizeGripVisibility as well.
12707
12708 2007-03-19  Jackson Harper  <jackson@ximian.com>
12709
12710         * TextBox.cs: Reduce the amount of invalidation we do.
12711         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
12712         some of them are true by default on MS.
12713         - Add some functions to reduce the amount of invalidates we do.
12714         * TextControl.cs: Less invalidation.
12715
12716 2007-03-19  Chris Toshok  <toshok@ximian.com>
12717
12718         [ Fixes #81773, and *seems* to fix #81553 as well ]
12719
12720         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
12721         AccumulateDestroyedHandles.  We need to do it *after* we send
12722         WM_DESTROY, as the user's code can access Control.Handle in
12723         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
12724         move the WM_DESTROY/zombie handling to before the call to
12725         XDestroyWindow.  For some reason without this ordering
12726         FormTest.RecreateHandle hangs.  This ordering is semantically
12727         equivalent, however, as XDestroyWindow is async anyway.
12728
12729 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
12730
12731         * RichTextBox.cs: Reset backcolor_set after setting default.
12732
12733 2007-03-19  Chris Toshok  <toshok@ximian.com>
12734
12735         * ScrollableControl.cs: the scroll position should not effect the
12736         canvas size.  commit patch from georgegiolfan@yahoo.com, which
12737         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
12738         
12739 2007-03-19  Chris Toshok  <toshok@ximian.com>
12740
12741         * ScrollableControl.cs: clean this up a bit.  create the
12742         scrollbars in the ctor and just show/hide them as needed.  Also,
12743         make hscroll_visible/vscroll_visible internal to Recalculate, and
12744         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
12745         everywhere else.  This seems to fix the scrollbars appearing
12746         beneath the content for me (i have *no* idea why that is,
12747         however.)
12748
12749 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
12750
12751         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
12752         some redundacy for stuff in Anchor and Dock that base will take care of.
12753         [Fixes #80762]
12754
12755 2007-03-19  Mike Kestner  <mkestner@novell.com>
12756
12757         * ListView.cs : make box selection for Details views without 
12758         FullRowSelect dependent on the text bounds, not item bounds.
12759         * ListViewItem.cs : add an internal property to obtain the TextBounds
12760         in Details view.  [Fixes case 1-4 of #80374]
12761
12762 2007-03-19  Andreia Gaita  <avidigal@novell.com>
12763
12764         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
12765         we're < 2.0. #78448 && #80316
12766
12767 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
12768
12769         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
12770         have the same style available as the previously selected one.  Also,
12771         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
12772
12773 2007-03-19  Jackson Harper  <jackson@ximian.com>
12774
12775         * TextControl.cs: Add an alignment property that all new lines
12776         will be given.
12777         - Make sure to use the align shift when calculating the line's X
12778         position.
12779         * TextBox.cs: Set the alignment on the document as well as on all
12780         the document lines.
12781
12782 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12783
12784         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
12785           throw if setting the parent of an mdichild that already has an
12786           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
12787           AssemblyProductAttribute in the assembly, use the type's namespace (as
12788           MS seems to do). CreateControl: don't create the handle if the control
12789           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
12790           create handle if the control is not a form. Change FocusInternal to
12791           virtual so that it can be overriden by Form.
12792         * TextBox.cs: Update call to FocusInternal.
12793         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
12794           form is not a toplevel form when it's a mdi child, so update is_toplevel
12795           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
12796           hasn't been created. Show (IWin32Window): Don't allow this overload for
12797           toplevel windows. CenterToParent/CenterToScreen/Select: create the
12798           handle as MS does. SetVisibleCore: if called on a MdiChild and the
12799           parent isn't visible yet, save the visibility and restore it when the
12800           parent is made visible.
12801         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
12802           methods, since the visibility of the scrollbars can be changed from
12803           several places, not only from AutoScroll.
12804           [Fixes #81179]
12805
12806 2007-03-19  Jackson Harper  <jackson@ximian.com>
12807
12808         * RichTextBox.cs: Enable shortcuts by default.
12809         * TextBoxBase.cs: Add conditional shortcuts.  
12810
12811 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
12812
12813         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
12814
12815 2007-03-19  Chris Toshok  <toshok@ximian.com>
12816
12817         [ Fixes bug #80604]
12818         
12819         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
12820         swallow the message we're waiting on, instead of delivering it, as
12821         this is only used for the WM_SHOWWINDOW raised from
12822         MapWindow/UnmapWindow, and the message needs to be generated
12823         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
12824         before doing the Map/Unmap.  Also make sure that the Hwnd is still
12825         alive after the message has been handled.
12826
12827         *before* the window is shown.
12828
12829         * Control.cs (CreateControl): guard a few more things inside the
12830         if (!is_created) block, as we might end up being called again -
12831         yay .net.
12832         (WmShowWindow): call CreateControl if we're showing the control.
12833
12834 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12835
12836         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
12837           controls without a handle if they have any parent with a handle. In
12838           Dispose add a check whether the handle is created or not before
12839           calling BeginInvoke, this removes the need of the extra disposing
12840           parameter (which was bogus anyway since it didn't prevent the
12841           invoke from happening, it only skipped the check for an existing
12842           handle, meaning that the invoke would call on an inexistent
12843           handle).
12844
12845 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
12846
12847         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
12848         appears in taskbar.
12849
12850 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
12851
12852         * MessageBox.cs:
12853         - Fixed a problem that dont show help button for messages with 3 buttons.
12854         - Refactory button size and position calculations, now dont use fixed 
12855         values, also fixed button sizes (#80043) and form's border space.
12856         - AddButton method created, now all other AddButton methods call this one.
12857         - Some other source code cosmetic changes.
12858
12859 2007-03-18  Jackson Harper  <jackson@ximian.com>
12860
12861         * RichTextBox.cs: Don't do this all fonts must match check if
12862         there is only one char selected.
12863
12864 2007-03-18  Jackson Harper  <jackson@ximian.com>
12865
12866         * TreeView.cs: ScrollWindow works properly now, so we don't need
12867         to screw around with the scroll area.  This fixes some artifacts
12868         when expanding and collapsing.
12869
12870 2007-03-18  Jackson Harper  <jackson@ximian.com>
12871
12872         * TextBoxBase.cs: Allow updating the selection position when the
12873         cursor is outside the textarea, but we have a capture.
12874         * TextControl.cs: A special case for when the cursor is outside
12875         the bounds of the TB.
12876         
12877 2007-03-18  Jackson Harper  <jackson@ximian.com>
12878
12879         * TextBoxBase.cs: Remove image pasting code for now.  There is no
12880         way to get an image on the clipboard right now anyways.
12881         * TextControl.cs:
12882         * RichTextBox.cs: Use the new RTF Picture class for pictures.
12883
12884 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
12885
12886         * MessageBox.cs:
12887         - Set window properties in constructor intead of on CreateParams.
12888         - Remove topmost from Window ExStyle.
12889         - Set ShowInTaskbar to false.
12890         - Set form border to FixedDialog.
12891         - Some cosmetic changes and remove unneeded comments.
12892         - It fixes itens 2,3 and 4 of bug #80043.
12893
12894 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
12895
12896         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
12897         none was explicitly set. Fixes part of bug #79949.
12898
12899 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
12900
12901         * ToolStripComboBox.cs: Add AutoComplete*.
12902
12903 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
12904
12905         * ToolStripComboBox.cs: Add FlatStyle.
12906
12907 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
12908
12909         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
12910         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
12911
12912 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12913
12914         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
12915           CheckBox.cs, RadioButton.cs, BindingSource.cs,
12916           DataGridColumnStyle.cs: Remove warnings.
12917
12918 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12919
12920         * Menu.cs: MergeMenu: Check menu argument for null before looping over
12921           it.
12922         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
12923           visibility of mdi child forms. FormSizeChangedHandler: update the
12924           maximized size if size has changed while maximized.
12925         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
12926           creating the handle.
12927         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
12928           avoid creating the handle if not created.
12929         * XplatUI.cs: Update debug output.
12930         * XplatUIStructs.cs: Added ToString's for a couple of structs.
12931
12932 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
12933
12934         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
12935         ProcessCmdKey().
12936         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
12937         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
12938         Implement keyboard shortcuts.
12939
12940 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
12941
12942         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
12943         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
12944         ColorDialog and all derived classes.
12945
12946 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
12947
12948         [ Fixes bug #79828 ]
12949
12950         * ToolBar.cs:
12951         - Rename ToolBarButtonInfor to ToolBarItem.
12952         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
12953         - Maintain an array of ToolBarItem, used instead of ToolBarButton
12954         collection to be able add same button more than one time on a toolbar.
12955         - Refactory all properties and methods to use ToolBarItem. 
12956
12957         * ToolBarButton.cs: 
12958         - Remove all propeties and methods that is now in ToolBarItem.
12959         - Rectangle propery now gets the rectangle from first ToolBarItem to
12960         mimic win32 behavior.
12961         - Size calculation and layout methods also removed.
12962
12963         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
12964         ToolBarItem instead of ToolBarButton to right drawing buttons when
12965         same button/separator was added more than one time to ToolBar.
12966
12967         * ThemeNice.cs: Same as above. 
12968
12969 2007-03-15  Andreia Gaita  <avidigal@novell.com>
12970
12971         * XplatUIX11.cs: Fire extra MouseMove events right after
12972         MouseDown and MouseUp, emulating win32's <censored> behaviour
12973         for apps that rely on it.
12974
12975 2007-03-15  Jackson Harper  <jackson@ximian.com>
12976
12977         * TextControl.cs:
12978         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
12979         it is drawn on the controls client window and there is no NC
12980         area.
12981         - Set the background color to gray on 2.0 when we are readonly.
12982
12983 2007-03-15  Chris Toshok  <toshok@ximian.com>
12984
12985         [ Fixes bug #81144 ]
12986         
12987         * XplatUIX11.cs: implement VirtualScreen independently of
12988         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
12989         property.
12990
12991 2007-03-15  Chris Toshok  <toshok@ximian.com>
12992
12993         * Hwnd.cs: add an internal field for the cached_window_state.
12994
12995         * XplatUIX11.cs: cache the window state, invalidating the cache
12996         (and thus re-querying the X server) only when we see an update to
12997         the _NET_WM_STATE property.
12998
12999 2007-03-15  Chris Toshok  <toshok@ximian.com>
13000
13001         * BindingSource.cs: get a lot of the unit tests working.
13002
13003 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
13004
13005         * Control.cs: Modify UpdateStyles to store distances when bounds >=
13006         0 instead of just bounds > 0.  [Fixes bug #80912]
13007
13008 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
13009
13010         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
13011         and methods.
13012
13013 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
13014         
13015         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
13016         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
13017         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
13018         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
13019
13020 2007-03-15  Chris Toshok  <toshok@ximian.com>
13021
13022         [ Fixes #81101 ]
13023         
13024         * Control.cs: add Ivan's fix for 81101, with a slight modification
13025         - you can set control.Target to null.
13026
13027 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
13028
13029         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
13030         HideDropDown, use Hide instead to prevent an NRE.
13031         [Fixes bug #81147]
13032
13033 2007-03-14  Jackson Harper  <jackson@ximian.com>
13034
13035         * TextBoxBase.cs: Mess with the creation stuff a little. We need
13036         to calculate the document before the handle is created, in some
13037         cases. (Actually just one case).
13038
13039 2007-03-14  Jackson Harper  <jackson@ximian.com>
13040
13041         * TextBoxBase.cs: Need to display the caret after letting the base
13042         wndproc handle the focus methods, because the caret display
13043         methods check the focus state.
13044         - Try to display the caret after updating it's position with SelectWord.
13045         - Don't need to do an immediate update on this recalc, since there
13046         will be an invalidate anyways.
13047
13048 2007-03-14  Jackson Harper  <jackson@ximian.com>
13049
13050         * TreeView.cs: Some workarounds so that we can match event order a
13051         little better.
13052
13053 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
13054
13055         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
13056         #80803. Avoid NullReferenceException when Control does not have
13057         parent. Fixed different blinkstyle issues. Only subscribe to Tick
13058         event a single time. Only draw error icon when control is created and
13059         visible. Fixes failing unit tests.
13060
13061 2007-03-14  Andreia Gaita  <avidigal@novell.com>
13062
13063         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
13064         Selecting events. Fire Leave and Enter events when changing tabs.
13065
13066 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
13067
13068         * TreeView.cs: Add TreeViewNodeSorter.
13069         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
13070
13071 2007-03-14  Chris Toshok  <toshok@ximian.com>
13072
13073         * Form.cs: go ahead and remove the RecreateHandles that jpobst
13074         removed earlier and I had him add back it.  It turns out metacity
13075         *does* in fact handle the MOTIF_WM_HINTS property changing, it
13076         just doesn't redraw the window titlebar until you resize the
13077         window.  This also means we aren't recreating the entire window
13078         hierarchy on X when you change this property.  And it looks better
13079         on windows, too.
13080
13081 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13082
13083         * ListViewItem.cs:
13084         * ListView.cs: Collecting selection information
13085         is now done in SelectedIndexCollection rather than in
13086         SelectedListViewItemCollection. This is done so we can
13087         have the selection information code in one single place
13088         (virtual mode selection information entirely depends on
13089         SelectedIndexCollection).
13090
13091 2007-03-13  Miguel de Icaza  <miguel@novell.com>
13092
13093         * ErrorProvider.cs: Add stubs for ISupportInitialize
13094
13095 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13096
13097         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
13098         in the right order with the right values, from the Checked property, 
13099         just as MS does (instead of triggering them from ListView).
13100
13101         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
13102
13103 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13104
13105         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
13106         the correct handler in OnItemCheck method (ItemCheckEventHandler 
13107         instead of EventHandler). This used to throw an InvalidCastException.
13108
13109 2007-03-13  Jackson Harper  <jackson@ximian.com>
13110
13111         * TextBoxBase.cs: Calculate the document before the handle is
13112         created, so there isn't an extra invalidate called.
13113
13114 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
13115
13116         * Form.cs: Don't set owner in ShowDialog until we are sure
13117         that we aren't going to throw an exception.  [Fixes bug #80773]
13118
13119 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
13120
13121         * TreeView.cs: Make it compile.
13122
13123 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
13124
13125         * Control.cs: Another place we don't call SizeFromClientSize.
13126         * Form.cs: Another place we don't call SizeFromClientSize.
13127         [Fixes bug #81125]
13128
13129 2007-03-12  Jackson Harper  <jackson@ximian.com>
13130
13131         * TreeView.cs: Basically emulating some strangness here with
13132         exanding nodes and setting node positions when windows aren't
13133         created.
13134         - Also attempting to walk the node tree less than previously, and
13135         just use visible order calculations for determining offsets.
13136         - oops made scrolling backwards.
13137         * TreeNode.cs: We need to start nodes with a zero visible order,
13138         because the order calcs are based on the first nodes order.
13139
13140 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
13141
13142         * Form.cs: Don't exit the program if RecreateHandle is called on
13143         the main form.
13144
13145 2007-03-12  Chris Toshok  <toshok@ximian.com>
13146
13147         * XEventQueue.cs: remove the use of PostQuitState.
13148
13149         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
13150         WM_QUIT message in GetMessage, return false (and if we're in the
13151         nested WaitForHwndMessage, repost the WM_QUIT message).
13152
13153 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
13154
13155         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
13156         or the MaximizeBox properties.  [Part of bug #80640]
13157
13158 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
13159
13160         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
13161         no links.
13162
13163 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
13164
13165         * ToolStripItem.cs: Fix some tests I broke by checking Visible
13166         instead of visible.
13167
13168 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
13169
13170         * FileDialog.cs: Use text of File name combobox to determine what
13171         files the user selected. Added tokenizer to parse the file names.
13172         Fixes bug #81123.
13173
13174 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
13175
13176         * Control.cs: We can't call SizeFromClientSize in the constructor,
13177         but we still need to do the same work, so make an internal version.
13178         [Fixes bug #80621]
13179
13180 2007-03-12  Jackson Harper  <jackson@ximian.com>
13181
13182         * TreeView.cs:
13183         * TreeNode.cs:
13184         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
13185         IsExpanded.
13186
13187 2007-03-12  Jackson Harper  <jackson@ximian.com>
13188
13189         * TextBoxBase.cs: Now that the handles are being created a little
13190         later, we need to make sure that the document is recalculated when
13191         the handle is created.
13192
13193 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
13194
13195         * Theme.cs: GetLinkFont abstract method added.
13196         
13197         * LinkLabel.cs: 
13198         - Remove CalcTrimRectangle, no longer needed.
13199         - Factor also remove, position issues must be fixed in libgdiplus.
13200         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
13201         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
13202         care about font used to draw links.
13203         - Set TabStop to true when control is "Selectable", control is selectable
13204         when have one or more links. Fixes #80501 (test case is also added).
13205         - Set the LinkArea values after links change, LinkArea values must be
13206         based in first link position and size, a test case was created.
13207         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
13208         the attribute must be true LinkArea.Length > 0. The same was applied to
13209         TabStop.
13210         
13211         * ThemeWin32Classic.cs: 
13212         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
13213         in draw method.
13214         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
13215         color change.
13216         - Draw focus rectangle for every parts focused, including parts that 
13217         is on another line, its because regions returns various rectangles
13218         and not only one. Needed to mimic W32 look.
13219         - Uses Graphics.Clip to delimite region painted, it mean that now 
13220         complete text is passed to DrawString, with this we solve layout
13221         issues without create another text renderer.
13222         - Uses Region.Intersect to fix some flickers problems, now only needed
13223         parts will redrawed.
13224         - This changes fixes #79614 and some other unreported issues, on Linux 
13225         some layout problems still remain, the problem is under 
13226         MeasureCharacterRanges but it is an libgdiplus bug.
13227
13228 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
13229
13230         * TextBox.cs: Set for foreground color.
13231         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
13232         this is already done in Control.
13233
13234 2007-03-10  Jackson Harper  <jackson@ximian.com>
13235
13236         * TextBox.cs: Set the background color, but reset the
13237         backcolor_set flag which is just for the user setting the
13238         background color.
13239
13240 2007-03-09  Chris Toshok  <toshok@ximian.com>
13241
13242         * Control.cs: really remove the call to XplatUI.SetVisible from
13243         CreateHandle(), like I said I did when I merged the branch.
13244
13245         * BindingSource.cs: implement some more of this stuff.
13246
13247 2007-03-09  Jackson Harper  <jackson@ximian.com>
13248
13249         * TextBox.cs: Don't explicitly set our background colors.
13250         * TextControl.cs:
13251         * TextBoxBase.cs: Draw readonly text.
13252         - Need to invalidate when backcolor or readonly are changed.
13253         
13254 2007-03-09  Jackson Harper  <jackson@ximian.com>
13255
13256         * TextBoxBase.cs: Don't set the forecolor until the handle is
13257         created.
13258         - Do not raise OnPaint, and removed some old debug code.
13259
13260 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
13261
13262         * ScrollableControl.cs: Fix mouse wheel scrolling.
13263
13264 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
13265
13266         * Control.cs: Wire up MouseDoubleClick event.
13267
13268 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
13269
13270         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
13271         top or bottom.
13272         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
13273         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
13274         item is added.  This logic was moved to ToolStrip.OnItemAdded.
13275         [Fixes bug #81090]
13276
13277 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13278
13279         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
13280
13281 2007-03-08  Jackson Harper  <jackson@ximian.com>
13282
13283         * TreeView.cs: Show the correct image for selected node (this used
13284         to work, not sure how the code got deleted). Also implemented 2.0 feature
13285         SelectedImageKey.
13286
13287 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13288
13289         * ListView.cs:
13290         * ListViewItem.cs: Cache index in items when retrieving them
13291         in VirtualMode.
13292
13293 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
13294
13295         * ToolStripItem.cs: Don't return the explicit_size if we are using 
13296         AutoSize.  Fixes invalidation issue when user has explicitly set a
13297         size and has AutoSize = true.
13298
13299 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
13300
13301         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
13302
13303 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
13304
13305         * DataGridView.cs: Remove event handler from DataView when a
13306         DataTable is used as DataSource.
13307
13308 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
13309
13310         * Control.cs: Create internal setter for client_size to allow it to be
13311         set without triggering resizing code.
13312         * Form.cs: Calculate client_size in constructor, only change client_size
13313         in FormBorderStyle property if Handle has been created.
13314         [Fixes #80574, #80791]
13315
13316 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
13317
13318         * SystemInformation.cs: Add TerminalServerSession.
13319
13320 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
13321
13322         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
13323         TreeView code.
13324
13325 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
13326
13327         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
13328         Handle before we were supposed to.  Now checks ActivateOnShow property
13329         in Control.
13330         * Control.cs: Add internal ActivateOnShow property.
13331         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
13332         for ActivateOnShow.
13333         * Hwnd.cs Remove no longer needed no_activate field.
13334
13335 2007-03-07  Jackson Harper  <jackson@ximian.com>
13336
13337         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
13338         2.0 properties
13339         * DrawTreeNodeEventHandler.cs: Add
13340         * DrawTreeNodeEventArgs.cs: Correct default value.
13341         
13342 2007-03-07  Chris Toshok  <toshok@ximian.com>
13343
13344         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
13345         to be called before NativeWindow.WndProc.  Put the HwndCreating
13346         magic there to hook up our Hwnd's to handles.
13347
13348 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
13349
13350         * DataGridView.cs: Comment out debug code.
13351
13352 2007-03-07  Chris Toshok  <toshok@ximian.com>
13353
13354         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
13355         to make the rest of the world happy]
13356
13357         * Control.cs (CreateHandle): there's no need to call
13358         XplatUI.SetVisible here, it's effectively done by
13359         XplatUI.CreateWindow on X now, and always was on windows.
13360
13361         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
13362         shortcircuit out of the loop if we have a message loop running on
13363         this thread.
13364
13365         [Changelog from merge]
13366
13367         2007-03-05  Chris Toshok  <toshok@ximian.com>
13368
13369                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
13370                 causes handle creation.
13371
13372         2007-02-28  Chris Toshok  <toshok@ximian.com>
13373
13374                 * ApplicationContext.cs: Add a flag to make sure we only raise the
13375                 ThreadExit event once (ExitThreadCore can be indirectly called
13376                 from a few places.)  I don't like the additional flag, but it
13377                 makes the event ordering/count correct.
13378
13379                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
13380                 without locking the collection.  An enumerator doesn't give us any
13381                 protection from modification anyway.  Lock the thread hash and
13382                 replace the complicated enumerator loop with a foreach.
13383                 (Application.CloseForms): make internal so it can be called from
13384                 ApplicationContext.  This should probably be moved to MWFThread.
13385                 (Application.ExitThread): don't call MWFThread.Current.Exit()
13386                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
13387                 when the runloop exits (in response to WM_QUIT.)
13388                 (Application.RunLoop): add a comment (and check) for
13389                 context.MainForm being null after setting context.MainForm.Visible
13390                 = true.  This is because you're perfectly free to dispose of a
13391                 form in VisibilityChanged.  Chalk this up to another case where we
13392                 need to synchronously generate WM_ACTIVATE from Control.Show.
13393                 Also, add handling for WM_QUIT here so we'll exit the loop.
13394                 
13395                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
13396                 fact that we don't wait if we're only unmapping the whole_window
13397                 makes me a bit nervous, but it doesn't seem to cause any problems
13398                 yet.
13399
13400                 also, add a comment about the stupid, broken and wrong resetting
13401                 of PostQuitState to false in GetMessage().
13402
13403                 In PostQuitMessage, we need to add a WM_QUIT message to the
13404                 thread's queue.  We use the FosterParent to get the right
13405                 handle/hwnd/queue.
13406
13407                 Lastly, in SetVisible, we need to unmap both windows, since the
13408                 waiting only happens when we're unmapping the client window.  So
13409                 now, the *only* time we unmap just the whole_window is in the hack
13410                 for resizing a control to 0,0.
13411                 
13412         2007-02-21  Chris Toshok  <toshok@ximian.com>
13413
13414                 * Application.cs (CloseForms): rewrite this so that we don't
13415                 modify the list while we're traversing it.
13416
13417         2007-02-20  Chris Toshok  <toshok@ximian.com>
13418
13419                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
13420                 of OnHandleCreated.
13421                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
13422                 handle is created.  otherwise we'll create it here.
13423                 (VerticalScrollEvent): same here.
13424
13425                 * Application.cs (CloseForms): call Form.Dispose, don't post
13426                 WM_CLOSE_INTERNAL.
13427
13428                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
13429                 here. Application should Dispose() of the Form's.
13430
13431                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
13432                 WM_DESTROY as well.
13433                 (MapWindow,UnmapWindow): only actually do the waiting for
13434                 SHOWWINDOW if the control we're dealing with is a Form.
13435                 (CreateWindow): if the control isn't a form, SendMessage
13436                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
13437
13438                 * Control.cs (SetVisibleCore): always use is_visible here, not
13439                 value.  If we use value, we can end up re-setting something
13440                 visible if, for instance, you do Control.Hide() in a delegate
13441                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
13442
13443         2007-02-20  Chris Toshok  <toshok@ximian.com>
13444
13445                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
13446                 the message we need.  PeekMessage returning false should not be a
13447                 condition under which we exit the loop.
13448
13449         2007-02-15  Chris Toshok  <toshok@ximian.com>
13450
13451                 * Control.cs (Refresh): only refresh if we've got a handle and are
13452                 visible.
13453                 (CreateAccessibilityInstance): CreateControl() here.
13454                 (UpdateChildrenZOrder): complicate the code loop even more by
13455                 taking into account controls that haven't had their handle
13456                 created, and those that aren't visible.  But on the flip side,
13457                 simplify the code by splitting it into two loops.  one which
13458                 builds up the list of child controls we're interested in, and the
13459                 other that sets the z order of those children.
13460
13461         2007-02-14  Chris Toshok  <toshok@ximian.com>
13462
13463                 * Control.cs: Control.AccessibilityObject causes the control to be
13464                 created, not just the handle.
13465
13466         2007-02-14  Chris Toshok  <toshok@ximian.com>
13467
13468                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
13469                 problem on X where a window might have its handle created (and be
13470                 visible) while the window is unmapped.  calling XConfigureWindow
13471                 on an unmapped window is bad, and generates X errors.
13472
13473         2007-02-13  Chris Toshok  <toshok@ximian.com>
13474
13475                 * Control.cs (CreateHandle): don't loop over our children setting
13476                 their parent here.  do it when in WndProc when we're shown.
13477                 (UpdateChildrenZOrder): make this internal so we can call it from
13478                 ScrollableControl.
13479                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
13480                 creating its handle.  Also, remove the calls to PerformLayout from
13481                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
13482                 OnVisibleChanged only seems to be called directly here for the
13483                 toplevel control.  It's propagated down the window hierarchy by
13484                 calls to child.OnParentVisibleChanged.
13485                 (OnVisibleChanged): don't do layout here - it's done (oddly
13486                 enough, according to a glance at stack traces on ms.net..) in
13487                 ScrollableControl.
13488                 
13489                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
13490                 z order of our children before calling PerformLayout.
13491
13492         2007-02-12  Chris Toshok  <toshok@ximian.com>
13493
13494                 [big change, fixes #80020]
13495                 
13496                 * AccessibleObject.cs: we need to make owner internal again to fix
13497                 some of ControlAccessibleObject.
13498
13499                 * Control.cs: lots of changes here.  add support for WM_CREATE,
13500                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
13501                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
13502                 we create child controls.  leave the MonoTODO's for the
13503                 accessibility calls, but fix the exceptions so the tests pass.
13504
13505                 Add the InvalidOperationExceptions to Invoke methods, and remove a
13506                 couple of InvokeInternal methods we aren't using.
13507                 
13508                 Also, add a couple of CreateHandle calls in places where we know
13509                 the handles are being created but our code doesn't reference
13510                 .Handle.
13511
13512                 Make SetVisibleCore call OnVisibleChange if the handle isn't
13513                 created.  If the handle is created, we rely on XplatUI.SetVisible
13514                 generating the event synchronously.
13515                 
13516                 Lastly, make sure we don't use this.Handle inside CreateHandle,
13517                 because we can call back into client (and that code can dispose of
13518                 the control).
13519
13520                 * XplatUIStructs.cs: misc/cleanup.
13521
13522                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
13523                 although we don't populate the wParam properly.
13524                 (CreateWindow): generate WM_CREATE.
13525                 (MapWindow,UnmapWindow): make these calls synchronous, at great
13526                 performance expense (particularly in the unmap case), to match
13527                 win32 behavior.
13528
13529                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
13530                 to call it.
13531                 (set_MdiParent): don't recreate the handle unless it's been
13532                 created already.
13533                 
13534                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
13535                 it's created.
13536
13537                 * NativeWindow.cs: this is probably the weirdest part of the
13538                 patch.  We need a way to link up the window being created to the
13539                 WM_CREATE message.  Since we can only be creating one window at a
13540                 time on a given thread, we keep track of a per-thread reference so
13541                 we can dispatch it properly.  We also need to keep track of the
13542                 Hwnd currently being created so that the win32 backend doesn't
13543                 have problems.
13544                 
13545                 * XplatUIWin32.cs: a similar change to the one we made in
13546                 NativeWindow.cs.
13547
13548 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
13549
13550         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
13551         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
13552         to draw the menu shortcut string.
13553
13554 2007-03-07  Jackson Harper  <jackson@ximian.com>
13555
13556         * TreeNode.cs: Add the 2.0 collapse method.
13557
13558 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
13559
13560         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
13561
13562 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
13563
13564         * DataGridView.cs: Change DataSource will clear column and row
13565         lists. Call Invalidate() to reflect DataSource change.
13566
13567 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
13568
13569         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
13570         and a new row is added to it.
13571
13572 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
13573
13574         * DataGridView.cs: Add columns when DataSource is en empty list but
13575         is a System.Data.DataView (from a System.Data.DataTable).
13576
13577 2007-03-06  Andreia Gaita  <avidigal@novell.com>
13578
13579         * Label.cs: Implement AutoEllipsis (2.0)
13580
13581 2007-03-06  Jackson Harper  <jackson@ximian.com>
13582
13583         * TreeView.cs: Implement 2.0 TopNode setter property.
13584         - Use a local var instead of the skipped_nodes field for computing
13585         how many nodes to skip.  Otherwise we won't scroll because the
13586         valuechanged handler checks if skipped_nodes is equal to the new
13587         value.
13588         - Implement 2.0 Sort method.
13589         - Add useless 2.0 DoubleBuffer property
13590         - Implement 2.0 LineColors property.  Lets you change the color of
13591         the lines in the tree. Terribly useful for creating non cohesive
13592         desktops.
13593         - Implement 2.0 image key feature.
13594
13595 2007-03-06  Jackson Harper  <jackson@ximian.com>
13596
13597         * TreeView.cs: We can't get the bounds of the nodes before raising
13598         the AfterSelect event, because that event could change the node's
13599         bounds (scrolling, font change, etc).
13600
13601 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13602
13603         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
13604         * Form.cs: Don't recreate handle when creating FormWindowManager, just
13605           update window styles. In CreateParams us VisibleInternal instead of
13606           VIsible to get the actual visible flag set for this form.
13607         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
13608           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
13609           handle the case when the form is already maximized, in which case
13610           it should be restored. Fixes #81043.
13611
13612 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13613
13614         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
13615
13616 2007-03-05  Jackson Harper  <jackson@ximian.com>
13617
13618         * TreeViewHitTestInfo.cs: implement.
13619
13620 2007-03-05  Jackson Harper  <jackson@ximian.com>
13621
13622         * InternalWindowManager.cs: class status fix.
13623
13624 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13625
13626         * InternalWindowManager.cs: All windows that have a parent
13627         are confined to their parent when they're being moved.
13628         Fixes #80822.
13629
13630 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
13631
13632         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
13633         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
13634
13635 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13636
13637         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
13638           buttons invisible before deciding which ones should be visible
13639           (fixes minimize/maximize buttons showing up in toolwindows). Remove
13640           an unused variable.
13641         * InternalWindowManager.cs: Remove warning.
13642
13643 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13644
13645         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
13646         to throw an InvalidOperationException is virtual mode is being used.
13647
13648 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
13649
13650         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
13651         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
13652         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
13653         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
13654         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
13655         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
13656
13657 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13658
13659         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
13660           driver.KeyboardDelay from XplatUI.KeyboardDelay 
13661         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
13662           (patch by Sergey Volk)
13663
13664 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13665
13666         * ToolWindowManager.cs: Added, contains logic for
13667           tool windows.
13668         * CreateParams.cs: Add a few helper methods and an
13669           internal variable to know which control the CreateParams belongs
13670           to.
13671         * Control.cs: Call Form.ChangingParent when the
13672           parent is about to be changed.
13673         * XplatUIX11.cs: DeriveStyles (): Set
13674           caption_height for all windows that have captions and are children.
13675           Update to use ToolWindowManager instead of InternalWindowManager
13676           for ToolWindows.
13677         * XplatUIWin32.cs: Set fake window styles for all
13678           windows that have window managers.
13679         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
13680           now duplicated for mdi windows when they are
13681           maximized, first for the buttons the window itself has, then for
13682           the buttons that appear in the menu bar. Makes things a little
13683           easier). Updated UpdateWindowDecorations, SetWindowState and the
13684           mouse eventhandlers accordingly.
13685         * Form.cs: Add ChangingParent (), contains the
13686           logic of what should happen when the parent changes. In MdiParent
13687           don't set things that ChangingParent () is doing. When handling
13688           WM_CLOSE, we can close the form if there are any other modal forms
13689           and the current form is a descendent of the modal form.
13690         * InternalWindowManager.cs: A lot of refactoring,
13691           the title buttons are now extracted to a separate container class
13692           that takes care of all button code (clicks, tooltips, etc). Moved
13693           Iconic|Maximized|Normal Bounds properties to this class from
13694           MdiWindowManager, so that the window state logic can succeed for
13695           other than mdi wm's. Implemented general window state change logic.
13696           Moved CreateButtons to ThemeWin32Classic, since the theme might
13697           override which buttons are available when as well as the exact
13698           location.
13699         * FormWindowManager.cs: Added, contains logic for
13700           normal forms.
13701         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
13702           which buttons go where (and if they are at all visible). 
13703           Removed special handling of maximized windows, since they aren't special. 
13704           In DrawManagedWindowDecorations don't try to draw the text if it is
13705           empty.
13706         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
13707           use whatever the wm gives us.
13708
13709 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
13710
13711         * ButtonBase.cs: Add 2.0 properties.
13712         * Button.cs: Override Draw for 2.0.
13713         * Control.cs: Add Entered and Selected properties.
13714         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
13715         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
13716         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
13717         buttons.
13718         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
13719
13720 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
13721
13722         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
13723
13724 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
13725
13726         * XplatUIWin32.cs: Register a new class with Windows each time we get
13727         a new ClassStyle.  [Fixes bugs #79432, #80817]
13728         * Controls.cs: Set the correct ClassStyle in CreateParams.
13729         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
13730
13731 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
13732
13733         * ListView.cs: Add fireEvent argument to ReorderColumn since the
13734         ColumnReordered event must not be signaled when modifying DisplayIndex
13735         of a ColumnHeader. Added internal ReorderColumns method which takes
13736         care of drawing, and updating the internal DisplayIndex of the
13737         ColumnHeader. Added AddColumn method which is invoked from
13738         ColumnHeaderCollection when adding or inserting columns, and which
13739         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
13740         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
13741         Recalculated dispay indices after removing a ColumnHeader.
13742         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
13743         match MS. Allows last display index to be returned after ListView
13744         is disposed. Update actual location of ColumnHeader when DisplayIndex
13745         is modified.
13746
13747 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
13748
13749         * LinkLabel.cs: Improve CalcTrimRectangle.
13750         
13751         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
13752
13753 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
13754
13755         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
13756         get rectangle as a result value.
13757
13758 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
13759
13760         * LinkLabel.cs: Theres some diferences between rectangle return from 
13761         MeasureCharacterRanges and the area used for DrawString to fix this 
13762         CalcMeasurementFactor method was created, it calcules the diferences
13763         to be use later to adjust rectangle in draw operations. Fixes #80473.
13764         
13765         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
13766         to adjust draw rectangle.
13767
13768 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
13769
13770         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
13771         text and some other changes to reduce and optimize source code.
13772
13773 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
13774
13775         * RadioButton.cs: Implement 2.0 event.
13776         * RelatedImageListAttribute.cs: Implement new class.
13777
13778 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
13779
13780         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
13781
13782 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
13783
13784         * CheckBox.cs: Implement 2.0 functionality.
13785
13786 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13787
13788         * ListView.cs: Refactor Add and AddRange methods of
13789         ListViewItemCollection, to not update the ListView
13790         everytime an item is added in AddRange. Also move the update
13791         code to a new CollectionChanged method, and call it
13792         from other methods that need it as well (this should also fix some
13793         bugs when Sorting is used).
13794
13795 2007-02-27  Jackson Harper  <jackson@ximian.com>
13796
13797         * TextControl.cs: Try to never let the caret stay in a non-text
13798         tag.
13799         * TextBoxBase.cs: Update the caret.
13800
13801 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
13802
13803         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
13804         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
13805         delete POINT structure, duplicate of one in XplatUIStructs.
13806         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
13807
13808 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
13809
13810         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
13811         edit box since otherwise the Label would immediately be set (even if
13812         the user did not modify the label). In OnKeyDown set Handled to true
13813         if Return or Escape was pressed. In ColumnHeaderCollection unlink
13814         columns that are to be removed. In ListViewItemCollection unlink items
13815         that are to be removed.
13816
13817 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
13818
13819         * TextRenderer.cs: If we set a GDI clip region, we need to clear
13820         it when we are done.  [Fixes bug #80949]
13821
13822 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
13823
13824         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
13825
13826 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13827
13828         * ListView.cs: I forgot to commit the changes for ListView 
13829         in my previous patch.
13830
13831 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
13832
13833         * Clipboard.cs: Partially implement an overload of SetDataObject.
13834         * Form.cs: Implement ShowWithoutActivation.
13835         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
13836
13837 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13838
13839         This is a first set of changes to make the Virtual mode works,
13840         by avoiding the retrieval of ListViewItem instances until
13841         draw time.
13842
13843         * ListView.cs: Store item position in the ListView instead of the
13844         ListViewItem, this way we don't request the Bounds property of
13845         ListViewItem inside the ListView calculations, as well as cache the item
13846         size in item_size field. Store indexes instead of ListViewItem
13847         instances in the matrix used by icon view. Add a ItemMatrixLocation
13848         struct to hold the row and col info of the matrix info.
13849
13850         * ListViewItem.cs: Don't store the location anymore, and only cache
13851         the rectangles for GetBounds. Use the ListView.GetItemLocation
13852         method to retrieve the actual location.
13853
13854 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
13855
13856         * TextRenderer.cs: Add clipping support, thanks to George.
13857         [Fixes bug #80949]
13858
13859 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
13860
13861         * ListViewItem.cs: Cancel label edit when item is removed from 
13862         ListView.
13863         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
13864         event before the edit textbox is displayed.  Added CancelEdit method
13865         which is used end to editing while ignoring the value set by the
13866         user. In EndEdit, set focus to ListView to avoid losing focus to
13867         other controls. In ListViewItemCollection.Clear, cancel editing of
13868         any of the items.  In Remove, cancel editing of item being removed.
13869         Avoid udplicate code by modifing RemoveAt to invoke Remove.
13870
13871 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
13872
13873         * FileDialog.cs: Update FSEntry when move is successful. Fixes
13874         bug #80948.  
13875
13876 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
13877
13878         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
13879         compatible with non X11 systems. Fixes #80901.
13880
13881 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
13882
13883         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
13884         whether the item should be unselected and reselect. We do no want this
13885         when we're starting to edit the label. Do not fire the 
13886         SelectedIndexChanged event from ListView when its already been fired
13887         by modifying ListViewItem.Selected. Fixes bug #80943.
13888
13889 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
13890
13891         * TextRenderer.cs: Previos commit logic was backwards.
13892
13893 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
13894
13895         * TextRenderer.cs: Don't add padding on MeasureText if we were
13896         sent the NoPadding flag.
13897
13898 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
13899
13900         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
13901         after DrawButton. To prevent image overlaps button borders SetClip and 
13902         ResetClip added before and after draw image. Fixes #79129.
13903
13904 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
13905
13906         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
13907         window size, it fix problem when you run under win32 that theres
13908         Size diferent than ClientSize. Also fix controls size and positions
13909         to mimic Win32. Fixes #80837.
13910
13911 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
13912
13913         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
13914         menu area to fix some problems for non X11 systems. Fixes #80613.
13915
13916 2007-02-22  Jackson Harper  <jackson@ximian.com>
13917
13918         * TreeNode.cs: When a node is expanded, set its is_expanded flag
13919         even if it doesn't have any children.
13920
13921 2007-02-22  Jackson Harper  <jackson@ximian.com>
13922
13923         * TreeView.cs: Calculate the top node 'on the fly', this
13924         eliminates issues where you need to click on the tree before
13925         scrolling it to get the top node computed correctly.
13926         * TreeNodeCollection.cs: We don't need to mess with the top node
13927         anymore.
13928
13929 2007-02-22  Jackson Harper  <jackson@ximian.com>
13930
13931         * DataGridViewRow.cs: Fix typo so height can actually be set.
13932         Patch by Peter Grimm.
13933
13934 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
13935
13936         * FileDialog.cs: Fixed support for renaming files and directories.
13937         * ListView.cs: Do not lose focus when edit is canceled. Process
13938         Escape as regular key (to prevent closing of dialogs).
13939
13940 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
13941
13942         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
13943         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
13944
13945 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
13946
13947         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
13948         did not modify label.
13949         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
13950         modified the text. Reset Label when user presses Escape in edit mode.
13951         Move focus to ListView after having cancelled or finished editing the
13952         label.
13953
13954 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
13955
13956         * ComboBox.cs: Removed unnecessary initializations. Marked items field
13957         private. Clear textbox when Text is set to null and SelectedIndex is
13958         already -1.
13959         * FileDialog.cs: Removed unnecessary initializations. Removed 
13960         workarounds for ComboBox bugs that are now fixed. Modified
13961         DefaultExt, InitialDirectory and Title property to change null to
13962         zero-length string in getters. Avoid directly accessing fields.
13963
13964 2007-02-20  Jackson Harper  <jackson@ximian.com>
13965
13966         * TextControl.cs: Remove RecalAlignments call, that was some
13967         debugging leftovers.
13968         - Don't use the line indent when we shouldn't.
13969         * RichTextBox.cs: Add support for paragraph left indents.
13970
13971 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13972
13973         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
13974         Seems like the class status pages doesn't catch params differences.
13975
13976 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
13977
13978         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
13979
13980 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
13981
13982         * ComboBox.cs: Setting Text should have no effect if item text of
13983         selected item exactly matches value. First lookup text using
13984         case-sensitive comparison, and fallback to case-insensitive comparison.
13985         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
13986         allow startIndex to be last index. Changed ArgumentOutOfRangeException
13987         paramname to match MS. Restart from first item if string is not found
13988         after startIndex. Fixed paramname of ArgumentNullException that is
13989         thrown for null value in ObjectCollection.Contains.
13990
13991 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
13992
13993         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
13994
13995 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13996
13997         * ListControl.cs: In SelectedValue use value.Equals to compare for
13998         equality instead of ==, otherwise it will fail for strings.
13999         Fixes #80794.
14000
14001 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14002         
14003         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
14004         since the caret won't show up unless ShowSelection is true. 
14005         Fixes #80795.
14006
14007 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14008
14009         * Application.cs: When disabling all forms but the main form, do not
14010           disable any descendants of the main form (such as mdi children or
14011           other parented forms). Fixes #80822 on Windows.
14012         * Form.cs: If we have a parent, set the WS_CHILD style.
14013         * Control.cs: Update the window styles if the control whose parent has
14014           changed is a form (the WS_CHILD style has to be switched).
14015
14016 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
14017
14018         * XplatUIStructs.cs: MsgUIState structure added.
14019
14020 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
14021
14022         * FileDialog.cs: Removed need for separate fileName field. On 2.0
14023         profile, do not check filename(s) for illegal character if filename(s)
14024         were set non-interactively but always check on 1.0 profile. Fixed NRE
14025          in DefaultExt and only strip off first leading dot. Improve exception
14026         message when invalid Filter is set. Do not ignore InitialDirectory if
14027         it does no exist. Store specified Title, and if empty use default
14028         title (depending on type of dialog). Added an internal DialogTitle 
14029         property for retrieving dialog title. Fixed logic of displayed dir to
14030         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
14031         string as its buggy.
14032         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
14033         FileName is a zero-length string (it can never be null). Override 
14034         DialogTitle property to set default title of dialog box.
14035         * SaveFileDialog.cs: Override DialogTitle property to set default
14036         title of dialog box.
14037
14038 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
14039
14040         * FileDialog.cs: Modify default text of filename and filetype labels
14041         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
14042         after we've updated the SelectedIndex. Fixes part of bug #80887.
14043         * SaveFileDialog.cs: Set text of filetype label.
14044
14045 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14046
14047         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
14048         label field. Needed by latest Jackson's fixes for ListView.
14049
14050 2007-02-16  Andreia Gaita  <avidigal@novell.com>
14051
14052         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
14053         print preview images.
14054
14055 2007-02-16  Jackson Harper  <jackson@ximian.com>
14056
14057         * ListView.cs: Make AfterLabelEdit work correctly.
14058         * FileDialog.cs: After changing the name of the folder, we have to
14059         make sure that it is created, or that we pop up an error because
14060         it already exists.
14061
14062 2007-02-16  Jackson Harper  <jackson@ximian.com>
14063
14064         * X11Dnd.cs: Implement aliases on mime handlers, so things like
14065         System.String are mapped to text.
14066         - Handle dataobjects, getting all the possible formats out of them
14067         - We dont need the drag event args before we give feedback. This
14068         allows feedback cursors to be immediate before selections have
14069         been converted.
14070
14071 2007-02-16  Jackson Harper  <jackson@ximian.com>
14072
14073         * TextBoxBase.cs: Modified the method for inserting images to
14074         taking a line and position instead of tag and position.
14075         * RichTextBox.cs: Handle PngBlip data by inserting the png image
14076         into the RTF file.
14077         * TextControl.cs: Allow images to be inserted as the first tag of
14078         a line.
14079         - Fix some off by one issues when we assume the first tag is a
14080         text tag, not an image tag.
14081
14082 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14083
14084         * ListView.cs: Set focus to ListView when ItemControl gets a
14085         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
14086         Fixes part of #80467.
14087
14088 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14089
14090         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
14091           validate Text input (if null or empty string reset Value to default
14092           value). Fixes #80830.
14093
14094 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14095
14096         * ListView.cs: Set owner as null for columns and items when
14097         Dispose is invoked. Fixes #80607.
14098
14099 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
14100
14101         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
14102         showing DropDowns, don't show a Grip when doing Flow layout.
14103         [This fixes the toolbox in PDN 2.72.]
14104         * ToolStripItem.cs: Add Anchor property and some internal properties to
14105         reduces needed changes to FlowLayout.
14106         * ToolStripOverflow.cs: Remove unused variable.
14107         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
14108         use it in the layout calculations.
14109
14110 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
14111
14112         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
14113         reported in #79640.
14114         
14115         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
14116         size calculation.
14117
14118 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
14119
14120         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
14121         MeasureString format, it can make button very large in some cases, it is
14122         strange but is what win32 do.
14123
14124 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
14125
14126         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
14127         size calculation.
14128
14129         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
14130         rendering, the value is based on MenuAccessKeysUnderlined.
14131
14132 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
14133
14134         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
14135         for most themes.
14136         
14137         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
14138         
14139         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
14140         and use MenuAccessKeysUnderlined instead.
14141
14142 2007-02-13  Andreia Gaita  <avidigal@novell.com>
14143
14144         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
14145         A selected control would not get a Focus call if:
14146                 - the default active control of the container is the same as
14147                   the one that was selected
14148                 - we are switching from one container to another
14149         Under these conditions, the container being selected already has
14150         an active_control, which is the same as the one being activated, 
14151         so set_ActiveControl would always return and not send the Focus
14152         call. Fix to check if the currently active control of the container
14153         is actually focused.
14154
14155 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
14156
14157         * StatusStrip.cs: Implement the spring layout.
14158         * ToolStripControlHost.cs: Make sure the hosted control's visibility
14159         always matches the host.
14160         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
14161         and TextAfterImage.
14162
14163 2007-02-13  Andreia Gaita  <avidigal@novell.com>
14164
14165         * Control.cs: Code reorganization only.
14166           - Reorganize the WndProc cases so that each case has it's own handling method, 
14167           to help with the no-line-numbering stack traces.
14168           - Formatting changes (it's vstudio's fault, really :p)
14169
14170 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14171
14172         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
14173           Thread.CurrentUICulture to match DateTimePicker's (and MS)
14174           behaviour.
14175
14176 2007-02-12  Jackson Harper  <jackson@ximian.com>
14177
14178         * RichTextBox.cs:
14179         * TextBox.cs: By default we have a non multiline document
14180         - use the multiline property instead of the internal variable
14181         * TextBoxBase.cs: Treat multiline and non multiline the same in
14182         most places.
14183         - Use the documents multiline flag instead of tracking it ourself
14184         * TextControl.cs: Attempt at getting multiline to match MS
14185         behavior.  Lines now track an offset, which is either their X or Y
14186         offset depending on whether or not we are in multiline mode.
14187         - Update all the methods to understand that lines have an X value.
14188         - Fix crash in Undo::Duplicate when empty lines are deleted.
14189
14190 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
14191
14192         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
14193         code moved to properties PreferredHeight and PreferredWidth. It solve the
14194         all problems when preferred sizes must be recalculated. Fixes #80801.
14195
14196 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
14197
14198         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
14199         font height when compatible_text_rendering is false. Partially fix #80801.
14200
14201 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
14202
14203         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
14204
14205 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
14206
14207         * Form.cs: Improved exception messages in ShowDialog.
14208
14209 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
14210
14211         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
14212         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
14213         if not set. Fixes bug #80764. Avoid accessing current_settings field
14214         directly.
14215
14216 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
14217
14218         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
14219         false.
14220
14221         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
14222         public in 2.0 and for easy maintenance and dont break compatibility it is 
14223         internal in 1.1.
14224         
14225 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
14226
14227         * ToolStripItem.cs: Implement using images from ImageList.
14228
14229 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14230
14231         * DateTimePicker.cs: Change default date-formatting culture from
14232           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
14233           seems to be the way MS does it.
14234
14235 2007-02-08  Andreia Gaita  <avidigal@novell.com>
14236
14237         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
14238         (the 6 was cut off on the right side)
14239
14240 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
14241
14242         * Form.cs: Tell MenuStrips to close when the form is clicked.
14243         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
14244         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
14245         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
14246         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
14247         support for Overflow, where items that do not fit are automatically
14248         reparented to a drop down menu.
14249         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
14250         Also: fixes bug #80747.
14251
14252 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14253
14254         * ComboBox.cs: Remove warning (unused code).
14255         * ScrollableControl.cs: Remove warning for 1.1 profile.
14256
14257 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14258
14259         * Form.cs: Remove a warning.
14260
14261 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14262
14263         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
14264           'g' specifier, not documented anywhere, but seems to always show up
14265           as a single space (might have something to do with the DateTime 'g'
14266           specifier, which is the era format, but since DateTimePicker can't
14267           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
14268           won't crash if the format has an unmatched quote. Now shows
14269           single-character formats correctly. Fixes #80744.
14270
14271 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
14272
14273         * StatusStrip.cs: Stretch property needs to call base.Stretch,
14274         not this.Stretch to fix stack overflow. [Fixes bug #80760]
14275
14276 2007-02-07  Chris Toshok  <toshok@ximian.com>
14277
14278         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
14279         background color.  it overwrites the background image we've
14280         already painted.  Fixes #80599.
14281
14282 2007-02-07  Chris Toshok  <toshok@ximian.com>
14283
14284         * DataGrid.cs: return immediately from Edit() when there are no
14285         columns.  Fixes #80662.
14286
14287 2007-02-07  Chris Toshok  <toshok@ximian.com>
14288
14289         * MessageBox.cs: fix #80625.  don't always show the Help button in
14290         2.0.  use the displayHelpButton parameter to determine if we
14291         should show it. Also, make the internal show_help field private.
14292
14293 2007-02-07  Chris Toshok  <toshok@ximian.com>
14294
14295         * Control.cs (SetVisibleCore): check in the proposed patch for
14296         80604, and set is_visible before calling CreateControl.
14297
14298 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
14299
14300         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
14301         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
14302         on it.
14303
14304 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
14305
14306         * MenuAPI.cs: hotkey_active internal field added, it is required because
14307         we need to know when hotkeys must be draw, before this change a keystate
14308         Navigating was used but we can have menu in navigating state without
14309         hotkeys. Fixes #80694.
14310         
14311         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
14312
14313 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14314
14315         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
14316           corresponding events and methods to be internal for 1.1 profile and
14317           public for 2.0 profile (required by SizeGrip).
14318         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
14319           implicit control list). Don't set the size nor the location of the
14320           SizeGrip anymore as it's not needed.
14321         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
14322           draw directly on the captured control (fixes #80656). Removed
14323           ShowGrip (it wasn't used anywhere), redraw (always true), added
14324           GetDefaultSize and GetDefaultRectangle to calculate defaults.
14325         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
14326           be called from SizeGrip.
14327
14328 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14329
14330         * Timer.cs: Throw ArgumentException if Interval <= 0.
14331
14332 2007-02-05  Jackson Harper  <jackson@ximian.com>
14333
14334         * TreeView.cs: We need to check scrollbar visibility when window
14335         visibility is updated, because non visible trees don't ever add
14336         scrollbars.
14337         * Cursor.cs: We want the override cursor to be reset to NULL when
14338         we set current cursor to the default cursor.
14339
14340 2007-02-05  Jackson Harper  <jackson@ximian.com>
14341
14342         * TextControl.cs: Don't have crlfs when we are non multiline.
14343         - Consolidate the line position.
14344
14345 2007-02-05  Jackson Harper  <jackson@ximian.com>
14346
14347         * X11Keyboard.cs: BACK+CTRL gets a special char code.
14348
14349 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14350
14351         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
14352           handling LeaveNotify->NotifyUngrab in order to send
14353           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
14354           after calling XUngrabPointer, so we call WindowUngrabbed directly
14355           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
14356         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
14357           MouseCaptureChanged correctly. Also create handles if changing
14358           Capture (matches MS behaviour).
14359
14360 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14361
14362         * SizeGrip.cs: Make the last change 2.0 only.
14363
14364 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14365
14366         * SizeGrip.cs: If resizing and the capture is lost, revert any size
14367           changes to initial size (fixes #80597).
14368
14369 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14370
14371         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
14372
14373 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14374
14375         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
14376           background) and only allow dragging if enabled. This way the
14377           sizegrip can be used to fill the open square that otherwise would
14378           have been shown in the bottom right corner of ScrollableControl
14379           when ScrollableControl is not suppose to support sizing.
14380         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
14381           sizegrip is shown and enabled, and hook up with necessary events.
14382
14383 2007-02-01  Chris Toshok  <toshok@ximian.com>
14384
14385         * DataGridTextBoxColumn.cs: clean up the
14386         GetFormattedString/GetColumnValueAtRow combination of functions.
14387         Also fix UpdateUI, and the initial state of
14388         IsInEditOrNavigateMode.
14389
14390         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
14391         aren't supposed to scroll the textbox here, we're supposed to
14392         scroll the datagrid.
14393
14394 2007-02-01  Chris Toshok  <toshok@ximian.com>
14395
14396         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
14397         setting the position.
14398
14399 2007-02-01  Chris Toshok  <toshok@ximian.com>
14400
14401         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
14402         here, since the most recent focus fixes keep us from generating
14403         the Leave event when our textbox gets focus.
14404         (Edit): we should be passing null for the column style's
14405         instantText parameter.
14406         
14407 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
14408
14409         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
14410         raised.  Fixes menu text/icons not showing up in PDN.
14411
14412 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14413
14414         * Control.cs: Remove code in constructor that makes every
14415         control with WS_CHILD set have initial location -1, -1.
14416
14417 2007-01-31  Jackson Harper  <jackson@ximian.com>
14418
14419         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
14420         XplatUIX11.
14421         * XplatUIX11.cs: Give teh keyboard to teh dnd.
14422
14423 2007-01-31  Jackson Harper  <jackson@ximian.com>
14424
14425         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
14426         - Remove some debug code.
14427
14428 2007-01-31  Jackson Harper  <jackson@ximian.com>
14429
14430         * XplatUIX11.cs: If you set the override cursor during a grab, it
14431         should actually override the grab cursor.  This comes into play
14432         when you are setting custom cursors in a DND feedback method.
14433
14434 2007-01-31  Jackson Harper  <jackson@ximian.com>
14435
14436         * X11Dnd.cs: Add support for handling the QueryContinue and
14437         GiveFeedback events.
14438         - Cancel drag and drop actions when the escape key is clicked.
14439         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
14440         can handle the ESCAPE key.
14441         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
14442         done when dnd events are continued after the button is released.
14443         - Add a new helper method so that dnd can translate key events.
14444
14445 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
14446
14447         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
14448         make it more obvious what is happening.
14449
14450 2007-01-30  Jackson Harper  <jackson@ximian.com>
14451
14452         * XplatUIX11.cs: Don't break when handling button release in drag
14453         and drop operations. We need that BUTTONUP message to get through
14454         so capture is released.
14455         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
14456         this is handled automatically when the mouse is down.
14457
14458 2007-01-30  Jackson Harper  <jackson@ximian.com>
14459
14460         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
14461         is closed, so we need to make sure that we aren't changing the
14462         dialog result when the OK (Open or Save) button has been clicked
14463         and we are closing the window ourselves.  Note we don't need to
14464         worry about the cache being written in this case, because it was
14465         already done in the previous FilOk call.
14466
14467 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14468         
14469         * DateTimePicker.cs: Remove a warning.
14470         * ComboBox.cs: Remove a couple of warnings.
14471
14472 2007-01-29  Chris Toshok  <toshok@ximian.com>
14473
14474         * XplatUIX11.cs: don't crash, and remove the icon if the user has
14475         set one, if SetIcon is passed a null icon.
14476
14477 2007-01-29  Andreia Gaita  <avidigal@novell.com>
14478
14479         * TextBox.cs: Redraw when the password characters changes
14480         * TextControl.cs: Check if textbox has a password char and draw 
14481         a line of password chars instead of the text in the line. LineTag gets 
14482         an extra Draw() method which allows document.Draw to override the text 
14483         that will be drawn. Removes 1024 char limitation on length of passworded 
14484         lines.
14485
14486 2007-01-29  Jackson Harper  <jackson@ximian.com>
14487
14488         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
14489         single chars is not.
14490
14491 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
14492
14493         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
14494         one pixel.  Fix a StackOverflowException caused by an overload wrongly
14495         calling itself.
14496
14497 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
14498
14499         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
14500         also remove ProcessArrowKey and put the code inside ProcessKeys.
14501
14502 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
14503
14504         * PaddingConverter.cs: Added.
14505
14506 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14507         
14508         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
14509         ShowPanels is false (fixes #80600). Only draw up to 127 characters
14510         of text (fixes #80601). For panels clip the text to draw to the
14511         panel (fixes #80603).
14512
14513 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14514
14515         * ComboBox.cs: Fixed implementation of ResetText.
14516
14517 2007-01-25  Jackson Harper  <jackson@ximian.com>
14518
14519         * TextControl.cs: For the last char of a line we need to use the
14520         line size, not that chars width, since it won't actually be
14521         computed since the right side of a char is based on the start of
14522         the left side of the next char, and the next char does not exist.
14523
14524 2007-01-25  Chris Toshok  <toshok@ximian.com>
14525
14526         * Splitter.cs: fix the new unit tests, and reindent some switch
14527         statements.
14528
14529 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14530
14531         * ComboBox.cs: Implemented 2.0 methods and events.
14532         * TextBoxBase.cs: Added OnTextUpdate, so that
14533         ComboBox.ComboTextBox can inform ComboBox of it.
14534
14535 2007-01-25  Jackson Harper  <jackson@ximian.com>
14536
14537         * TextControl.cs: Respect ShowSelection when deciding whether or
14538         not to display the caret, this allows comboboxes to have carets
14539         when the combotextbox does not have focus.
14540
14541 2007-01-25  Jackson Harper  <jackson@ximian.com>
14542
14543         * TextControl.cs: Add a Suspend/Resume for updating, basically the
14544         same as the Suspend/Resume for recalc, except this will do actual
14545         Invalidates.
14546         - New Undo manager, works much like the MS version.
14547         - Implemented Redo
14548         * TextBoxBase.cs: The Cut operation is undoable.
14549
14550 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14551         
14552         * TextBoxBase.cs: Don't antialias text. Makes it look way better
14553         on Windows (no difference on Linux).    
14554
14555 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14556
14557         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
14558         we don't want to activate any windows. Fixes #79433.
14559
14560 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
14561
14562         - ButtonBase.cs: Fix capitalization of parameter: disposing.
14563         [Fixes bug #80609]
14564
14565 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
14566
14567         * FileDialog.cs:
14568         - Move to using System.ComponentModel.EventHandlerList
14569         - Replace Refresh with Invalidate
14570         - Clear the mime filecache on closing
14571         - Some other memory reducing work. After beeing closed FD now uses
14572           only about 300 KB for the fdo mime stuff plus the memory of the
14573           cached icons.
14574         * Mime.cs: Changed coding style and removed unnecessary commented
14575         code. Some more memory memory reducing work.
14576
14577 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14578
14579         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
14580         a few other missing 2.0 properties.
14581         * Theme.cs: Added DrawFlatStyleComboBox.
14582         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
14583
14584 2007-01-24  Chris Toshok  <toshok@ximian.com>
14585
14586         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
14587         wake_waiting flag, not just when there's data to be read.  if we
14588         don't, then future wakeup's won't reach us and we'll be doomed to
14589         wait for the entire 1 second timeout forever (unless there are X
14590         events to be had).
14591
14592 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
14593
14594         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
14595         until you pass Items.Count, not Items.Count - 1 like 1.1.
14596
14597 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
14598
14599         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
14600
14601 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
14602
14603         * ToolStripContainer.cs: The recent Dock fix exposed that I was
14604         adding the panels in the wrong order.
14605
14606 2007-01-24  Jackson Harper  <jackson@ximian.com>
14607
14608         * TextBoxBase.cs: When we move the caret we also need to move the
14609         selection, this fixes some random crashing after doing select
14610         text, unselect, delete a char, paste.
14611
14612 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14613
14614         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
14615
14616 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
14617
14618         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
14619         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
14620         * ToolBar.cs: Force redraw in BackgroundImageChanged.
14621
14622 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
14623
14624         * ToolBar.cs:
14625         - Implement support for vertical toolbars. Fixes #80539;
14626         - Call LayoutToolBar when resize, it fix some other problems in layout.
14627         - Rename requested_height to requested_size, as we can have width on it
14628         when toolbar is vertical.
14629         - Create a private property "Vertical" that uses Dock to verify when 
14630         toolbar is vertical or not.
14631         - Set ControlStyles when change Dock property.
14632         - Refactory in LayoutToolBar to have better variables names and to support
14633         vertical toolbars.
14634         - Fixes default value for ButtonSize when button count is equal zero, size
14635         must be (39, 36) test case writed.
14636
14637 2007-01-23  Chris Toshok  <toshok@ximian.com>
14638
14639         * Control.cs: fix the checks so that they work correctly for mdi
14640         parents/children.
14641
14642 2007-01-23  Chris Toshok  <toshok@ximian.com>
14643
14644         * Control.cs: ControlCollection seems to have super-secret
14645         abstraction breaking knowledge of Mdi containers.  allow MdiClient
14646         to add toplevel controls.
14647
14648 2007-01-23  Chris Toshok  <toshok@ximian.com>
14649
14650         * Control.cs: throw an ArgumentException if a toplevel control is
14651         added to our control collection from ControlCollection.Add, as
14652         well as from ControlCollection.IList.Add.  This fixes the
14653         ControlSetTopLevelTest.TestTopLevelAdd unit test.
14654
14655         Also, in ControlCollection.IList.Add, don't through an
14656         ArgumentNullException, throw an ArgumentException, when value ==
14657         null.  This matches MS.
14658
14659 2007-01-23  Chris Toshok  <toshok@ximian.com>
14660
14661         * BindingSource.cs: initial, incomplete, implementation of
14662         BindingSource.
14663
14664 2007-01-23  Jackson Harper  <jackson@ximian.com>
14665
14666         * TextControl.cs:
14667         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
14668         that I can fix a broken unit test (TextBoxTest::ClearUndo)
14669         
14670 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
14671
14672         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
14673
14674 2007-01-23  Andreia Gaita  <avidigal@novell.com>
14675
14676         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
14677         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
14678         IndexOfKey() for 2.0
14679
14680 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14681
14682         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
14683         to prevent it from changing z-order.
14684         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
14685         leave UI updates in MdiWindowManager.
14686         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
14687         1 sized (NC handling goes weird on Linux otherwise).
14688         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
14689         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
14690         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
14691         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
14692         and SetWindowState(s) to allow for changing the size of an activated child
14693         before activating it (reduces a lot of flicker).
14694
14695 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
14696
14697         * Form.cs: Changing FormBorderStyle has different semantics based
14698         on whether the Form is visible or not.  If not visible, don't change
14699         the Size.  But InvalidateNC needs to be called to force the window
14700         to pick up the changes and redraw itself.  [Fixes bug #80574]
14701
14702 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
14703
14704         [Moma work]
14705         * ContainerControl.cs: ProcessCmdKey.
14706         * ErrorProvider.cs: new constructor.
14707         * Form.cs: fix AutoValidateEvent compiler warning.
14708         * Label.cs: fix OnAutoSizeChanged compiler warning.
14709         * MenuStrip.cs: fix CanOverflow compiler warning.
14710         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
14711         * TextBox.cs: Dispose.
14712         * ToolStrip.cs: CanOverflow, re-enable double buffering.
14713         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
14714         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
14715         * ToolStripItem.cs: Overflow, RightToLeft properties.
14716
14717 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14718
14719         * Form.cs: Move the layout of the main form to MdiWindowManager.
14720         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
14721         do a layout of the main window to update MdiClient's client area to
14722         the right area. Fixes #80533. Remove the calculation of nc size, 
14723         it was just wrong and the correct one is the same as for 
14724         InternalWindowManager. 
14725
14726 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
14727
14728         * Control.cs: Setting Anchor or Dock needs to reset the other
14729         to its default.  [Fixes bug #80556]
14730
14731 2007-01-20  Chris Toshok  <toshok@ximian.com>
14732
14733         * CheckedListBox.cs: class status changes.
14734
14735         * ScrollableControl.cs: same.
14736
14737         * RichTextBox.cs: same.
14738
14739         * ContainerControl.cs: same.
14740
14741         * ListView.cs: same.
14742
14743         * NotifyIcon.cs: same.
14744
14745         * MenuStrip.cs: same.
14746
14747         * RadioButton.cs: same.
14748
14749         * CheckBox.cs: same.
14750
14751         * PrintPreviewDialog.cs: same.
14752
14753         * Form.cs: same.
14754
14755 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
14756
14757         * TreeNode.cs: Apply Alan's patch for Name property.
14758
14759 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14760         
14761         * Form.cs: Implemented SizeGripStyle.
14762         * SizeGrip.cs: Check for minimum and maximum size for the
14763         control being resized and only resize if size has actually
14764         changed.
14765
14766 2007-01-19  Chris Toshok  <toshok@ximian.com>
14767
14768         * DataGridColumnStyle.cs: stop setting _readonly in the
14769         PropertyDescriptor setter.  fixes a unit test failure.
14770
14771         also, rename ParentReadOnly to TableStyleReadOnly, and have it
14772         just consult our table style (if we have one).  We don't need to
14773         consult the datagrid readonly attribute because that's passed in
14774         as the _ro arg to Edit.  this simplifies things a little.
14775         
14776         * DataGrid.cs: use CurrentColumn instead of
14777         current_cell.ColumnNumber just to simplify some of the code.
14778
14779         switch the order of some things in the CurrentCell setter to keep
14780         the previous cell from getting a textbox again -
14781         EnsureCellVisibility causes scrolling to happen, which calls Edit.
14782         So we need to set the new cell before calling it.
14783         
14784         call Edit in OnEnter, as does Microsoft.
14785         
14786         also, make sure the current table style isn't the one we create
14787         initially when checking to see if it's different than the one
14788         we're setting it to in BindColumns (this fixes #80421).
14789
14790         * GridTableStylesCollection.cs: table styles can have "" for a
14791         mapping name.  part of the fix for #80421.
14792
14793         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
14794         Edit significantly.
14795
14796 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
14797
14798         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
14799         and less GDI object leaky-er.
14800
14801 2007-01-18  Andreia Gaita  <avidigal@novell.com>
14802
14803         * LinkLabel.cs: Add opaque control style
14804
14805 2007-01-18  Jackson Harper  <jackson@ximian.com>
14806
14807         * TextControl.cs: Calculate width properly.
14808         - Don't store the tag's X offset, this can be figured out very
14809         easily.
14810         - When getting the caret tag make sure to get the last empty tag.
14811
14812 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
14813
14814         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
14815         [Fixes bug #79959]
14816
14817         * Control.cs: Color.Empty shouldn't count for previous transparent
14818         redraw changes.
14819
14820 2007-01-18  Jackson Harper  <jackson@ximian.com>
14821
14822         * TextBox.cs:
14823         * RichTextBox.cs:
14824         * TextControl.cs: Starting to merge in some pieces of my older
14825         undo work.  Basically just some slight cleanup of the undo API.
14826
14827 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14828
14829         * TrackBar.cs: Fix signature of RightToLeftLayout.
14830         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
14831         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
14832         * Application.cs: Implemented UseWaitCursor.
14833
14834 2007-01-18  Jackson Harper  <jackson@ximian.com>
14835
14836         * TextControl.cs: We can't skip tags if any part of the tag is
14837         visible.
14838
14839 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
14840
14841         * ContainerControl.cs: Override OnLayout.
14842
14843 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
14844
14845         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
14846
14847         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
14848         everything else.
14849
14850 2007-01-18  Chris Toshok  <toshok@ximian.com>
14851
14852         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
14853         (leftover from the container_selected days, I'd wager).  fixes bug
14854         #80546.
14855
14856 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
14857
14858         * Control.cs: Apply patch from George to fix the new testcase on
14859         bug #80451.  We can't just check for Color.Transparent, we need 
14860         to check if the back color's alpha channel is < 255.
14861
14862 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
14863
14864         * Form.cs: Move setting show_icon = true to before the constructor
14865         so that the base constructor has that information when it calculates
14866         the form's size.  Was causing forms to be (6, 6) bigger than they
14867         were supposed to be.  Thanks for catching this Rolf!
14868
14869 2007-01-18  Jackson Harper  <jackson@ximian.com>
14870
14871         * TextControl.cs: When replacing a selection we need to invalidate
14872         from the initial selection start, because selection start is moved
14873         to the end of the replacement.
14874
14875 2007-01-18  Andreia Gaita  <avidigal@novell.com>
14876
14877         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
14878
14879 2007-01-18  Chris Toshok  <toshok@ximian.com>
14880
14881         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
14882         I just added.
14883
14884 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
14885
14886         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
14887         layout methods and properties from ToolBarButton must be available
14888         into ToolBarButtonInfo.
14889
14890 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
14891
14892         * Control.cs: If the control has a transparent background, we
14893         need to refresh it when it moves and when it's parent's background
14894         image changes.  [Fixes bug #80451]
14895
14896 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
14897
14898         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
14899
14900 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
14901
14902         * XplatUIWin32.cs: Implement proper double buffering for Windows.
14903         [Fixes bug #80447, and probably speeds up things as well]
14904
14905 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14906
14907         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
14908         * XplatUIWin32.cs: We need to recalculate NC size after changing 
14909         window style to toolwindow (otherwise the client rectangle will be
14910         3 pixels to small for some reason).
14911         * MdiWindowManager.cs: Revert NC size calculations to match how
14912         they are calculated only based on window styles (to match
14913         Win32AdjustWindowRectEx, since otherwise when setting size or 
14914         location, Control will call Win32AdjustWindowRectEx to update client 
14915         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
14916         calculate a different value of client size causing another paint 
14917         (and flickering))
14918         * InternalWindowManager.cs: When moving or resizing a window only
14919         update size or location if they actually changed.
14920         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
14921         (seems to match Windows behaviour better). Cleaned up 
14922         ManagedWindowDecorations to draw what's needed and nothing else
14923         (was drawing borders and lines where they shouldn't be)
14924         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
14925         (style = 0xFFFF) and takes into account caption height when 
14926         calculating window rectangle.   
14927
14928 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
14929
14930         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
14931         can be added to toolbar multiple times, we need to maintain a list of 
14932         button information for each positions.
14933
14934 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
14935
14936         * ToolBar.cs: Some small stetic changes.
14937
14938 2007-01-16  Jackson Harper  <jackson@ximian.com>
14939
14940         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
14941         that allow us to have nested recalc = false blocks.
14942         - Add paste support for images in the RichTextBox
14943         * RichTextBox.cs: flush the text after the color is changed, so
14944         the change takes effect.
14945         - Use SuspendRecalc
14946         - Some extra debugging info
14947         * TextControl.cs: Tags no longer track their length, it is just
14948         computed from the next tags length, this makes things a little
14949         simpler and reduces places that we have to track length changes.
14950         - Refactored the linetag class a little so we could make it
14951         a base class for different kinds of tags
14952         - Created a image tag, a tag that can have a single image inserted
14953         into it
14954         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
14955         that we can call suspend multiple times.
14956         - Add some debugging methods
14957
14958 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14959
14960         * MdiClient.cs: Add ActivatePreviousChild for 
14961         mdi child window navigation.
14962         * Form.cs: Use MdiClient.ActivateNextChild/
14963         ActivatePreviousChild instead of Form.SelectNextControl
14964         to select the next/previous child since 
14965         SelectNextControl doesn't do it in the same order
14966         as mdi children should do it.
14967
14968 2007-01-16  Chris Toshok  <toshok@ximian.com>
14969
14970         * Control.cs: remove container_selected field.
14971
14972 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14973
14974         * MdiClient.cs: Update main form's ActiveChild when
14975         updating keyboard focus for the mdi child.
14976
14977 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
14978
14979         * Control.cs: PreferredSize fix.
14980
14981         * Form.cs: Add several 2.0 events, properties, and methods.
14982
14983 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
14984
14985         * Form.cs: Provide meaningful message when MdiParent is assigned a
14986         Form that is not an MdiContainer.
14987
14988 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14989
14990         * MdiClient.cs: Update main form's ActiveChild when
14991         activating a mdi child.
14992
14993 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14994
14995         * MdiWindowManager.cs: Fix NRE when merging menus and main form
14996         doesn't have a menu.
14997
14998         * Form.cs: Request NCRecalc after creating a mdi child window.
14999         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
15000         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
15001         
15002         * MdiClient.cs: Add new method SendFocusToActiveChild that either
15003         sends keyboard focus to the active child, or to the MdiClient
15004         if there are no child forms.
15005         
15006 2007-01-15  Chris Toshok  <toshok@ximian.com>
15007
15008         * ListView.cs: drop the *Internal overrides, just do our work in
15009         ItemControl's WndProc instead.
15010
15011         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
15012         of the various controls, and forward the events properly (in the
15013         same manner as MS) from the textbox to the UpDown.  Also the
15014         ActiveControl of the UpDownBase gets set properly now.  Finally,
15015         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
15016
15017         * NumericUpDown.cs: set Text in the ctor.
15018
15019         * DomainUpDown.cs: call UpdateEditText in the ctor.
15020         
15021         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
15022         so even a Selectable = false textbox can be focused if you click
15023         in it.  Go figure.
15024
15025         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
15026         just add their handling in their respective WndProc's.  Also add
15027         an explicit FocusInternal method that doesn't consult CanFocus
15028         before calling Select(this).
15029
15030         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
15031         do our work in WndProc instead.
15032
15033         * TabControl.cs: same.
15034
15035         * ComboBox.cs: same.
15036
15037 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
15038
15039         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
15040         Fixes #80006.
15041
15042 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15043
15044         * ListViewItem.cs:
15045         * ThemeWin32Classic.cs: Don't draw the item text outside
15046         item bounds in Details view, as well as use trimming.
15047         Fixes bug #80376.
15048
15049 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
15050
15051         * Form.cs: Implement Form.ShowIcon.
15052         
15053         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
15054         null, which when combined with the DlgModalFrame window style removes
15055         the icon from the title bar.
15056
15057 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
15058
15059         * Control.cs: Call OnMouseClick after OnClick. (2.0)
15060
15061 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
15062
15063         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
15064         menu when mdi child windows theres a menu, uses insert to get icon
15065         at first position. Partially fix #80006.
15066
15067 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
15068
15069         * Clipboard.cs: Implement 2.0 methods.
15070
15071 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
15072
15073         * Menu.cs: Implement Insert method of MenuItemCollection class
15074         to fix MenuMerge.
15075
15076 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15077
15078         * ListView.cs: Implement 2.0 FindItemWithText method.
15079
15080 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
15081
15082         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
15083         to calculate menu bar size. Fixes #80290.
15084
15085 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
15086
15087         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
15088
15089 2007-01-11  Chris Toshok  <toshok@ximian.com>
15090
15091         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
15092         initial form.
15093
15094 2007-01-11  Chris Toshok  <toshok@ximian.com>
15095
15096         * LinkLabel.cs: make sure to call base.Select in our Select method
15097         if it turns out we're going to be selected (i.e. if we have a link
15098         that is going to receive focus).  That way our container's
15099         ActiveControl is updated properly.
15100
15101 2007-01-11  Chris Toshok  <toshok@ximian.com>
15102
15103         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
15104         they have 1 or more links.  this fixes the crash gert reported.
15105
15106 2007-01-11  Andreia Gaita  <avidigal@novell.com>
15107
15108         * ContainerControl.cs: Remove ContainerSelected flag, not needed
15109         anymore.
15110
15111         * Control.cs (Controls.Add): Check if control to be added to the collection
15112         is a top level control, and throw an ArgumentException if it is.
15113         Remove ContainerSelectedFlag, not needed anymore.
15114
15115         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
15116         top most control doesn't activate the form. This fixes a problem in the
15117         MessageBox, where the default button wouldn't get focus because the form
15118         was activated before being Loaded - when the Owner is set, SetTopMost is
15119         called, and it would activate it.
15120
15121 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
15122
15123         * Button.cs: When clicked and setting the parent form's DialogResult,
15124         use FindForm instead of Parent, since parent could be a container
15125         control and not the Form.  Fixes bug #80495.
15126
15127 2007-01-10  Chris Toshok  <toshok@ximian.com>
15128
15129         * Form.cs: move the call to SendControlFocus into the same
15130         is_loaded check.
15131
15132 2007-01-10  Chris Toshok  <toshok@ximian.com>
15133
15134         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
15135         It breaks in the face of the new ActiveControl stuff, and should
15136         be unnecessary.
15137
15138         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
15139         activecontrol's focus if it's not already set, after we set
15140         ActiveControl, but before we call OnActivated.  Re-fixes #79667
15141         after the previous focus/active control fixes regressed it.
15142
15143         * Control.cs: reindent some code.
15144         
15145 2007-01-10  Chris Toshok  <toshok@ximian.com>
15146
15147         * Splitter.cs: clearing some outstanding changes from my tree.
15148         Replace all accesses (not writes) to the internal dock_style field
15149         with the Dock property.
15150
15151 2007-01-10  Chris Toshok  <toshok@ximian.com>
15152
15153         * Control.cs: make FireEnter, FireLeave, FireValidating, and
15154         FireValidated virtual.
15155
15156         * Form.cs: override and don't chain up calls to FireEnter and
15157         FireLeave.
15158
15159 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15160
15161         * ListView.cs: Add more text padding space when using
15162         auto resize for columns (the previous value didn't work fine).
15163
15164         * ThemeWin32Classic.cs: Update text position inside columns,
15165         to match the appeareance of .Net.
15166
15167         * ColumnHeader.cs: When using auto resize, only the Width should
15168         depend on the sub items, not the Height. Also, set width after
15169         auto resizing (the value of Width should never remain as -1 or -2).
15170
15171 2007-01-10  Chris Toshok  <toshok@ximian.com>
15172
15173         * Application.cs: fix compilation errors when debug is enabled.
15174
15175 2007-01-10  Chris Toshok  <toshok@ximian.com>
15176
15177         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
15178         add some nice ascii art pictures and explanation of the process).
15179         (GetMostDeeplyNestedActiveControl): new utility function we need
15180         because our ActiveControl can refer to a child container with its
15181         own ActiveControl.
15182
15183         * Form.cs (OnActivated): remove the call to SelectActiveControl
15184         from here, since you can override this method and not chain up,
15185         and winforms still sets the active control.
15186         (OnCreateControl): also remove the unnecessary SelectActiveControl
15187         call from here.
15188         (WndProc): it's actually called from the WM_ACTIVATE block, just
15189         before calling OnActivated.
15190
15191         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
15192         inside the else.  the ActiveControl setter will end up setting
15193         focus on @control.  This keeps us from setting it again (and
15194         generating an extra LostFocus/GotFocus pair).
15195         (Select (bool, bool)): reindent.
15196
15197 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
15198
15199         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
15200         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
15201         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
15202         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
15203         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
15204         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
15205         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
15206         ToolStripTextBox.cs: Another wave of corcompare work.
15207
15208 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15209
15210         * ColumnHeader.cs: Implement 2.0 AutoResize method using
15211         the Width property.
15212
15213         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
15214         methods by callling Column.AutoResize method on columns.
15215
15216 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
15217
15218         * Control.cs: Provide proper implementations of PreferredSize
15219         and GetPreferredSize (2.0).
15220
15221 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
15222
15223         * Form.cs: Remove one character (!) to make my previous OnClosing
15224         stuff work for modal windows like MessageBox.
15225
15226 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15227
15228         * ListView.cs:
15229         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
15230         ListView.Columns to get the last displayed column. Fixes #80452.
15231
15232 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
15233
15234         * Label.cs, LinkLabel.cs: Source code identation fixes.
15235
15236 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
15237
15238         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
15239         we dont need to invalidate only borders because when we invalidate four
15240         border lines the invalidate's generates a complete redraw of button, 
15241         because it now invalidate a complete rect some other redraws operations
15242         are fixed. Fixes #80196.
15243         
15244         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
15245         Remove ToolBarInvalidateEntireButton as it is not used.
15246
15247 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
15248         
15249         * Form.cs: Make sure that both OnClosing and OnFormClosing are
15250         called for 2.0 profile.
15251         * CloseReason.cs: Make class internal for 1.1.
15252
15253 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
15254
15255         * ToolStripManager.cs: Implement FindToolStrip functionality.
15256         * ToolStrip.cs: Register and unregister with ToolStripManager.
15257
15258 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
15259
15260         * Control.cs: This was messy.  2.0 moves much of ControlCollection
15261         to ArrangedElementCollection.  Implemented this with as few #if's as 
15262         possible (which is still too many).
15263
15264 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
15265
15266         * Control.cs: Implement SizeFromClientSize() [2.0].
15267
15268 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
15269
15270         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
15271         use Theme.BorderSize to calculate area instead of static value 1, 
15272         by the way use new BorderStaticSize instead     Border3DSize when 
15273         border_static is true. Fixes #79537.
15274         
15275         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
15276         
15277         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
15278         it is not needed.
15279
15280 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
15281
15282         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
15283
15284 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
15285
15286         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
15287         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
15288         
15289         * Hwnd.cs: 
15290         - border_static field added, it will used to define when a control 
15291         theres 3D border but it must be static (thin).
15292         - In GetWindowRectangle use Theme.BorderSize to calculate area 
15293         instead of static value 1, by the way use new BorderStaticSize instead
15294         Border3DSize when border_static is true.
15295
15296         * XplatUIX11.cs, XplatUIOSX.cs: 
15297         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
15298         
15299         * Theme.cs: BorderStaticSize field added.
15300
15301 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
15302
15303         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
15304
15305 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
15306
15307         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
15308         mimic same behavior than win32 that set border only in CreateParams,
15309         it fix problems under CreateParams overrides. Fix #79442 and partial
15310         fix #79537.
15311         
15312         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
15313         of thi control you must call recreate handle. 
15314         
15315         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
15316         need to do anything as RecreateHangle will take care about borders.
15317
15318 2007-01-05  Mike Kestner  <mkestner@novell.com>
15319
15320         * ListView.cs: hack to eliminate Lost/Got focus notifications on
15321         cycles between the ItemControl and parent.  Fixes #80388.
15322
15323 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
15324
15325         * Control.cs: Lazy init layout engine. Do not directly use 
15326         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
15327
15328 2007-01-05  Chris Toshok  <toshok@ximian.com>
15329
15330         * DataGrid.cs: don't forceably rebind columns in SetDataSource
15331         unless our list manager has changed (i.e. unless we have reason to
15332         believe our columns have changed).  Fixes #80422.
15333         
15334         also, disable the call do BindColumns in
15335         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
15336         1.1 the event isn't raised in response to a column addition on a
15337         table.)
15338
15339 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
15340
15341         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
15342         that inheritors can not call it if they choose.  Fixes bug #80456.
15343
15344 2007-01-05  Andreia Gaita  <avidigal@novell.com>
15345
15346         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
15347         doesn't blow up with a null exception on marshalling.
15348         
15349 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
15350
15351         * Control.cs: Implement several 2.0 protected properties and methods.
15352         Ensure that all necessary events are being called when properties
15353         are set.
15354
15355 2007-01-05  Mike Kestner  <mkestner@novell.com>
15356
15357         * ListView.cs: implement PgUp/PgDn for Details view.  Also
15358         fixes First/LastVisibleIndex to use the item_control.ClientRect 
15359         instead of the parent control.  Fixes #80378.
15360
15361 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
15362
15363         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
15364           determine whether to use yard-pound or not (bug #78399).
15365
15366 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
15367
15368         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
15369         problems. So it is time to bring back the old popupbutton colors.
15370
15371 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15372
15373         * ColumnHeader.cs:
15374         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
15375         property by using the internal information of the
15376         columns order in ListView.
15377
15378 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
15379
15380         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
15381         Add 2.0 Tag properties.
15382
15383         * LinkArea.cs: Add 2.0 ToString method.
15384
15385 2007-01-03  Chris Toshok  <toshok@ximian.com>
15386
15387         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
15388         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
15389         when we're editing, which fixes #80047.
15390
15391 2007-01-03  Chris Toshok  <toshok@ximian.com>
15392
15393         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
15394         #80404.
15395
15396 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
15397
15398         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
15399         property and implementation.
15400
15401         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
15402         for MdiWindowListItem property.
15403
15404         * ToolStripDropDown.cs: Don't consider hidden menu items while
15405         laying out the menu.
15406
15407 2007-01-03  Andreia Gaita  <avidigal@novell.com>
15408
15409         * SendKeys.cs: window handle is not needed in win32, so just
15410         get the active window for X after parsing keys and don't use
15411         it when building the message; it is passed by parameter to the 
15412         Xplat method and used there to build the message instead. Also,
15413         wait for events to be processed on SendWait, as opposed to Send,
15414         which doesn't wait :) Playing with threads and Send() completely 
15415         hangs on ms.net, only SendWait() works.
15416         
15417         XplatUIX11.cs
15418         X11Display.cs: Check for valid window handle.
15419
15420 2007-01-03  Jackson Harper  <jackson@ximian.com>
15421
15422         * TextControl.cs: Need to prevent wrap calculations when replacing
15423         text (this was there before i removed it accidently).
15424         - Don't update the cursor during the positioning, just set it to
15425         selection_start at the end of the operaion.
15426
15427 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15428
15429         * Control.cs:
15430         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
15431         
15432 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15433
15434         * MonthCalendar.cs: Added Click and DoubleClick events again,
15435         but this time they only hide Control's Click and DoubleClick.
15436         
15437 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
15438
15439         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
15440         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
15441
15442 2007-01-02  Jackson Harper  <jackson@ximian.com>
15443
15444         * TextBoxBase.cs: We move the caret with the split now, so we
15445         don't need to explicitly move the caret after splitting.  This
15446         fixes the caret bumping down an extra line on Enter.
15447
15448 2007-01-02  Miguel de Icaza  <miguel@novell.com>
15449
15450         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
15451         2.72). 
15452
15453         * ScrollableControl.cs: Add Scroll event.
15454
15455 2007-01-02  Mike Kestner  <mkestner@novell.com>
15456
15457         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
15458         to fix all hdr height padding codepaths.  Fixes #80207.
15459
15460 2007-01-02  Chris Toshok  <toshok@ximian.com>
15461
15462         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
15463         setting it to the Control defaults anyway, and it being after the
15464         Dock set was screwing up layout.
15465         (set_Dock): don't short circuit out of setting base.Dock.  Also,
15466         no need to call UpdateStatusBar here, as it'll be re-layed out if
15467         it needs to be.
15468
15469 2007-01-02  Mike Kestner  <mkestner@novell.com>
15470
15471         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
15472         to header height for width == -1. Fixes the rest of #80207.
15473
15474 2007-01-02  Mike Kestner  <mkestner@novell.com>
15475
15476         * ListView.cs: rework the mouse event forwarding everaldo added
15477         to translate the coordinates to the parent control not
15478         raise the parent events until after we've done our work. Hover
15479         needs more work, in the case where HoverSelection is on, because
15480         the item control receives more than one MouseHover per Enter
15481         event, so we need to ensure only the "first" hover gets forwarded.
15482         Opening a minor bug for that.
15483
15484 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
15485
15486         * CheckedListBox.cs: Fixed SelectionMode to match MS.
15487         * ListControl.cs: Implemented AllowSelection property. Removed extra
15488         tabs.
15489         * ListBox.cs: Implemented AllowSelection property.
15490
15491 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
15492
15493         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
15494         SelectedItem, it prevent for errors when you must disable item
15495         before perform click. Fixes #80409.
15496
15497 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
15498
15499         * MenuAPI.cs: Prevent second level and beyond submenus to close
15500         until first level when move out side of popup.
15501         
15502 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
15503
15504         * MenuAPI.cs:
15505         - Down submenu positin in three pixels.
15506         - Closes sub menu when mouse leaves from menu. Fixes #80402.
15507
15508 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
15509
15510         * ThemeWin32Classic.cs:
15511         - Fix popup menu size adding one pixel on the top.
15512         - Down menu item border from two to one to mimic Win32.
15513         - Some source identation fixes. 
15514
15515 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
15516
15517         * ThemeWin32Classic.cs: Use float numbers to calculate size and
15518         position of menu arrows, it fix wrong arrow size.
15519
15520 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
15521
15522         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
15523         instead of line, it simplify draw operation and fix it using 3D
15524         borders to mimic Win32.
15525
15526 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
15527
15528         * StatusStrip.cs: Add implementation of the sizing grip.
15529
15530         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
15531         StatusStrip rendering.
15532
15533 2006-12-31  Chris Toshok  <toshok@ximian.com>
15534
15535         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
15536         override the layout style (anchor/dock) of the control.  assign to
15537         Dock instead.  Fixes bug #80416.
15538
15539         * ToolStrip.cs: same.
15540
15541 2006-12-31  Andreia Gaita  <avidigal@novell.com>
15542
15543         * ContainerControl.cs: Use ContainerSelected flag to check if 
15544         a Container is directly selected, or if Select is called on a 
15545         non-container. If a container is directly selected, focus events 
15546         should not be raised.
15547         Apply #80411 patch to throw exception on set_ActiveControl if 
15548         control is the same as the current one.
15549         
15550         * Control.cs: Use ContainerSelected flag (see above).
15551         Add invalidation check to raise event but not invalidate if 
15552         dimensions are 0.       
15553         Apply #80411 patch.
15554         
15555
15556 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
15557
15558         * MenuAPI.cs: After click, dont close popup menu when menu is
15559         ContextMenu. Fixes #80399.
15560
15561 2006-12-30  Chris Toshok  <toshok@ximian.com>
15562
15563         * ContainerControl.cs: make sure we throw the exception if the
15564         container control doesn't contain the control we're setting
15565         ActiveControl to.
15566
15567 2006-12-30  Chris Toshok  <toshok@ximian.com>
15568
15569         * Control.cs (SetTopLevel): fix the exception raised by
15570         SetTopLevel for child controls.
15571         (set_Anchor): call UpdateDistances when setting the anchor type.
15572         This fixes bug #80336.
15573
15574 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
15575
15576         * Theme.cs: For now, revert back to 8pt font.
15577
15578 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
15579
15580         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
15581         Fixes #80395.
15582
15583 2006-12-29  Chris Toshok  <toshok@ximian.com>
15584
15585         * Control.cs: reorder the code in OnResize to give the same event
15586         ordering as MS.
15587
15588 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15589
15590         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
15591         TileHorizontally and TileVertically.
15592         
15593 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
15594
15595         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
15596         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
15597         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
15598         Corrected copyright and email adress.
15599
15600 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
15601
15602         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
15603         of Exception in FullPath property if no TreeView is associated with
15604         the TreeNode.
15605
15606 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
15607
15608         * Theme.cs: Marked default_font as private, and initialize it in ctor
15609         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
15610         on 2.0 profile.
15611         * ThemeGtk.cs: Removed default_font intialization.
15612         * ThemeWin32Classic.cs: Removed default_font initialization.
15613
15614 2006-12-28  Chris Toshok  <toshok@ximian.com>
15615
15616         * Control.cs: fix a couple of place where we were creating handles
15617         more aggressively than we should be.  Fixes ControlRefresh unit
15618         tests.
15619
15620 2006-12-28  Chris Toshok  <toshok@ximian.com>
15621
15622         * Control.cs: contrary to what the comment said, Control.Dock does
15623         not supercede Control.Anchor - the last one you assign to decides
15624         the layout behavior.  so we need to keep track of which was the
15625         last set.  Also, fix some of the affected property arguments in
15626         PerformLayout calls, and remove an redundant parent.PerformLayout
15627         call in OnResized.
15628
15629         Add a VisibleInternal property, which returns is_visible.  We
15630         can/should get rid of all the usage of this field elsewhere.
15631
15632 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15633         
15634         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
15635         control style, not DoubleBuffer. Added UseDoubleBuffering property
15636         that indicates whether doublebuffering is enabled and supported.
15637         (comment from and code based on Gert Driesen's patch in #80324).
15638         Fixes #80324.
15639
15640 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15641         
15642         * Control.cs: Fixed a NRE.
15643
15644 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15645
15646         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
15647         for 2.0.
15648
15649 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15650
15651         * Control.cs: Rewrote double buffering, now a seperate
15652         class handles all the buffering, no Graphics is disposed of
15653         until the painting is finished (earlier implementation 
15654         would crash if the control was resized in the OnPaint, 
15655         since it would cause the double buffer to be recreated
15656         and the old one disposed), a separate Graphics is 
15657         created for every paint (MS behaviour and anyways the state
15658         of the Graphics would have to be saved and restored otherwise)
15659         
15660         * XplatUIDriver.cs: 
15661         * XplatUIX11.cs:
15662         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
15663         so that we can get the graphics for the back buffer without
15664         having to create a new one and remove the offscreen_dc parameter
15665         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
15666         
15667 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15668
15669         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
15670         Also make virtual all the key-related methods.
15671
15672         * ListViewItem.cs: Make virtual the key related methods for
15673         ListViewSubItemCollection.
15674
15675 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15676
15677         * ListView.cs:
15678         * ListViewItem.cs:
15679         * ThemeWin32Classic.cs:
15680         * Theme.cs: Initial support for Tile view in ListView,
15681         as well as the implementation of the required bits for it (Item
15682         and Subitem).
15683
15684 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
15685
15686         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
15687         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
15688         Provide useful exception messages.
15689
15690 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15691
15692         * TrackBar.cs: Remove a warning.
15693         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
15694         when used by DateTimePicker, fixes #80287. This also requires that 
15695         MonthCalendar implements it's own drawing for the yearly updown control,
15696         otherwise the Capture tracking would be too complicated. Removed the Click 
15697         and DoubleClick events (according to comments they were hiding the base class
15698         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
15699         raise these events, not that they cannot be raised. It is possible to raise 
15700         them by calling OnClick and OnDoubleClick). Added two internal fields in 
15701         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
15702         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
15703         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
15704         event, no longer needed.
15705         
15706 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
15707
15708         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
15709         true if new value differs from current value.
15710
15711 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
15712
15713         * Control.cs: ControlCollection.Count must be public. Fixed build of
15714         unit tests.
15715
15716 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
15717
15718         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
15719
15720 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
15721
15722         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
15723
15724 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
15725
15726         * Control.cs: Invalidates control including when Width and Height is 
15727         equal zero or is not visible, only Paint event must be care about 
15728         this. Fixes #79913.
15729
15730 2006-12-26  Chris Toshok  <toshok@ximian.com>
15731
15732         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
15733         more corcompare work.
15734
15735         * DataGridView.cs: fix compiler warning.
15736
15737         * ColumnHeader.cs: some corcompare work, and also take the
15738         opportunity to make the internal fields private.
15739
15740         * ListView.cs: fix the fallout from the above field change.
15741
15742 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
15743
15744         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
15745         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
15746         ToolStripTextBox.cs: Fixes to events and corcompare.
15747
15748 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
15749
15750         * ListView.cs: Call owner.OnMousexx event to propagate events from
15751         item to ListView. Fixes #80367.
15752
15753 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
15754
15755         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
15756         if value is less than one. ItemHeight should not be set to a value
15757         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
15758         Removed extra tabs.
15759
15760 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
15761
15762         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
15763         * ToolStripStatusLabel.cs: Add Spring for Moma.
15764
15765 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
15766
15767         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
15768         Fixed code formatting. Removed debug code.
15769         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
15770
15771 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
15772
15773         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
15774         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
15775         ArgumentOutOfRangeException if ColumnCount is negative. In 
15776         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
15777         less than 4 or higher than 32768.
15778         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
15779         Fixed FormatProvider to return CurrentCulture unless explicitly set.
15780         Fixed IsFormatProviderDefault to return true if FormatProvider has
15781         not been explicitly set.
15782
15783 2006-12-25  Chris Toshok  <toshok@ximian.com>
15784
15785         * Application.cs: add a couple of 2.0 events.
15786
15787 2006-12-25  Chris Toshok  <toshok@ximian.com>
15788
15789         * Control.cs: fix compiler warning.
15790
15791         * AxHost.cs: corcompare fixes.
15792
15793         * ApplicationContext.cs: corcompare fixes.
15794
15795 2006-12-25  Chris Toshok  <toshok@ximian.com>
15796
15797         * Control.cs: only update dist_right/dist_bottom if the
15798         width/height is > 0.  this fixes anchored controls being resized
15799         smaller until they disappear and then resized larger again.
15800
15801 2006-12-25  Chris Toshok  <toshok@ximian.com>
15802
15803         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
15804         since they're nothing more than X/Left and Y/Top, respectively.
15805
15806         Also, move back to a per-control Bitmap/Graphics for
15807         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
15808         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
15809         Height.
15810
15811 2006-12-25  Miguel de Icaza  <miguel@novell.com>
15812
15813         * MessageBox.cs: Implemented overload that takes a new "bool
15814         displayHelpButton" by adding a new internal field "show_help".
15815         When clicked this will raise the HelpRequested on the owner or the
15816         main form. 
15817
15818         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
15819         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
15820
15821         * ListView.cs: Add support ColumnWidthChanged and
15822         ColumnWidthChanging. 
15823
15824         Add support for ColumnReordered event.
15825         (ReorderColumn): Add NET_2_0 specific support for cancelling the
15826         reorder.
15827
15828         Very nice codebase!
15829
15830         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
15831
15832         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
15833
15834 2006-12-24  Chris Toshok  <toshok@ximian.com>
15835
15836         * GridTablesFactory.cs: 2.0 corcompare work.
15837
15838         * ToolStripContainer.cs: add "override" to
15839         ContextMenuStripChanged, and remove the local event object.
15840
15841         * ToolStripDropDown.cs: same with a couple properties.
15842
15843         * ToolStripPanel.cs: same with AutoSizeChanged event.
15844
15845         * TextBoxBase.cs: add "override" to AutoSizeChanged.
15846
15847         * Form.cs: add the remaining 2.0 events, and do some corcompare
15848         attribute work.
15849
15850         * DateTimePicker.cs: add "new" to padding.
15851
15852         * ButtonBase.cs: use Control's use_compatible_text_rendering.
15853
15854         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
15855
15856         * DataGridView.cs: PaddingChanged is overridden.
15857
15858 2006-12-24  Chris Toshok  <toshok@ximian.com>
15859
15860         * Control.cs: corecompare work here too.
15861
15862         * DataGridViewElement.cs, DataGridView.cs,
15863         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
15864         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
15865         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
15866         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
15867         work.
15868
15869 2006-12-24  Miguel de Icaza  <miguel@novell.com>
15870
15871         * Control.cs: Switched the error message on the console for a
15872         todo.  A review of the code will have to cope with this anyways
15873         (since its a large feature, it is in our radar) and it was
15874         producing too much output when running PDN.
15875
15876         * ToolStripComboBox.cs: Set the text when the SelectedIndex
15877         changes.  Applications depend on this (PDN 2.72)
15878
15879 2006-12-23  Chris Toshok  <toshok@ximian.com>
15880
15881         * TableLayoutSettings.cs: finish up the corcompare work for this
15882         class.
15883
15884 2006-12-23  Chris Toshok  <toshok@ximian.com>
15885
15886         * Control.cs: make SetImplicitBounds internal, do some futzing
15887         with LayoutEngine so that it's available in 1.1, and remove the
15888         entire duplicated code mess from PerformLayout.  Use
15889         System.Windows.Forms.Layout.DefaultLayout instead.
15890
15891         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
15892
15893 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
15894
15895         * Form.cs: Add MainMenuStrip property.
15896
15897 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
15898
15899         * Control.cs: Add ContextMenuStrip property and implementation.
15900         Fix ContextMenu implementation to show menu centered on control when
15901         activated using the keyboard instead of showing at screen (0,0).
15902
15903         * ToolStripDropDown.cs: Fix needed overload of Show ().
15904
15905 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
15906
15907         * Menu.cs: Name property added for 2.0 profile.
15908         
15909 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
15910
15911         * Menu.cs: Update information about FindMenuItem, method to be
15912         implemented soon.
15913
15914 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
15915
15916         * MenuAPI.cs: When deselect items deselect also selected subitems.
15917         
15918 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
15919
15920         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
15921         FindSubItemByCoord to found itens that is not active, also an
15922         cheking added to FindSubItemByCoord to search for items only 
15923         in visible popup windows. Fixes #80274.
15924
15925 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
15926
15927         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
15928         internal property, it be care about change ExStyle. 
15929
15930 2006-12-22  Andreia Gaita  <avidigal@novell.com>
15931
15932         * ContainerControl.cs: set activeControl for parent forms up the 
15933         tree when the new activecontrol is a container.
15934         When validating the active control, if it is a container, also
15935         raise up the validation for it's active control. Fixes #80280
15936         
15937         * Control.cs: Add internal property flag and check to prevent
15938         Focus events from getting raised when Select() is called for
15939         a ContainerControl. There are still too many focus events being
15940         raised at the moment though.
15941         Cleaned up the code a bit.
15942
15943 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15944
15945         * Control.cs: Added all missing 2.0 events.and
15946         fixed a couple of corcompare issues.
15947         * TrackBar.cs: Implemented missing 2.0 bits.
15948         * MonthCalendar.cs, 
15949         * DateTimePicker.cs, 
15950         * MdiClient.cs: Fixed some corcompare issues.
15951
15952 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
15953
15954         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
15955         SplitterPanel.cs: corecompare work.
15956
15957 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
15958
15959         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
15960         Clean up warnings for BackgroundImageChanged and PaddingChanged
15961         events now that they are implemented in Control.cs.
15962
15963 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
15964
15965         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
15966         
15967         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
15968         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
15969         of TableLayoutPanel and supporting cast.
15970
15971 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15972
15973         * XplatUIWin32.cs: 
15974         - GrabWindow now confines the mouse pointer to the confine window.
15975         - Added Win32ClipCursor and Win32GetClipCursor.
15976
15977         * Control.cs: 
15978         - Added CaptureWithConfine to be able to capture and confine 
15979         mouse pointer.
15980         
15981         * InternalWindowManager.cs: 
15982         - Call CaptureWithConfine instead of Capture if we're an
15983         MdiChild (fixes #79982).
15984
15985 2006-12-21  Chris Toshok  <toshok@ximian.com>
15986
15987         * DataGrid.cs: guard against the initial state of selection, where
15988         selection_start == -1.  make sure we only select from index >= 0.
15989         Fixes bug #80291.
15990
15991 2006-12-21  Chris Toshok  <toshok@ximian.com>
15992
15993         * Control.cs: we don't need to be so draconian with
15994         UpdateDistances, and we thusly don't need to call it before
15995         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
15996
15997 2006-12-21  Daniel Nauck  <dna@mono-project.de>
15998
15999         * ComboBox.cs,
16000         TextBox.cs: Implemented AutoComplete properties.
16001
16002 2006-12-20  Chris Toshok  <toshok@ximian.com>
16003
16004         * DataGridView*.cs: some corecompare work.
16005
16006 2006-12-20  Jackson Harper  <jackson@ximian.com>
16007
16008         * XplatUIX11.cs: We need to hide the caret when deleting it,
16009         otherwise you get carets left lying around everywhere.
16010         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
16011         prevents getting some weird half drawn caret tracers when
16012         scrolling.
16013         * TextControl.cs: Attempt to reduce the number of times we need to
16014         recreate the caret.
16015
16016 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
16017
16018         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
16019
16020 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16021
16022         * DateTimePicker.cs:
16023         - Implemented missing 2.0 bits.
16024         - Changed some default values to match MS.
16025         
16026 2006-12-20  Jackson Harper  <jackson@ximian.com>
16027
16028         * TextBoxBase.cs: When changing the font across the document we
16029         can't recalculate after changing each line, since that will cahnge
16030         the line count.
16031         - PreferredHeight is a little different than i thought.
16032         - When backspacing, move the caret before we do the actual char
16033         delete, because when that delete crosses a wrap boundary the
16034         positional information will change.
16035
16036 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16037
16038         * Control.cs: Added some missing 2.0 bits: 
16039         BackgroundImageLayout, BackgroundImageLayoutChanged, 
16040         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
16041         add IBindableComponent and IDropTarget implementation.
16042         
16043         * MonthCalendar.cs: 
16044         - Added all missing 2.0 features:
16045         BackgroundImageLayout, RightToLeftLayout, 
16046         OnHandleDestroyed, RightToLeftLayoutChanged, 
16047         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
16048         PaddingChanged.
16049         - Rewrote all the BoldDate code, it was completely broken.
16050         - Fixed all the tests (the tests can now be re-enabled, the
16051         problems were not with the tests, but with the control, it was
16052         mostly broken).
16053         
16054         * DateTimePicker.cs: Changed the location where the 
16055         MonthCalendar is shown.
16056         
16057 2006-12-19  Chris Toshok  <toshok@ximian.com>
16058
16059         * DataGridView.cs: add IDropTarget implementation.
16060
16061         * ToolStripPanel.cs: add IDropTarget implementation.
16062
16063 2006-12-19  Jackson Harper  <jackson@ximian.com>
16064
16065         * TextControl.cs: soft now means something different than what it
16066         used to mean, we want to move the caret regardless of whether or
16067         not this break was soft (would we really have wanted the caret
16068         to not move with the break in the old context?)
16069         * TreeView.cs: Make sure we factor in the vert scrollbar when
16070         calculating the horizontal scrollbar's maximum.
16071
16072 2006-12-19  Andreia Gaita  <avidigal@novell.org>
16073
16074         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
16075         check for keywords in alternate casing, close bug #80049.
16076
16077 2006-12-19  Chris Toshok  <toshok@ximian.com>
16078
16079         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
16080         methods (which all do nothing).
16081
16082         * IDropTarget.cs: add the 4 missing methods.
16083
16084 2006-12-19  Chris Toshok  <toshok@ximian.com>
16085
16086         * TableLayoutRowStyleCollection.cs: corcompare work.
16087         
16088         * TableLayoutSettings.cs: same.
16089
16090         * TableLayoutStyle.cs: same.
16091
16092         * TableLayoutColumnStyleCollection.cs: same.
16093
16094 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
16095
16096         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
16097         TableLayoutPanel I've had in my local tree for way too long.
16098
16099 2006-12-19  Miguel de Icaza  <miguel@novell.com>
16100
16101         * TableLayoutSettings.cs: Finish the public API (still needs all
16102         the logic to update on changes). 
16103
16104         * TableLayoutPanelCellPosition.cs: new file.
16105         
16106         * TableLayoutRowStyleCollection.cs,
16107         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
16108         TableLayoutSettings.cs: Track the final 2.0 table api.
16109
16110 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16111
16112         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
16113         and Image List 2.0 members for ColummnHeader.
16114         * ListView.cs: Add key-related 2.0 methods for
16115         ColumnHeaderCollection.
16116
16117 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
16118
16119         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
16120         ArgumentNullException if items argument is null. Ignore null item in
16121         arrays. Removed extra tabs.
16122
16123 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
16124
16125         * MonthCalendar.cs: Fixed InvalidCastException.
16126
16127 2006-12-19  Jackson Harper  <jackson@ximian.com>
16128
16129         * TextControl.cs: Don't increment the position here.
16130         - When calculating char positions only add in the line break size
16131         for hard line breaks.
16132
16133 2006-12-19  Andreia Gaita  <avidigal@novell.org>
16134
16135         * SendKeys.cs: Changed some things to match ms.net behaviour
16136         when parsing shifted capital letters.
16137         
16138         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
16139         Add window handle as parameter to SendInput. X11 needs the 
16140         window handle, and the handle being passed      to it in the keys 
16141         queue is the active control handle (which windows needs), not 
16142         the window handle.
16143         
16144         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
16145         to support SendKeys on X.       
16146         
16147         * X11Keyboard: Implement helper method to lookup a linux keycode
16148         given the virtual keycode. Added table of keycode-2-virtualkey
16149         values to support this.
16150
16151 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16152
16153         * ListView.cs: Add support for SelectedIndexCollection
16154         and SelectedItemCollection 2.0 methods. Implement support
16155         for ImageKey too.
16156         * ListViewItem.cs: Add support for ListViewSubItemCollection
16157         2.0 methods. Also, fix an incorrect behavior of AddRange method
16158         (it shouldn't call Clear).
16159         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
16160
16161 2006-12-19  Jackson Harper  <jackson@ximian.com>
16162
16163         * RichTextBox.cs: 
16164         * TextBoxBase.cs: New args for FormatText
16165         * TextControl.cs: Rewrote the main drawing method, this version
16166         feels a little easier to understand and debug to me.  Hopefully it
16167         does to others also
16168         - Fix FormatText to OR in the new formating values.  Added
16169         FormatSpecified param, basically this works in the same way as
16170         BoundsSpecified in Control.
16171         - Set the caret properties when the caret is positioned.
16172         - When wrapping text make sure that we calculate the width of the
16173         last character
16174         - when calculating alignments we might have wrapped down to the
16175         next line, so don't search for an individual tag, search for the
16176         end of the line
16177         - We need to invalidate the selection area when we replace the
16178         selection.
16179         
16180 2006-12-19  Daniel Nauck  <dna@mono-project.de>
16181
16182         * Application.cs: add Restart () 2.0 support
16183
16184 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
16185
16186         * MenuItem.cs: Invalidate menu item rectangle after change Enable
16187         property. Fixes #80268.
16188         
16189 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
16190
16191         * MenuAPI.cs: Dont trigger select event when closes top menu
16192         item. Fixes #80270.
16193
16194 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
16195
16196         * MenuAPI.cs: When you click on menuitem only trigger onselect
16197         event for top menu itens. Fixes #80271.
16198         
16199 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16200
16201         * MdiWindowManager.cs: Make IconicBounds depend on
16202         the bottom of MdiClient, not the top (fixes #80267)
16203         
16204 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16205
16206         * MdiClient.cs: Added missing 2.0 attribute
16207
16208 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16209
16210         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
16211         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
16212
16213 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
16214
16215         * MenuAPI.cs: Fix click when menuitem is not popup,
16216         this regression was caused by last commit (#80272).
16217
16218 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
16219
16220         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
16221         fire click event or close menu. Fixes #80272.
16222
16223 2006-12-17  Daniel Nauck  <dna@mono-project.de>
16224
16225         * ListViewHitTestInfo.cs: add
16226
16227 2006-12-17  Daniel Nauck  <dna@mono-project.de>
16228
16229         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
16230         * FlatButtonAppearance.cs: add
16231         * DockingAttribute.cs: add
16232
16233 2006-12-17  Chris Toshok  <toshok@ximian.com>
16234
16235         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
16236         and rebind our columns when it does - this way, if you make
16237         changes to the DataTable (or set the Table attribute on a DataView
16238         after setting it as the DataGrid's DataSource, the changes are
16239         made visible.)  Fixes bug #80107.
16240
16241 2006-12-17  Daniel Nauck  <dna@mono-project.de>
16242
16243         * ListViewGroup.cs: add internal Location property for layouting.
16244         * Theme.cs: add abstract ListViewGroupHeight function.
16245         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
16246
16247 2006-12-16  Andreia Gaita  <avidigal@novell.com>
16248
16249         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
16250         Added reset of selected index to 0 when adding first tab page.
16251         Fixes #80264
16252         
16253         * NumericUpDown.cs: Fix NET_2_0 check
16254
16255 2006-12-16  Daniel Nauck  <dna@mono-project.de>
16256
16257         * ListViewGroup.cs: fixed DefaultValueAttribute value
16258
16259 2006-12-16  Daniel Nauck  <dna@mono-project.de>
16260
16261         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
16262
16263 2006-12-15  Miguel de Icaza  <miguel@novell.com>
16264
16265         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
16266         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
16267         ScrollableControl.cs: Add a handful of methods that are
16268         overwritten in 2.0 
16269
16270 2006-12-15  Chris Toshok  <toshok@ximian.com>
16271
16272         * XplatUIWin32.cs: initial implementation of the Reversible
16273         drawing functions.  there are some problems.  DrawReversibleFrame
16274         doesn't seem to work at all for Dashed FrameStyle, and in the
16275         Thick case there are drawing errors at the corners (we probably
16276         need to bind Rectangle instead of doing moveto/lineto's.)
16277
16278 2006-12-16  Andreia Gaita  <avidigal@novell.com>
16279         
16280         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
16281         to send blocks of key messages. Send accumulates keys to send with Flush, 
16282         while SendWait sends all keys immediately.
16283                 
16284         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
16285         XplatUIX11.cs,  XplatUIX11-new.cs:
16286         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
16287         to Win32 SendInput.
16288         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
16289         
16290         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
16291         testing for ms.net on this class is very tricky, as the tests run too fast 
16292         to allow the hook to release, essentially freezing the keyboard and the 
16293         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
16294         category :p
16295
16296 2006-12-16  Daniel Nauck  <dna@mono-project.de>
16297
16298         * Padding.cs: fixed serialization compability to MS ("_var" field names),
16299                         added missing attributes.
16300  
16301 2006-12-15  Daniel Nauck  <dna@mono-project.de>
16302
16303         * ListViewGroup.cs: Added missing attributes.
16304         * ListViewGroupCollection.cs: Added missing attributes.
16305
16306 2006-12-15  Daniel Nauck  <dna@mono-project.de>
16307
16308         * ListViewItem.cs: fixed ListViewSubItem text property.
16309
16310 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16311         
16312         * Control.cs: Added missing 2.0 attributes
16313         
16314 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16315         
16316         * MdiClient.cs: Added missing 2.0 attribute.
16317         * MonthCalendar.cs: Added some missing 2.0 attributes 
16318         and properties.
16319         
16320 2006-12-15  Daniel Nauck  <dna@mono-project.de>
16321
16322         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
16323
16324 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
16325
16326         * MainMenu.cs: Add the new 2.0 constructor to help out people
16327         using the MainMenu in VS2005.
16328
16329 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16330         
16331         * MdiChildContext.cs: Removed it, no longer used.
16332         * MdiClient.cs: Added missing 2.0 attributes.
16333         
16334 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16335         
16336         * InternalWindowManager.cs: Fix a NullRef with previous 
16337         changes for toolwindows.
16338         
16339 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16340
16341         * Control.cs: 
16342         - Added AfterTopMostControl to allow for certain controls 
16343         to always stay on top when normal controls are brought to 
16344         front.
16345         
16346         * XplatUIWin32.cs: 
16347         - (DrawInversibleRectangle): Get window rectangle from Win32 
16348         in stead of from control, since Win32 doesn't calculate
16349         screen coords correctly from control's Location if it 
16350         have docked siblings.
16351         
16352         * MdiWindowManager.cs:
16353         - Correct the control menu popup location when clicked on
16354         the maximized form icon. (fixes #80223.1)
16355         - Don't show moving rectangle if mouse hasn't moved from
16356         the original clicked point.
16357         - Removed FormGotFocus handler (not used).
16358         - Calculate the control buttons location from the main
16359         window's size and not client size (fixes #79770).
16360         - Form is now closed when the form icon is double-clicked
16361         (fixes #79775). 
16362         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
16363         
16364         * InternalWindowManager.cs:
16365         - Moved some MDI-only methods to MdiWindowManager.
16366         - Removed unused properties and methods.
16367         - Unified method naming for methods handling wm messages.
16368         - Moved all message handling to seperate methods for
16369         each message.
16370         
16371         * ThemeWin32Classic.cs:
16372         - DrawManagedWindowDecorations now draws the title bar 
16373         with a gradient brush.
16374         - Add a CPDrawButtonInternal that allows us to specify
16375         light, normal and dark colors for the buttons (control 
16376         buttons for MDI children were drawn with the same light
16377         color as the background, therefore loosing the 3D effect).
16378         
16379         * SizeGrip.cs:
16380         - Add a CapturedControl property that is used to 
16381         determine the control to resize (defaults to parent). 
16382         Needed for MdiClient, since its SizeGrip's parent is
16383         MdiClient, but the control to resize is the main form.
16384         
16385         * MdiClient.cs:
16386         - Set SizeGrip's CapturedControl to the main form in order
16387         to resize the main form and not the MdiClient.
16388         - Override AfterTopMostControl to leave the scrollbars 
16389         always on top.
16390
16391 2006-12-15  Daniel Nauck  <dna@mono-project.de>
16392
16393         * ListView.cs: fixed ListViewItemCollection AddRange and
16394                         implemented ListViewItemCollection AddRange 2.0 support.
16395
16396 2006-12-15  Daniel Nauck  <dna@mono-project.de>
16397
16398         * ListViewGroup.cs: Add.
16399         * ListViewGroupCollection.cs: Add
16400         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
16401         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
16402                                 stub for ImageKey 2.0 support.
16403
16404 2006-12-14  Mike Kestner  <mkestner@novell.com>
16405
16406         * ListView.cs: add text padding to the autocalculation for columns
16407         of width -2.  Fixes #80207.
16408  
16409 2006-12-14  Mike Kestner  <mkestner@novell.com>
16410
16411         * ListView.cs: add some index guarding for partial row navigation 
16412         logic.  Fixes #80250.
16413
16414 2006-12-14  Mike Kestner  <mkestner@novell.com>
16415
16416         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
16417         are added or inserted to the collection.  Fixes #81099.
16418
16419 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
16420
16421         * MenuAPI.cs: Closes menu when right click out side of popup
16422         it fix problem in ContextMenu and MainMenu. Fixes #80252.
16423
16424 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16425
16426         * ListViewItem.cs: Fix dumb error.
16427
16428         * ListView.cs: Add Find and ContainsKey methods in 
16429         ListViewItemCollection, and also return true for IsReadOnly
16430         and IsFixedSize (changes for 2.0). 
16431
16432 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
16433
16434         * Control.cs: Allow Region to be set to null.
16435
16436 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16437
16438         * MdiWindowManager.cs: Remove unused (commented out) code.
16439         * Form.cs: When the MdiChild is maximized, the form needs 
16440         WM_NCMOUSELEAVE, so request it.
16441         * InternalWindowManager.cs: 
16442         - Added tooltips to control buttons.
16443         - Removed duplicated control button handling code.
16444         - Removed unused (commented out) code.
16445         
16446 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
16447
16448         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
16449         was used because we must set cursor without trigger ChangeCursor event
16450         and without change Cursor control property. Fixes #79963.
16451
16452 2006-12-12  Andreia Gaita  <avidigal@novell.com>
16453         
16454         * Control.cs: Check if Region setter value is null, and ignore
16455
16456 2006-12-12  Jackson Harper  <jackson@ximian.com>
16457
16458         * TextControl.cs: We were almost always drawing one more line then
16459         needed, since the GetLineByPixel will return the last line found
16460         at that pixel. In most cases though, we were invalidating up to
16461         the junction between two lines.
16462         - Improve debug code.
16463
16464 2006-12-12  Chris Toshok  <toshok@ximian.com>
16465
16466         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
16467         and FillReversibleRectangle.
16468
16469         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
16470         and FillReversibleRectangle.
16471
16472         * XplatUIWin32.cs: add stubs which do nothing for
16473         DrawReversibleFrame, DrawReversibleLine, and
16474         FillReversibleRectangle.
16475
16476         * XplatUIOSX.cs: add stubs which raise NIE for
16477         DrawReversibleFrame, DrawReversibleLine, and
16478         FillReversibleRectangle.
16479
16480         * XplatUIX11.cs: add working implementation for
16481         DrawReversibleFrame, DrawReversibleLine, and
16482         FillReversibleRectangle.
16483         
16484         * ControlPaint.cs: implement DrawReversibleFrame,
16485         DrawReversibleLine, and FillReversibleRectangle, by calling into
16486         the appropriate XplatUI method.
16487
16488 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16489
16490         * Form.cs: Make MdiClient have the focus even if it's
16491         not selectable, since it should receive WM_KEY* and WM_MOUSE 
16492         messages. Fixes #79907.
16493         
16494 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16495
16496         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
16497         queried after the window is created.
16498         
16499         * XplatUIX11.cs: Added SendParentNotify to implement 
16500         WM_PARENTNOTIFY logic. Fixes #79965.
16501         
16502         * Control.cs: Added MakeParam.
16503         
16504 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16505
16506         * MdiClient.cs: Resume Layout before setting window
16507         states (fixes #80201).
16508
16509 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16510
16511         * MenuAPI.cs: Deselect a menu item after performing
16512         the click (fixes #80197).
16513
16514 2006-12-11  Jackson Harper  <jackson@ximian.com>
16515
16516         * TextBoxBase.cs: We need to cap this value, since Maximum -
16517         ViewPortHeight can be less than zero.
16518         - Only do selection with the left mouse button.
16519         * TextBox.cs: Don't tell the world that we have a context menu.
16520         * Control.cs: New method so that we can control whether or not the
16521         context menu is visible outside MWF.
16522
16523 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
16524
16525         * ToolBarButton.cs: Fix text positon. 
16526
16527 2006-12-11  Miguel de Icaza  <miguel@novell.com>
16528
16529         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
16530
16531         * Control.cs (DoubleBuffered): Add implementation.
16532
16533         * Application.cs (OpenForms): Add.
16534
16535 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
16536
16537         * Form.cs: Use opacity instead of Opactiy to determine if we need
16538         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
16539
16540 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
16541
16542         * Control.cs: Fix NRE if Control.Site was set to null.
16543
16544 2006-12-11  Chris Toshok  <toshok@ximian.com>
16545
16546         * Control.cs: ControlCollection.Remove should return if the arg is
16547         null, and ControlCollection.SetChildIndex should raise a ANE.
16548
16549 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
16550
16551         * Control.cs: Verify value set for Dock property. Code formatting
16552         updates.
16553
16554 2006-12-11  Jackson Harper  <jackson@ximian.com>
16555
16556         * TextControl.cs: Draw the caret and the selection when a flag is
16557         set on the owner.
16558         * TextBoxBase.cs: We want to draw the caret and the selection for
16559         TextBox but not for TextBoxBase.
16560         - If the window is resized and scrolling is no longer needed (the
16561         whole doc is visible) set the scroll position to zero.
16562         - The default SelectWord (the one TextBox uses) should move the
16563         caret to the end of the word.
16564         - SelectAll moves the caret to the end of the selection.
16565         * TextBox.cs: We don't selectall on focus, we just do it when the
16566         control is created.
16567         
16568 2006-12-11  Mike Kestner  <mkestner@novell.com>
16569
16570         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
16571
16572 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16573
16574         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
16575         2.0 support.
16576         * ListViewItem.cs: Add Name 2.0 property.
16577
16578 2006-12-11  Andreia Gaita  <avidigal@novell.com>
16579
16580         * TabControl.cs: Set visibility on selected or default tab 
16581         when tabcontrol handle is created, so that it's contents
16582         actually show up (duh). Fixes #80193
16583         Don't redraw the control if there is no handle created, as
16584         the selected index might be completely invalid. Added some tests
16585         to check for this.
16586
16587 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
16588
16589         * ToolBar.cs: Uses maximun width and height of all buttons as 
16590         button rectangle when ButtonSize specified, it looks strange but
16591         is what happens in Win32. Fixes #80189.
16592
16593 2006-12-11  Jackson Harper  <jackson@ximian.com>
16594
16595         * TextControl.cs: Need to track undo levels ourself, since
16596         compound actions will mess them up.
16597
16598 2006-12-10  Andreia Gaita  <avidigal@novell.com>
16599
16600         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
16601         SelectedIndex value is changed (even if it's not valid).
16602         Reset SelectedIndex to 0 when the handle is created and if
16603         the current index is invalid.
16604         Fixes SelectdeIndex unit tests and #80128
16605
16606 2006-12-08  Chris Toshok  <toshok@ximian.com>
16607
16608         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
16609         calls EndEdit, it needs to be called before we set current_cell to
16610         its new value.  Otherwise, we end up committing the value in the
16611         textbox to the new cell as well.  Fixes bug #80160.
16612
16613 2006-12-08  Chris Toshok  <toshok@ximian.com>
16614
16615         * Form.cs (set_CancelButton): if the button's DialogResult is
16616         None, set it to Cancel.  Fixes bug 80180.
16617
16618 2006-12-08  Jackson Harper  <jackson@ximian.com>
16619
16620         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
16621         to watch ourselves when setting the canvas size and setting the
16622         scrollbar values.
16623
16624 2006-12-08  Chris Toshok  <toshok@ximian.com>
16625
16626         * DataGrid.cs: comment out the two MakeTransparent calls for the
16627         time being so people using trunk (and not 1.2.2) on windows can
16628         actually use the datagrid.  This deals with bug #80151.
16629
16630 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
16631
16632         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
16633         Graphics.DrawImage (image, int, int, int, int) overload instead
16634         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
16635         the dpi difference and was blurring images it drew.
16636         [Fixes bug #79960]
16637
16638 2006-12-08  Chris Toshok  <toshok@ximian.com>
16639
16640         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
16641         rowcnt is 0 (such as with an empty datasource), and make sure we
16642         initialize not_usedarea.Y to cells.Y, so we don't draw over the
16643         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
16644
16645 2006-12-08  Chris Toshok  <toshok@ximian.com>
16646
16647         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
16648         grid.
16649
16650 2006-12-08  Chris Toshok  <toshok@ximian.com>
16651
16652         [ Fixes bug #80167 ]
16653         
16654         * ThemeWin32Classic.cs: don't draw the image if the button's flat
16655         style is FlatStyle.System.
16656
16657         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
16658         ButtonBase.flat_style private, and switch uses of it to the public
16659         property.
16660         
16661 2006-12-08  Chris Toshok  <toshok@ximian.com>
16662
16663         [ Fixes bug #80121 ]
16664         
16665         * ThemeWin32Classic.cs: center the caption text in the datagrid
16666         when we draw it.
16667
16668         * DataGrid.cs: lessen the amount we add to the caption height from
16669         6 to 2.  6 was making it huge.
16670
16671 2006-12-08  Andreia Gaita  <avidigal@novell.com>
16672
16673         * UpDownBase: Handle MouseWheel call directly instead of capturing
16674         the inner textbox's OnMouseWheel. Fixes #80166
16675
16676 2006-12-08  Jackson Harper  <jackson@ximian.com>
16677
16678         * TextControl.cs: We need to invalidate the textbox when we empty
16679         it (how had this not been discovered before?)
16680
16681 2006-12-08  Jackson Harper  <jackson@ximian.com>
16682
16683         * TextBoxBase.cs: Reworked the mouse down code so I could get it
16684         to behave like MS, we now ignore the eventargs.Click and just
16685         track state ourself, which we were already doing anyways.
16686         - Constrain the double click handler to the double click size.
16687         
16688 2006-12-08  Chris Toshok  <toshok@ximian.com>
16689
16690         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
16691         direction if that scrollbar isn't shown.  fixes bug #80158.
16692
16693 2006-12-08  Andreia Gaita  <avidigal@novell.com>
16694
16695         * NumericUpDown.cs: Update value on getter. Fixes #79950
16696
16697 2006-12-08  Chris Toshok  <toshok@ximian.com>
16698
16699         * MenuItem.cs: add back in the event cloning code.  I didn't know
16700         how to do it in the face of the EventHandlerList work i'd done
16701         last week.  Fixes bug #80183.
16702
16703 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
16704
16705         * Control.cs: Add an invalidate to the BackgroundImage setter.
16706         [Fixes 80184]
16707
16708 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
16709
16710         * ToolStrip*: Add some small properties reported by MoMA, fix event
16711         firing and default properties based off of unit tests, and add some
16712         attributes based off of the class status page.
16713
16714 2006-12-07  Jackson Harper  <jackson@ximian.com>
16715
16716         * TextBoxBase.cs: Take HideSelection into account when determining
16717         whether or not to show the selection.
16718         * RichTextBox.cs: After inserting the RTF into the document move
16719         the cursor to the beginning of the document.
16720
16721 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
16722
16723         * Control.cs: Remove static ArrayList "controls" which maintained
16724         a reference to every control created.
16725         * Application.cs: Create a static FormCollection to maintain a reference
16726         to every form created.  Use it in places that formerly enumerated through
16727         the controls one looking for forms.
16728         * Form.cs: Add and remove self from above FormCollection.
16729
16730 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
16731
16732         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
16733           not libgdk (though it makes me wonder why I didn't have any
16734           problems)
16735
16736 2006-12-07  Chris Toshok  <toshok@ximian.com>
16737
16738         [ you had to know this was coming after that last commit...]
16739         
16740         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
16741         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
16742         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
16743         XCopyArea).
16744
16745 2006-12-07  Chris Toshok  <toshok@ximian.com>
16746
16747         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
16748         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
16749         all the behavior we need for double buffering.
16750
16751         * XplatUIDriver.cs: implement the 3 double buffer methods using a
16752         client side Bitmap, just like the old Control-based double buffer
16753         code did.  The methods are virtual, so each XplatUI driver
16754         subclass can replace the implementation to use a faster, platform
16755         specific approach.
16756
16757         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
16758         double buffer code, and clean things up a bit in the process.
16759
16760 2006-12-06  Chris Toshok  <toshok@ximian.com>
16761
16762         * Control.cs: reindent WndProc.
16763
16764 2006-12-06  Chris Toshok  <toshok@ximian.com>
16765
16766         [ I wanna be like BenM when I grow up ]
16767         
16768         * Hwnd.cs: create a single static Graphics object on the static
16769         Bitmap we create.  use this for our text measurements.
16770
16771         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
16772         This was causing us to allocate a backbuffer for every control,
16773         even when it wasn't flagged as double buffered.  Instead use the
16774         single graphics instance.  This might have implications for
16775         multithreaded applications.  If we run into problems we can switch
16776         to creating 1 Graphics per control, on the static Hwnd bitmap.
16777
16778         this change nets us a 7M savings in private dirty mappings when
16779         running FormsTest.exe.
16780
16781 2006-12-06  Chris Toshok  <toshok@ximian.com>
16782
16783         * ListView.cs: the BackgroundImage override is just to set
16784         attributes.  chain up to base.BackgroundImage.
16785
16786         * RichTextBox.cs: same.
16787
16788         * ToolBar.cs: same, but we need to also redraw the toolbar when it
16789         changes, so instead a handler for BackgroundImageChanged.
16790         
16791         * Control.cs: make background_image private.
16792
16793 2006-12-06  Chris Toshok  <toshok@ximian.com>
16794
16795         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
16796         sure we even need this assignment, but roll with it for now.
16797
16798         * Control.cs: make the cursor field private.
16799
16800 2006-12-06  Chris Toshok  <toshok@ximian.com>
16801
16802         * Form.cs: we don't need to explicitly set ImeMode to
16803         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
16804         behavior in the face of ImeMode.Inherit.
16805
16806         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
16807         change the ctor's assignment to use ImeMode instead of ime_mode.
16808
16809         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
16810         ImeModeInherit.  Only check for the parent's imemode (and return
16811         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
16812         This fixes the button unit test, which sets both ImeMode and
16813         DefaultImeMode to ImeMode.Disable.
16814
16815         also make the ime_mode field private.
16816
16817 2006-12-06  Chris Toshok  <toshok@ximian.com>
16818
16819         * Control.cs: make control_style private.
16820
16821         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
16822         setting the styles to true, then setting them to false instead of
16823         reverting to their previous values.
16824
16825         also, call SetStyle on the scrollbars instead of using
16826         control_style directly.
16827
16828 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
16829
16830         * FormCollection.cs: Implement. [2.0]
16831
16832 2006-12-06  Chris Toshok  <toshok@ximian.com>
16833
16834         * Control.cs: make tab_stop private.
16835
16836         * Label.cs: set TabStop, not tab_stop.  reformat some event
16837         add/remove methods to make them more compact.
16838
16839 2006-12-06  Chris Toshok  <toshok@ximian.com>
16840
16841         * RadioButton.cs: fix TabStop handling.
16842
16843 2006-12-06  Chris Toshok  <toshok@ximian.com>
16844
16845         * TextBox.cs: remove the explicit assignments to has_focus.
16846         Control does that.
16847
16848         * ButtonBase.cs: remove the assignment to has_focus.  Control will
16849         manage that.
16850         
16851 2006-12-06  Chris Toshok  <toshok@ximian.com>
16852
16853         * ButtonBase.cs: remove all uses of is_enabled from this code.
16854         it's always true when any of the code containing the checks is
16855         executed.
16856
16857 2006-12-06  Chris Toshok  <toshok@ximian.com>
16858
16859         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
16860         with different semantics (some are present in both 1.1 and 2.0
16861         profiles) so that we match MS's behavior in our unit tests.
16862
16863 2006-12-06  Jackson Harper  <jackson@ximian.com>
16864
16865         * TextControl.cs: Make this operation undoable.
16866         * TextBoxBase.cs: Factor the border width into the preferred
16867         height.
16868         - implement Modified as per the spec.
16869
16870 2006-12-06  Chris Toshok  <toshok@ximian.com>
16871
16872         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
16873
16874 2006-12-06  Chris Toshok  <toshok@ximian.com>
16875
16876         * Control.cs: make right_to_left and context_menu fields private.
16877
16878 2006-12-06  Chris Toshok  <toshok@ximian.com>
16879
16880         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
16881         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
16882         Control.child_controls private.  switch all uses over to
16883         Control.Controls.
16884
16885 2006-12-06  Chris Toshok  <toshok@ximian.com>
16886
16887         * System.Windows.Forms/GroupBox.cs,
16888         System.Windows.Forms/AccessibleObject.cs,
16889         System.Windows.Forms/ErrorProvider.cs,
16890         System.Windows.Forms/Control.cs,
16891         System.Windows.Forms/UpDownBase.cs,
16892         System.Windows.Forms/ScrollBar.cs,
16893         System.Windows.Forms/DateTimePicker.cs,
16894         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
16895         System.Windows.Forms/ToolTip.cs,
16896         System.Windows.Forms/RadioButton.cs,
16897         System.Windows.Forms/LinkLabel.cs,
16898         System.Windows.Forms/Splitter.cs,
16899         System.Windows.Forms/TextBoxBase.cs,
16900         System.Windows.Forms/ToolStripTextBox.cs,
16901         System.Windows.Forms/ContainerControl.cs,
16902         System.Windows.Forms/ThemeWin32Classic.cs,
16903         System.Windows.Forms/SizeGrip.cs,
16904         System.Windows.Forms/ToolStripDropDown.cs,
16905         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
16906         private.  switch all uses over to Control.Parent.
16907
16908 2006-12-06  Chris Toshok  <toshok@ximian.com>
16909
16910         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
16911         Control does this before calling emitting these events.
16912
16913         * TabControl.cs: same.
16914
16915         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
16916         Control.client_rect.
16917
16918         * ButtonBase.cs: use the ClientSize property instead of the
16919         client_size field.
16920
16921         * ScrollableControl.cs: same.
16922
16923         * Control.cs: another pass at making properties private.  also,
16924         move the initialization of tab_stop to the ctor.
16925
16926 2006-12-05  Andreia Gaita <avidigal@novell.com>
16927
16928         * TabControl.cs: Let the selected index be set freely if the 
16929         control handle is not yet created.
16930
16931 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
16932
16933         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
16934         internal until I can rewrite DefaultLayout.
16935         * ToolStrip.cs: Fix build error and some general cleaning.
16936         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
16937         Fix build errors caused by making some of Control's fields private.
16938
16939 2006-12-05  Jackson Harper  <jackson@ximian.com>
16940
16941         * TextControl.cs: Redo Insert a little so that it use IndexOf
16942         instead of Split, this prevents it from messing up on things like
16943         \n\n\n. Also more effecient since the split array doesn't need to
16944         be created.
16945         * TextBoxBase.cs: AppendText doesnt handle multiline and non
16946         multiline text differently, this is the first of many fixes that
16947         will make multiline/non-multiline the same thing as far as the
16948         TextBoxBase is concerned.
16949         - Don't split the text and insert lines, this can lose some line
16950         endings (like is the last line a soft or hard break). Instead use
16951         the new Insert.
16952         - Fix an off by one when combining all the lines in the Text
16953         getter.
16954         - Remove separate multiline handling from the Text getter/setter.
16955
16956 2006-12-05  Chris Toshok  <toshok@ximian.com>
16957
16958         * ButtonBase.cs: a few changes:
16959
16960         - don't reinitialize internal Control fields in the ctor when they
16961         have the same values as Control sets them.
16962
16963         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
16964         this before calling those methods.
16965
16966         - we don't need to call Refresh for anything.  use Invalidate
16967         instead.
16968
16969         - OnEnabledChanged doesn't need to redraw at all - Control.cs
16970         calls Refresh in its OnEnabledChanged.
16971         
16972         - several of the events we were registered for in the ctor to
16973         redraw ourselves already include calls to Invalidate in the
16974         property setters that raise the events.  remove the extra
16975         invalidation.
16976
16977         - reformat a switch statement that was 83274658 columns wide.
16978         
16979 2006-12-05  Mike Kestner  <mkestner@novell.com>
16980
16981         * ComboBox.cs: fix a unit test regression from a TextBox
16982         SelectionLength return of -1 when there's no selection.  
16983
16984 2006-12-05  Chris Toshok  <toshok@ximian.com>
16985
16986         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
16987         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
16988         cleaning up some of the internal Control fields being used by
16989         subclasses.
16990
16991 2006-12-05  Mike Kestner  <mkestner@novell.com>
16992
16993         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
16994         listbox after AddImplicit calls since it defaults to hidden. Add a 
16995         hack to preserve requested heights across DropDownStyle changes.
16996
16997 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
16998
16999         * PropertyGrid.cs: Hide FindFirstItem method from public API.
17000
17001 2006-12-05  Chris Toshok  <toshok@ximian.com>
17002
17003         * DataGridView.cs: fix compiler warnings.
17004
17005         * PrintControllerWithStatusDialog.cs: same.
17006
17007         * ToolBar.cs: same.
17008
17009         * FolderBrowserDialog.cs: same.
17010
17011         * Splitter.cs: same.
17012
17013         * DataGridViewComboBoxCell.cs: same.
17014
17015         * XplatUIWin32.cs: same.
17016
17017         * PictureBox.cs: same.
17018
17019         * Win32DnD.cs: same.
17020
17021         * PageSetupDialog.cs: same.
17022
17023         * FileDialog.cs: same.
17024
17025         * PrintDialog.cs: same.
17026
17027         * DataGridTextBoxColumn.cs: same.
17028
17029         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
17030
17031 2006-12-05  Chris Toshok  <toshok@ximian.com>
17032
17033         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
17034         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
17035         System.ComponentModel.EventHandlerList work.
17036
17037 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
17038
17039         * DrawTreeNodeEventArgs.cs: Added.
17040
17041 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17042         
17043         * InternalWindowManager.cs: Remove an unused field.
17044         
17045 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17046
17047         * InternalWindowManager.cs:
17048         - Save the point where the title bar is clicked.
17049         
17050         * MdiWindowManager.cs:
17051         - Only allow moving of the window as long as the 
17052         clicked point on the title bar does not get out of
17053         MdiClient's rectangle. Fixes #79982.
17054         
17055         * MdiClient.cs:
17056         - Added Horizontal/VerticalScrollbarVisible.
17057         - Simplified the scrollbar sizing algorithm.
17058         - Cache the difference in scrolled value in
17059         H/VBarValueChanged and move the calculation out
17060         of the for loop.
17061
17062 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17063
17064         * Control.cs: Make the Console.WriteLine in WndProc 
17065         write more info.
17066
17067 2006-12-05  Chris Toshok  <toshok@ximian.com>
17068
17069         * ToolStripManager.cs, ToolStripButton.cs,
17070         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
17071         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
17072         ToolStripSplitButton.cs, ToolStripSeparator.cs,
17073         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
17074         ToolStripProgressBar.cs, ToolStripContainer.cs,
17075         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
17076         to using System.ComponentModel.EventHandlerList.
17077
17078 2006-12-04  Chris Toshok  <toshok@ximian.com>
17079
17080         * LinkLabel.cs: fix up compiler warnings.
17081
17082         * TableLayoutSettings.cs: same.
17083
17084         * TreeView.cs: same.
17085
17086         * ToolBar.cs: same.
17087
17088         * TabControl.cs: same.
17089
17090         * RichTextBox.cs: same.
17091
17092         * ListViewItem.cs: same.
17093
17094         * PropertyGrid.cs: same.
17095
17096         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
17097
17098         * ToolTip.cs same.
17099
17100         * TextRenderer.cs: fix up compiler warnings.
17101
17102         * Label.cs: same.
17103
17104         * Form.cs: corcompare fixes.
17105
17106         * PictureBox.cs: fix up compiler warnings.
17107
17108         * ImageListStreamer.cs: same.
17109
17110         * TrackBar.cs: corcompare fix.
17111
17112         * Control.cs: fix up compiler warnings.
17113
17114         * SplitterPanel.cs: same.
17115
17116         * NumericTextBox.cs: same.
17117
17118         * ImageList.cs: same.
17119
17120         * StatusStrip.cs: same.
17121
17122         * ProgressBar.cs: corcompare fix.
17123
17124         * ToolStripButton.cs: fix up compiler warnings.
17125
17126         * ToolStripStatusLabel.cs: same.
17127
17128         * ToolStripSplitButton.cs: same.
17129
17130         * ToolStripSeparator.cs: same.
17131
17132         * ToolStripProgressBar.cs: same.
17133
17134         * ToolStripDropDownMenu.cs: same
17135
17136         * ToolStripDropDown.cs: same.
17137
17138         * ToolStripDropDownButton.cs: same.
17139
17140         * ToolStrip.cs: same.
17141
17142         * ToolStripControlHost.cs: same.
17143
17144         * ToolStripContentPanel.cs: same.
17145
17146         * ToolStripDropDown.cs: same.
17147
17148         * ToolStripContainer.cs: same.
17149
17150         * ToolStripPanel.cs: same, and add "new" where we need it to work
17151         with the new ArrangedElementCollection.
17152
17153         * ToolStripItemCollection.cs: add "new" where we need it to work
17154         with the new ArrangedElementCollection.
17155
17156 2006-12-04  Andreia Gaita <avidigal@novell.com>
17157
17158         * TabControl.cs: Fix default tab selection to after TabControl
17159         gets focus and not before. Fixes #80128
17160
17161 2006-12-04  Chris Toshok  <toshok@ximian.com>
17162
17163         * DataGridTableStyle.cs: remove the gross calling of
17164         datagrid.Refresh from here.  It's a broken idea and it doesn't
17165         work anyway.
17166
17167         * DataGrid.cs: instead, just register/unregister from the
17168         DataGridTableStyle events in CurrentTableStyle.  we play it
17169         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
17170         even though some would most likely not require it.  Fixes bug
17171         #80115 (and one portion of #80117 as a side effect).
17172
17173 2006-12-04  Chris Toshok  <toshok@ximian.com>
17174
17175         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
17176         so the textbox (if any) goes away.  Fixes bug #80117.
17177
17178 2006-12-04  Chris Toshok  <toshok@ximian.com>
17179
17180         * DataGridColumnStyle.cs: set the column's readonly property
17181         initially based on the property descriptor's IsReadOnly.  Fixes
17182         bug #80044.
17183
17184 2006-12-04  Chris Toshok  <toshok@ximian.com>
17185
17186         * ComboBox.cs: wrap the dropdown style changing work in
17187         SuspendLayout/ResumeLayout.  Fixes bug #79968.
17188
17189 2006-12-04  Jackson Harper  <jackson@ximian.com>
17190
17191         * TextBoxBase.cs: Fix off by one, since these are one-based.
17192         * TextBox.cs: Select all the text when we get focus.  The TextBox
17193         does this but the RTB does not.
17194
17195 2006-12-04  Chris Toshok  <toshok@ximian.com>
17196
17197         * DataGridTextBoxColumn.cs: remove some spew.
17198
17199         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
17200         but some part of me is saying "it shouldn't be here.."  At any
17201         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
17202         setting the value.
17203
17204 2006-12-04  Chris Toshok  <toshok@ximian.com>
17205
17206         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
17207         to reassign the propertydescriptor.
17208
17209 2006-12-04  Jackson Harper  <jackson@ximian.com>
17210
17211         * TextBoxBase.cs:
17212         * TextControl.cs: Remove some unused variables.  Maybe this will
17213         patch things up between mike and I.
17214         - don't split lines less then one char wide, if the viewport is
17215         that small text won't be visible anyways.
17216         
17217 2006-12-04  Jackson Harper  <jackson@ximian.com>
17218
17219         * TextBoxBase.cs: Default selection length is -1, need to do some
17220         more testing on windows to see when this is used for the property.
17221         - Redid the Lines [] property to that we properly remove soft line
17222         breaks
17223         - added support for preserving carriage returns
17224         -  CanUndo is not a variable like 'is undo enabled' it just returns
17225         true if there is undo operations available.
17226         - AppendText doesn't need to grab the last tag itself anymore,
17227         this happens automatically when we move the cursor.
17228         * TextControl.cs: Add CompoundActions to the undo class. This
17229         allows combining the other operations into one big option.  ie a
17230         paste will combine { delete old, insert new, move cursor }
17231         - Add InsertString undo operation
17232         - New method for deleting multiline text
17233         - Add carriage returns to lines. So we can preserve carriage
17234         returns when text is 'roundtripped'
17235
17236 2006-12-04  Chris Toshok  <toshok@ximian.com>
17237
17238         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
17239         minimum 0.  Fixes the scrollbar exception in bug #80136.
17240
17241 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17242
17243         * MdiClient.cs: 
17244         * MdiWindowManager: Removed unused fields and methods.
17245         
17246 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17247         
17248         * StatusBar.cs: Update all panels when a AutoSize=Contents
17249         panel needs updating.
17250         
17251         * StatusBarPanel.cs: Remove twidth and only use initialize.
17252         Fixes #80031.
17253                 
17254 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17255
17256         * Form.cs: When a form's MdiParent is set add it directly
17257         on top of the z-order in stead of relying on MdiClient's
17258         ActivateChild to do it. Fixes #80135.
17259         
17260         * MdiClient.cs: 
17261         - Remove original_order, mdi_child_list is already doing
17262         the same thing.
17263         - Create mdi_child_list on construction in
17264         stead of first use (avoids a few null checks).
17265
17266         * MenuItem.cs: Use an already existing list of mdi children
17267         to get the correct order of children and remove the other
17268         redundant list.
17269
17270 2006-12-04  Chris Toshok  <toshok@ximian.com>
17271
17272         * PropertyGridView.cs: cached_splitter_location is only used in
17273         !DOUBLEBUFFER code.
17274
17275         * PropertyGrid.cs: implement the ComComponentNameChanged event
17276         using Events, hoping that would fix the warning.  Looks like a
17277         compiler bug instead (#80144).
17278
17279         * PropertyManager.cs: remove unused method.
17280
17281 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
17282
17283         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
17284         include parentesis to fix expression evaluation. Fixes #79634.
17285
17286 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
17287         
17288         * MenuAPI.cs:
17289         - Changes to fix behavior in Menu control, some reported in #80097
17290         and other detected during behavior refactory like a select event
17291         problems.
17292         - Remove unneded "if's" conditions.
17293         - Created an internal to flag when popup is active in control, we need 
17294         it because in .NET you can have menu active but without popup active
17295         when you active menu using popup without visible items.
17296         - Mimic win32 behavior for Select and Popup events.  
17297         - Dont open popup menu when you dont have visible subitems.
17298         - Do nothing when click on disabled menu item.
17299         - Some small changes to follow the coding style guidelines.
17300         - Unselect menu only when another control gives focus. Fixes #80097.
17301         - Remove unused code.
17302         
17303         * MenuItem.cs: internal VisibleItems method to check if menu
17304         theres visible subitems, it will be usefull to fix some 
17305         behavior in Menu control.
17306         
17307 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
17308         
17309         * Timer.cs: Tag property for 2.0 profile.
17310         
17311 2006-12-01  Chris Toshok  <toshok@ximian.com>
17312
17313         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
17314         
17315         * Win32DnD.cs: comment out some unused fields.
17316
17317         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
17318         some unused properties/methods.
17319
17320         * XplatUIX11.cs: fix MousePosition so we override the base class's
17321         property instead of conflicting with it.
17322
17323         * PictureBox.cs: comment out some unused fields
17324
17325         * OSXStructs.cs: make some struct fields public.
17326
17327         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
17328         MousePosition so we override the base class's property instead of
17329         conflicting with it.
17330
17331         * X11Dnd.cs: comment out some unused fields
17332
17333         * X11DesktopColors.cs: fix some struct field visibility to quiet
17334         the compiler.
17335
17336         * X11Dnd.cs: remove some debug code.
17337
17338         * ThemeClearlooks.cs: comment out unused field.
17339
17340         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
17341
17342         * ThemeGtk.cs: comment out some unused pinvokes.
17343
17344         * Timer.cs: remove some unused fields.
17345
17346         * ThemeClearlooks.cs: comment out unused field.
17347
17348         * UpDownBase.cs: comment out unused field.
17349
17350         * DataObject.cs: comment out unused field.
17351
17352         * DataGridBoolColumn.cs: reomve unused field.
17353
17354         * DataGrid.cs: remove unused field.
17355
17356         * Cursor.cs: remove old ToBitmap code.
17357
17358         * ControlPaint.cs: remove unused method.
17359
17360         * ScrollBar.cs: remove unused fields.
17361
17362         * ComboBox.cs: remove unused field, and chain up to
17363         AccessibleObject ctor.
17364
17365         * ListBox.cs: remove unused field.
17366
17367         * ButtonBase.cs: wrap a couple fields in NET_2_0.
17368
17369         * GridEntry.cs: remove unused fields.
17370
17371         * Binding.cs: remove unused fields.
17372
17373         * AxHost.cs: remove unused method.
17374
17375         * ContainerControl.cs: remove unused field.
17376
17377         * ScrollableControl.cs: remove unused fields.
17378
17379 2006-12-01  Chris Toshok  <toshok@ximian.com>
17380
17381         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
17382         the Where/WhereString stuff.  it's easy enough to CWL
17383         Environment.StackTrace.
17384
17385         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
17386         unused private fields.
17387
17388 2006-12-01  Jackson Harper  <jackson@ximian.com>
17389
17390         * TextControl.cs: Do not update the view while inserting multiline
17391         text. If we update the view we might wrap lines, before entering
17392         the new lines, which causes the new line insertion calculations to
17393         be totally fubared.
17394         - Remove an old TODO
17395         - Make debug output a little nicer
17396         
17397 2006-12-01  Chris Toshok  <toshok@ximian.com>
17398
17399         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
17400
17401 2006-12-01  Chris Toshok  <toshok@ximian.com>
17402
17403         [ fix the majority of the CS0108 warnings we've been suppressing ]
17404         
17405         * TreeView.cs: mark BackgroundImageChanged as 'new'.
17406
17407         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
17408         to "LayoutToolBar" to quiet mcs.
17409         
17410         * TabControl.cs: mark our ControlCollection class as 'new'.
17411
17412         * TextBoxBase.cs: mark some events as 'new'.
17413
17414         * Splitter.cs: TabStop is 'new'.
17415
17416         * ControlBindingsCollection.cs: mark a few methods as new since
17417         they change the visibility from protected to public.
17418
17419         * RadioButton.cs: DoubleClick -> base class, and remove unused
17420         HaveDoubleClick.
17421
17422         * MonthCalendar.cs: ImeMode property -> base class, and mark many
17423         events as new.
17424
17425         * NumericUpDown.cs: TextChanged -> base class.
17426
17427         * CheckedListBox.cs: mark our ObjectCollection class as new to
17428         quiet mcs.
17429
17430         * FolderBrowserDialog.cs: make HelpRequest event new and have it
17431         muck with the base class.
17432
17433         * StatusBar.cs: fix some mcs warnings about Update being the same
17434         name as a base class method.
17435
17436         * RichTextBox.cs: mark some events as new, and make them do things
17437         to the base class impl.
17438
17439         * UserControl.cs: mark TextChanged as new, and have it manipulate
17440         base.TextChanged.
17441
17442         * UpDownBase.cs: mark some things new.
17443
17444         * CheckBox.cs: mark DoubleClick "new", and add some text about
17445         what we need to look at.
17446
17447         * Panel.cs: make the events "new", and manipulate the base
17448         version.  these are just here for attributes.
17449
17450         * AccessibleObject.cs: make owner private.
17451
17452         * Control.cs: deal with AccessibleObject.owner being private.
17453         cache our own copy if we need it.
17454
17455         * Button.cs: add "new" to the DoubleClickEvent.
17456
17457         * ListBox.cs: no need to track our own has_focus here.  let
17458         Control.has_focus do it for us.  Also some other work to clear up
17459         warnings about not overriding base class methods of the same name.
17460         
17461         * ComboBox.cs: clear up some warnings about not override base
17462         class methods of the same name.
17463
17464 2006-12-01  Chris Toshok  <toshok@ximian.com>
17465
17466         * Form.cs: flag a few things as "new" to quiet some of the mcs
17467         warnings.
17468
17469         * AxHost.cs: same.
17470
17471         * PrintPreviewDialog.cs: same.
17472
17473         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
17474         now DGV isn't so horrible on the class status page.  also, move
17475         all events to using System.ComponentModel.EventHandlerList.  my
17476         wrists hurt.
17477
17478 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17479
17480         * MdiWindowManager.cs:
17481         - Set form to active mdi child if shown,
17482         and update the active mdi child to the next 
17483         remaining child in the z-order if the form is hidden.
17484
17485         * Form.cs: 
17486         - Track if the form has been visible and if its 
17487         visibility is beeing changed, so that the MdiClient
17488         can properly decide the ActiveMdiChild. The MdiClient 
17489         cannot track this since the form can change visibility 
17490         before MdiClient is created.
17491
17492         * MdiClient.cs:
17493         - Don't activate anything of the parent form is changing
17494         its visibility.
17495         - Rework ActiveMdiChild to only return visible mdi 
17496         children and take into account several other corner 
17497         cases.
17498
17499 2006-12-01  Chris Toshok  <toshok@ximian.com>
17500
17501         * IBindableComponent.cs: new 2.0 interface.
17502
17503 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
17504
17505         * DataGrid.cs: Font for caption area is bold by default.
17506
17507 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
17508
17509         * Menu.cs: Tag property for 2.0.
17510         
17511 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
17512
17513         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
17514         
17515 2006-12-01  Chris Toshok  <toshok@ximian.com>
17516
17517         * TreeView.cs: doh, the Begin* events should be
17518         TreeViewCancelEventHandler.
17519
17520 2006-12-01  Chris Toshok  <toshok@ximian.com>
17521
17522         * Form.cs: Form.ControlCollection already stores off the
17523         form_owner field.  don't access the base class's internal "owner"
17524         field.
17525
17526         * Control.cs: make all the fields in Control.ControlCollection
17527         private.  there's no need for any internal fields here.
17528
17529 2006-12-01  Chris Toshok  <toshok@ximian.com>
17530
17531         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
17532         OnHandleCreated.  Fixes bug #80109.
17533
17534 2006-12-01  Chris Toshok  <toshok@ximian.com>
17535
17536         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
17537         SplitContainer.cs, Control.cs, StatusStrip.cs,
17538         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
17539         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
17540         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
17541         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
17542         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
17543         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
17544         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
17545         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
17546         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
17547         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
17548
17549         do most of the work to convert our code over to use
17550         System.ComponentModel.Component.Events for
17551         adding/removing/dispatching events.
17552
17553
17554 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
17555
17556         * DataGridView.cs: Fix an ArgumentNullException reported 
17557         twice today in IRC.
17558
17559 2006-11-30  Mike Kestner  <mkestner@novell.com>
17560
17561         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
17562         grabbed listbox.  Fixes #80036 and #80101.
17563
17564 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
17565
17566         * Message.cs: Changed ToString() to match MS.
17567         
17568 2006-11-30  Jackson Harper  <jackson@ximian.com>
17569
17570         * TextBoxBase.cs: You can still change the selected text on a read
17571         only textbox.
17572         * TextControl.cs: Lower magic number for wrap calculations. This
17573         lets text get closer to the right (far) edge.
17574
17575 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
17576
17577         * Control.cs: Tweak 2.0 layout properties.
17578         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
17579         * TextRenderer.cs: Add a new overload.
17580         * ToolStrip*: Huge amount of changes and new features.
17581
17582 2006-11-30  Mike Kestner  <mkestner@novell.com>
17583
17584         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
17585         scroll range correct.  Fixes #79994.
17586
17587 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
17588
17589         * MdiWindowManager.cs: Update main form's text when
17590         a form is closed. (fixes #80038)
17591         
17592 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
17593
17594         * ToolBar.cs:
17595         - Fix an regression in ButtonSize.
17596         - Get ImeMode default value change to "Disable".
17597         - Get ShowTooltips default value change to true, default value is 
17598         "false" but after make a test in .NET we get "true" result as default.
17599         
17600 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
17601
17602         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
17603
17604 2006-11-29  Chris Toshok  <toshok@ximian.com>
17605
17606         * XplatUIWin32.cs (GetWindowTransparency): check return value of
17607         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
17608         SetWindowTransparency hasn't been called.
17609
17610 2006-11-29  Chris Toshok  <toshok@ximian.com>
17611
17612         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
17613         if it's supported.
17614         (set_AllowTransparency): reorder things a little so that the
17615         WS_EX_LAYERED style is removed properly.
17616
17617 2006-11-29  Chris Toshok  <toshok@ximian.com>
17618
17619         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
17620         
17621         * Form.cs: only call the XplatUI transparency method (get/set) if
17622         SupportsTransparency says it's supported. Otherwise fallback to
17623         doing nothing (in the set case) or returning the instance field we
17624         cache (in the get case).
17625
17626         * XplatUIStructs.cs: add TransparencySupport flag enum.
17627         
17628         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
17629         change to SupportsTransparency.
17630
17631         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
17632         TransparencySupport.None from SupportsTransparency.
17633
17634         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
17635         TransparencySupport.Set from SupportsTransparency.
17636
17637         * XplatUIWin32.cs: implement GetWindowTransparency calling
17638         GetLayeredWindowAttributes, and implement SupportsTransparency by
17639         checking whether or not both
17640         GetWindowTransparency/SetWindowTransparency are available
17641         entrypoints.  We need to do this since SetWindowTransparency is
17642         available as of win2k, but GetWindowTransparency requires winxp.
17643         yay win32 api.
17644
17645         * XplatUI.cs: Add GetWindowTransparency, and change
17646         SupportsTransparency to allow for either/both Get/Set.
17647
17648 2006-11-29  Chris Toshok  <toshok@ximian.com>
17649
17650         * DataGrid.cs: keep from going into an infinite loop redrawing a
17651         datagrid that has no datasource.  Fixes bug #80033.
17652
17653 2006-11-29  Chris Toshok  <toshok@ximian.com>
17654
17655         * MenuItem.cs: fix the NRE when we assign text (and therefore call
17656         Invalidate) before the mainmenu has been assigned to a control.
17657
17658 2006-11-29  Chris Toshok  <toshok@ximian.com>
17659
17660         * DataGrid.cs: detect when we should be double the double click
17661         row/column autosize stuff, although that codepath has yet to be
17662         written.  part of the work for bug #79891.
17663
17664 2006-11-29  Chris Toshok  <toshok@ximian.com>
17665
17666         * Binding.cs (SetControl): fix unit test.
17667
17668 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17669
17670         * PageSetupDialog.cs: Validate the margins and set them in
17671         PageSettings. 
17672         * NumericTextBox.cs: New class to mimic the behavior of the
17673         textboxes used in the printing dialogs.
17674
17675 2006-11-29  Andreia Gaita  <avidigal@novell.com>
17676         
17677         * Form.cs: Revert previous change (remove call UpdateBounds
17678         from form constructor), because it messes with the handle creation
17679         order, and that one needs lots and lots of love.
17680         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
17681         for valid printer and throw InvalidPrinterException if document
17682         is set but printer not valid), adding a MonoTODO. Once 
17683         handle creation is done properly, we can put this back in.
17684
17685 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
17686
17687         * MenuItem.cs: Create a invalidate method for menu item, to be
17688         calling from set text, it make text changes to imadiate update
17689         on screen. Fixes #80013. 
17690         
17691 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
17692
17693         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
17694         fixes bug #80070 and some other problem on toolbar buttons
17695         layout.
17696
17697 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
17698
17699         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
17700         with dotted brush.      Fixes #79564
17701         
17702 2006-11-28  Andreia Gaita  <avidigal@novell.com>
17703
17704         * Form.cs: Removed call to UpdateBounds on Form
17705         constructor, it was causing a call to CreateHandle
17706         before it was supposed to.
17707         * PrintControllerWithStatusDialog: Applied patch
17708         by Chris Toshok to hide controller when there are
17709         no printers available.
17710         PrintDialog.cs: initialize printer settings to 
17711         null - correct DefaultValues test #5
17712         * PrintPreviewControl.cs: Move PrintController
17713         initialization to GeneratePreview
17714         * PrintPreviewDialog.cs: 
17715         - Remove Preview generation     from Document_set(). It is 
17716         called on OnPaint
17717         - Throw InvalidPrinterException on CreateHandle if
17718         a Document is set but there are no printers or 
17719         printer is not valid.
17720         * ThemeWin32Classic: don't paint PrintPreviewControl
17721         if there is nothing to paint    
17722
17723 2006-11-28  Miguel de Icaza  <miguel@novell.com>
17724
17725         * Form.cs: Add another popular method.
17726
17727         * TabPage.cs: ditto.
17728
17729 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17730
17731         * MenuItem.cs: Fixed a warning.
17732         * InternalWindowManager: Fixed a warning.
17733
17734 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17735
17736         * MenuItem.cs:
17737         - When cloning a menu also clone MdiList and clone the 
17738           window menu items properly (as the forms and menuitems
17739           are kept in an internal hashtable, these need updating 
17740           as well)
17741         - Rewrote the window menu code, menu items are added in the
17742           order the forms were added to their parent, and they are
17743           updated every time the window menu is shown (before the
17744           list was only generated once, in the current order of the
17745           forms, and would never be updated). A checkmark is shown
17746           next to the item corresponding to the active mdi child.
17747
17748 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17749
17750         * XplatUIStructs.cs: 
17751         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
17752         
17753         * XplatUIWin32.cs: 
17754         - Added TME_NONCLIENT to TMEFlags.
17755         - Handles WM_NCMOUSEMOVE in GetMessage to 
17756           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
17757
17758         * MdiWindowManager:
17759         - Now merges mdi child menu to parent menu when maximized.
17760         - Recalculate NC areas of both mdi child and mdi parent. 
17761           Fixes #79757 (4).
17762           on window state and size changes.Fixes #79844 (3).
17763         - Handle WM_NCCALCSIZE to properly calculate borders.
17764
17765         * Form.cs:
17766         - Add/remove to the mdi containers list of mdi children 
17767           in the order they are added.
17768         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
17769           to the maximized mdi child.
17770         
17771         * InternalWindowManager.cs:
17772         - Only execute a click on the control buttons on the mouse up,
17773           not on the mouse down. Show the state of the button 
17774           (was only showing Normal state, never Pressed state). The
17775           pressed button now follows the mouse (if you click the Close 
17776           button and move the mouse over the Maximize button, the 
17777           Maximize button will be shown as pressed). Since Win32 does
17778           not generate WM_NCLBUTTONUP if you release the button outside
17779           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
17780           it as a mouse up.
17781         
17782         * ThemeWin32Classic.cs:
17783         - Draw a missing border around mdi child forms. Fixes #79844 (2).
17784
17785         * MdiClient.cs:
17786         - Added a list of forms which contains the order the forms are
17787           added to the mdi parent.
17788         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
17789         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
17790         - If the active form changes set the scrollbars to the top
17791           of the Z order, otherwise the form could hide them.
17792         - Scrollbars are now sized according to ClientSize, not 
17793           to Size, and they take into account the other scrollbar
17794           to determine maximum.
17795         
17796 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
17797         
17798         * XplatUI.cs:
17799         * XplatUIDriver.cs:
17800         * XplatUIX11.cs:
17801         * XplatUIWin32.cs:
17802         * XplatUIOSX.cs:
17803         - Added RequestAdditionalWM_NCMessages for windows to 
17804           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
17805           Currently only implemented in XplatUIWin32.
17806
17807 2006-11-27  Chris Toshok  <toshok@ximian.com>
17808
17809         * Hwnd.cs: only add the hwnd to the windows hash in
17810         set_WholeWindow and set_ClientWindow if whole_window/client_window
17811         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
17812
17813 2006-11-27  Mike Kestner  <mkestner@novell.com>
17814
17815         * ComboBox.cs: remove redundant OnDropDown call.  It is called
17816         from the ComboListBox.ShowWindow code. Fixes #79969.
17817
17818 2006-11-27  Chris Toshok  <toshok@ximian.com>
17819
17820         * Hwnd.cs: remove the setters for ExposePending and
17821         NCExposePending - noone uses them.
17822
17823 2006-11-27  Jackson Harper  <jackson@ximian.com>
17824
17825         * TextControl.cs: new param for ReplaceSelection which determines
17826         whether we select the new selection, or set the cursor to the end
17827         of the new selection.
17828         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
17829         pasting, select the new text.
17830         * RichTextBox.cs: Use new param for ReplaceSelection.
17831
17832 2006-11-27  Jackson Harper  <jackson@ximian.com>
17833
17834         * TextBoxBase.cs: Set the selection to the caret after the caret
17835         is moved, otherwise they get out of sync.
17836
17837 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
17838
17839         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
17840         it fixes #80015
17841
17842 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
17843
17844         * ThemeWin32Classic.cs: 
17845         - Fix toolbar drop down arrow position.
17846         - Fix drop down appearance when ToolBar.Appearance is normal,
17847         it fixes #80018.
17848         
17849 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
17850
17851         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
17852         * Control.cs: Same.
17853         * UpDownBase.cs: Same.
17854         * ButtonBase.cs: Same.
17855         * ScrollBar.cs: Same.
17856         * TrackBar.cs: Same.
17857         * PictureBox.cs: Same.
17858         * UserControl.cs: Same.
17859         * Label.cs: Same.
17860         * ListControl.cs: Same.
17861         * TextBoxBase.cs: Same.
17862         * ListView.cs: Same.
17863         * RichTextBox.cs: Same.
17864         * TreeView.cs: Same.
17865
17866 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
17867
17868         * PrintDialog.cs:
17869         - Text label for where 
17870         - Text label comment was not shown
17871
17872 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
17873
17874         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
17875
17876 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
17877
17878         * InternalWindowManager.cs: 
17879         - Handle WM_PARENTNOTIFY to activate the form
17880         if any child control is clicked.
17881         - The form is only sizable if not minimized.
17882
17883         * MdiWindowManager.cs:
17884         - Save the IconicBounds if the form is moved.
17885         - Rework SetWindowState, now the window bounds 
17886         are stored only if the old window state is Normal.
17887         
17888         * MdiClient.cs:
17889         - In SetWindowStates store the old window state if 
17890         the window is maximized and restore window state if
17891         the window looses focus.
17892         - Don't handle any scrollbar value changes if 
17893         initializing the scroll bars. Fixes #79771.
17894         - Reworked ArrangeIconicWindows. Current algorithm
17895         tests bounds agains all other minimized windows, if
17896         any intersections create new bounds (going left to 
17897         right, bottom to top) and then test again. When 
17898         successful the bounds are saved and never computed
17899         again. Fixes #79774.
17900
17901 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
17902
17903         * InternalWindowManager.cs: Added HandleTitleBarUp.
17904
17905 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
17906
17907         * NumericUpDown.cs: In .NET 1.1, user entered text is still
17908         hexadecimal in ParseUserEdit.
17909
17910         
17911 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
17912
17913         * MdiWindowManager.cs: 
17914         - Handle a click on the form's icon to show the 
17915         system menu (when maximized). Fixes #79775.
17916         - Change the existing click handler for the form's
17917         icon when not maximized to show on MouseUp.
17918         Fixes #79776.
17919
17920         * Form.cs: In OnResize only layout the mdi child's
17921         parent if it actually has a parent. Might not if
17922         the window is closing.
17923
17924
17925 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
17926
17927         * MdiClient.cs: Ignore active MDI client for text of parent, if
17928         child has no text set.
17929
17930 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
17931
17932         * ToolBar.cs: Fixed ToString to match MS.
17933
17934 2006-11-22  Andreia Gaita  <avidigal@novell.com>
17935
17936         * NumericUpDown: 
17937         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
17938         update inner values on set. Fixes #79966.
17939         - Override OnLostFocus to update value on NET 2. Fixes #79950.
17940         - Fix hexadecimal parsing.
17941         
17942         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
17943         parent. Fixes #79957
17944
17945 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17946
17947         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
17948         the actual size has to be queried, since if height /
17949         width is negative Win32 changes it to 0. 
17950         Fixes #79999 on Windows.
17951         
17952         * XplatUIX11.cs: Set height / width to 0 if negative
17953         in SetWindowPos. Fixes #79999 on Linux.
17954         
17955 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
17956
17957         * ThemeWin32Classic.cs: Fix text redenring when button is
17958         pressed.
17959
17960 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
17961
17962         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
17963         and later navigate by mouse. Fixes #79528.
17964
17965 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
17966
17967         * ToolBar.cs: Set default value for TabStop to false in
17968         constructor, it fixes remaining behavior of bug #79863.
17969
17970 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17971
17972         * MdiWindowManager.cs:
17973         * InternalWindowManager.cs:
17974         - Moved a few methods specific to Mdi from 
17975         InternalWindowManager to MdiWindowManager.
17976         Fixes #79996.
17977         
17978 2006-11-21  Chris Toshok  <toshok@ximian.com>
17979
17980         * XplatUIOSX.cs: stub out InvalidateNC.
17981
17982         * XplatUIWin32.cs: implement InvalidateNC using the call I found
17983         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
17984
17985         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
17986
17987         * XplatUIDriver.cs: add InvalidateNC abstract method.
17988
17989         * XplatUI.cs: add InvalidateNC.
17990
17991 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
17992
17993         * ToolBar.cs: Invalidate complete button area when pressed status 
17994         was changed.
17995         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
17996         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
17997         by 1 when button is pressed.
17998
17999 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
18000
18001         * ToolButton.cs: Invalidate middle of DropDown button when
18002         ToolBar theres DropDownArrows.
18003         * ThemeWin32Classic.cs: Change position of DropDown arrow and
18004         fix DropDown drawing operations.
18005
18006 2006-11-20  Chris Toshok  <toshok@ximian.com>
18007
18008         * NativeWindow.cs: fix the formatting of functions ('{' on the
18009         following line), and enable the thread exception dialog.
18010
18011         * Application.cs: remove the duplicate exception catching from
18012         here.
18013
18014 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
18015
18016         * Toolbar.cs: Triggers button click event when click on icon
18017         of dropdown ToolBarButton. Fixes #79912.
18018         
18019 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18020
18021         * Theme.cs:
18022         * ThemeWin32Classic.cs:
18023         - Added a property WindowBorderFont to enable themeing
18024           of mdi child windows' Text.
18025           
18026 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18027
18028         * InternalWindowManager.cs:
18029         * Form.cs:
18030         * MdiClient.cs:
18031         * MdiWindowManager.cs: 
18032         - If mdi child is maximized, set mdi parent's
18033           text to "Parent - [Child]". Fixes #79770.
18034         - If there is any maximized mdi child windows, only the active 
18035           window (and any new windows) is maximized, the rest are normal.
18036         - On a WindowState change only save mdi child's window bounds 
18037           if the old window state was normal. Fixes #79774.
18038         - The scroll bars are now calculated on hopefully all
18039           necessary events. Fixed #79771 / #79844->6 / #79906.
18040         - MdiClient.SizeScrollBars() now takes into account docked 
18041           controls in the parent when calculating available space.
18042         - InternalWindowManager now always repaints the entire title
18043           area. Fixes #79844->1/4/5.
18044         - Added RequestNCRecalc on mdi child windowstate changes.
18045           Fixes #79772.
18046
18047 2006-11-20  Mike Kestner  <mkestner@novell.com>
18048
18049         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
18050         in the MouseUp handler of the listbox and move the return handling
18051         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
18052
18053 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
18054
18055         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
18056
18057 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
18058
18059         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
18060           working in 1.2.x anymore. So, updated.
18061
18062 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
18063
18064         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
18065         NumberGroupSeparator of current culture instead of assuming en-US.
18066         Fixed bug #79967.
18067
18068 2006-11-17  Mike Kestner  <mkestner@novell.com>
18069
18070         * Control.cs: Add the concept of implicit bounds setting so that
18071         dock/undock round trips preserve explicitly set size/locations.
18072         Fixes #79313.
18073
18074 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
18075
18076         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
18077           can't handle those filters. (Fixes bug #79961)
18078
18079 2006-11-17  Chris Toshok  <toshok@ximian.com>
18080
18081         [ fixes the exit/crashes associated with #79835.  it's clearly
18082         suboptimal though, we need to figure out a better way to solve
18083         this. ]
18084         
18085         * PrintPreviewControl.cs: deal with the new invalid printer
18086         exceptions.
18087
18088         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
18089         and return false (so CommonDialog.ShowDialog doesn't actually show
18090         the form.)
18091
18092         * PrintDialog.cs: enable/disable the Ok button depending on
18093         whether or not the printer is valid.
18094
18095         * CommonDialog.cs (ShowDialog): only actually show the form if
18096         RunDialog returns true.
18097
18098 2006-11-17  Jackson Harper  <jackson@ximian.com>
18099
18100         * TextControl.cs: When soft splitting a line, mark it as a soft
18101         split line. Also carry over the current line break to the next
18102         line.
18103
18104 2006-11-17  Chris Toshok  <toshok@ximian.com>
18105
18106         * XplatUIX11.cs: when scrolling a window with an invalid area, we
18107         only want to shift the part of the invalid area that overlaps the
18108         area we're scrolling.  we also don't want to clear the invalid
18109         area unless the invalid area was entirely contained within the
18110         scrolling area.
18111
18112 2006-11-16  Chris Toshok  <toshok@ximian.com>
18113
18114         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
18115         also make sure to free the memory returned by XGetWindowProperty
18116         in GetText().
18117
18118         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
18119
18120 2006-11-16  Chris Toshok  <toshok@ximian.com>
18121
18122         * XplatUI.cs: add a new super secret way to get at the totally
18123         unsupported X11 backend.
18124
18125 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
18126
18127         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
18128
18129 2006-11-16  Jackson Harper  <jackson@ximian.com>
18130
18131         * TreeView.cs: Allow more explicit setting of top node position
18132         for scrollbars. Slower algo, but more accurate.
18133         - CollapseAll should maintain the current top node.
18134         * TextBoxBase.cs: When positioning the caret, use the line, pos
18135         method, since the x, y method does not grab the correct tag, and
18136         the caret height never gets set correctly. (Maybe I should just do
18137         away with the caret having its own height, and always use the
18138         carets current tag for height).
18139
18140 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
18141
18142         [Fixes 79778, 79923]
18143
18144         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
18145         Parent to the FosterParent instead.
18146
18147 2006-11-16  Jackson Harper  <jackson@ximian.com>
18148
18149         * TreeView.cs: Need to recalc the topnode when we expand or
18150         collapse. The scrolling methods can't handle this on their own,
18151         since they use differences between the last scroll position, and
18152         those difference get completely messed up since we are expanding
18153         nodes.  This problem should probably be fixed in the scrolling
18154         methods, so they can figure out exactly where they are, but this
18155         will slow things down a little.
18156         * ThemeWin32Classic.cs: Special case for groupboxes with empty
18157         strings, makes nunit-gui look a lot nicer.
18158
18159 2006-11-16  Chris Toshok  <toshok@ximian.com>
18160
18161         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
18162         the broken multithreaded event handling we have in here.  File
18163         this entry under "Why we should move to the new X11 backend".
18164
18165         Any thread can make it into UpdateMessageQueue, which gets events
18166         from the X socket - some of which could belong to hwnds being
18167         managed by a different thread.  We can also have multiple threads
18168         in UpdateMessageQueue at the same time, with each one reading from
18169         the X socket.  This leads to many problems, with the following
18170         solutions:
18171
18172         We can't use hwnd.Queue.Enqueue anywhere in here and must use
18173         EnqueueLocked.
18174
18175         The MotionNotify compression we do can't work across threads
18176         (without locking the entire queue, perhaps) since we call
18177         hwnd.Queue.Peek, so we just punt and don't compress motion events
18178         unless the owning thread is the one which got the X event.
18179
18180         ConfigureNotify is another fun one, since it modifies the hwnd's
18181         bounds and then enqueues the event.  We add a lock to Hwnd which
18182         is held when setting configure_pending to true (and enqueuing the
18183         event).
18184
18185         There is a race wrt the wake socket.  we need to make sure that
18186         only 1 thread is waiting on that socket, or else a thread could
18187         sleep waiting for data that never comes.  It's difficult (but not
18188         impossible) to make happen, because it seems to require something
18189         like the following:
18190
18191             1. Thread 1 polls on wake_receive
18192         
18193             2. poll returns saying there's data to be read on
18194                wake_receive.
18195         
18196             3. Thread 2 polls on wake_receive and immediately returns
18197                saying there's data to be read.
18198
18199             4. Thread 2 reads the wakeup byte from wake_receive
18200
18201             5. Thread 1 attempts to read the wakeup byte from
18202                wake_receive.
18203
18204             6. Thread 2 exits (due to a form closing, perhaps).
18205
18206             7. Thread 1 blocks forever.
18207         
18208         Fun, eh?
18209
18210         Fixing the Expose handling isn't done yet, and the races inherent
18211         in that piece of code are responsible for the drawing mistakes you
18212         see when generating expose events in a MT app (like NPlot).  This
18213         one is the likely to be the hardest to bandaid, and it doesn't
18214         appear to cause anything but drawing problems.  The other issues
18215         caused apps to exit or hang.
18216
18217         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
18218         called from a different thread than the one that should be calling
18219         these functions.
18220
18221         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
18222
18223 2006-11-15  Chris Toshok  <toshok@ximian.com>
18224
18225         * Application.cs: null out the context's MainForm when we exit
18226         RunLoop.  Fixes a newly checked in unit test as well as the last
18227         ODE from bug #79933.
18228
18229 2006-11-15  Chris Toshok  <toshok@ximian.com>
18230
18231         * Form.cs (set_Owner): allow a null value so we can clear the
18232         form's owner.
18233         (Dispose): set all our owned_form's Owner properties to null, and
18234         clear the owned_forms collection.
18235         (WM_CLOSE): clean up this a little bit.. still not right though.
18236
18237         * ApplicationContext.cs: OnMainFormClosed should only call
18238         ExitThreadCore if the main form isn't recreating.  Fixes unit
18239         test.
18240
18241 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
18242
18243         [Fixes 78346]
18244
18245         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
18246
18247 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
18248
18249         [Fixes 79433]
18250
18251         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
18252         keep popup window types from stealing focus from the main form
18253         on Windows.
18254
18255         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
18256
18257         * MenuAPI.cs: Set above flag to true.
18258
18259 2006-11-15  Chris Toshok  <toshok@ximian.com>
18260
18261         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
18262         the button being released is not in wParam.
18263
18264 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
18265
18266         * Form.cs: Add the released button to MouseEventArgs.Button
18267         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
18268         on Win32.
18269
18270 2006-11-15  Chris Toshok  <toshok@ximian.com>
18271
18272         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
18273         GetText().  untested because it's unused in our implementation.
18274         Control.Text always caches the text, even if
18275         ControlStyles.CacheText is not set.
18276
18277         fixes bug #79939.
18278
18279 2006-11-15  Chris Toshok  <toshok@ximian.com>
18280
18281         [ fixes #79933 ]
18282         
18283         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
18284         message.  no hiding, no disposing.
18285
18286         in the WM_CLOSE handler, hide the form if it's modal.
18287
18288 2006-11-15  Chris Toshok  <toshok@ximian.com>
18289
18290         * XplatUIX11.cs: use AddExpose instead of sending a message.
18291         fixes textbox border drawing.
18292
18293 2006-11-15  Chris Toshok  <toshok@ximian.com>
18294
18295         * PropertyGridView.cs: keep from crashing on mouse move/down when
18296         the property grid is empty.
18297
18298 2006-11-14  Jackson Harper  <jackson@ximian.com>
18299
18300         * TextControl.cs: Make PageUp and PageDown more like the MS
18301         versions.
18302         * TextBoxBase.cs: When we set the text property position the
18303         cursor at the beginning of the document.
18304
18305 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18306
18307         * Form.cs: if a mdi child's WindowState has changed
18308         before it's creation, it would display wrong control
18309         buttons.
18310         
18311 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
18312
18313         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
18314           (Fixes bug #79927)
18315
18316 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
18317
18318         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
18319         the window gets to paint its borders even if the window is
18320         getting smaller.
18321         
18322         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
18323         otherwise the old control buttons would still be painted 
18324         if the window gets bigger.
18325         
18326         * PaintEventArgs.cs: add an internal method so that the clip 
18327         rectangle can be changed.
18328         
18329 2006-11-13  Chris Toshok  <toshok@ximian.com>
18330
18331         [ fixes bug #79745 ]
18332         
18333         * NotifyIcon.cs: lots of cleanup.
18334
18335         * X11Structs.cs: add an enum for XEMBED messages.
18336
18337         * XplatUIX11.cs: reindent one of the giant switch statements, it
18338         was taking up an additional tab stop, and this file is already way
18339         too wide for my laptop's screen.
18340
18341         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
18342         we get it, resize the hwnd to the WMNormalHints max_width/height.
18343
18344 2006-11-13  Jackson Harper  <jackson@ximian.com>
18345
18346         * TextBoxBase.cs: Compute the value changes for the mouse wheel
18347         teh simple way.
18348
18349 2006-11-13  Chris Toshok  <toshok@ximian.com>
18350
18351         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
18352         #79898.  force a reference to the Region to stick around so the
18353         unmanaged object isn't collected (rendering our handle in the MSG
18354         stale).
18355
18356 2006-11-13  Chris Toshok  <toshok@ximian.com>
18357
18358         * XplatUIX11.cs: fix #79917 for window managers which support
18359
18360         using XStoreName on the raw utf8, and we need to convert to
18361         COMPOUND_TEXT if it's non-latin1.
18362
18363 2006-11-13  Chris Toshok  <toshok@ximian.com>
18364
18365         * Form.cs (set_DialogResult): we need to set closing to false if
18366         we're setting our result to None.  fixes bug #79908.
18367
18368 2006-11-13  Jackson Harper  <jackson@ximian.com>
18369
18370         * TextControl.cs: When formatting text, compute the adjusted tag
18371         lengths correctly, using FindTag for the end tag instead of trying
18372         to figure it out outselves.
18373         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
18374         the item, ItemHeight doesn't work, because trees with large
18375         imagelists use those for their height
18376         * TreeView.cs: ActualItemHeight factors in the image height
18377         - compute left edge of checkboxes correctly
18378         - when expanding/collapsing move the bottom down one pixel, so we
18379         aren't moving part of the node
18380
18381 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18382
18383         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
18384         stack in PaintEventStart so that it won't get disposed by the gc
18385         before reaching PaintEventEnd.
18386
18387 2006-11-13  Jackson Harper  <jackson@ximian.com>
18388
18389         * TextBoxBase.cs: Don't select the word if we are on a line with
18390         no text.
18391         - We don't need to position the caret on mouse up, since the mouse
18392         move handler should be doing this
18393         - When double clicking a blank line, the caret is advanced to the
18394         next line.
18395
18396 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
18397
18398         * TreeNodeCollection.cs: Avoid duplicating indexer code.
18399
18400 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
18401
18402         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
18403         Fixes part of bug #79910.
18404
18405 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
18406
18407         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
18408           (bug #79903). Some minor string updates to match ms.
18409
18410 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
18411
18412         * FileDialog.cs: Don't add an extension if the filename
18413           already ends with that extension.
18414
18415 2006-11-10  Jackson Harper  <jackson@ximian.com>
18416
18417         * TreeView.cs: Use the currently highlighted node for the
18418         BeforeSelect event.
18419         * TextBoxBase.cs: There is no need to expand selection on
18420         MouseMove.
18421         - CanUndo means 'is there any undo operations', not 'is undo
18422         allowed on this textcontrol. Fixed ClearUndo unit test.
18423
18424 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
18425
18426         * Button.cs: only perform click when button is Selectable (so as 
18427         not to activate default buttons when they're disabled)
18428         
18429         * Control.cs: Rewrite of the SelectNextControl and related 
18430         methods. HandleClick now selects next control if the current one
18431         is being disabled.
18432         
18433         * Form.cs: OnActivated selects next active control only if Load 
18434         has already occurred. If Load hasn't run, there's no point in 
18435         selecting here, Load might change the state of controls.
18436         
18437         * FocusTest.cs: Tests marked as working again for these fixes
18438
18439 2006-11-10  Chris Toshok  <toshok@ximian.com>
18440
18441         * XplatUIX11.cs: a couple of fixes.
18442
18443         - use XInternAtoms with almost all the atoms we need to register,
18444         instead of many, many calls to XInternAtom.  should help a bit on
18445         startup time, at the expense of making the code look a little
18446         worse.
18447
18448         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
18449         isn't reparented (which seems to be a clue that we're running fon
18450         compiz) and they have an Owner form.  This fixes the tool windows
18451         in paint.net when running under compiz.
18452
18453         - when setting the opacity of a window, support both the case
18454         where the window has been reparented and also when it hasn't been.
18455         Since compiz/beryl doesn't seem to reparent windows, and these are
18456         the only window managers which support translucency, I'm not sure
18457         why we need the hwnd.reparented case at all.. but leave it in.
18458         now we get translucent windows in paint.net under compiz/beryl.
18459
18460 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
18461
18462         * FileDialog.cs: Always return the value for FilterIndex that
18463           was set. Internally convert it to values that make sense.
18464
18465 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
18466         
18467         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
18468
18469 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
18470
18471         * Toolbar.cs: Change default value of DropDownArrows to true, the 
18472         signature still using false to make it compatible with MS but the 
18473         initial value is true. Fixes #79855.
18474
18475 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
18476
18477         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
18478           only available on Linux.
18479
18480 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
18481
18482         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
18483         reduce number of calls to redraw method during toolbar creation.
18484
18485 2006-11-09  Mike Kestner  <mkestner@novell.com>
18486
18487         * ListView.cs : raise SelectedIndexChanged when an item is selected
18488         programmatically via the Item.Selected property.  Gert's nice 
18489         ListViewSelectedIndexChanged test fixture now runs clean.
18490
18491 2006-11-09  Mike Kestner  <mkestner@novell.com>
18492
18493         * ListView.cs : raise SelectedIndexChanged when a selected item is
18494         removed from the item collection using Remove or RemoveAt.
18495
18496 2006-11-09  Mike Kestner  <mkestner@novell.com>
18497
18498         * ListView.cs : raise SelectedIndexChanged once per selected item
18499         for compat with MS.  Fixes #79849+.
18500
18501 2006-11-09  Chris Toshok  <toshok@ximian.com>
18502
18503         * TabControl.cs: initialize row_count to 0, and set it to 1 when
18504         we need to (if we have any tab pages).  Fixes unit test.
18505
18506 2006-11-09  Chris Toshok  <toshok@ximian.com>
18507
18508         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
18509         width is 0, not 3.  Fixes a unit test.
18510
18511 2006-11-09  Mike Kestner  <mkestner@novell.com>
18512
18513         * ListView.cs : use Implicit scrollbars so that focus isn't 
18514         stolen from the listview when they are clicked. Fixes #79850.
18515
18516 2006-11-09  Chris Toshok  <toshok@ximian.com>
18517
18518         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
18519         have a root item.  Fixes #79879.
18520
18521 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
18522
18523         * FileDialog.cs:
18524           - Fix ToString ()
18525           - An ArgumentException is now thrown if a wrong filter
18526             is applied (matches ms). The previous filter doesn't change
18527             anymore if an exception is thrown.
18528           - Changing the FileName property also affects FileNames
18529         * ColorDialog.cs: The length of the CustomColors array is always
18530           16. It doesn't matter if we use a smaller array or null to update
18531           or change the custom colors property.
18532         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
18533           for RootFolder if we get a undefined value.
18534
18535 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18536
18537         * StatusBarPanel.cs: 
18538         - Width is set to MinWidth if Width is smaller than
18539         MinWidth. Fixes #79842.
18540         - MinWidth now always overrides Width (MSDN says MinWidth
18541         is set to Width when AutoSize = None, but they do not 
18542         behave like that).
18543         - Style has now the the correct default value.
18544         
18545 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18546  
18547         * TrackBar.cs: 
18548         - The control is completely invalidated on 
18549         Got/LostFocus to draw the focus rectangle correctly.
18550         - When AutoSize then height is always 45 (width for 
18551         vertical controls).
18552         
18553         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
18554         on the mouse when moved and it doesn't move when grabbed
18555         until the mouse moves as well. Also fixed some wrong 
18556         calculations when clicking on the thumb (control thought
18557         click was outside of thumb and didn't grab it).
18558         Fixes some of the issues in #79718.
18559
18560 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
18561
18562         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
18563
18564 2006-11-08  Chris Toshok  <toshok@ximian.com>
18565
18566         * PropertyGridView.cs: only call ToggleValue if the item is not
18567         readonly.
18568
18569 2006-11-08  Jackson Harper  <jackson@ximian.com>
18570
18571         * TextBoxBase.cs: The RichTextBox and textbox have very different
18572         word selection methods.  Implement the textbox's simple word
18573         selection here, and let the RichTextBox override and provide it's
18574         own.
18575         - Don't do extra selection on mouseup
18576         * RichTextBox.cs: Use the documents word selection algorithm, I
18577         think ideally, this function will be pulled into the
18578         RichTextBox.cs code someday.
18579
18580 2006-11-08  Chris Toshok  <toshok@ximian.com>
18581
18582         * RootGridEntry.cs: new class to represent GridItemType.Root.
18583
18584         * CategoryGridEntry.cs: reformat, and add boilerplate.
18585         
18586         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
18587         returns the UI parent anyway, and we need special handling to
18588         implement the GetTarget method in the face of it.  Also, implement
18589         Select().
18590
18591         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
18592         a root grid item, and use that instead of PropertyGrid.grid_items.
18593         Also, make use of TypeConverters (and add limitted support for
18594         ICustomTypeDescriptors) when initially populating the grid.
18595         Arrays now show up more or less properly.
18596
18597 2006-11-08  Chris Toshok  <toshok@ximian.com>
18598
18599         * Application.cs: set the modal dialog to non modal after we close
18600         it.  Fixes bug #79866.
18601
18602 2006-11-08  Jackson Harper  <jackson@ximian.com>
18603
18604         * TextControl.cs: When combining lines carry over the line end
18605         style from the end line.
18606         - Invalidate the selected area when setting it, if it is visible.
18607         * TextBoxBase.cs: Only rich text box can do full line selects.
18608         - Make sure to set the cursor position when there is a click,
18609         otherwise two clicks in separate areas could cause a large chunk
18610         to be selected.
18611
18612 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
18613
18614         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
18615         Fixes #79863.
18616
18617 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
18618
18619         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
18620         time. Remove tooltips when ToolButton click events.  Fixes #79856.
18621
18622 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
18623
18624         * MenuAPI.cs: Ignore right click for menu actions and fixes
18625         menu border when clicked.  Fixes #79846.
18626
18627 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
18628
18629         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
18630         MouseState after create wParam for message, this fixes mouse button 
18631         equal none in mouse up events.
18632         
18633 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
18634
18635         * Control.cs : Focus() now calls Select to set the Container's
18636         Active Control and to give it focus. To avoid infinite recursion
18637         (because ActiveControl also calls Focus at one point), a check 
18638         is made in Focus with the help of a new internal variable
18639         is_focusing.
18640
18641 2006-11-07  Mike Kestner  <mkestner@novell.com>
18642
18643         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
18644         if there's a selection.  Fixes #79849.
18645
18646 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
18647
18648         * PropertyGrid.cs: Avoid fixed height of help description label.
18649         Fixes part of bug #79829.
18650
18651 2006-11-07  Chris Toshok  <toshok@ximian.com>
18652
18653         * XplatUIX11.cs: fix #79790 again, by using the
18654         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
18655
18656 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
18657
18658         * ToolBar.cs: Fix left click checking.
18659
18660 2006-11-07  Chris Toshok  <toshok@ximian.com>
18661
18662         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
18663
18664 2006-11-07  Chris Toshok  <toshok@ximian.com>
18665
18666         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
18667         PropertyManager unit tests.
18668
18669         * PropertyManager.cs: make property_name internal.
18670
18671 2006-11-07  Chris Toshok  <toshok@ximian.com>
18672
18673         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
18674         pass a unit test.  Also, don't set image_index to anything in
18675         response to setting the ImageList property.
18676
18677 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
18678
18679         * ToolBar.cs: Ignore click events when mouse button is not a
18680         left button, only accepts other button for dropdown menus.  
18681         Fixes #79854.
18682
18683 2006-11-07  Chris Toshok  <toshok@ximian.com>
18684
18685         * DataGrid.cs: make the back and parent row buttons a little less
18686         ugly.
18687
18688 2006-11-07  Jackson Harper  <jackson@ximian.com>
18689
18690         * TextBoxBase.cs: When converting to Text don't put line breaks in
18691         for soft line breaks.
18692         * TextControl.cs: There is an initial "fake" line in the document,
18693         this is now a soft break line, so that an extra line feed doesn't
18694         get added to the end of documents.
18695
18696 2006-11-07  Chris Toshok  <toshok@ximian.com>
18697
18698         [ fix bug #79778 ]
18699         
18700         * CurrencyManager.cs: if the list is readonly, don't bother
18701         checking if IBindingList.AllowNew is true.
18702
18703         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
18704         for non-DataRowView datasources..  or rather, make it not crash.
18705         (DataGridPaintRelationRow): make sure we limit the row painting to
18706         the area not covered by the row header, and make our cell width at
18707         least large enough to cover the relation area.  This allows grids
18708         that have relations but no rows to render correctly.
18709         (DataGridPaintRowContents): same type of changes here.
18710         (SetDataSource): move back to always calling
18711         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
18712         navigating back through relations.
18713         (HitTest): handle the case where we have no cells but have
18714         relations.  Right now we generate a hit in cell 0 of whatever the
18715         row is, not sure if this is strictly correct, but it works for our
18716         purposes.
18717         
18718         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
18719         bother doing anything.
18720
18721 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
18722
18723         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
18724         early version of StatusStrip.  Not responsible for eaten
18725         application or firstborn children.
18726
18727 2006-11-06  Chris Toshok  <toshok@ximian.com>
18728
18729         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
18730         call GetTabRect with a -1 index.  Fixes #79847.
18731
18732 2006-11-06  Jackson Harper  <jackson@ximian.com>
18733
18734         * TreeNodeCollection.cs: Update scrollbars after clearing.
18735
18736 2006-11-06  Chris Toshok  <toshok@ximian.com>
18737
18738         * NumericUpDown.cs: fix the ToString method for some unit test
18739         love.
18740
18741 2006-11-06  Chris Toshok  <toshok@ximian.com>
18742
18743         * PropertyGrid.cs:
18744         - set the initial SelectedGridItem if we can.
18745
18746         - Exclude non-mergable properties only if we're merging > 1
18747         object.  Merging 1 object isn't really merging, obviously.
18748
18749         - Handle PropertySort.NoSort just like Alphabetical, which is
18750         wrong of course, but at least gets things on the screen.
18751         
18752         * PropertyGridView.cs:
18753         - Add method "FindFirstItem" which finds the first property grid
18754         item, so we can select it by default.
18755
18756         - make use of GridEntry.CanResetValue.
18757
18758         - Don't call RedrawBelowItemOnExpansion here anymore, the
18759         individual GridEntry's will do that.
18760
18761         - Remove the ITypeDescriptorContextImpl internal class.
18762         
18763         * GridEntry.cs:
18764         - this class needs to implement ITypeDescriptorContext, as it's
18765         what MS's PropertyDescriptorGridEntry does, which means we can
18766         remove the ITypeDescriptorContextImpl internal class from
18767         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
18768
18769         - keep a reference to our PropertyGridView, and move the call to
18770         RedrawBelowItemOnExpansion here from PGV.  This means
18771         programmaticly setting Expanded actually does something visible.
18772
18773         - add a CanResetValue() function which takes into account our
18774         possibly multiple "selected_objects" in the merged case.  Shifting
18775         PropertyGridView to use this method fixes another unreported
18776         crasher found running the test for #79829.
18777
18778         - when Top or Bounds is updated, make sure the PropertyGridTextBox
18779         is updated to reflect this.
18780
18781         * CategoryGridEntry.cs: the ctor takes the PGV now.
18782         
18783 2006-11-06  Jackson Harper  <jackson@ximian.com>
18784
18785         * TextControl.cs: These are 1 based.
18786         * TextBoxBase.cs: When setting the selected text, don't change the
18787         selected text tags, this is done by ReplaceText, just position the
18788         cursor at the end of the new text.
18789
18790 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
18791
18792         * ListView.cs: Allow label edit only when, when LabelEdit is
18793           set to true.
18794
18795 2006-11-06  Jackson Harper  <jackson@ximian.com>
18796
18797         * TextControl.cs: If a suitable wrapping position isn't found,
18798         just wrap right in the middle of a word.
18799
18800 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
18801
18802         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
18803           bug #79820.
18804
18805 2006-11-06  Jackson Harper  <jackson@ximian.com>
18806
18807         * TreeView.cs: Can't use the VisibleCount property when setting
18808         scrollbar heights, because this doesn't take into account whether
18809         or not the horz scrollbar just came visible.
18810
18811 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
18812
18813         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
18814         activated.  Fixes #79369, #79832.
18815
18816 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
18817
18818         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
18819           had to remove support for links that point to a directory. FileInfo
18820           returns no usefull information (means, the directory they point to)
18821           for such links. Replaced some empty string ("") with String.Empty.
18822
18823 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
18824
18825         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
18826         NullReferenceException when attempting to remove node that is not in
18827         collection. Throw NullReferenceException when null is passed to 
18828         Remove. Allow first element of the collection to be removed. Fixes
18829         bug #79831.  In GetEnumerator ().Current return null if positioned 
18830         before the first element of the collection. In GetEnumerator ().Reset,
18831         position before first element of the collection.
18832
18833 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
18834
18835         * PropertyGrid.cs: To match MS, remove default title and description
18836         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
18837         buttons.
18838
18839 2006-11-04  Chris Toshok  <toshok@ximian.com>
18840
18841         * Theme.cs: add a Clamp method, just for kicks.
18842
18843         * ThemeWin32Classic.cs: clamp all color components to [0..255].
18844
18845 2006-11-04  Chris Toshok  <toshok@ximian.com>
18846
18847         * Form.cs: if the form isn't visible, Close() does nothing.
18848
18849 2006-11-03  Chris Toshok  <toshok@ximian.com>
18850
18851         * Form.cs (Close): if the form is modal, don't Dispose of it, only
18852         Hide it.
18853         (WndProc): don't Dispose after handling the WM_CLOSE message.
18854
18855         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
18856         them as such, instead of using casts from Control to Form.  Also,
18857         don't Dispose of the modal dialog when we fall out of the loop -
18858         Close() it instead.
18859
18860         fixes bug #79813.
18861
18862 2006-11-03  Chris Toshok  <toshok@ximian.com>
18863
18864         * Control.cs (Dispose): only go through the dispose thing if we're
18865         @disposing, and we haven't already been disposed.  Fixes bug
18866         #79814.
18867
18868         * Form.cs: no reason to call "base.Dispose()" here instead of
18869         "Dispose()".
18870
18871 2006-11-03  Mike Kestner  <mkestner@novell.com>
18872
18873         * ComboBox.cs : use ToString instead of casts in AddItem for
18874         sorting functionality.  Fixes #79812.
18875
18876 2006-11-03  Chris Toshok  <toshok@ximian.com>
18877
18878         * Application.cs: pave the way for actually using the thread
18879         exception dialog.  it's ifdefed out at the moment.
18880
18881 2006-11-03  Chris Toshok  <toshok@ximian.com>
18882
18883         * ThreadExceptionDialog.cs: until we get a better layout, actually
18884         hide the details textbox and label when we shouldn't see them.
18885
18886 2006-11-03  Jackson Harper  <jackson@ximian.com>
18887
18888         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
18889         multiline textboxes anymore.  This method also determines the
18890         width/height of a textboxes canvas area.
18891         - Sorta a revert of the last patch.  For multiline just position
18892         the controls, then bail.  This way the scrollbar width won't be
18893         altered.
18894
18895 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
18896
18897         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
18898         it dont need.  Fixes #79537.
18899
18900 2006-11-02  Jackson Harper  <jackson@ximian.com>
18901
18902         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
18903         send the status after firing the DndOver event.
18904
18905 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18906
18907         * TrackBar.cs: Now orientation only switches height / width if
18908         the control's handle is created (Win32 does it like this). Also 
18909         fixed a typo in ToString() for a test to pass, changed the 
18910         exception thrown in set_LargeChange and set_SmallChange to 
18911         match Win32 behaviour, and added TrackBar tests to the unit 
18912         tests.
18913
18914 2006-11-02  Chris Toshok  <toshok@ximian.com>
18915
18916         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
18917         not _NET_WM_STATE_NO_TASKBAR.
18918
18919 2006-11-02  Jackson Harper  <jackson@ximian.com>
18920
18921         * TextControl.cs: Increment count by one, since in the update view
18922         count - 1 is used.
18923
18924 2006-11-02  Jackson Harper  <jackson@ximian.com>
18925
18926         * TextBoxBase.cs: Use client rectangle not bounds for checking if
18927         the mouse is in the client rectangle (duh).
18928
18929 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18930         
18931         * TrackBar.cs: Fixed trackbar jumping around when clicking
18932         on it - the trackbar was not detecting correctly at which
18933         side of the thumb the click was done. (fixes #79718)
18934
18935 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
18936
18937         * ListBox.cs: scroll visible area when change SelectedIndex to
18938         a non visible area.  Fixes #79481.
18939
18940 2006-11-01  Jackson Harper  <jackson@ximian.com>
18941
18942         * TextControl.cs: When replacing the selection move the selection
18943         start/end/anchor to the end of the new text.
18944
18945 2006-11-01  Jackson Harper  <jackson@ximian.com>
18946
18947         * XplatUIWin32.cs: When setting the parent change the controls
18948         visibility to it's visibility flag, not to it's old parents
18949         visibility (.Visible walks the parent chain).
18950
18951 2006-11-01  Chris Toshok  <toshok@ximian.com>
18952
18953         * XplatUIX11.cs: revert the #79790 fix, as the simple.
18954         XSetTransientForHint fix breaks paint .net's tool windows.  more
18955         work needed for that one.
18956
18957 2006-11-01  Chris Toshok  <toshok@ximian.com>
18958
18959         * ScrollBar.cs: throw ArgumentException instead of Exception in
18960         LargeChange/SmallChange setters.  fixes unit tests.
18961
18962 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
18963
18964         * ContainerControl.cs: reverted rev.67183 (which was itself
18965         a reversion of rev.66853... eh).
18966         
18967         * Control.cs: Fixes Reflector hang by changing Focus() call
18968         to what it was before rev.66643 (calling Select() here sets 
18969         ActiveControl, which in some situations calls back Focus and 
18970         eventually does a stack overflow). Temp fix.    
18971         Changes to GetNextControl() to not look for children to select when
18972         parent cannot be selectable (so it looks for siblings instead)  
18973         
18974 2006-10-31  Mike Kestner  <mkestner@novell.com>
18975
18976         * CheckedListBox.cs : off by one error in returned index from
18977         ObjectCollection.Add.  Fixes #79758.
18978
18979 2006-10-31  Chris Toshok  <toshok@ximian.com>
18980
18981         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
18982         calls for the textbox/spinner, to keep from recursing to the point
18983         where we crash.  Fixes #79760.
18984
18985 2006-10-31  Chris Toshok  <toshok@ximian.com>
18986
18987         * ListControl.cs (set_SelectedValue): don't throw exceptions on
18988         null/"" value, just return.  matches ms's behavior and fixes some
18989         failing tests.
18990
18991 2006-10-31  Chris Toshok  <toshok@ximian.com>
18992
18993         * Control.cs (set_Capture): make a logic a little easier to
18994         follow.
18995
18996         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
18997         if it's being destroyed.  A necessary fix surely, but a bandaid
18998         also, to fix the stuck capture problem in bug #78413.
18999
19000 2006-10-31  Chris Toshok  <toshok@ximian.com>
19001
19002         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
19003         convention of clearing hwnd.ClientRect when we set the
19004         width/height (so it'll be recalculated by Hwnd).
19005
19006 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
19007
19008         * ContainerControl.cs: reversed Contains check from
19009         ActiveControl due to hanging problems. This fix
19010         partly regresses #79667 (button does not have
19011         initial focus), so this might be a symptom for 
19012         a larger parenting problem (set_ActiveControl
19013         is being called but the child control does
19014         not have the parent set yet?)   
19015         
19016 2006-10-31  Mike Kestner  <mkestner@novell.com>
19017
19018         * MenuAPI.cs : fix keynav when menu is click activated.
19019
19020 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
19021
19022         * ToolStrip*: Version 0.2.
19023
19024         * MenuStrip.cs: Version 0.1.
19025
19026         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
19027
19028 2006-10-30  Chris Toshok  <toshok@ximian.com>
19029
19030         [ fixes the oversized notify icon issue in bug #79745 ]
19031         
19032         * NotifyIcon.cs: scale the icon down to the size we're given by
19033         the XplatUI layer (this would be faster if we did it once instead
19034         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
19035         since it's never invoked.
19036
19037         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
19038         pixels high by default, so let's hardcode our systray icon to that
19039         size.  The SYSTEM_TRAY protocol should really have a way for
19040         client apps to query for the correct icon size.. but oh well.  A
19041         couple of patches to deal with the screwy client_window ==
19042         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
19043         instance, and also make sure we don't XSelectInput twice).
19044
19045 2006-10-30  Chris Toshok  <toshok@ximian.com>
19046
19047         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
19048         recreating forms.  Control recreation is the bane of my existence.
19049         Fix it in a way that keeps everyone happy.
19050
19051 2006-10-30  Chris Toshok  <toshok@ximian.com>
19052
19053         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
19054         just non-CHILD ones.  otherwise sometimes scrollbars end up with
19055         client_windows not being resized to the proper size (ReportBuilder
19056         shows this extremely well).
19057
19058 2006-10-30  Chris Toshok  <toshok@ximian.com>
19059
19060         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
19061         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
19062         showing up in the gnome taskbar.  Fixes bug #79790.
19063
19064 2006-10-30  Chris Toshok  <toshok@ximian.com>
19065
19066         * ApplicationContext.cs: guard against a NRE.
19067
19068         * Application.cs: null out the old MainForm for the context, so we
19069         don't try to use it again once it's disposed.  Fixes bug #79783.
19070
19071 2006-10-30  Chris Toshok  <toshok@ximian.com>
19072
19073         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
19074         BindingContext, set the data source directly, otherwise do the
19075         lazy approach - the actual ListManager will be created when we get
19076         a BindingContext. Fixes bug #79700.
19077
19078 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
19079
19080         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
19081           XplatUIX11.cs: Remove old 2 parameter SetVisible.
19082
19083         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
19084
19085 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
19086
19087         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
19088         of SetVisible that allows a window to be shown, but not activated.
19089         This is needed on Windows for MenuStrip, and can probably be used
19090         with MainMenu and ComboBox to fix the focus stealing issues on
19091         Windows.
19092
19093         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
19094
19095 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
19096
19097         * PictureBox.cs: Fix the output of the ToString method.
19098
19099 2006-10-29  Chris Toshok  <toshok@ximian.com>
19100
19101         * Control.cs (get_TopLevelControl): fix bug #79781.
19102
19103 2006-10-29  Chris Toshok  <toshok@ximian.com>
19104
19105         * ListControl.cs (set_DataSource): throw Exception here, not
19106         ArgumentException, to match MS behavior.
19107
19108 2006-10-29  Chris Toshok  <toshok@ximian.com>
19109
19110         * Form.cs: remove the try-catch's around calls to GetWindowState.
19111         We can just check the return value.
19112
19113         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
19114         Instead return -1.
19115
19116         * XplatUI.cs: Add note about additional return value for
19117         GetWindowState.
19118
19119 2006-10-29  Chris Toshok  <toshok@ximian.com>
19120
19121         * Control.cs (CreateHandle): when we create our handle, we also
19122         create the handles of our child controls.  Fixes one of the
19123         Control unit tests (CH11).
19124
19125 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
19126
19127         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
19128
19129 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
19130
19131         * ThemeClearlooks.cs: A little speedup.
19132
19133 2006-10-27  Chris Toshok  <toshok@ximian.com>
19134
19135         * Control.cs: implement Control.FromChildHandle in a way that
19136         matches the docs (and fixes the failed test.)
19137
19138 2006-10-27  Chris Toshok  <toshok@ximian.com>
19139
19140         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
19141         comments).
19142
19143         * DataGrid.cs: implement ResetForeColor such that the tests
19144         succeed.
19145         
19146 2006-10-27  Chris Toshok  <toshok@ximian.com>
19147
19148         * ToolBarButton.cs: setting text/tooltiptext to null results in it
19149         being set to "".  Fixes bug #79759.
19150
19151 2006-10-27  Jackson Harper  <jackson@ximian.com>
19152
19153         * TextControl.cs: We need to clear the entire selection area when
19154         setting the start, otherwise multiline selections are still
19155         visible.
19156
19157 2006-10-26  Chris Toshok  <toshok@ximian.com>
19158
19159         * PropertyGridView.cs: 
19160
19161         - ifdef all the code specific to the double
19162         buffer case, and provide some alternatives in the non-doublebuffer
19163         code, which makes heavy use of XplatUI.ScrollWindow to move things
19164         around without having to invalidate (and cause flicker).  There
19165         are still some drawing problems in the non-doublebuffered case, so
19166         DOUBLEBUFFER is defined by default.
19167
19168         - Fix the way dropdowns are handled.  now we explicitly watch for
19169         the events which might cause the dropdown to close, and break out
19170         of the nested event loop there.  This gets rid of all Capture
19171         code, at the expense of the Msg special casing.  Seems to work,
19172         though, and fixes bug #79743.
19173
19174 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
19175         * Control.cs: SetIsRecreating now recreates implicitly added
19176         child controls as well. Finally fixes #79629. The flag passed to 
19177         SetIsRecreating has also been removed since it wasn't used.
19178         
19179 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19180
19181         * PageSetupDialog.cs: Clean some code, fix some bits, 
19182         add some checks, and add a printer sub-dialog.
19183
19184 2006-10-26  Chris Toshok  <toshok@ximian.com>
19185
19186         * PropertyGrid.cs: make set_SelectedObject call
19187         set_SelectedObjects, and move the duplicate logic to the
19188         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
19189
19190         * PropertyGridView.cs: hide the textbox when we get a
19191         SelectedObjectsChanged event.
19192
19193         Fixes bug #79748.
19194
19195 2006-10-26  Chris Toshok  <toshok@ximian.com>
19196
19197         * PropertyGridView.cs: deal with the type converter not supporting
19198         GetStandardValues() or GetStandardValues() returning null, which
19199         is does in the default case.  Fixes #79742.
19200
19201 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
19202
19203         * CheckedListBox.cs: nunit no longer crashes when selecting 
19204         Project/Edit menu option
19205         
19206 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
19207
19208         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
19209         is no menu selected. fixes #79739
19210
19211 2006-10-25  Chris Toshok  <toshok@ximian.com>
19212
19213         * PropertyGridView.cs: factor out the splitter invalidation code
19214         into the SplitterPercent setter, and for kicks implement the
19215         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
19216         amount in either direction.
19217
19218 2006-10-25  Chris Toshok  <toshok@ximian.com>
19219
19220         * PropertyGridView.cs: do some cleanup of the brush used to draw
19221         text - read only fields should be grayed out.  not sure how to do
19222         this with the textbox, though.  but the textbox's should also be
19223         readonly now at least.  Also, hide/show the textbox when resizing
19224         the control.
19225         
19226         * CursorConverter.cs: use System.Reflection when getting the
19227         properties of Cursors, as TypeDescriptor.GetProperties isn't
19228         returning static properties.
19229
19230 2006-10-25  Chris Toshok  <toshok@ximian.com>
19231
19232         * PropertyGridView.cs: factor out the up/down handling, and reuse
19233         it for page up/down.  also add End/Home support.
19234
19235 2006-10-25  Chris Toshok  <toshok@ximian.com>
19236
19237         * PropertyGridView.cs:
19238
19239         - ensure the selected grid item is visible in the scrolled area,
19240         fixes bug #79572.
19241
19242         - fix Keys.Down handling when you're on the last item in the
19243         propertygrid.
19244
19245 2006-10-25  Mike Kestner  <mkestner@novell.com>
19246
19247         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
19248         clicks too.  Fixes #79725.
19249
19250 2006-10-24  Chris Toshok  <toshok@ximian.com>
19251
19252         * PropertyGrid.cs: use property.Converter instead of
19253         TypeDescriptor.GetConverter(property.PropertyType), so we catch
19254         TypeConverters declared on the property as well as on the
19255         PropertyType.  Fixes bug #79678.
19256
19257 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
19258
19259         * MimeIcon.cs, Mime.cs:
19260           Fallback to the default platform handler if no shared mime info
19261           stuff exists (fixes #79693).
19262
19263 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
19264         * ContainerControl.cs: Incorrect contains check in ActiveControl 
19265         from previous fix (duh).
19266
19267 2006-10-20  Chris Toshok  <toshok@ximian.com>
19268
19269         * PropertyGridView.cs: the dropdown should be MIN(number of items
19270         in list, 15).  Fixes #79551.
19271
19272 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
19273         Fixes #79384, #79394, #79652, #79667
19274         * Application.cs: 
19275         
19276         - Modal windows are now destroyed in the proper order for windows
19277         
19278         * ContainerControl.cs:
19279         
19280         - ActiveControl setter has more conditions on when to return:
19281                 - if we're reselecting the active control, but it actually
19282                 didn't have focus (window hidden or some such), it runs
19283                 - if the active control being selected doesn't actually 
19284                 exist in the container, it returns
19285         
19286         * Form.cs
19287         
19288         - The ShowDialog now gets the current form as the owner when
19289         invoking without parameters, and correctly activates the owner 
19290         when returning
19291         
19292         * MessageBox.cs
19293         
19294         - MessageBox now catches the Escape key to exit
19295
19296 2006-10-20  Chris Toshok  <toshok@ximian.com>
19297
19298         * PropertyGridView.cs: fix a number of issues (bug #78565, and
19299         most of bug #79676):
19300
19301         - you can navigate around the property grid with the arrow keys.
19302
19303         - the dropdown is sized properly when the pg has a vertical
19304         scrollbar.
19305
19306         - fix the indentation for subentries, and properly select the
19307         entire label rect.
19308
19309         - fix the gray bar's drawing (only draw it to the last element,
19310         not for the height of the control.  Also make sure we draw that
19311         last horizontal grid line.
19312
19313         - use the same mechanism the datagrid uses wrt the editing textbox
19314         when scrolling/resizing/etc.  Namely, we hide it first, do the
19315         operation, then show it again (if it's still visible).
19316         
19317         - aggressively remove a lot of unnecessary refreshes (and also
19318         calls to Invalidate(). call more limited variants, and only redraw
19319         what we need.)
19320         
19321         * PropertyGrid.cs:
19322
19323         - when we're populating the merged collection, fill in the UI
19324         parent with either the passed in item, or the category item we
19325         create.
19326
19327         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
19328
19329         * GridItem.cs: drop some fully qualified names.
19330         
19331         * GridEntry.cs: add a "UIParent", which is basically the parent
19332         treenode.
19333
19334         * GridItemCollection.cs: add an IndexOf method.
19335
19336 2006-10-20  Mike Kestner  <mkestner@novell.com>
19337
19338         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
19339         a working win32 NC invalidation mechanism, we can't invalidate
19340         menus.  [Fixes #79705]
19341
19342 2006-10-20  Mike Kestner  <mkestner@novell.com>
19343
19344         * ListBox.cs : don't update the VScrollbar if the list is empty,
19345         just hide it.  [Fixes #79692]
19346
19347 2006-10-20  Jackson Harper  <jackson@ximian.com>
19348
19349         * RichTextBox.cs: Handle some special chars better, and don't skip
19350         the entire group when we encounter a special char that we don't
19351         handle correctly.
19352
19353 2006-10-18  Chris Toshok  <toshok@ximian.com>
19354
19355         * PropertyGridView.cs: address a number of issues from bug #79676,
19356         mostly of the cosmetic variety.
19357
19358         - The highlight rectangle for indented items not extends all the
19359         way to the left.
19360
19361         - Indented items aren't indented so much.
19362
19363         - the dropdown is properly sized width-wise if the pg has a
19364         vertical scrollbar.
19365
19366 2006-10-18  Chris Toshok  <toshok@ximian.com>
19367
19368         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
19369         systray stuff is rather convoluted to begin with.
19370
19371         systray icons are a single window for some reason (that I haven't
19372         figured out yet), and for them, client_window == whole_window.
19373         Given the way the tests are structured elsewhere to determine
19374         which paints are pending (client vs. nc), that situation will
19375         always yield PAINT, not NCPAINT.  So, if we have a pending
19376         nc_expose and no pending expose, remove the hwnd from the paint
19377         queue, and also set nc_expose_pending to false, to keep us from
19378         blocking further expose's adding the hwnd to the paint queue.
19379
19380         phew.  like i said, a rather convoluted change.  Fixes the
19381         notifyicon repaint issues in bug #79645.
19382
19383 2006-10-18  Chris Toshok  <toshok@ximian.com>
19384
19385         * Form.cs: when getting the backcolor of the form, don't get
19386         base.BackColor, as this allows parents to influence the background
19387         color.  This breaks mdi forms.  Instead, if the background_color
19388         is empty, return the default.
19389
19390 2006-10-18  Chris Toshok  <toshok@ximian.com>
19391
19392         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
19393         to being private instead of internal static.
19394
19395         * Control.cs: remove all the stupid ParentWaitingOnRecreation
19396         crap, it wasn't working for more deeply nested controls anyway,
19397         and we already have the is_recreating flag - use that instead.
19398         Before calling DestroyHandle in RecreateHandle, recurse through
19399         the control tree setting it to true.  this returns the recreate
19400         code to much of its original simplicity, while now guaranteeing we
19401         actually recreate everything we're supposed to.  This change gets
19402         fyireporting actually showing mdi children.
19403
19404 2006-10-17  Chris Toshok  <toshok@ximian.com>
19405
19406         * Form.cs: remove some debug spew, and collapse some duplicate
19407         code at the end of SetClientSizeCore.
19408
19409         * XplatUIX11.cs: 
19410         - add some more debug spew here too wrt Destroy handling.
19411         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
19412         in Control's handling of WM_DESTROY.
19413         - Remove the handling of zombie window DestroyNotifies from the
19414         event loop - we don't need it.  Now the only DestroyNotifies we
19415         actually handle are ones generated by X.
19416         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
19417         match gtk's (functioning) handling of this. This keep metacity
19418         from leaving droppings in the form of wm borders with no window
19419         contents all over the place.
19420
19421         * Control.cs:
19422         - add a bunch of debug spew wrt control recreation.
19423         - fix a bug where we weren't tracking Visible properly on
19424         recreated hwnds.
19425         - fixed the WM_PAINT double buffer handling to support re-entrant
19426         calls (yes, i know it's gross, but it's happening to us).
19427
19428 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
19429         * ThemeWin32Classic.cs: changed drawing of selected days
19430         to make them look better.
19431
19432 2006-10-16  Chris Toshok  <toshok@ximian.com>
19433
19434         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
19435         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
19436
19437         * XplatUIX11.cs: move away from using hwnd.client_dc and
19438         hwnd.non_client_dc and on to a stack of dc's (and in window's
19439         case, PAINTSTRUCT's), so we can deal with nested Paint calls
19440         without puking or not disposing of Graphics objects.
19441
19442         * XplatUIOSX.cs: same.
19443
19444         * XplatUIWin32.cs: same.
19445
19446 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
19447
19448         * FileDialog.cs: Don't call on_directory_changed inside
19449           OnSelectedIndexChanged (it changes the SelectedIndex too).
19450           Instead move it to OnSelectionChangeCommitted.
19451
19452 2006-10-13  Chris Toshok  <toshok@ximian.com>
19453
19454         * XplatUIX11.cs: more Destroy work.  the current code does the
19455         following things, in order:
19456
19457         1. Enumerates all handles of all controls at or below the one
19458         being destroyed, in pre-order.  As it is doing this, it marks the
19459         handles as zombie and clears all references to them.
19460         
19461         2. calls XDestroyWindow on the window passed in.
19462
19463         3. SendMessage's WM_DESTROY to all he handles in the accumulated
19464         list.
19465
19466 2006-10-13  Chris Toshok  <toshok@ximian.com>
19467
19468         * XplatUIX11.cs: set hwnd.zombie to true before calling
19469         SendMessage (WM_DESTROY).  this keeps us from marking the new
19470         window a zombie, and also keeps us from calling sendmessage at
19471         all.
19472
19473 2006-10-13  Jackson Harper  <jackson@ximian.com>
19474
19475         * TextControl.cs: Do not show the caret and selection at the same
19476         time.  Reduces ugliness by 35%.
19477
19478 2006-10-13  Chris Toshok  <toshok@ximian.com>
19479
19480         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
19481         zombie after we do the recursive call, so we actually do call
19482         SendMessage on the children controls.
19483         (GetMessage): if we find a pending paint event for a zombie hwnd,
19484         remove the hwnd from the paint queue, or else it will always be
19485         there (and we'll effectively loop infinitely)
19486
19487 2006-10-13  Mike Kestner  <mkestner@novell.com>
19488
19489         * MenuItem.cs : add Selected format under keynav too.
19490         Fixes #79528.
19491
19492 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
19493
19494         * PropertyGrid.cs: Fixed some NRE's and small difference between our
19495         implementation and that of MS.
19496
19497 2006-10-13  Chris Toshok  <toshok@ximian.com>
19498
19499         * Control.cs (OnInvalidated) only futz with the invalid_region if
19500         the control is double buffered.  this fixes the apparent hang in
19501         the ListView unit tests.  Someone needs to make the
19502         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
19503
19504 2006-10-13  Chris Toshok  <toshok@ximian.com>
19505
19506         * PropertyGridView.cs:
19507
19508         - do a little refactoring so that only one place calls
19509         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
19510         else call that.  Also make it Refresh, since there are redraw bugs
19511         otherwise (we should take a look at that...)
19512
19513         - do a little more refactoring work to share the body of code
19514         involved with the drop down.  it was duplicated in the code
19515         dealing with the listbox handling and in the code dealing with the
19516         UITypeEditors.
19517
19518         - add a Capture to the dropdown form's control once it's
19519         displayed, and add a MouseDown handler that checks to make sure
19520         the position is inside the control.  If it's not, close the
19521         dropdown.  This fixes #78190.
19522
19523         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
19524         if the value is different than the initial value.
19525         
19526 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
19527
19528         * Control.cs: see #78650
19529         - Fixed GetNextControl for several cases:
19530                 - Changed FindFlatForward to return 
19531                 correct sibling control when more than one
19532                 control has same TabIndex as the currently 
19533                 focused one.
19534                 - Changed FindFlatBackward to loop children
19535                 from last to first and apply same logic as in
19536                 FindFlatForward
19537                 - Changed FindControlForward to search for
19538                 children when control is not a container
19539                 but has children, or search for siblings if
19540                 control is a container...
19541                 - Changed FindControlBackward   to continue
19542                 searching for child controls when hitting 
19543                 Panel-like parents
19544                 
19545         - Fixed Focus method to update ActiveControl
19546         (FocusTest.FocusSetsActive failure)
19547         
19548         * TabControl.cs:
19549         - Focus rectangle now refreshes when gaining
19550         or losing focus
19551         - Removed grab for Tab key on IsInputKey that 
19552         was keeping tab navigation from working (#78650)
19553
19554 2006-10-13  Chris Toshok  <toshok@ximian.com>
19555
19556         * PropertyGridView.cs:
19557         - Rewrite SetPropertyValue to loop over SelectedGridItem's
19558         SelectedObjects.
19559
19560         - Deal with GridItem.Value == null a few places.
19561
19562         * PropertyGrid.cs: 
19563         - replace the PopulateGridItemCollection with a pair of methods
19564         which compute the intersection of all the properties in the
19565         SelectedObjects array.  Fixes #79615.
19566
19567         - Throw ArgumentException from set_SelectedObjects if there's a
19568         null in the array.
19569
19570         - Add GetTarget method which can be used to traverse up the
19571         GridItem.Parent chain.  It depends on the assumption that
19572         selected_objects for different GridEntries are always in the same
19573         order (a safe assumption).  Use this method and loop over all the
19574         selected objects in the entry when calling RemoveValueChanged and
19575         AddValueChanged.
19576         
19577         * GridEntry.cs: Make this handle multiple selected objects.
19578         .Value returns null if not all the selected objects share the same
19579         value.
19580
19581 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
19582         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
19583           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
19584           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
19585           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
19586           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
19587         add additional functionality.
19588
19589 2006-10-12  Mike Kestner  <mkestner@novell.com>
19590
19591         * ErrorProvider.cs : new ToolTipWindow ctor sig.
19592         * HelpProvider.cs : new ToolTipWindow ctor sig.
19593         * ToolTip.cs : remove ToolTip param from Window sig since it is
19594         not used.
19595         * ToolBar.cs : add tooltip support.  Fixes #79565.
19596
19597 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
19598
19599         * ComboBox.cs: move the events in set_SelectedIndex to 
19600         after the call to HighlightIndex in order to avoid 
19601         possible recursion and subsequent problems with the call
19602         to HighlightIndex and include a range check in 
19603         set_HighlightIndex. Fixes #79588
19604         
19605 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
19606
19607         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
19608         to ui thread's settings instead of sunday. 
19609         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
19610
19611 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
19612
19613         * DateTimePicker.cs
19614         * MonthCalendar.cs
19615         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
19616         and implement missing functionality (selecting different parts 
19617         of the date and edit them individually with the keyboard).
19618         
19619 2006-10-11  Chris Toshok  <toshok@ximian.com>
19620
19621         * Control.cs (OnInvalidated): fix NRE relating to last change.
19622
19623 2006-10-11  Chris Toshok  <toshok@ximian.com>
19624
19625         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
19626         atoms in _NET_WM_STATE here if the window is maximized.  We need
19627         to do this because we're *replacing* the existing _NET_WM_STATE
19628         property, so those atoms will be lost otherwise, and any further
19629         call to GetWindowState will return Normal for a window which is
19630         actually maximized.  Fixes #79338.
19631
19632 2006-10-11  Jackson Harper  <jackson@ximian.com>
19633
19634         * TextControl.cs: Special case for setting selection end to
19635         selection start, we basically kill the anchor.
19636         - some todo comments.
19637
19638 2006-10-11  Chris Toshok  <toshok@ximian.com>
19639
19640         * Control.cs: switch to using an "invalid_region" to track which
19641         parts of the image buffer need updating.  This is more code than
19642         the simple fix from r66532.  That version just attempted to always
19643         fill the entire buffer on redraw, which turns out to be
19644         inefficient when invalidating small rectangles.  This version
19645         simply adds the invalid rectangle to the invalid region.  When we
19646         get any WM_PAINT message we see if it can be filled using the
19647         image buffer, and if it can't (if the paint event's clip rectangle
19648         is visible in the invalid region) we first fill the image buffer.
19649         So, the image buffer is still a cache, we just fill it lazily.
19650
19651         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
19652         need it any longer.
19653
19654 2006-10-11  Chris Toshok  <toshok@ximian.com>
19655
19656         * XplatUIX11.cs (SetWindowPos): we need to update both position as
19657         well as size after calling XMoveResizeWindow.  This keeps us from
19658         ignoring future SetWindowPos calls.  Fixes the disappearing
19659         DateTimePicker in the ToolBarDockExample from bug #72499.
19660
19661 2006-10-11  Chris Toshok  <toshok@ximian.com>
19662
19663         * TextBoxBase.cs: reorder things a bit when it comes to
19664         resizing-causing-recalculation.  we were recalculating the
19665         document when our position was changed, which shouldn't happen.
19666         We only care about size changes.  Clear up some more redundant
19667         recalculation calls while I'm at it.  This makes the toolbar dock
19668         example snappy when you're just dragging toolbars around (since it
19669         causes a relayout whenever you move one.)
19670
19671 2006-10-11  Chris Toshok  <toshok@ximian.com>
19672
19673         * ToolBarButton.cs (get_Rectangle): this only returns
19674         Rectangle.Empty if Visible == false, or Parent == null.
19675         Parent.Visible doesn't matter.
19676
19677 2006-10-10  Chris Toshok  <toshok@ximian.com>
19678
19679         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
19680         by .net 1.1, so switch to an internal method instead.
19681
19682 2006-10-10  Chris Toshok  <toshok@ximian.com>
19683
19684         * Control.cs (WM_PAINT): when a control is double buffered we draw
19685         initially to the ImageBuffer and then copy from there.  But when a
19686         parent control which has child controls is double buffered, the
19687         initial drawing doesn't encompass the entire ClientRectangle of
19688         the parent control, so we end up with uninitialized bits (this is
19689         easily seen by dragging the top toolbar in
19690         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
19691         manually set the ClipRectangle of the paint_event (only the one we
19692         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
19693         of the nastiness in bug #72499.
19694
19695         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
19696         which we use in Control.cs's WM_PAINT handling.
19697
19698 2006-10-10  Jackson Harper  <jackson@ximian.com>
19699
19700         * TextBoxBase.cs: Finish off the autoscrolling stuff.
19701
19702 2006-10-10  Chris Toshok  <toshok@ximian.com>
19703
19704         * Cursor.cs: Apply a slightly different patch to the one suggested
19705         in #79609.
19706
19707 2006-10-10  Jackson Harper  <jackson@ximian.com>
19708
19709         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
19710         not the parent form.
19711         * TextControl.cs: use difference in old line count vs new count to
19712         calculate how many lines were added, this takes into account soft
19713         line breaks properly.
19714
19715 2006-10-10  Chris Toshok  <toshok@ximian.com>
19716
19717         * LinkLabel.cs: don't call MeasureCharacterRanges against a
19718         rectangle located at 0,0 and the size of the text.  Use
19719         ClientRectangle instead.  This fixes rendering of non-left aligned
19720         link labels.
19721
19722 2006-10-10  Jackson Harper  <jackson@ximian.com>
19723
19724         * TextBoxBase.cs: When we set the selection start position the
19725         caret.
19726         * TextControl.cs: Need to update the caret when we decrement it to
19727         zero.
19728         - Make sure that the selection_visible flag gets reset to false if
19729         the selection isn't visible.  Before this you could get it set to
19730         visible by changing the selection start, then changing the end to
19731         equal the start.
19732
19733 2006-10-09  Jackson Harper  <jackson@ximian.com>
19734
19735         * TreeView.cs: Don't update scrollbars when we aren't visible.
19736         * TreeNodeCollection.cs: Only need to update scrollbars if being
19737         added to an expanded visible node or the root node.
19738
19739 2006-10-09  Chris Toshok  <toshok@ximian.com>
19740
19741         * XplatUIX11.cs (SendMessage): fix NRE.
19742
19743 2006-10-09  Jackson Harper  <jackson@ximian.com>
19744
19745         * TextBoxBase.cs: Implement horizontal autoscrolling.
19746         * TextControl.cs: Add a movement types that allows moving forward
19747         and backwards without wrapping.
19748
19749 2006-10-09  Mike Kestner  <mkestner@novell.com>
19750
19751         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
19752         with focus "expansion" of labels.  Fixes #79532 and then some.
19753         * ThemeWin32Classic.cs : add LineLimit to ListView label format
19754         when wrapping.
19755
19756 2006-10-09  Jackson Harper  <jackson@ximian.com>
19757
19758         * TextBoxBase.cs: Set the default max values to MaxValue since
19759         we use the scrollbar for autoscrolling and the default value is
19760         100.  If we don't do this the caret won't keep up with typing
19761         after about 18 characters.
19762         * TextControl.cs: Make sure the selection is offset by the
19763         viewport x.  This fixes selection when using auto scrolling.
19764
19765 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
19766         
19767         * Form.cs: The active control should be selected after the 
19768         OnLoad so that any child control initialization that affects
19769         the selection is done. Fixes #79406
19770
19771 2006-10-06  Chris Toshok  <toshok@ximian.com>
19772
19773         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
19774         to have no evil effects.
19775
19776         - Stop selecting StructureNotifyMask on non-toplevel windows.
19777
19778           The only way children should be resized is by using the SWF api,
19779           and we already send WM_WINDOWPOSCHANGED messages in those cases.
19780           Toplevel windows can be interacted with via the window manager,
19781           and so we keep the input mask there.
19782
19783           The other event StructureNotifyMask gives us (that we care
19784           about) is DestroyNotify.  The code is already structured such
19785           that it assumes we won't be getting a DestroyNotify event for
19786           the window we pass to XDestroyWindow (which is what
19787           StructureNotifyMask is supposed to guarantee.)  So, that code
19788           shouldn't be affected by this either.
19789
19790         - Stop selecting VisibilityChangeMask altogether.
19791
19792           We weren't doing anything with the resulting events anyway.
19793         
19794         This vastly reduces the number of X requests and events we see
19795         when resizing/laying out a large ui.
19796
19797 2006-10-06  Chris Toshok  <toshok@ximian.com>
19798
19799         * ScrollableControl.cs (DisplayRectangle): we need to take into
19800         account the DockPadding regardless of whether or not auto_scroll
19801         == true.  rework this slightly to this effect, and fix bug #79606,
19802         and part of #72499 (you can now see the drag handles and drag
19803         toolbars around).
19804
19805 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
19806
19807         * ListViewItem.cs: Collections of selected and checked items are now
19808         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
19809         we mark the collection "dirty".
19810         * ListView.cs: Marked collections readonly. Modified UpdateSelection
19811         to only clear SelectedItems when a new item is selected and MultiSelect
19812         is enabled. CheckedItems and SelectedItems now subscribe to Changed
19813         event of ListViewItemCollection, and mark its list dirty whenever
19814         that event is fire. This allows us to return selected/checked items 
19815         in the same order as they are in the Items collection. This matches
19816         the MS behavior.
19817
19818 2006-10-06  Chris Toshok  <toshok@ximian.com>
19819
19820         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
19821         right mouse clicks.  Fixes bug #79593.
19822
19823 2006-10-06  Chris Toshok  <toshok@ximian.com>
19824
19825         * Splitter.cs: doh, fix splitters that don't want to cancel the
19826         movement when you drag them.  Also, impose the limits on the
19827         values we send to the SplitterMovingEvent.  Fixes #79598.
19828
19829 2006-10-06  Jackson Harper  <jackson@ximian.com>
19830
19831         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
19832         since we use this for auto scrolling also.
19833
19834 2006-10-05  Chris Toshok  <toshok@ximian.com>
19835
19836         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
19837         beginning to think that most datagrid column types don't need this
19838         method.  Fixes bug #79392.
19839
19840 2006-10-05  Chris Toshok  <toshok@ximian.com>
19841
19842         * DataGrid.cs: move back to a more lazy scheme for creating the
19843         CurrencyManager, so we aren't updating it every time you set
19844         either DataSource or DataMember.  Also, don't call
19845         RecreateDataGridRows if the currency manager hasn't changed.
19846
19847 2006-10-05  Chris Toshok  <toshok@ximian.com>
19848
19849         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
19850         emitted, SelectedIndex should already be updated.  Fixes bug
19851         #78929.
19852
19853 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
19854
19855         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
19856           ToolStripTextBox.cs: Initial commit.
19857         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
19858
19859 2006-10-05  Jackson Harper  <jackson@ximian.com>
19860
19861         * TabControl.cs: We need to invalidate the tab control area when
19862         new ones are added (duh).
19863
19864 2006-10-03  Chris Toshok  <toshok@ximian.com>
19865
19866         * Form.cs (ProcessDialogKey): if the focused control is in this
19867         form and is a button, call its PerformClick method here.  Fixes
19868         #79534.
19869
19870 2006-10-04  Jackson Harper  <jackson@ximian.com>
19871
19872         * TabPage.cs: Ignore setting of Visible, and add an internal
19873         method for setting the controls visibility.  TabPage's Visible
19874         property is a little strange on MS, this seems to make us
19875         compatible, and fixes cases where people set all the tab pages to
19876         visible.
19877         * TabControl.cs: Use the new internal setting on tab pages
19878         visibility.
19879
19880 2006-10-03  Mike Kestner  <mkestner@novell.com>
19881
19882         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
19883
19884 2006-10-03  Mike Kestner  <mkestner@novell.com>
19885
19886         * ListView.cs : use is_visible instead of Visible to check if 
19887         scrollbars should be placed/sized.  Also some max_wrap_width
19888         love for LargeIcon view.  [Fixes #79533]
19889
19890 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
19891
19892         * TextControl.cs :
19893           Make set_TextAlign() do actually update the align. Fixed #78403.
19894
19895 2006-10-03  Chris Toshok  <toshok@ximian.com>
19896
19897         * DataGrid.cs: fix a crash when switching datasources if the
19898         vertical scrollbar is at someplace other than Value = 0.  Also,
19899         reduce the number of recalculation passes we do in SetDataSource
19900         from 2 to 1.
19901
19902 2006-10-03  Jackson Harper  <jackson@ximian.com>
19903
19904         * TextBoxBase.cs: Move the if value the same bail check up, we
19905         don't want to empty the document if it is already empty, this
19906         seems to severly mess up the caret.  TODO: I should probably fix
19907         the empty statement to update teh caret somehow.
19908
19909 2006-10-03  Chris Toshok  <toshok@ximian.com>
19910
19911         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
19912         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
19913         reflection, an internal row type, properties on said type, etc.)
19914         will work with our datagrid.  Fixes #79531.
19915
19916 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
19917
19918         * FileDialog.cs: Don't crash if a path is not accessible
19919           (System.UnauthorizedAccessException). Fixes #79569.
19920         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
19921           a ':' too. Return unknown icon for those paths/files.
19922
19923 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
19924
19925         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
19926         GetContainerControl returns null.
19927
19928 2006-10-02  Chris Toshok  <toshok@ximian.com>
19929
19930         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
19931         call to XGetWindowAttributes instead of "handle".  fixes an X
19932         error using notifyicon after the NotifyIconWindow to Form base
19933         class switch.
19934
19935 2006-10-02  Chris Toshok  <toshok@ximian.com>
19936
19937         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
19938         server grab and looping we need to do to get down to the most
19939         deeply nested child window.
19940         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
19941         QueryPointer again after the WarpPointer so we can generate a
19942         proper (fake) MotionNotify event to be enqueued in the destination
19943         window's queue.
19944         (GetCursorPos): call QueryPointer.
19945
19946         Fixes #79556.
19947
19948 2006-10-02  Jackson Harper  <jackson@ximian.com>
19949
19950         * NotifyIcon.cs: Derive the notify icon from a form, so things
19951         like FindForm work on it.
19952         - Swallow the WM_CONTEXTMENU message, since that is generated on
19953         mouse down, and context menu is a mouse up kinda guy.  I believe
19954         the correct fix here is probably to make the notify icon entirely
19955         NC area, but this seems to work fine for anyone not manipulating
19956         WndProc.
19957
19958 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
19959
19960         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
19961           ToolStripItemCollection.cs, ToolStripLabel.cs,
19962           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
19963           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
19964           Initial implementation.
19965         * TextRenderer.cs: Provide padding to MeasureText.
19966
19967 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
19968
19969         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
19970         of ButtonBaseAccessibleObject. Fix bug #79552.
19971
19972 2006-10-02  Jackson Harper  <jackson@ximian.com>
19973
19974         * MdiWindowManager.cs: When maximizing use the containers client
19975         rect, not it's bounds, so nc area is accounted correctly.
19976         - Use the parent form's size for the menu position, since the
19977         client isn't always the full form size.
19978
19979 2006-10-01  Chris Toshok  <toshok@ximian.com>
19980
19981         * ScrollableControl.cs: make sure neither right_edge or
19982         bottom_edge are < 0, since they're used as LargeChange for the
19983         horiz/vert scrollbars respectively.  Fixes #79539.
19984
19985 2006-10-01  Chris Toshok  <toshok@ximian.com>
19986
19987         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
19988         the xplatuix11 code can cause us to destroy/recreate our handle.
19989
19990         * XplatUIX11.cs
19991         (SystrayAdd):
19992         - this code can be invoked many times for the same Hwnd.  Make
19993           sure we only destroy the client window once (the first time this
19994           method is called).  This fixes bug #79544.
19995         - Remove the call to the improperly bound XSync.  why we had two
19996           bindings to this, I will never know, but this call resulted in
19997           events being discarded from the queue(!).
19998         - correct a misunderstanding of _XEMBED_INFO - the second atom is
19999           not our current state but the state we wish to be in.  So, 0 if
20000           we don't want to be mapped.  Change it to 1.
20001         (SystrayRemove): The XEMBED spec makes mention of the fact that
20002         gtk doesn't support the reparent of client windows away from the
20003         embedder.  Looking at gtksocket-x11.c seems to agree with this.
20004         The only avenue we have for removing systray icons is to destroy
20005         them.  We don't want the handle to go away for good, though, so
20006         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
20007         #79545.
20008         
20009 2006-10-01  Chris Toshok  <toshok@ximian.com>
20010
20011         * Form.cs (WndProc): inline the native_enabled variable usage into
20012         the cases in which it's used.  Fixes #79536.
20013
20014 2006-09-29  Mike Kestner  <mkestner@novell.com>
20015
20016         * ListView.cs : toggle the selection state for ctrl clicks in 
20017         multiselect mode. [Fixes #79417]
20018
20019 2006-09-29  Mike Kestner  <mkestner@novell.com>
20020
20021         * ListView.cs : kill CanMultiSelect and refactor the selection
20022         code to support multiselection in the absence of mod keys. Steal
20023         arrow/home/end keys by overriding InternalPreProcessMessage to
20024         restore regressed keynav behavior.
20025         [Fixes #79416]
20026
20027 2006-09-29  Jackson Harper  <jackson@ximian.com>
20028
20029         * MdiClient.cs: Repaint the titlebars when the active window is
20030         changed.
20031
20032 2006-09-29  Chris Toshok  <toshok@ximian.com>
20033
20034         * Application.cs: when entering a runloop with a modal, make sure
20035         the hwnd is enabled.  Fixes #79480.
20036
20037 2006-09-29  Chris Toshok  <toshok@ximian.com>
20038
20039         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
20040         when ListManager.CanAddRows == false, bump us back one.
20041
20042         * DataGridColumnStyle.cs (ParentReadOnly): remove the
20043         listmanager.CanAddRows check.  This makes ArrayLists uneditable
20044         using a datagrid, which is not right.
20045         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
20046         is an IEditable, but call property_descriptor.SetValue regardless.
20047         fixes #79435.
20048
20049 2006-09-29  Chris Toshok  <toshok@ximian.com>
20050
20051         * DataGridBoolColumn.cs: we need to test equality in the face of
20052         possible null values (as is the case with the default NullValue).
20053         This patch keeps us from crashing in that case.
20054
20055 2006-09-29  Jackson Harper  <jackson@ximian.com>
20056
20057         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
20058         here, since it will get called for every node collection in the
20059         tree. This is now done in the treeview once the sorting is
20060         finished.
20061         * TreeView.cs: Recalculate the visible order, and update the
20062         scrollbars after sorting, set the top nope to the root so that the
20063         recalc actually works.
20064
20065 2006-09-29  Chris Toshok  <toshok@ximian.com>
20066
20067         * LinkLabel.cs: more handling of the default link collection in
20068         the face of LinkArea manipulation.  The default link collection
20069         contains 1 element (start=0,length=-1).  If the user sets LinkArea
20070         to anything and the links collection is the default, clear it.
20071         Then only add the link if its nonempty.  Fixes #79518.
20072
20073 2006-09-29  Chris Toshok  <toshok@ximian.com>
20074
20075         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
20076         piece correctly when we hit a '\n'.  Fixes #79517.
20077
20078 2006-09-29  Chris Toshok  <toshok@ximian.com>
20079
20080         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
20081         change the binding of gdk_init_check to take two IntPtr's, and
20082         pass IntPtr.Zero for both of them.  Fixes #79520.
20083
20084 2006-09-29  Mike Kestner  <mkestner@novell.com>
20085
20086         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
20087         [Fixes #78779]
20088
20089 2006-09-28  Jackson Harper  <jackson@ximian.com>
20090
20091         * XplatUIX11.cs: When translating NC messages make sure we go from
20092         whole window to screen, not client window to screen.
20093         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
20094         method doesn't exist
20095         - Skip over controls that aren't forms when arranging.
20096
20097 2006-09-28  Jackson Harper  <jackson@ximian.com>
20098
20099         * XplatUIWin32.cs: Clip the rect to the parent window.
20100         * XplatUIStructs.cs: Add clipping modes struct.
20101         * InternalWindowManager.cs: New private method that factors title
20102         bar heights in when calculating the pos of an NC mouse message.
20103         - Use SendMessage to force a paint when the form's size is changed
20104         instead of painting the decorations immediately.
20105         - Don't let the NC button click messages get to DefWndProc,
20106         because they will attempt to handle windowing themself, and this
20107         messes up z-order (it will put them in front of the scrollbars).
20108         * XplatUIX11.cs: Make sure that we don't reset window managers if
20109         we already have one (ie the window is an MDI window).
20110
20111 2006-09-28  Chris Toshok  <toshok@ximian.com>
20112
20113         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
20114         menu code really needs going over.
20115
20116 2006-09-27  Chris Toshok  <toshok@ximian.com>
20117
20118         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
20119         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
20120         window is maximizable.  So, we need to make sure that even if we
20121         clear the border/wm frame of those functions, they're still
20122         available (basically, we remove the decoration without removing
20123         the function).  Half the fix for #79338.
20124
20125 2006-09-27  Chris Toshok  <toshok@ximian.com>
20126
20127         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
20128         Fixes bug #79515.
20129
20130 2006-09-27  Chris Toshok  <toshok@ximian.com>
20131
20132         * Splitter.cs: reorder things a bit so that we don't actually
20133         draw/move the splitter until after calling OnSplitterMoving.  This
20134         lets users cancel/disallow the movement by explicitly setting
20135         event.SplitX/SplitY.  Fixes #79372.
20136
20137 2006-09-27  Jackson Harper  <jackson@ximian.com>
20138
20139         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
20140         because it is most likely on a window being destroyed, and that
20141         will give us an X11 error.
20142
20143 2006-09-27  Chris Toshok  <toshok@ximian.com>
20144
20145         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
20146         the dropdown button now toggles between showing and hiding the
20147         dropdown.  Also, get rid of dropdown_form_showing and just use
20148         dropdown_form.Visible.  We still don't do a grab, but I'll leave
20149         that part to someone who has handled Capture-fu before.
20150
20151 2006-09-27  Chris Toshok  <toshok@ximian.com>
20152
20153         * DataGrid.cs: return false if alt isn't pressed when '0' is
20154         pressed.  this keeps the '0' key from being swallowed, and fixes
20155         bug #79350.
20156
20157 2006-09-27  Chris Toshok  <toshok@ximian.com>
20158
20159         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
20160         Calling Refresh (in response to a scrollbar event) screws up the
20161         scrollbar painting.  Fixes bug #78923.
20162
20163 2006-09-27  Chris Toshok  <toshok@ximian.com>
20164
20165         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
20166         then insert into hashtable" blocks threadsafe.
20167
20168 2006-09-27  Chris Toshok  <toshok@ximian.com>
20169
20170         * MessageBox.cs (CreateParams): the styles should be |'ed with our
20171         baseclass's, since otherwise the
20172         ControlBox/MinimizeBox/MaximizeBox assignments above have no
20173         effect.  This gets the close button back in messageboxes.
20174
20175 2006-09-27  Chris Toshok  <toshok@ximian.com>
20176
20177         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
20178         flag, not just != 0.  this makes flags that are actually multiple
20179         bits (like WS_CAPTION) work.  fixes bug #79508.
20180
20181 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
20182
20183         * PageSetupDialog.cs: add support for getting and settings the 
20184         paper size, source and orientation.
20185
20186 2006-09-26  Chris Toshok  <toshok@ximian.com>
20187
20188         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
20189         and caption == "", we need to remove the resize handles as well as
20190         the title bar.
20191
20192         * Control.cs (set_Text): turns out that setting Text on a form
20193         should change the WM styles on the window, since if ControlBox ==
20194         false, the only way to get a window border is to have a non-""
20195         Text property.  check winforms/forms/text.cs for an example.  so,
20196         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
20197         update both window styles and title.  This fixes a lot of dialogs
20198         (including the preferences dialog in MonoCalendar.)
20199
20200 2006-09-26  Chris Toshok  <toshok@ximian.com>
20201
20202         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
20203         control isn't a Form), call Win32ShowWindow to hide the window,
20204         but don't update the control Visible property.  When we reparent
20205         back to a parent control, call SetVisible in order for the
20206         window's visibility to be reinstated.
20207
20208         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
20209         the FosterParent.
20210
20211         * Control.cs (ControlCollection.Remove): remove that value.Hide()
20212         call for good, since it breaks MonoCalendar (and other things I'm
20213         sure.) Also, set all_controls to null *after* the owner calls,
20214         which end up regenerating it.
20215         (ChangeParent): allow new_parent to be == null, passing
20216         IntPtr.Zero down to XplatUI.
20217
20218         this fixes #79294 the right way.
20219
20220 2006-09-26  Mike Kestner  <mkestner@novell.com>
20221
20222         * GridEntry.cs : internal SetParent method.
20223         * PropertyGrid.cs : attach to property changed on the proper
20224         target if we have a hierarchical grid with subobjects. Setup
20225         GridItem.Parent for hierarchical items.
20226         * PropertyGridView.cs : Set value on the correct target for
20227         hierarchical grids. [Fixes #78903]
20228
20229 2006-09-26  Chris Toshok  <toshok@ximian.com>
20230
20231         * Control.cs (ChildNeedsRecreating): this should return true if
20232         either we're being recreated and the child is in our list, or our
20233         parent is waiting for our recreation.
20234
20235 2006-09-26  Chris Toshok  <toshok@ximian.com>
20236
20237         * Control.cs (ControlCollection.Remove): reinstate the
20238         value.Hide() call as suggested in bug #79294.
20239
20240 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
20241
20242         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
20243         coordinates (versus a relative move).
20244
20245 2006-09-26  Chris Toshok  <toshok@ximian.com>
20246
20247         * Control.cs: rework child recreation a little bit.  It turns out
20248         that we race between the DestroyNotify the WM_DESTROY message.  If
20249         the parent gets its DestroyNotify before the child gets the
20250         WM_DESTROY message, the child ends up not recreating (since the
20251         parent finishes its recreation on DestroyNotify, and the child
20252         checks ParentIsRecreating.)
20253
20254         So, instead we store off a list of all the child controls which
20255         need to be recreated when the parent control starts to recreate
20256         itself.  Then, when child controls get their WM_DESTROY message we
20257         check to see if they're in the parent's pending recreation list,
20258         and if so, we recreate.  This removes all dependency on ordering
20259         from the code and fixes the initial MonoCalendar upgrade dialog.
20260         
20261 2006-09-26  Jackson Harper  <jackson@ximian.com>
20262
20263         * TextControl.cs: Use the Line to get the length of the line,
20264         since soft line breaks can change the end line.
20265
20266 2006-09-26  Chris Toshok  <toshok@ximian.com>
20267
20268         * Control.cs (ControlCollection.AddImplicit): don't add the
20269         control again if it's already in one of our lists.  This keeps us
20270         from adding controls over and over again for comboboxes when their
20271         handle gets recreated (as the combobox adds implicit controls in
20272         OnHandleCreated).  Fixes the X11 errors in bug #79480.
20273
20274 2006-09-26  Jackson Harper  <jackson@ximian.com>
20275
20276         * TextControl.cs: When deleting characters make sure that any
20277         orphaned zero lengthed tags get deleted.
20278         - Fix ToString for zero lengthed tags.
20279
20280 2006-09-25  Jackson Harper  <jackson@ximian.com>
20281
20282         * TextControl.cs: When getting a tag at the location there can be
20283         multiple tags at the same spot, these are 0-lengthed tags that
20284         appear when extra formatting has been stuck in a location.  We
20285         need to pull out the last of these 0 lengthed tags.
20286
20287 2006-09-25  Jackson Harper  <jackson@ximian.com>
20288
20289         * TextControl.cs: Fix print out in debug method.
20290         * TextBoxBase.cs: When text is set bail if we are setting to the
20291         previous value.
20292         
20293 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
20294
20295         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
20296           It is now possible to change the selected index in a FontXXXListBox
20297           with the up and down arrow keys from the FontXXXTextBoxes.
20298           Also, send the FontXXXTextBox mouse wheel event to the corresponding
20299           FontXXXListBoxes to match ms.
20300
20301 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
20302
20303         * SystemInformation.cs: Return a clone of the theme's MenuFont because
20304         anyone can dispose it, anytime. All other properties returns enums, 
20305         structs or basic types so they don't need such tricks.
20306
20307 2006-09-22  Jackson Harper  <jackson@ximian.com>
20308
20309         * XplatUI.cs:
20310         * XplatUIWin32.cs:
20311         * Clipboard.cs:
20312         * DataFormats.cs:
20313         * XplatUIOSX.cs:
20314         * XplatUIDriver.cs: Update interface to add a primary selection
20315         flag, so the driver can use the primary selection buffer if
20316         needed.
20317         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
20318
20319         * RichTextBox.cs: We need to supply the data object to paste now
20320         (so we can choose to supply CLIPBOARD or PRIMARY).
20321         * TextBoxBase.cs: Supply data object to paste (see above).
20322         - Middle click uses the primary selection data object.
20323         
20324 2006-09-21  Chris Toshok  <toshok@ximian.com>
20325
20326         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
20327         of SetWMStyles.  It's still a rat's nest and is largely
20328         order-dependent which I dislike immensely.  This also fixes the X
20329         button disappearing from toplevel forms.
20330
20331 2006-09-21  Mike Kestner <mkestner@novell.com>
20332
20333         * ListBox.cs: move Jordi's click/dblclick raising code to the
20334         mouse up handler.
20335
20336 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
20337
20338         * ListBox.cs: Fixes 79450
20339
20340 2006-09-21  Mike Kestner <mkestner@novell.com>
20341
20342         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
20343         to deal with people updating the TreeNodeCollection after the tree
20344         is disposed.  "Fixes" 79330.
20345
20346 2006-09-20  Jackson Harper <jackson@ximian.com>
20347
20348         * TextControl.cs: Push the cursor record onto the undo stack
20349         before the delete action. This fixes 78651.
20350
20351 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
20352
20353         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
20354         CreateParams. Fixes 79329.
20355
20356 2006-09-19  Chris Toshok  <toshok@ximian.com>
20357
20358         * XplatUIX11.cs: a couple of blanket code massage passes to clean
20359         things up a bit.  First, get rid of the NetAtoms array (and the NA
20360         enum), and just embed the atoms as static fields.  Also, add a
20361         couple of functions (StyleSet and ExStyleSet) to clean up all the
20362         bitmask testing of styles.
20363
20364         * X11Structs.cs: remove the NA enum, not needed anymore.
20365         
20366 2006-09-19  Chris Toshok  <toshok@ximian.com>
20367
20368         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
20369         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
20370         added cleanup to get MessageBox titles appearing again, which were
20371         broken by my earlier fix for caption-less/ControlBox-less windows.
20372
20373 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
20374
20375         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
20376           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
20377           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
20378           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
20379           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
20380           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
20381           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
20382           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
20383           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
20384           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
20385           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
20386             Inital import.
20387         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
20388           ToolStripButton.cs: Stubs needed for above.
20389         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
20390
20391 2006-09-15  Chris Toshok  <toshok@ximian.com>
20392
20393         * XplatUIX11.cs:
20394         - make the MessageQueues hashtable Synchronized.
20395         
20396         - SendMessage: if the Hwnd is owned by a different thread, use the
20397         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
20398         thread.  Fixes bug #79201.
20399
20400 2006-09-15  Chris Toshok  <toshok@ximian.com>
20401
20402         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
20403         ControlBox == false, we disallow maximize/minimize/close.  If the
20404         form Caption is "" we also disallow move (and get rid of the Title
20405         decoration).  Unfortunately, regardless of how things are set,
20406         we're stuck with the Title and WM menu.
20407
20408 2006-09-15  Chris Toshok  <toshok@ximian.com>
20409
20410         * Application.cs: add locking around the static message_filters
20411         ArrayList, part of #79196.
20412
20413 2006-09-15  Chris Toshok  <toshok@ximian.com>
20414
20415         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
20416         Form.ControlBox == false, the window has no titlebar nor resize
20417         handles.  fixes bug #79368.
20418
20419 2006-09-15  Chris Toshok  <toshok@ximian.com>
20420
20421         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
20422         >= 0.  Fixes bug #79370.
20423
20424 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
20425         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
20426         * Control.cs:
20427             Add properties: LayoutEngine, Margin, DefaultMargin.
20428             Add method: GetPreferredSize.
20429             Move layout logic from PerformLayout to layout engines. 
20430
20431 2006-09-13  Chris Toshok  <toshok@ximian.com>
20432
20433         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
20434         fix for #79326 broke #78718, so this change addresses that.
20435
20436         - in SendWMDestroyMessages remove the call to
20437         CleanupCachedWindows, since we might be recreating the control and
20438         need to maintain the references to right Hwnd handles.  Also, set
20439         the zombie flag to true for each of the children in the hierarchy
20440         instead of calling hwnd.Dispose.  This will cause GetMessage to
20441         ignore all events for the window except for DestroyNotify.
20442
20443         - In GetMessage, ignore messages except for DestroyNotify for
20444         zombie hwnds.
20445         
20446         * Control.cs: revert the is_recreating fix from the last
20447         ChangeLog.  It's definitely "right", but it breaks switching from
20448         an MDI form to a non-MDI form.  Will need to revisit that.
20449
20450         * Hwnd.cs: add a zombie flag, which means "the
20451         client_window/whole_window handles are invalid, but we're waiting
20452         for the DestroyNotify event to come in for them".  Set the flag to
20453         false explicitly if setting WholeWindow/ClientWindow, and also
20454         when Disposing.
20455         
20456 2006-09-13  Chris Toshok  <toshok@ximian.com>
20457
20458         * XplatUIX11.cs: rework window destruction slightly.
20459
20460         - when destroying the windows associated with a control, we don't
20461         need 2 separate XDestroyWindow calls.  Just the one for the
20462         whole_window (or for client_window if whole_window is somehow
20463         IntPtr.Zero -- can this happen?) is enough.
20464
20465         - reworked SendWMDestroyMessages slightly, so we always dispose
20466         the child control hwnd's after sending the messages.
20467         
20468         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
20469         the two places it was used (one was even using hwnd.Handle and the
20470         other hwnd.client_window.  ugh), adding another call in
20471         SendWMDestroyMessages.  We need this new call because now the
20472         DestroyNotify events in the queue will be ignored for the child
20473         controls (as their hwnd's were disposed, and the window id's
20474         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
20475
20476         - this fixes bug #79326.
20477
20478 2006-09-13  Chris Toshok  <toshok@ximian.com>
20479
20480         * Control.cs: don't always set is_recreating to false at the end
20481         of RecreateHandle, since sometimes we're not done (and won't be
20482         until WndProc handles the WM_DESTROY message).  Also, set
20483         is_recreating to false in the WM_DESTROY handling code.  Part of
20484         the fix for bug #79326.
20485
20486 2006-09-13  Miguel de Icaza  <miguel@novell.com>
20487
20488         * X11DesktopColors.cs: Start the droppage of debugging messages.
20489
20490         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
20491
20492 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
20493
20494         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
20495
20496 2006-09-12  Chris Toshok  <toshok@ximian.com>
20497
20498         * DataGrid.cs (get_ListManager): if the list_manager is null, try
20499         to create it using SetDataSource.  Fixes bug #79151.
20500
20501 2006-09-11  Chris Toshok  <toshok@ximian.com>
20502
20503         * XEventQueue.cs: add a DispatchIdle property.
20504
20505         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
20506         either the queue is null, or the queue has DispatchIdle set to
20507         true.
20508         (DoEvents): set queue.DispatchIdle to false around the
20509         peek/translate/dispatch message loop in this method.  This keeps
20510         Application.Doevents from emitting idle events.  Part of the fix
20511         for #78823.
20512
20513 2006-09-11  Chris Toshok  <toshok@ximian.com>
20514
20515         * DataGrid.cs (set_DataSource): make this work for both the
20516         winforms/datagrid test and ReportBuilder.  It seems as though when
20517         we've created a ListManager (or maybe it's if we have a
20518         BindingContext?), when we set the DataSource it clears the
20519         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
20520         #79333.
20521
20522 2006-09-11  Chris Toshok  <toshok@ximian.com>
20523
20524         * XplatUIX11.cs: deal with queue being null, which happens in all
20525         the Clipboard functions.  Fixes one of the two problems mentioned
20526         in #78612.
20527
20528 2006-09-11  Chris Toshok  <toshok@ximian.com>
20529
20530         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
20531         button on various spots (including outside the menu) works closer
20532         to MS, and doesn't crash.  Fixes #79343.
20533
20534 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
20535
20536         * ListView.cs: Do not initialize item_sorter in init. To match MS,
20537         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
20538         and the internal comparer is set. When a new ListViewItemSorter is set,
20539         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
20540         was specified. No further processing is necessary if SortOrder is set
20541         to it's current value. If Sorting is modified to None, and View is
20542         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
20543         (either custom or our internal ItemComparer) to null, on 1.0 profile
20544         only set item_sorter to null if its our internal IComparer. If Sorting
20545         is modified to Ascending or Descending, then use our internal IComparer
20546         if none is set, and if the current IComparer is our internal one then:
20547         on 2.0 profile always replace it with one for new Sorting, and on 1.0
20548         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
20549         Enum.IsDefined to verify whether a valid View value is specified in
20550         its setter. Automatically sort listview items when listview is
20551         created. In Sort, do nothing if ListView is not yet created, or if
20552         no item_sorter is set (no Sorting was set, Sorting was explicitly set
20553         to None or ListViewItemSorter was set to null). Added Sort overload
20554         taking a bool to indicate whether the ListView should be redrawn when
20555         items are sorted (we use this in ListViewItemCollection to avoid double
20556         redraws). Modified our internal IComparer to take the sort order into
20557         account. In Add and AddRange methods of ListViewItemCollection, also
20558         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
20559         view), but use overload with noredraw option to avoid double redraw.
20560         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
20561         true when View is Tile, and do the same when attempting to set View to
20562         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
20563         for selected/checked indices, as it involves overhead when sorting is
20564         done while these collections are not used all that often. Instead
20565         we'll build the indices on demand. Modified IList implementation of
20566         CheckedIndexCollection to use public methods if object is int.
20567         Modified CheckedListViewItemCollection to hide checked items if
20568         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
20569         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
20570         IList implementation in SelectedIndexCollection to use public methods
20571         if object is int. Modified SelectedListViewItemCollection to hide
20572         selected items if listview is not yet created.
20573         * ListViewItem.cs: CheckedIndices list no longer needs to be
20574         maintained separately (see ListView changes). Also clone font, fixes
20575         test failure.
20576
20577 2006-09-11  Mike Kestner  <mkestner@novell.com>
20578
20579         * ComboBox.cs: if we are updating the contents of the currently
20580         selected index, refresh the control or the textbox selection.
20581         [Fixes #79066]
20582
20583 2006-09-11  Mike Kestner  <mkestner@novell.com>
20584
20585         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
20586         the 'specified' logic has been moved there.  This seems like a bug 
20587         in Control.cs, since our current SetBoundsCore completely ignores 
20588         the specified parameter.  Peter's commit seems to indicate that is 
20589         the way the MS control implementation works.  [Fixes #79325]
20590
20591 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
20592
20593         * XplatUI.cs: Set default_class_name to be composed
20594         of current domain id. This allows MWF to be loaded in multiple
20595         domains on Win32.
20596
20597 2006-09-09  Miguel de Icaza  <miguel@novell.com>
20598
20599         * X11Keyboard.cs: If we are unable to obtain the input method, do
20600         not call CreateXic to create the input context.   Should fix
20601         #78944/79276.
20602
20603 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
20604
20605         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
20606           Simplified gnome support by adding more pinvokes to get the
20607           icon for a file or mime type.
20608
20609 2006-09-08  Jackson Harper  <jackson@ximian.com>
20610
20611         * MenuAPI.cs: Deslect popup context menu items before closing the
20612         window, so that you don't see the previously selected item
20613         selected when you reopen the menu.
20614         * TextControl.cs: Update the cursor position even if we don't have
20615         focus.  This fixes typing in things like the ComboBox.  I'm not
20616         totally sure we should always set the visibility if we don't have
20617         focus, but couldn't find any corner cases where the cursor showed
20618         up when it shouldn't.
20619
20620 2006-09-08  Chris Toshok  <toshok@ximian.com>
20621
20622         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
20623         our arrays are length 256.  & 0xff before indexing.  Fixes the
20624         crash in bug #78077.
20625         
20626 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20627
20628         * ThemeWin32Classic.cs: 
20629         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
20630         is true. Handle that check box too.
20631
20632 2006-09-07  Chris Toshok  <toshok@ximian.com>
20633
20634         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
20635         79244.
20636
20637 2006-09-07  Chris Toshok  <toshok@ximian.com>
20638
20639         * Control.cs: in set_BackColor only do the work if
20640         background_color != value.
20641
20642         * XplatUIX11.cs: move the clearing of invalid areas (both client
20643         and nc) to the same block of code where we set (nc_)expose_pending
20644         to false.  That is, move it from PaintEventEnd to PaintEventStart,
20645         so things that cause invalidates from within OnPaint will trigger
20646         another call to OnPaint.  Fixes bug #79262.
20647
20648 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
20649
20650         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
20651         * FileDialog.cs: Fix typo
20652
20653 2006-09-07  Jackson Harper  <jackson@ximian.com>
20654
20655         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
20656         for tab pages if they have any.
20657
20658 2006-09-06  Mike Kestner  <mkestner@novell.com>
20659
20660         * Splitter.cs: use the "current" rect when finishing drag handle
20661         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
20662
20663 2006-09-06  Mike Kestner  <mkestner@novell.com>
20664
20665         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
20666         support offset splitters. [Fixes #79298]
20667
20668 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
20669
20670         * Mime.cs: Fixed a bug that could override the global mime type
20671           result.
20672
20673 2006-09-05  Jackson Harper  <jackson@ximian.com>
20674
20675         * TabControl.cs: Better calculation method for setting the slider
20676         pos. Prevents crashes on really wide tabs.
20677         - Draw Image on tab pages if an image list is used.
20678
20679 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20680
20681         * MonthCalendar.cs: When Font changes, the Size should be
20682         updated to fit the new font's space requirements.
20683
20684 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
20685
20686         * ListBox.cs: If the items are cleared with Items.Clear set
20687           top_index to 0.
20688
20689 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20690
20691         * MonthCalendar.cs: Handle arrow keys as input keys. Also
20692         fire DateChanged event instead of DateSelected event when
20693         the date was changed by keyboard interaction.
20694
20695 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20696
20697         * DateTimePicker.cs: Handle DateChanged for the associated
20698         month_calendar control, and set month_calendar.Font from 
20699         OnFontChanged method, as well as resize the height of the
20700         control when needed. Make PreferredHeight proportional.
20701
20702 2006-09-01  Chris Toshok  <toshok@ximian.com>
20703
20704         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
20705         properties.
20706
20707         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
20708
20709 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
20710
20711         * FileDialog.cs: Set ClientSize instead of window size, to allow space
20712           for decorations (Fixes #79219)
20713
20714 2006-09-01  Mike Kestner  <mkestner@novell.com>
20715
20716         * ComboBox.cs: first stab at sorting plus some selection handling
20717         fixes to bring us more in line with MS behavior.  Also switches back
20718         to index based selection.  Alternative patches for index-based 
20719         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
20720         and latency@gmx.de on bug 78848.  I assume they were similar to this
20721         code I've had simmering in my tree forever.
20722         [Fixes #78848]
20723
20724 2006-09-01  Chris Toshok  <toshok@ximian.com>
20725
20726         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
20727         when setting list position guard against ending up with a -1 index
20728         (the other part of the fix for #78812).  Should probably make sure
20729         we don't need the analogous fix in the ItemDeleted case.
20730
20731         * DataGrid.cs:
20732         - in SetDataSource, work around the fact that the way
20733         OnBindingContextChanged is invoked will cause us to re-enter this
20734         method.  I'll remove the hack once I investigate
20735         OnBindingContextChanged.
20736
20737         - fix the logic in set_DataSource and set_DataMember (basically
20738         what to do if the other of the two is null.)
20739         
20740         - in OnListManagerItemChanged, we need to take into account the
20741         edit row when deciding whether or not to call RecreateDataGridRows
20742         (part of the fix for #78812).
20743
20744 2006-09-01  Jackson Harper  <jackson@ximian.com>
20745
20746         * Splitter.cs: Don't do anything if there is no control to affect
20747         (prevents us from crashing in weird tet cases).
20748         * TreeView.cs: Bounding box for the mouse movement reverting
20749         focus/selection back to previously selected node.  This matches
20750         MS, and makes the tree a lot more useable.
20751         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
20752         use clipping so they are not drawn.  This fixes when the control
20753         is set to have a transparent background, or if it was over an
20754         image.
20755
20756 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
20757
20758         * MimeIcon.cs: Improved handling for reading default icons when
20759           using gnome (2.16 made it necessary). Check and read svg icons
20760           first, then 48x48 and then 32x32 icons.
20761
20762 2006-08-31  Chris Toshok  <toshok@ximian.com>
20763
20764         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
20765         visible.
20766
20767         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
20768         ProcessKeyPreview.  Fixes part of #77806.
20769
20770         * DataGrid.cs: big patch.
20771
20772         - revert the queueing up of DataSource/DataMember if inside
20773         BeginInit/EndInit calls.  That's not the way the datagrid achieves
20774         its delayed databinding.  Instead, call SetDataSource in
20775         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
20776         #78811.
20777
20778         - Also, it wasn't mentioned in #78811, but the test case exhibits
20779         behavior that was lacking in our datagrid implementation - Columns
20780         that have mapping names that don't exist in the datasource's
20781         properties aren't shown.  Yuck.  To fix this I added the bound
20782         field to the column style, and basically any calculation to figure
20783         out anything about columns uses a loop to find the bound columns.
20784         still need to investigate if I can cache an array of the bound
20785         columns or if the indices must be the same.
20786
20787         - When setting CurrentCell, we no longer abort if the cell being
20788         edited was in the add row.  This fixes the other part of #77806.
20789
20790         - The new code also fixes #78807.
20791         
20792         * ThemeWin32Classic.cs: perpetrate the same disgusting
20793         column.bound field hack, and only render bound fields.
20794
20795 2006-08-31  Chris Toshok  <toshok@ximian.com>
20796
20797         * DataGridColumnStyle.cs: add bound field.  this field is true if
20798         the datasource has a property corresponding to the mapping name.
20799
20800         * DataGridTableStyle.cs: set the bound field on the column styles
20801         depending on whether or not we have a column for that property.
20802
20803 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
20804
20805         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
20806           splitter control (fixes #79228)
20807
20808 2006-08-31  Chris Toshok  <toshok@ximian.com>
20809
20810         * DataGridColumnStyle.cs: we need to delay the assignment of
20811         property descriptor until the last possible moment due to the lazy
20812         databinding stuff in the datagrid.  Also, fix the exceptions
20813         thrown by CheckValidDataSource to match MS.
20814
20815 2006-08-31  Jackson Harper  <jackson@ximian.com>
20816
20817         * Form.cs: When activated select the active control, if there is
20818         no active control, we select the first control.
20819         * XplatUIX11.cs: If there is no focus control when we get a
20820         FocusIn event, find the toplevel form and activate it.  This
20821         occurs when you popup a window, it becomes the focus window, then
20822         you close that window, giving focus back to the main window.
20823
20824 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20825
20826         * MonthCalendar.cs: 
20827         * ThemeWin32Classic.cs: Cache Font in bold style, as well
20828         as StringFormat with Center alignments in MonthCalendar,
20829         instead of creating new ones when drawing the control. 
20830         Also, draw the month name in bold style.
20831
20832 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
20833
20834         * Control.cs:
20835           - PerformLayout(): It would seem MS performs the fill even if the 
20836             control is not visible (part of #79218 fix)
20837           - ResetBackColor(): Use the setter to reset the color, to allow
20838             overriders to catch the change.
20839         * Form.cs:
20840           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
20841           - CreateHandle(): dito (part of $79218 fix)
20842           - Don't set an icon if we have a dialog
20843         * ScrollableControl.cs:
20844           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
20845           - ScrollIntoView(): No need to scroll if control is already visible
20846             (resolves fixme and fixes #79218)
20847
20848 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20849
20850         * MonthCalendar.cs: Change proportions in SingleMonthSize
20851         to match the aspect of the original control.
20852
20853 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
20854
20855         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
20856           get updated when they get maximized.
20857
20858 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
20859
20860         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
20861
20862 2006-08-29  Chris Toshok  <toshok@ximian.com>
20863
20864         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
20865
20866 2006-08-29  Jackson Harper  <jackson@ximian.com>
20867
20868         * TreeView.cs: Need to track selected node and highlighted node,
20869         they aren't always the same thing, when the mouse is down on a
20870         node it is hilighted, but not selected yet.
20871         - Do the HideSelection stuff right
20872         - Need to focus on rbutton mouse down. And redraw selection when
20873         right click is mouse upped.
20874
20875 2006-08-29  Mike Kestner  <mkestner@novell.com>
20876
20877         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
20878         when SubItems.Count < Columns.Count.  [Fixes #79167]
20879
20880 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
20881
20882         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
20883
20884 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
20885
20886         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
20887           from X. Only send based on ConfigureNotify if we don't have the
20888           correct location in hwnd (if the window manager moved us)
20889
20890 2006-08-28  Mike Kestner  <mkestner@novell.com>
20891
20892         * ListView.cs: remove a TODO. 
20893         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
20894         [Fixes ListView part of #79166]
20895
20896 2006-08-28  Mike Kestner  <mkestner@novell.com>
20897
20898         * ListView.cs: move wheel handler to parent since it is focused
20899         instead of the item_control now.  [Fixes #79177]
20900
20901 2006-08-28  Mike Kestner  <mkestner@novell.com>
20902
20903         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
20904         when the control is focused. [Fixes #79171]
20905
20906 2006-08-28  Mike Kestner  <mkestner@novell.com>
20907
20908         * ListView.cs: size the item and header controls for empty and
20909         unscrollable views.
20910         * ThemeWin32Classic.cs: draw disabled backgrounds.
20911         [Fixes #79187]
20912
20913 2006-08-28  Chris Toshok  <toshok@ximian.com>
20914
20915         * Form.cs: remove unused "active_form" static field.
20916
20917         * Hwnd.cs: lock around accesses to static windows collection.
20918
20919         * Application.cs: lock threads in Exit ().
20920
20921 2006-08-28  Chris Toshok  <toshok@ximian.com>
20922
20923         * NativeWindow.cs: lock around accesses to window_collection.
20924         
20925 2006-08-28  Chris Toshok  <toshok@ximian.com>
20926
20927         * Control.cs: err, fix this the right way, by locking on controls
20928         when using it.  not by making it synchronized.
20929
20930 2006-08-28  Chris Toshok  <toshok@ximian.com>
20931
20932         * Control.cs: make the static "controls" field synchronized, as it
20933         gets updated from multiple threads.
20934
20935 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
20936
20937         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
20938           Prevent other threads from exiting when calling thread sets quit state.
20939         * XEventQueue.cs: Added PostQuitState property
20940
20941 2006-08-27  Chris Toshok  <toshok@ximian.com>
20942
20943         * AsyncMethodData.cs: add a slot for the window handle.
20944
20945         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
20946         window (the destination control's window, not the foster window).
20947
20948         * Control.cs (BeginInvokeInternal): store the window's handle in
20949         the AsyncMethodData.
20950         
20951
20952 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
20953
20954         * XplatUIX11.cs:
20955           - PostQuitMessage: Removed resetting S.D display handle, we might have
20956             another loop started after calling PostQuitMessage (Fixes #79119)
20957           - Created destructor to reset S.D handle
20958
20959 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
20960
20961         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
20962
20963 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
20964
20965         * TextControl.cs (Insert): Update the caret position even if we don't
20966           have a handle yet, just don't call the driver in that case.
20967         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
20968           to the end of the new selection text (Fixes #79184)
20969
20970 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
20971
20972         * Form.cs (Activate): Only activate if the handle is created)
20973         * Control.c:
20974           - Mark window as invisible when it's disposed
20975           - Check if window handle is created when setting window visible, 
20976             instead of relying just on the is_created variable
20977           - Check if object is disposed when creating the control (Fixes #79155)
20978
20979 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
20980
20981         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
20982           when allowing layout again. Otherwise we re-generate the anchoring 
20983           distance to the border again and actually alter what the user wanted
20984           This is ugly, it'd be better if we used DisplayRectangle instead of
20985           ClientRectangle for Control.UpdateDistances, but that causes us to
20986           have other problems (initial anchoring positons would be wrong)
20987           (Fixes #78835)
20988
20989 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
20990
20991         * Control.cs:
20992           - The size and location setters shouldn't go directly to 
20993             SetBoundsCore, but to SetBounds, which triggers layout on the
20994             parent, then calls SetBoundsCore. (Related to fix for #78835)
20995           - SetBounds: Moved actual location update code into this function
20996             from SetBoundsCore, to match MS. Added call to PerformLayout if
20997             we have a parent (to trigger resizing of anchored parents if the 
20998             child size has changed (see testcase for #78835) 
20999         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
21000           new control code
21001         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
21002
21003 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
21004
21005         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
21006           System.Drawing when a toplevel window gets closed; there might
21007           be other toplevel windows belonging to the same app (Fixes #78052)
21008
21009 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
21010
21011         * FileDialog.cs: After reading FileDialog settings from mwf_config
21012           use Desktop prefix only if a real folder doesn't exist anymore.
21013         * FontDialog.cs: Added char sets.
21014           It is now possible to select the font, size or style with the
21015           textboxes.
21016
21017 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
21018
21019         * PrintPreviewDialog.cs: Use assembly name constants.
21020
21021 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
21022
21023         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
21024           scrollbar from whacking it's buttons)
21025
21026 2006-08-24  Chris Toshok  <toshok@ximian.com>
21027
21028         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
21029         in this patch (aggregating setting Left/Top/Width/Height to
21030         setting Bounds on the scrollbars), but the crux of the fix is in
21031         Recalculate, where we scroll by the remaining scroll_position if
21032         we're hiding a scrollbar.  The 2*$5 reward in the comment is
21033         serious.
21034
21035 2006-08-24  Jackson Harper  <jackson@ximian.com>
21036
21037         * MdiClient.cs:
21038         * MdiWindowManager.cs: If the form is made a non-mdi window we
21039         need to remove the form closed event so that closing forms works
21040         correctly.
21041
21042 2006-08-24  Jackson Harper  <jackson@ximian.com>
21043
21044         * Control.cs: Make IsRecreating internal so that the driver can
21045         check it
21046         - Temporarily remove the Hide when controls are removed, its
21047         making a whole bunch of things not work because visibility isn't
21048         getting reset elsewhere correctly
21049         * Form.cs: Need to do a full handle recreation when the mdi parent
21050         is set.
21051         * XplatUIX11.cs: If we are recreating handles don't dispose the
21052         HWNDs.  What was happening is the handles were being recreated in
21053         SendWMDestroyMessages, but then flow continued on in that method
21054         and destroyed the new handles.
21055
21056 2006-08-23  Jackson Harper  <jackson@ximian.com>
21057
21058         * Form.cs: MdiClient is always at the back of the bus
21059         * Control.cs: When the order of items in the collection is changed
21060         we need to reset the all_controls array
21061         - do the same sorta setup thats done when adding a control when a
21062         control is set on the collection.
21063
21064 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
21065
21066         * TextBoxBase.cs (get_Text): Return an empty array if our document
21067           is empty (fixes #79052)
21068
21069 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
21070
21071         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
21072           on WM_SYSCHAR messages (fixes #79053)
21073
21074 2006-08-23  Chris Toshok  <toshok@ximian.com>
21075
21076         * DataGrid.cs: fix flickering when scrolling vertically.
21077
21078 2006-08-23  Chris Toshok  <toshok@ximian.com>
21079
21080         * DataGrid.cs (EndEdit): only invalidate the row header when we
21081         need to.
21082
21083 2006-08-23  Chris Toshok  <toshok@ximian.com>
21084
21085         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
21086         methods.  fixes the flicker when scrolling around.
21087
21088 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
21089
21090         * FileDialog.cs: Making sure the control is created before we get a 
21091           chance to use it with BeginInvoke (Fixes #79096)
21092
21093 2006-08-23  Chris Toshok  <toshok@ximian.com>
21094
21095         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
21096         width to use when painting the rows.
21097
21098 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
21099
21100         * TextBoxBase.cs:
21101           - Throw ArgumentException if a negative value is passed to SelectionLength
21102           - Update the selection end if start is moved. end needs to be always
21103             after start. (Fixes #79095)
21104           - Track selection length; MS keeps the selection length even if start
21105             is changed; reset on all other operations affection selection
21106
21107 2006-08-22  Jackson Harper  <jackson@ximian.com>
21108
21109         * TreeView.cs: Make sure both scrollbars get displayed and sized
21110         correctly when the other bar is visible.
21111         - Use the original clip rectangle for checking if the area between
21112         the two scrollbars is visible, not the viewport adjusted clipping
21113         rectangle.
21114
21115 2006-08-22  Jackson Harper  <jackson@ximian.com>
21116
21117         * Binding.cs: We don't use IsBinding because it requires the
21118         control to be created, which really shouldn't be necessary just to
21119         set a property on the control.
21120
21121 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21122
21123         * ComboBox.cs: Some CB.ObjectCollection methods must throw
21124         ArgumentNullReferenceException when the argument is null.
21125
21126 2006-08-21  Jackson Harper  <jackson@ximian.com>
21127
21128         * Timer.cs: Track the thread that the timer is started in (NOT
21129         CREATED), this way messages for it will only be triggered on its
21130         queue.
21131         * XEventQueue.cs: Track the timers here, this makes timers per
21132         thread, like MS.
21133         * XplatUIX11.cs: The timers are moved to the XEventQueue.
21134
21135 2006-08-19  Chris Toshok  <toshok@ximian.com>
21136
21137         * XplatUIX11.cs: after further communication with pdb, we get the
21138         best of both worlds.  SetZOrder working for un-Mapped windows, and
21139         no X errors for un-mapped windows.
21140
21141 2006-08-19  Chris Toshok  <toshok@ximian.com>
21142
21143         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
21144         as it was causing pdn toolbars to not have the correct stacking.
21145
21146 2006-08-18  Mike Kestner  <mkestner@novell.com> 
21147
21148         * ListView.cs : guard against negative ClientArea.Width in scrollbar
21149         calculation.  Not sure why control should ever be setting a negative
21150         width though.  Fixes #78931.
21151
21152 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21153
21154         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
21155         null items in ObjectCollection class.
21156         * ListBox.cs.: Likewise.
21157
21158 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
21159
21160         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
21161           as the base method in ThemeWin32Classic should work fine.
21162           Fixed bug #78607.
21163
21164 2006-08-18  Jackson Harper  <jackson@ximian.com>
21165
21166         * Binding.cs: When validating if the value entered doesn't convert
21167         properly reset to the old value.
21168         * RadioButton.cs: Don't fire click when we get focus.
21169
21170 2006-08-18  Jackson Harper  <jackson@ximian.com>
21171
21172         * FileDialog.cs: Paint the selection on the directory combobox the
21173         same way as on MS. 
21174
21175 2006-08-17  Jackson Harper  <jackson@ximian.com>
21176
21177         * ErrorProvider.cs: Don't allow the error control to be selected.
21178         * Control.cs: Don't send the SetFocus messages, the control
21179         activation will do this, and if we do it blindly here validation
21180         does not work.
21181
21182 2006-08-17  Jackson Harper  <jackson@ximian.com>
21183
21184         * Control.cs:
21185         * ContainerControl.cs: Make validation events fire in the correct
21186         order.  TODO: For some reason the first validation event is not
21187         getting fired.
21188
21189 2006-08-17  Mike Kestner  <mkestner@novell.com> 
21190
21191         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
21192
21193 2006-08-17  Mike Kestner  <mkestner@novell.com> 
21194
21195         * ComboBox.cs : implement scroll wheel support for popped-down
21196         state. Fixes #78945. 
21197
21198 2006-08-17  Jackson Harper  <jackson@ximian.com>
21199
21200         * TreeView.cs: Specify treeview actions (old patch that didn't get
21201         committed for some reason).
21202         - Don't let the mouse wheel scroll us too far.  Just want to make
21203         the bottom node visible, not scroll it all the ways to the top.
21204
21205 2006-08-17  Jackson Harper  <jackson@ximian.com>
21206
21207         * XplatUIX11.cs: Mouse wheel events go to the focused window.
21208
21209 2006-08-17  Mike Kestner  <mkestner@novell.com> 
21210
21211         * ComboBox.cs : don't do mouseover selection in simple mode.
21212
21213 2006-08-16  Jackson Harper  <jackson@ximian.com>
21214
21215         * Form.cs: Fire the closing events for all the mdi child windows
21216         when a window is closed.  If the cancel args are set to true, the
21217         main window still gets the event fired, but it doesn't not close.
21218         * MdiWindowManager.cs: Do this closing cleanup in a Closed
21219         handler, instead of when the button is clicked, so cancelling the
21220         close works correctly.
21221         * ComboBox.cs: Send the mouse down to the scrollbar.
21222
21223 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21224
21225         * ListBox.cs: When passing 'null' to SelectedItem,
21226         set SelectedIndex to -1, to unselect items. This is the
21227         observed behaviour in .Net.
21228
21229 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
21230
21231         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
21232           MS flags saying there won't be any. (fixes #78800)
21233         * Control.cs (HandleClick): Made virtual
21234
21235 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
21236
21237         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
21238           cultures. Fixed bug #78399.
21239
21240 2006-08-16  Jackson Harper  <jackson@ximian.com>
21241
21242         * Form.cs: Use the MdiClients MdiChildren property to access
21243         MdiChildren instead of creating the array from the child controls.
21244         * MdiClient.cs: Maintain a separate array of the mdi children, so
21245         that insertion order is maintained when the Z-order is changed.
21246
21247 2006-08-16  Mike Kestner  <mkestner@novell.com> 
21248
21249         * ListView.cs : add an ItemComparer and default to it for sorting.
21250         Fixes #79076, but sorting needs a complete overhaul to be compat with
21251         MS.
21252
21253 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
21254
21255         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
21256
21257 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
21258
21259         * Hwnd.cs (Mapped): Properly traverse the tree
21260
21261 2006-08-15  Chris Toshok  <toshok@ximian.com>
21262
21263         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
21264         pass manager.Current.GetType() to ParseData.  It has to be the
21265         property type.  So, hold off doing the ParseData until we're in
21266         SetPropertyValue where we know the type.  This fixes the crash in
21267         #78821 but the textbox is still empty.
21268
21269 2006-08-15  Chris Toshok  <toshok@ximian.com>
21270
21271         * DataGrid.cs:
21272         - when we're scrolling, only call Edit() again if the
21273         current cell is still unobscured. Fixes bug #78927.
21274         - when handling mousedown on a cell, ensure the cell is visible
21275         before calling Edit.
21276         - remove the properties from DataGridRow, and remove the
21277         DataGridParentRow class altogether.
21278         
21279
21280 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
21281
21282         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
21283           fire OnTextChanged by ourselves. There's no point calling base,
21284           we don't set the base value anywhere else. Fixes #78773.
21285
21286 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21287
21288         * ListBox.cs: Call CollectionChanged when modifying
21289         an item from Items indexer, to update the actual items
21290         in the list box.
21291
21292 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21293
21294         * PrintDialog.cs: Small fixes for focus and a pair of checks,
21295         to match .Net behaviour.
21296
21297 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
21298
21299         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
21300
21301 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
21302
21303         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
21304
21305 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
21306
21307         * MessageBox.cs: Prevent potential NRE exception.
21308         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
21309
21310 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
21311
21312         * MessageBox.cs: Calculate the owner of a messagebox, also make
21313           it topmost. Fixes #78753
21314
21315 2006-08-14  Chris Toshok  <toshok@ximian.com>
21316
21317         * XplatUIX11.cs: A couple of fixes so that metacity will let us
21318         programmatically move windows.  first, set the PPosition hint as
21319         well as the USPosition hint.  Second include some code from pdb
21320         that sets the window type to NORMAL when we set the transient for
21321         hint.  This is because, in the absence of a window type, metacity
21322         thinks any window with TransientFor set is a dialog, and refuses
21323         to let us move it programmatically.  fascists.
21324
21325 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
21326
21327         * XplatUIX11.cs: When setting normal hints, take into consideration
21328           an different hints previously set so we don't delete them (fixes #78866)
21329
21330 2006-08-12  Chris Toshok  <toshok@ximian.com>
21331
21332         * ToolBarButton.cs: make Layout return a boolean, if something to
21333         do with the button's layout changed.
21334
21335         * ToolBar.cs:
21336         - add another parameter to Redraw, @force, which all existing
21337           calls set to true.
21338         - make the Layout function return a boolean which is true if the
21339           layout has actually changed.  Redraw now uses this (and @force)
21340           to determine when to invalidate.  At present the only place
21341           where @force can be false is the call from OnResize, when
21342           background_image == null.  So, resizing a toolbar when the
21343           layout doesn't change results in no drawing.
21344
21345 2006-08-12  Chris Toshok  <toshok@ximian.com>
21346
21347         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
21348         the VScrollBar and HScrollbar reversed.  oops.
21349
21350         * DataGrid.cs: fix the logic that assigns sizes to the implicit
21351         scrollbars.  we were assigning them twice (once in
21352         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
21353         therefore causing two scrollbar resizes (and redraws?) to happen
21354         per grid resize.
21355
21356 2006-08-12  Chris Toshok  <toshok@ximian.com>
21357
21358         * ToolBarButton.cs: redraw the entire button if the theme tells us
21359         to.
21360
21361         * Theme.cs: add ToolBarInvalidateEntireButton.
21362
21363         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
21364         buttons, just the border.
21365
21366         * ThemeNice.cs: redraw the entire toolbar button since we need to
21367         draw the highlight image.
21368
21369         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
21370         we need to redraw the entire button (not just the border).
21371
21372 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
21373
21374         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
21375           for vertical bars. Fixes the mismatches shown by #78513
21376
21377 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
21378
21379         * FileDialog.cs: If a saved/remembered path doesn't exist
21380           anymore, fall back to "Desktop".
21381
21382 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
21383
21384         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
21385           parent. It's apparently legal to not have one
21386         * XplatUIX11.cs:
21387           - SetZOrder: Don't try to set Z-Order on an unmapped window
21388           - CreateWindow: 0,0 are legal coordinates for a window. don't move
21389             it unless the coordinates are negative
21390
21391 2006-08-10  Mike Kestner  <mkestner@novell.com>
21392
21393         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
21394         when setting to null per msdn docs.  Fixes #78854.
21395
21396 2006-08-10  Chris Toshok  <toshok@ximian.com>
21397
21398         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
21399         flickering by setting a clip rectangle on the Graphics when we
21400         need to redraw just a particular menuitem.  Also, rename "OnClick"
21401         to "OnMouseDown" to reflect what it actually is.
21402         
21403         * Form.cs: track the OnMouseDown change.
21404
21405 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
21406
21407         * CommonDialog.cs: Properly inherit the CreateParams from the form
21408           and only change what we need. Fixes #78865
21409
21410 2006-08-10  Chris Toshok  <toshok@ximian.com>
21411
21412         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
21413         flickering in flat mode (and most of the flickering in general) by
21414         only invalidating the button border (and not the entire rectangle)
21415         when the state changes.  A couple of cases still flicker:
21416         ToggleButtons, and the dropdown arrow case when the user mouse
21417         ups.
21418
21419 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
21420
21421         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
21422           for german keyboards. Numlock state shouldn't affect the behaviour
21423           of the Del key. Fixes bug #78291.
21424
21425 2006-08-10  Chris Toshok  <toshok@ximian.com>
21426
21427         * ListControl.cs: remove the items.Clear line from BindDataItems,
21428         as this is the first thing done by both subclasses in their
21429         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
21430         passed -1, refresh the list.  This gets databinding working when
21431         the datasource is set on the list before the datasource is
21432         populated (as in wf-apps/ReportBuilder.)
21433
21434         * ComboBox.cs: remove the argument to BindDataItems.  This call
21435         should really go away, and be initiated by the ListControl code.
21436
21437         * ListBox.cs: same.
21438
21439 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
21440
21441         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
21442           if no data is in the document when the control is displayed
21443
21444 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
21445
21446         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
21447           yes (fixes #78806)
21448         * TextControl.cs: 
21449           - PositionCaret: Allow positioning of caret but don't call methods 
21450             requiring a handle if the window isn't created yet
21451           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
21452           - owner_HandleCreated: Don't position the caret, just update it's 
21453             location. User might have already set a different position
21454
21455 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
21456
21457         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
21458           windows. Screws up the returned coordinates for child windows. 
21459           Fixes #78825. I'm hoping this doesn't break something, since the
21460           code was explicitly put in 8 months ago, but no bug was attached.
21461           Menus still seem to work properly.
21462
21463 2006-08-08  Chris Toshok  <toshok@ximian.com>
21464
21465         * DataGrid.cs: make BeginInit/EndInit actually do what they're
21466         supposed to do - delay data binding until the EndInit call.  Also,
21467         make the table style collection's CollectionChangeAction.Refresh
21468         work properly.
21469
21470         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
21471         (with action = Refresh) when a consituent table's MappingName is
21472         changed.
21473
21474 2006-08-08  Chris Toshok  <toshok@ximian.com>
21475
21476         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
21477         Invalidate, since changing the text can change the size of the all
21478         toolbar buttons.
21479
21480 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
21481
21482         * Form.cs (AddOwnedForm): Still need to add the form to our listif
21483           we don't have it yet
21484
21485 2006-08-08  Chris Toshok  <toshok@ximian.com>
21486
21487         * PrintControllerWithStatusDialog.cs: don't .Close() the status
21488         dialog, as this causes X errors later on, since we actually
21489         destroy the window.  Instead, .Hide() it.
21490
21491 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
21492
21493         * ComboBox.cs: Added focus reflection for popup window
21494         * XplatUIX11.cs: 
21495           - Removed transient setting for non-app windows for now, not sure it
21496             was needed
21497           - Fixed logic checking if we have captions when deciding 
21498             override_redirect, WS_CAPTION is two bits and a 0 check was not
21499             sufficient
21500           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
21501             complicated
21502         * Form.cs: 
21503           - AddOwnedForm: Don't just add the form to the list, call the property
21504             to ensure the driver is informed about the ownership as well
21505           - CreateHandle: Set the TopMost status in the driver if we have an owner
21506         * XplatUI.cs: Fixed debug statement
21507
21508 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
21509         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
21510           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
21511           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
21512           TrackBarRenderer.cs: Make constructor private.
21513         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
21514         * ProfessionalColorTable.cs: Make properties virtual.
21515
21516 2006-08-06  Duncan Mak  <duncan@novell.com>
21517
21518         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
21519         is not changing.
21520
21521 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
21522         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
21523           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
21524           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
21525           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
21526           Initial import of new 2.0 classes.
21527
21528 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
21529         * Application.cs: Add 2.0 VisualStyles properties.
21530
21531 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
21532         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
21533           XplatUIX11.cs: Create property to allow access to existing private
21534           variable "themes_enabled"
21535
21536 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21537
21538         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
21539         file size, as otherwise our class libraries fail using windows. Fixes
21540         bug #78759.
21541
21542 2006-08-04  Jackson Harper  <jackson@ximian.com>
21543
21544         * Form.cs:
21545         * XplatUIX11.cs: Move the toolwindow window manager creation into
21546         the X11 driver, this way on win32 we can let windows create/handle
21547         the toolwindows.
21548
21549 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21550
21551         * PrintDialog.cs: Remove some redundant checks, add some others,
21552         clean some code, and move the focus to the text boxes when the
21553         values are incorrect.
21554
21555 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
21556
21557         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
21558
21559 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
21560
21561         * NumericUpDown.cs: Setting the Minimum and Maximum is now
21562           handled correctly. Fixes bug #79001.
21563
21564 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21565
21566         * PrintDialog.cs: The "Copies" numeric up down must have
21567         set the Minimum property to 1; only if the value is bigger
21568         than 1, activate "Collate" check box. This is the behaviour of .Net.
21569         Also modify the Document elements only if it is not null.
21570
21571 2006-08-03  Jackson Harper  <jackson@ximian.com>
21572
21573         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
21574         length. (We have a larger array then actual node count).
21575                 
21576 2006-08-03  Jackson Harper  <jackson@ximian.com>
21577
21578         * ComboBox.cs: Don't show selection by default.
21579         - The SelectAll isn't needed here, since the focus code should do
21580         that
21581         - DDL style lists to manual selection drawing, so when they
21582         get/lose focus they have to invalidate.
21583
21584 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
21585
21586         * TextBoxBase.cs: Don't always show all selections by default.
21587
21588 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
21589         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
21590           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
21591           Fixed various typos.
21592
21593 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
21594
21595         * Control.cs: Removing the controls in a ControlCollection with
21596           Clear now hides the controls as expected. Fixes bug #78804. 
21597
21598 2006-08-03  Jackson Harper  <jackson@ximian.com>
21599
21600         * Control.cs: Revert previous focus patch, it breaks reflector.
21601
21602 2006-08-03  Jackson Harper  <jackson@ximian.com>
21603
21604         * ComboBox.cs: Cleanup selection and focus with the combobox.
21605         This also eliminates some duplicated keyboard code, since now
21606         everything is handled by the main class.
21607         - Make list selection work on mouse up instead of down, to match
21608         MS.
21609
21610 2006-08-02  Jackson Harper  <jackson@ximian.com>
21611
21612         * Control.cs: Setting focus needs to go through the whole
21613         selection mechanism.
21614
21615 2006-08-02  Chris Toshok  <toshok@ximian.com>
21616
21617         * PrintPreviewDialog.cs: change MinimumSize to use
21618         base.MinimumSize so it works.
21619
21620 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
21621
21622         * TextControl.cs:
21623           - UpdateCaret: Added sanity check in case caret isn't defined yet
21624           - Line.Delete: Now updating selection and caret markers if we're
21625             transfering a node (Properly fixes #78323)
21626           - SetSelectionEnd: Added sanity check
21627         * TextBoxBase.cs: Removed broken attempt to fix #78323
21628
21629 2006-08-01  Chris Toshok  <toshok@ximian.com>
21630
21631         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
21632         Close() call is handled in Form, not here.
21633
21634 2006-08-01  Chris Toshok  <toshok@ximian.com>
21635
21636         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
21637         layout/rendering.
21638
21639         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
21640         for sizes < 100% zoom.  The code now aggressively attempts to keep
21641         from calling document.Print (), and tries not to use the scaling
21642         g.DrawImage whenever possible (it still does if you scale to >
21643         100%, since usually that involves huge images).
21644
21645         * PrintPreviewControl.cs: hook up the close button.
21646
21647 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
21648         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
21649           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
21650           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
21651           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
21652           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
21653           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
21654           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
21655           Removed [Serializable] for 2.0 Event Handlers.
21656
21657 2006-07-31  Jackson Harper  <jackson@ximian.com>
21658
21659         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
21660         * TextControl.cs: Uncomment out the body of this method.
21661
21662 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
21663
21664         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
21665           standard cursors.
21666
21667 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
21668
21669         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
21670           that embed TextBox and need selections visible even if textbox is not
21671           focused to enforce that behaviour.
21672         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
21673           selection drawing
21674
21675 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
21676
21677         * TextControl.cs:
21678           - Added new SetSelectionStart/SetSelectionEnd overloads
21679           - Fixed viewport width assignment to be accurate
21680           - Adjusted alignment line shift calculations to allow cursor on right
21681             aligned lines to be always visible at the right border (like MS)
21682         * TextBoxBase.cs:
21683           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
21684           - TextBoxBase_SizeChanged: recalculating canvas on size changes
21685           - CalculateScrollBars: Use ViewPort size instead of window size, to
21686             properly consider space occupied by the border and scrollbars 
21687             (Fixes #78661)
21688           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
21689             calculations; no longer leaves artifacts
21690           - CaretMoved: Adjusted window scrolling to match MS and fixed several
21691             calculation bugs (Still missing right/center align calculations)
21692
21693 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
21694
21695         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
21696           use of both scroll rect and clip rect, as they do the same.
21697
21698 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
21699
21700         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
21701           in the event handler (fixes #78912)
21702
21703 2006-07-31  Chris Toshok  <toshok@ximian.com>
21704
21705         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
21706         grid.ListManager.Count, since grid.ListManager might be null.
21707         This of course begs the question "why are we drawing rows for a
21708         grid with no list manager (and therefor no rows)?"  Fixes the
21709         crash in bug #78929.
21710
21711 2006-07-31  Chris Toshok  <toshok@ximian.com>
21712
21713         * RelatedPropertyManager.cs: Don't always chain up to the parent
21714         ctor.  instead, call SetDataSource if the parent's position is !=
21715         -1.  Fixes the crash in #78822.
21716
21717 2006-07-31  Chris Toshok  <toshok@ximian.com>
21718
21719         * DataGrid.cs (get_ListManager): use field instead of property
21720         accessors for datasource and datamember.
21721         (RowsCount): make internal again.
21722         (OnMouseDown): end edits before resizing columns/rows.
21723         (OnMouseUp): restart edits after resizing columns/rows.
21724
21725 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
21726
21727         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
21728           This fixes the situation where the last set cursor is displayed
21729           whenever the mouse is over scrollbars.
21730
21731 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21732
21733         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
21734         Document properties, as well as initial values.
21735
21736 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
21737
21738         * XplatUIWin32.cs (SetBorderStyle): Setting both border
21739           and ClientEdge results in a 3-pixel border, which is
21740           wrong.
21741
21742 2006-07-28  Jackson Harper  <jackson@ximian.com>
21743
21744         * TreeNodeCollection.cs: Fix the clear method.
21745         - Fix the Shrink also
21746
21747 2006-07-27  Jackson Harper  <jackson@ximian.com>
21748
21749         * TreeView.cs: Make sure the visible order is computed when we
21750         attempt to size the scrollbars (for trees that mess with the
21751         scrolling when they shouldn't.
21752         - Make sure to give the scrollbars valid values.
21753
21754 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
21755
21756         * XplatUIX11.cs: Move motion compression code to where it
21757           has less performance impact
21758
21759 2006-07-26  Jackson Harper  <jackson@ximian.com>
21760
21761         * UpDownBase.cs: When the control is selected make the child
21762         controls non selectable, so that a click on them won't do a
21763         focus/unfocus cycle.
21764         - Don't give focus to the text box when the spinner is selected.
21765         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
21766
21767 2006-07-26  Chris Toshok  <toshok@ximian.com>
21768
21769         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
21770         satisfied with this solution.  If the bitmaps are small, we should
21771         just cache them in the PrintPreviewDialog and draw them here.
21772         Also, the layout is broken for the 2-up and 3-up cases.
21773
21774         * Theme.cs: add PrintPReviewControlPaint.
21775
21776         * PrintPreviewDialog.cs: first pass implementation.
21777
21778         * PrintPreviewControl.cs: first pass implementation.  No
21779         scrollbars yet.
21780
21781         * PrintDialog.cs: only validate fields if that particular portion
21782         of the UI is enabled.  Also, set the document's controller to a
21783         PrintControllerWithStatusDialog wrapping the document's print
21784         controller.
21785
21786         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
21787         bring up a SaveFileDialog (i hope we don't want to match the
21788         behavior of the crappy windows file entry) and set the
21789         PrinterSettings.PrintFileName accordingly.
21790
21791 2006-07-26  Jackson Harper  <jackson@ximian.com>
21792
21793         * ContainerControl.cs: Add a field that disables auto selecting
21794         the next control in a container when the container is activated.
21795         * UpDownBase.cs: Don't select the text box when the up down is
21796         selected.
21797
21798 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
21799
21800         * XEventQueue.cs: Added methods for peeking (used for compression
21801           of successive events)
21802         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
21803           mouse move events (fixes #78732)
21804
21805 2006-07-25  Jackson Harper  <jackson@ximian.com>
21806
21807         * UpDownBase.cs: Use an internal class for the textbox so that we
21808         can control focus.  the updown control should always have focus,
21809         if either the text area or the buttons are clicked.
21810         - Send the key messages to the textbox, since it never actually
21811         has focus
21812         - Activate and decativate the textbox caret.
21813
21814 2006-07-24  Jackson Harper  <jackson@ximian.com>
21815
21816         * Control.cs: Use the directed select when selecting a control,
21817         this way the container controls override will get called and the
21818         whole ActiveControl chain will get triggered.  TODO: probably need
21819         to make sure this gets done everywhere instead of the old
21820         Select(Control).
21821         * ContainerControl.cs: Implement the directed Select method to
21822         find and activate the correct child control.    
21823         
21824 2006-07-22  Mike Kestner  <mkestner@novell.com>
21825
21826         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
21827         menu handling code so that clicks without a grab work too.
21828         [Fixes #78914]
21829
21830 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
21831
21832         * FileDialog.cs: Enable the BackButton when dirstack has one element.
21833           Added some small optimizations.
21834
21835 2006-07-21  Matt Hargett  <matt@use.net>
21836
21837         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
21838
21839 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
21840
21841         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
21842           tests pass and match MS in some strange border cases.
21843
21844 2006-07-21  Chris Toshok  <toshok@ximian.com>
21845
21846         * ThemeWin32Classic.cs: handle drawing of the relation links and
21847         parent row buttons.
21848
21849         * Theme.cs: change args to DataGridPaintParentRow.
21850
21851         * DataGrid.cs: Don't use controls for the relation links and
21852         parent buttons, so we have to handle all their interactions in
21853         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
21854         when we're navigating through child tables, so we can reinstate
21855         selection, expanded state, current cell, etc.
21856
21857 2006-07-20  Chris Toshok  <toshok@ximian.com>
21858
21859         * ToolBar.cs: When we redraw a button, for whatever reason,
21860         there's no reason to redraw the entire toolbar.  Also, don't call
21861         Control.Refresh from within Redraw, as it's much heavier than
21862         Invalidate (which is really what we want).
21863
21864 2006-07-20  Chris Toshok  <toshok@ximian.com>
21865
21866         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
21867         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
21868         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
21869         traces from within a debug IBindingList datasource
21870         (in mono/winforms/datagrid) for *days*, I've finally gotten things
21871         to work in a similar fashion.
21872
21873 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21874
21875         * ListBox.cs: Don't call Sort () when setting 
21876         the Sorted property to false (avoid an unnecessary sort).
21877
21878 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21879
21880         * ListControl.cs: DataSource should throw an ArgumentException
21881         instead of a normal exception when the argument is not of the 
21882         correct type.
21883
21884 2006-07-20  Mike Kestner  <mkestner@novell.com>
21885
21886         * Control.cs: add InternalPreProcessMessage to allow us to steal
21887         key events before MWF gets its paws on them.  Adapted from a
21888         suggestion by eno.
21889         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
21890         up/down/left/right navigation. Override the new internal control
21891         method to steal the events since they never make it to WndProc.
21892         * ToolBarButton.cs: don't worry about pushed when setting hilight
21893         since the drawing code prefers pushed to hilight. Invalidate on 
21894         Hilight changes. Fixes #78547 and #78525.
21895
21896 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
21897
21898         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
21899           the canvas size. Fixes #78868
21900
21901 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
21902
21903         * Splitter.cs: Track requested split position until first layout
21904           is performed. Fixes #78871
21905
21906 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
21907
21908         * Application.cs: Removed code that forces 1.x for the version
21909           number if the version started with 0. Not sure why that code was
21910           there and I couldn't find any bugs that indicated we needed it.
21911           Fixes #78869
21912
21913 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
21914
21915         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
21916           ResetDefaults(), just write some output to the console until it's
21917           implemented. Fixes bug #78907 for now. Eliminated two warnings.
21918
21919 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
21920
21921         * PropertyGridView.cs: set StartPosition of drop down forms
21922         so they appear in correct initial spot.  Fixes #78190.
21923
21924 2006-07-19  Mike Kestner  <mkestner@novell.com>
21925
21926         * ThemeWin32Classic.cs: use parent background color when drawing
21927         flat toolbars.  Restructure the conditionals to make sure non-flat
21928         non-Divider toolbars are filled too.  Fixes #78837.
21929
21930 2006-07-19  Mike Kestner  <mkestner@novell.com>
21931
21932         * ListBox.cs: Sort on collection changes even if the handle
21933         isn't created yet.  Fixes #78813.
21934
21935 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21936
21937         * ListControl.cs: DisplayMember should never be null,
21938         and now we assign String.Empty when null is passed to it (this
21939         is the .Net way).
21940
21941 2006-07-17  Mike Kestner  <mkestner@novell.com>
21942
21943         * ListViewItem.cs: restructure Font and subitem Font handling 
21944         to hold a specific font and refer back to owner on null.
21945         Fixes #78761.
21946
21947 2006-07-17  Mike Kestner  <mkestner@novell.com>
21948
21949         * ToolBar.cs: bandaid for side-effect of previous patch which was
21950         discarding explicit heights for non-AutoSize toolbars.  Need to
21951         extend my format tester to deal with AutoSize=false. Fixes #78864.
21952
21953 2006-07-15  Jackson Harper  <jackson@ximian.com>
21954
21955         * LabelEditTextBox.cs:
21956         * TreeView.cs: Use a new LabelEdit class for node editing, this
21957         class automatically 'closes' itself when it gets the enter key or
21958         loses focus.
21959         - Use the client rectangle when setting the trees scrollbars, so
21960         border style is taken into account.
21961         
21962 2006-07-14  Jackson Harper  <jackson@ximian.com>
21963
21964         * TreeNode.cs:
21965         * TreeView.cs: Make the editing work similar to MSs, firing the
21966         events correctly and ending edits correctly.
21967
21968 2006-07-14  Mike Kestner  <mkestner@novell.com>
21969
21970         * ToolBarButton.cs:
21971         * ToolBar.cs: layout restructuring and redraw enhancements to support
21972         formatting changes gracefully, like setting TextAlign, ImageList, 
21973         ButtonSize, and Appearance.  Handles explicit button sizing quirks
21974         of the MS controls.  Things like flat toolbars ignoring button size
21975         but becoming constant sized at the largest button's size.  Normal
21976         toolbars with an image set cannot be shrunk smaller than the image,
21977         but text can be clipped/ignored.
21978         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
21979         is zero.  Seems like DrawString should be smart enough to not put
21980         anything on screen though. Also trim labels and ellipsize at the char
21981         boundary, not word.
21982         Fixes #78711 and #78483.
21983
21984 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
21985
21986         * FolderBrowserDialog.cs: Disable "New Folder" button and
21987           "New Folder" contextmenu menuitem if a folder like "My Computer"
21988           is selected.
21989
21990 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
21991
21992         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
21993         * FolderBrowserDialog.cs:
21994           - Use MWFConfig to store and read size and position settings
21995           - Added code to create a new folder (button or context menu).
21996             Use TreeView labeledit to change the name of the new folder.
21997
21998 2006-07-14  Jackson Harper  <jackson@ximian.com>
21999
22000         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
22001         when the tree is scrolled we end editing.
22002
22003 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
22004
22005         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
22006           Down arrows
22007
22008 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
22009
22010         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
22011         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
22012         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
22013         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
22014         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
22015         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
22016         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
22017         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
22018         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
22019         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
22020         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
22021         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
22022         ListViewItemSelectionChangedEventHandler.cs,
22023         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
22024         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
22025         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
22026         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
22027         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
22028         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
22029         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
22030         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
22031         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
22032         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
22033         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
22034         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
22035         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
22036         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
22037         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
22038         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
22039         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
22040         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
22041         WebBrowserNavigatingEventHandler.cs, 
22042         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
22043
22044 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
22045
22046         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
22047         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
22048         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
22049         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
22050         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
22051         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
22052         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
22053         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
22054         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
22055         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
22056         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
22057         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
22058         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
22059         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
22060         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
22061         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
22062         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
22063         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
22064         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
22065         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
22066         ListViewItemStates.cs, MaskFormat.cs: Added
22067
22068 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
22069
22070         * PropertyGridView.cs: Fix keyboard navigation of drop down.
22071         Patch from eno for bug 78558.
22072         
22073 2006-07-13  Jackson Harper  <jackson@ximian.com>
22074
22075         * TreeView.cs: When an edit is finished make sure that the
22076         selected node is visible.
22077         - When setting the top/bottom use the scrollbars is_visible, so
22078         everything will be set correctly even if the tree isn't visible
22079         yet.
22080
22081 2006-07-13  Jackson Harper  <jackson@ximian.com>
22082
22083         * ComboBox.cs: Revert the item->index part of my previous patch.
22084         * TreeView.cs: Use LostFocus instead of Leave for detecting when
22085         the edit box has lost focus (duh).
22086         - Just make the edit box not visible when we get return, that will
22087         take the focus, which will call EndEdit
22088         * TreeNode.cs When we start editing, notify the treeview.
22089
22090 2006-07-12  Jackson Harper  <jackson@ximian.com>
22091
22092         * ComboBox.cs: Clear out old items before setting the item list.
22093         This prevents databound controls from having their items added
22094         twice.
22095         - Switch the combobox to use indices whereever possible instead of
22096         using Item's.  This allows usto navigate through lists that have
22097         more then one item with the same string value (ie a, b, b, a).
22098         - Scroll the listboxes scrollbar when a non visible item is
22099         highlighted
22100         - Allow keypress to cycle through all the possible values. For
22101         example if you have b1, b2, b3 and hold down the B key all the
22102         values will be cycled through.
22103         
22104 2006-07-12  Jackson Harper  <jackson@ximian.com>
22105
22106         * TextBoxBase.cs:
22107         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
22108         this using the internal methods.
22109         * Control.cs: Add OnGotFocusInternal.  A new method that allows
22110         controls to "override" OnGotFocus and change focus behavior if
22111         needed.
22112         - Same thing for LostFocus
22113         * ComboBox.cs: Pass off focus to the text control properly.
22114
22115 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
22116
22117         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
22118         * FolderBrowserDialog.cs: Almost a complete rewrite.
22119           - Better support for Environment.Specialfolders
22120           - Added support for MWFVFS
22121           - Made setting SelectedPath work
22122
22123 2006-07-12  Jackson Harper  <jackson@ximian.com>
22124
22125         * Control.cs: Optimze getting all the controls.
22126
22127 2006-07-11  Jackson Harper  <jackson@ximian.com>
22128
22129         * ContainerControl.cs: Override SETFOCUS in the container control,
22130         so that it is not selected on mouse click.
22131
22132 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
22133
22134         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
22135           Hopefully we will have a better way once all of focus is complete.
22136
22137 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
22138
22139         * ThemeWin32Classic.cs: Commented out some debug code and fixed
22140           a compile error with csc.
22141
22142 2006-07-11  Jackson Harper  <jackson@ximian.com>
22143
22144         * Control.cs: When hiding a control only select the next control
22145         if the current control was focused.
22146         - Don't handle enter/leave when setting/killing focus, this is
22147         done by the container control.
22148         - Remove is_selected, it's not needed anymore.
22149         - Add utility methods for selecting a child control, and for
22150         firing the Enter/Leave events.
22151         * ContainerControl.cs: When a control is activated fire the
22152         enter/leave events.
22153         - Don't wrap when processing the tab key, so that focus can be
22154         moved outside of the container.
22155         - Use the correct active control
22156
22157 2006-07-11  Jackson Harper  <jackson@ximian.com>
22158
22159         * ComboBox.cs: Remove some debug code that was blinding me.
22160         * UpDownBase.cs: These controls actually aren't implicit, they are
22161         visible to the user.
22162
22163 2006-07-10  Chris Toshok  <toshok@ximian.com>
22164
22165         * DataGrid.cs: move back to the is_adding boolean field.  god i
22166         hate this is_editing/is_adding/is_changing stuff.
22167
22168 2006-07-10  Chris Toshok  <toshok@ximian.com>
22169
22170         * DataGridTableStyle.cs: just check if the property type is bool.
22171         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
22172         Don't use CanRenderType.
22173
22174         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
22175         if our text == NullText.  Remove CanRenderType.
22176
22177         * DataGridBoolColumn.cs: nuke CanRenderType.
22178
22179         * DataGrid.cs: reenable some code to end the current edit inside
22180         of set_CurrentCell.  This fixes the other 1.1.16 regression.
22181         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
22182         Also, remove the visible_row_count arg from CalcRowHeaders, since
22183         we don't need to worry about the actual height of the area.
22184
22185 2006-07-10  Chris Toshok  <toshok@ximian.com>
22186
22187         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
22188         mode, just return.
22189
22190         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
22191         the real sense of the IsInEditOrNavigateMode property (true =
22192         navigate, false = edit).  Also, update OnKeyPress to reflect this.
22193
22194         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
22195         column style exists, we still need to set its property descriptor
22196         to match up with our list manager.
22197
22198 2006-07-10  Chris Toshok  <toshok@ximian.com>
22199
22200         * ThemeWin32Classic.cs: implement the new row/header painting
22201         approach.  The parent row painting will likely go away and
22202         replaced with label controls, but the rest seems to work ok (and
22203         efficiently).
22204
22205         * Theme.cs: change the way we draw datagrid rows.  we don't draw
22206         the row headers as a block now.  Instead we draw them in the
22207         normal draw-row loop.  Add some calls for drawing parent rows and
22208         relation rows.
22209
22210         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
22211         a default table style.  Set the defaults from ThemeEngine.Current,
22212         not SystemColors.  Fix lots of misc issues with property setters.
22213
22214         * DataGrid.cs: move loads of style information out of this class
22215         as it's being duplicated with DataGridTableStyle.  keep track of a
22216         special DataGridTableStyle for the properties we used to mirror
22217         here.  Switch all the style properties to access this table style
22218         instead of instance fields of this class.  Also add a internal
22219         class to represent parent rows (more needs to be stored here, like
22220         the selection state from the parent table, as well as the
22221         expansion state.)  Also, for datasources with relations, do the
22222         right thing for collapse/expand, and add support for the
22223         navigation/parent row buttons.
22224
22225         Lastly, fix the crash in the 1.1.16 build.
22226
22227         * GridTableStylesCollection.cs: make the explicit interface
22228         implementations call the class's methods as opposed to duplicating
22229         them.
22230
22231         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
22232         0 so the text doesn't jump around when we move the cursor.
22233
22234 2006-07-10  Jackson Harper  <jackson@ximian.com>
22235
22236         * TextBoxBase.cs:
22237         * ListBox.cs: Match MS's ToString (this makes debugging focus
22238         stuff infinitely easier).
22239
22240 2006-07-10  Jackson Harper  <jackson@ximian.com>
22241
22242         * Control.cs (SelectNextControl): When checking the control's
22243         parent use this instead of ctrl.parent so that null can be passed
22244         to SelectNextControl. (I have unit tests for this).
22245         - Remove unused var.
22246
22247 2006-07-10  Chris Toshok  <toshok@ximian.com>
22248
22249         * CurrencyManager.cs: correct one regression, the removal of the
22250         finalType field.  Also, add a MonoTODO on CanAddRows, implement
22251         Refresh() correctly, and fix some event emission in
22252         ListChangedHandler.
22253
22254 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
22255
22256         * FileDialog.cs: Don't use brackets for new folders if they exist
22257           under *nix. Instead use -(number of existing folders +1).
22258
22259 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
22260
22261         * FileDialog.cs:
22262           - Fixed really nasty bug #78771
22263           - Don't block the whole GUI when reading directories with a lot of
22264             entries. Use an other thread instead and call BeginInvoke to
22265             update the ListView in MWFFileView
22266
22267 2006-07-07  Chris Toshok  <toshok@ximian.com>
22268
22269         * Control.cs (Dispose): release any Capture when disposing.
22270
22271 2006-07-07  Chris Toshok  <toshok@ximian.com>
22272
22273         * LinkLabel.cs (Select): if we chain up to the parent, set
22274         focused_index to -1 so we'll search for the first available link
22275         the next time the user tabs into us.  Also, if the direction is
22276         backward and focused_index == -1, start the search from the last
22277         element.
22278
22279 2006-07-07  Chris Toshok  <toshok@ximian.com>
22280
22281         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
22282         is beyond the end of the text, don't do anything.
22283         (CreateLinkPieces): set our ControlStyles.Selectable based on
22284         whether or not we have any links.
22285         (Link.Invalidate): use a loop instead of foreach.
22286         (Link.set_Start): null out owner.sorted_links so it'll be
22287         recreated by CreateLinkPieces.
22288
22289 2006-07-06  Chris Toshok  <toshok@ximian.com>
22290
22291         * LinkLabel.cs: revert the SetStyle change.
22292
22293 2006-07-06  Chris Toshok  <toshok@ximian.com>
22294
22295         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
22296         (OnEnableChanged): s/Refresh/Invalidate
22297         (OnGotFocus): if we have a focused index already, refocus it (so
22298         if we mouse out/in to the window it'll focus the right link).
22299         (OnKeyDown): move the tab handling out of here.
22300         (OnLostFocus): don't set focused_index to -1, so we can refocus it
22301         when we lose focus.
22302         (OnMouseDown): don't Capture here - Control handles it.  Also,
22303         focus the active link.
22304         (OnMouseUp): don't deal with Capture.
22305         (OnPaintBackgroundInternal): remove.
22306         (OnTextAlignChanged): CreateLinkPieces before calling the
22307         superclass's method.
22308         (OnTextChanged): call CreateLinkPieces before calling superclass's
22309         method.
22310         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
22311         move around.
22312         (Select): implement this, moving the selection between different
22313         links, and call parent.SelectNextControl if we don't have another
22314         link to focus in the given direction.
22315         (CreateLinkPieces): call Invalidate instead of Refresh.
22316         
22317 2006-07-06  Chris Toshok  <toshok@ximian.com>
22318
22319         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
22320         new LinkLabel internals.
22321
22322         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
22323         over pieces looking for active/focused/etc links.  also, deal with
22324         runs of text (and links) with embedded \n's in them, and use
22325         MeasureCharacterRanges instead of MeasureString to figure out the
22326         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
22327         two-step.
22328
22329 2006-07-04  Jackson Harper  <jackson@ximian.com>
22330
22331         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
22332         XKB or key auto repeat, do it manually.  Without key auto repeat,
22333         when a key is held down we get key press, key release, key press,
22334         key release, ... with auto repeat we get key press, key press, key
22335         press ..., and then a release when the key is actually released.
22336
22337 2006-07-03  Jackson Harper  <jackson@ximian.com>
22338
22339         * TabControl.cs:
22340         * ThemeWin32Classic.cs: Tabs do not obey normal background color
22341         rules, they are always control color regardless of the background
22342         color.
22343
22344 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
22345
22346         * FileDialog.cs: Added internal class MWFConfig.
22347           Removed Registry support and replaced it with support for the new
22348           MWFConfig class. See MWFConfig comments for more information.
22349
22350 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
22351
22352         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
22353           rectangle. Added some patches from eno from bug #78490 and fixed
22354           the arrow position for small up and down CPDrawScrollButtons.
22355
22356 2006-06-30  Jackson Harper  <jackson@ximian.com>
22357
22358         * InternalWindowManager.cs: Remove some debug code.
22359         * Form.cs: When an MdiParent is set to null, the window is
22360         "detatched" and becomes a normal window.
22361         * MdiClient.cs: Don't bring the new child form to the front until
22362         it is activated (setting it as active does this), this makes the
22363         previously active forms titlebar get redrawn as inactive.
22364
22365 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
22366
22367         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
22368           with later controls
22369
22370 2006-06-29  Mike Kestner  <mkestner@novell.com>
22371
22372         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
22373         arrow in keynav state.  Fixes #78682.
22374
22375 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
22376
22377         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
22378           order (fixes #78393)
22379
22380 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
22381
22382         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
22383           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
22384           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
22385           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
22386           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
22387           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
22388           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
22389           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
22390           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
22391           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
22392           enumerations (FlagsAttribute, SerializableAttribute, added/removed
22393           values)
22394
22395 2006-06-28  Mike Kestner  <mkestner@novell.com>
22396
22397         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
22398
22399 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
22400
22401         * PropertyGrid.cs,
22402           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
22403           item lines from other area (It also makes BackColor consistent and
22404           compatible with .NET). Fixed bug #78564.
22405
22406 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
22407
22408         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
22409         Patch from Eno for #78555.
22410
22411 2006-06-27  Chris Toshok  <toshok@ximian.com>
22412
22413         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
22414
22415         * DataGridColumnStyle.cs: same.
22416
22417         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
22418         
22419         * DataGridDrawingLogic.cs: nuke.
22420
22421 2006-06-27  Chris Toshok  <toshok@ximian.com>
22422
22423         * DataGridTableStyle.cs: clean up the constructors, and build the
22424         list of child relations for this table.  I have no idea if this is
22425         where we should be doing it (it probably isn't), but since we're
22426         already iterating over the properties..
22427
22428         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
22429         struct and array for keeping track of row information, similar to
22430         what's shown in a hack on
22431         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
22432
22433         * Theme.cs: be consistent about the naming of DataGrid methods,
22434         prefering ColumnWidths and RowHeights over columnsWidths and
22435         RowsHeights.
22436
22437         * ThemeWin32Classic.cs: same, and also add support for variable
22438         sized rows (and the +/- expansion icons for related rows).
22439
22440 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
22441
22442         * TextBoxBase.cs: Applied Eno's patch from #78660
22443
22444 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
22445
22446         * Form.cs (ScaleCore): We don't want to scale our form if it's
22447           state is minimized or maximized, but we still need to scale our
22448           child windows. Also, added try/finally block to ensure layout
22449           gets reset (Fixes #78697)
22450
22451 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
22452
22453         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
22454
22455 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
22456
22457         * Form.cs: Fixed c+p error and added check to resize form if minimum
22458           size is bigger than current size (Fixes #78709)
22459
22460 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
22461
22462         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
22463
22464 2006-06-26  Mike Kestner  <mkestner@novell.com>
22465
22466         * ComboBox.cs: only do Keypress handling in the combo when there  
22467         are items in the collection. Fixes #78710.
22468
22469 2006-06-26  Chris Toshok  <toshok@ximian.com>
22470
22471         * Binding.cs: make this work bi-directionally.  also, clear up
22472         other mixups between Push/Pull Data (e.g. we're supposed to pull
22473         data when validating).
22474
22475         * BindingManagerBase.cs: trim some fully qualified collection
22476         types.
22477
22478         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
22479
22480 2006-06-23  Chris Toshok  <toshok@ximian.com>
22481
22482         * PropertyManager.cs: It appears (according to the unit tests)
22483         that PropertyManager doesn't use
22484         PropertyDescriptor.AddValueChanged to track propery value changes
22485         in its datasource, but uses the same scheme as Binding, where it
22486         looks for a <Property>Changed event and binds to it.
22487
22488         Also, according to the docs, IsSuspended always returns false for
22489         a property manager with a non-null datasource.
22490
22491 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
22492
22493         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
22494           need to update the actual DialogResult. (Fixes #78613)
22495
22496 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
22497
22498         * Form.cs (ShowDialog): Release any captures before running the
22499           new message pump (fixes #78680)
22500
22501 2006-06-22  Mike Kestner  <mkestner@novell.com>
22502
22503         * ListView.cs: Layout column widths properly in details mode even 
22504         if HeaderStyle.None is set.  Fixes #78691.
22505
22506 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
22507
22508         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
22509
22510 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
22511
22512         * Control.cs (ContainsFocus): Using new driver method to get focused
22513           window, instead of trying to use internal tracking var, which can
22514           recursion issues (Fixes #78685)
22515         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
22516           XplatUIWin32.cs: Added GetFocus method to return focused window
22517
22518 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22519
22520         * ColorDialog.cs: when the mouse button is pressed inside the color
22521         matrix, don't let the cursor move out of it until the button is
22522         released, which is the behavior on windows. Changed 'colours' by
22523         'colors' to use the same word consistently.
22524
22525 2006-06-21  Chris Toshok  <toshok@ximian.com>
22526
22527         * DataGrid.cs: add in some basic navigation stuff (navigating to a
22528         child relation and back, using a stack).  Also, remove
22529         GetDataSource and the code that calls it - it's not needed.  Also,
22530         track CurrencyManager.ListName's removal.
22531
22532 2006-06-21  Chris Toshok  <toshok@ximian.com>
22533
22534         * CurrencyManager.cs: push some of the original type checking from
22535         BindingContext.CreateBindingManager to here, and remove some of
22536         the finalType stuff.  Need more tests to make sure I've got the
22537         ListName part right, and we might need more in SetDataSource.
22538
22539         * PropertyManager.cs: add a ctor that takes just the datasource,
22540         and no property name.  Make SetDataSource work with a null
22541         property_name, and make Current return the data_source if the
22542         property descriptor is null.  this makes 'string foo = "hi";
22543         BindingContext[foo].Current' return "hi" as it should.
22544
22545         * RelatedCurrencyManager.cs: make this code more generic - there's
22546         no reason the parent manager has to be CurrencyManager, and
22547         there's no reason to pass the DataRelation.  It suffices to use a
22548         BindingManagerBase and PropetyDescriptor.
22549
22550         * RelatedPropertyManager.cs: make a similar change here.
22551         
22552         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
22553         flower I knew it could be.
22554
22555 2006-06-20  Chris Toshok  <toshok@ximian.com>
22556
22557         * PropertyManager.cs: the PropertyChangedHandler is invoked when
22558         data in the source has changed and we need to update the control,
22559         so s/PullData/PushData.
22560
22561         * CurrencyManager.cs: Refresh is meant to update the control from
22562         data in the datasource.  So, s/PullData/PushData.
22563
22564         * BindingContext.cs: add more ugliness (we weren't handling the
22565         case where data_source = DataTable and data_member = column_name).
22566
22567         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
22568         from the perspective of the datasource.  PullData pulls from the
22569         control, PushData pushes to the control.
22570
22571 2006-06-20  Chris Toshok  <toshok@ximian.com>
22572
22573         * BindingContext.cs: rewrite the CreateBindingManager code to
22574         handle navigation paths more or less properly.  This could
22575         definitely stand some more work, in particular to push the
22576         recursion up to the toplevel.  But that relies on fixes in other
22577         places (System.Data comes to mind).
22578
22579         Also, move to a flat hashtable (and encode the twolevel nature of
22580         the dictionary into the hash key).  This lets us implement the
22581         IEnumerable.GetEnumerator method.
22582
22583         * RelatedCurrencyManager.cs: new class.  Update our view based on
22584         our relation and our parent CurrencyManager's position.
22585
22586         * CurrencyManager.cs: split out some logic from the ctor into
22587         SetView, so it can be called from the new RelatedCurrencyManager
22588         subclass.
22589
22590         * RelatedPropertyManager.cs: new class.  Update our datasource
22591         based on the position of our parent CurrencyManager.
22592
22593         * PropertyManager.cs: split out some logic from the ctor into
22594         SetDataSource, so it can be called from the new RelatedDataSource
22595         subclass.  Also, make the Current getter return the value
22596         of the PropertyDescriptor, not the data_source.
22597
22598         * Binding.cs: no need to duplicate the string splitting code here.
22599
22600 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
22601
22602         * Control.cs:
22603           - set_Enabled: OnEnabledChanged is not called if the inherited state 
22604             of the control is not altered, even though  we might be changing the
22605             internal state of the control (#78458)
22606           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
22607             OnEnabledChanged, to allow easy altering of any child window state
22608           - OnEnabledChanged: Added code to enable/disable driver window state
22609           - OnParentEnabledChanged: Instead of firing the event, call 
22610             OnEnabledChanged, which will fire the event and also a) set driver
22611             window state and pass the enabled state to any grandchildren (#78458)
22612
22613 2006-06-19  Jackson Harper  <jackson@ximian.com>
22614
22615         * InternalWindowManager.cs: We don't set the cursor explicitly
22616         thats done via the response to NCHITTESTs.
22617         - Don't need to adjust for titlebar heights anymore, the
22618         coordinates are coming in the correct coordinates now (see peters
22619         last patch).
22620
22621
22622 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
22623
22624         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
22625           being translated relative to whole window, instead of client window.
22626           That caused broken offsets on mouseclick (and caused gas for our
22627           InternalWindowManager)
22628
22629 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
22630
22631         * TextControl.cs:
22632           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
22633           - Undo(): Added replay of cursor move on DeleteChars action; added
22634             calling Undo() again if a recorded cursor move is invalid (to
22635             ensure that some action is performed on Undo)
22636         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
22637
22638 2006-06-16  Jackson Harper  <jackson@ximian.com>
22639
22640         * MdiClient.cs: Instead of just sizing maximized windows when
22641         there is a resize we also have to adjust the Y of minimized
22642         windows, so they stay pinned to the bottom of the mdi container.
22643         - Eliminate separate tracking of the active control, we can just
22644         get this from the controls collection.
22645         - Paint the decorations for the newly activated titlebar so we get
22646         a pretty blue bar.
22647         * InternalWindowManager.cs:
22648         * ThemeWin32Classic.cs: Minimized windows get all three buttons
22649         even if they are a tool window.
22650         
22651 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
22652
22653         * TextControl.cs (Undo): Handle non-existent cursor locations in the
22654           undo buffer, these can happen when text was deleted and the cursor
22655           was recorded first. Since we will also have a recorded cursor
22656           after the delete this is not an issue. (Fixes #78651)
22657
22658 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
22659
22660         * AccessibleObject.cs: Remove dependence on Control.is_selected;
22661           instead properly track control states internally (allows us to
22662           remove is_selected from Control)
22663
22664 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22665
22666         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
22667         whose width is not a multiple of 8.
22668
22669 2006-06-13  Jackson Harper  <jackson@ximian.com>
22670
22671         * MdiClient.cs:  Only maximize the next child if the current one
22672         is maximized.
22673
22674 2006-06-13  Chris Toshok  <toshok@ximian.com>
22675
22676         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
22677         modified.  Also, guard against grid or grid_drawing being null in
22678         Invalidate.
22679
22680         * DataGrid.cs: Reformat tons of getters/setters.  In the
22681         DataMember setter, just call SetNewDataSource instead of
22682         duplicating some of its functionality.  In SetNewDataSource, don't
22683         check ListManager for null, since the property getter creates the
22684         object if needed.
22685
22686         * DataGridTableStyle.cs: don't set TableStyle or call
22687         SetDataGridInternal on the column here, it's done in
22688         GridColumnStylesCollection.Add.
22689
22690         * GridColumnStylesCollection.cs: fix all the explicit interface
22691         implementations to just call our methods.  Nuke AddInternal() and
22692         move the body of it to Add().  Also, add a call to
22693         column.SetDataGridInternal to Add().
22694
22695         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
22696         base()+duplicate code.  Also, use the Format property instead of
22697         format to generate an Invalidate ala MS.  Lastly, create the
22698         textbox here, unconditionally.
22699         (set_Format): call Invalidate.
22700         (get_TextBox): no need to call EnsureTextBox.
22701         (Commit): remove the message box.
22702         (Edit) remove the call to EnsureTextBox.
22703         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
22704         (EnterNullValue): no need to check textbox for null.
22705         (HideEditBox): no need to check textbox for null.
22706         (SetDataGridInColumn): add the textbox to the grid's controls.
22707         (EnsureTextBox): nuke.
22708         
22709 2006-06-13  Jackson Harper  <jackson@ximian.com>
22710
22711         * MdiWindowManager.cs: Hook up to the maximized menus paint event
22712         and redraw the buttons when needed. Unhook when the window is
22713         unmaximized.
22714         * MainMenu.cs: Add an internal Paint event, the mdi window manager
22715         needs this so that it can redraw its buttons when the menu is
22716         repainted.
22717         * InternalWindowManager.cs:
22718         * Form.cs: The method order has changed for DrawMaximizedButtons,
22719         so that it can be a PaintEventHandler.
22720         
22721 2006-06-13  Jackson Harper  <jackson@ximian.com>
22722
22723         * MdiClient.cs: When we close a maximized mdi window, the next mdi
22724         window is activated and maximized, even if it wasn't before.
22725         - When  a new window is activated repaint the decorations of the
22726         old one, so that it no longer has the Active "look" (the blue
22727         titlebar).
22728         * InternalWindowManager.cs: Open up CreateButtons to base classes
22729         so they can recreate the buttons on state changes.
22730         - If a window is maximized give it all three buttons
22731         * MdiWindowManager.cs: Create the titlebar buttons when the state
22732         is changed, this is needed because a toolwindow will not have all
22733         three buttons until it is maximized.
22734
22735 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
22736
22737         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
22738           Fixed bug #78609.
22739
22740 2006-06-12  Jackson Harper  <jackson@ximian.com>
22741
22742         * KeysConverter.cs: Make sure we handle the Ctrl special case
22743         if its the only key.
22744         
22745 2006-06-12  Jackson Harper  <jackson@ximian.com>
22746
22747         * Theme.cs: Add a method to get the size of a managed window
22748         toolbar button.
22749         * InternalWindowManager.cs: Remove the ButtonSize property, this
22750         should be retrieved from the theme.
22751         * MdiWindowManager.cs: Get the button size from the theme
22752         * ThemeWin32Classic.cs: Make the method to get the managed window
22753         titlebar button size public.
22754         - Handle the different button sizes of maximized toolwindows
22755         (should match any maximized window).
22756         - Get the titlebar height from the theme, not the WM (which gets
22757         it from the theme).
22758
22759 2006-06-12  Jackson Harper  <jackson@ximian.com>
22760
22761         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
22762         event down to the mdi window manager.
22763         - Expose some extra stuff to base classes
22764         - Make sure to end the Capture on an NC Mouse up, so that we can
22765         get double clicks properly, and the sizing doens't stick.
22766         - When doing PointToClient contain it in the workable desktop
22767         area, this prevents windows from changing size when the cursor is
22768         pulled outside of the working area while sizing.
22769         * MdiWindowManager.cs: When we get a double click maximize the
22770         window.
22771         - Reset the cursor after handling mode changes.
22772
22773 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
22774
22775         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
22776           current desktop, instead of just assuming a 0, 0 origin. This
22777           is needed for our internal window manager, to know the top
22778           margin of the desktop
22779
22780 2006-06-12  Chris Toshok  <toshok@ximian.com>
22781
22782         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
22783         we need this to get rid of the selected background in the bool
22784         column.
22785         (CancelEditing): move the ConcedeFocus call to above the Abort
22786         call.  Also, set is_changing to false and invalidate the row
22787         header if we were changing before.
22788         (ProcessKeyPreviewInternal): remove, since noone outside this
22789         class calls it anymore.  Roll the code into ProcessKeyPreview.
22790         (EndEdit): remove the internal version.
22791         (InvalidateCurrentRowHeader): make private.
22792
22793         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
22794         Keys.Escape handling (and with it the last call to
22795         DataGrid.EndEdit from outside the class.)
22796
22797
22798 2006-06-12  Chris Toshok  <toshok@ximian.com>
22799
22800         * DataGridTextBox.cs (.ctor): isedit defaults to false.
22801         (OnKeyPress): set isedit to true.
22802         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
22803         already handled by the grid.
22804
22805         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
22806         right.  ugh.
22807         (set_DataSource): SetDataSource always returns true, so stop
22808         putting it in an if statement.
22809         (EndEdit): get rid of some {}'s
22810         (ProcessGridKey): return true in case Keys.Escape.
22811         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
22812         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
22813         PositionChanged, stopped connecting to CurrentChanged.
22814         (GetDataSource): simplify this a bunch.
22815         (SetDataSource): change return type from bool to void.
22816         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
22817         to this, and make sure we don't set ListManager.Position inside
22818         set_CurrentCell.
22819         (OnListManagerItemChanged): if we're passed an actual index,
22820         redraw that row.
22821
22822         * CurrencyManager.cs (set_Position): don't call PullData here.
22823
22824 2006-06-09  Jackson Harper  <jackson@ximian.com>
22825
22826         * TreeNode.cs:  Recalculate the visible order before doing the
22827         Expand/Collapse Below calls, because those calls generate an
22828         expose.
22829         - Reduce calls to the TreeView property, which is mildly expensive
22830         by using a local var.
22831         * Form.cs: Layout the MDI child windows when creating the parent
22832         form.
22833         - Don't use the internal constructor anymore
22834         * MdiClient.cs: use the parent form width/height (if available)
22835         when laying out the child windows, we do this because the
22836         mdiclient isn't docked yet when the initial layout is done.
22837         - Don't need an internal constructor anymore.
22838
22839 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22840
22841         * FileDialog.cs: handle access errors when trying to create a folder
22842         or changing to a directory. No need to initialize out parameters.
22843
22844 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
22845
22846         * FileDialog.cs: Append a number when creating a new folder if the
22847           folder already exists (use parenthesis instead of square brackets)
22848
22849 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
22850
22851         * FileDialog.cs:
22852           - Disabled registry support for windows and added better registry
22853             error checking for other systems (need to investigate why it
22854             works perfectly on my system)
22855           - If a folder already exist show an error MessageBox instead of
22856             trying to create an indexed name.
22857           - Fixed a non intentional typo.
22858
22859 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22860
22861         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
22862
22863 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
22864
22865         * FileDialog.cs: When creating a new folder don't crash if the
22866           folder already exists.
22867
22868 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
22869
22870         * FileDialog.cs: Allmost a complete rewrite.
22871           - added a "virtual" file system that handles the differences
22872             between unix and windows file systems (especially the directory
22873             structure). Moved most of the directory and file handling code
22874             into the vfs.
22875             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
22876             UnixFileSystem and FSEntry.
22877           - Recently used folder/directory, size, location and used file names
22878             (file name ComboBox) are now stored in the registry and get read
22879             before the dialog shows up (fixes part 6 of bug #78446).
22880           - Creation of new folders/directories is now possible (context menu
22881             or ToolBar). Added TextEntryDialog for this that fills in the gap
22882             until ListView.LabelEdit works.
22883           - Fixed cursor handling (bug #78527) and focus handling for
22884             PopupButtonPanel
22885           - Various "Search in" ComboBox enhancements. The content of the
22886             dropdown listbox now almost matches ms.
22887           - Changed the behaviour when the user switches to SpecialFolder
22888             Recent to show the ListView in View.Details.
22889           - Beside using the ToolBar to change the View property of the
22890             file ListView it is now possible to use the context menu too.
22891
22892 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
22893
22894         * ComboBox.cs: Don't create a new ObjectCollection when an item
22895           gets inserted. Just insert the item in the existing object_items
22896           ArrayList.
22897
22898 2006-06-08  Jackson Harper  <jackson@ximian.com>
22899
22900         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
22901         that the treeview and root node checks are done also, this fixes a
22902         regression i caused in the unit tests.
22903
22904 2006-06-07  Wade Berrier <wberrier@novell.com> 
22905
22906         * RichTextBox.cs: More ISO8859-1 -> unicode
22907
22908 2006-06-07  Mike Kestner  <mkestner@novell.com>
22909
22910         * ComboBox.cs : use items to hold highlight/selection so that
22911         collection insertions don't require synchronization.
22912
22913 2006-06-07  Jackson Harper  <jackson@ximian.com>
22914
22915         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
22916         routine.  We now always keep the sized edge at the cursor instead
22917         of computing movement and adjusting rects.  There is one buglet
22918         with this method though when the cursor is moved over area that
22919         the window can not expand too (such as the toolbars on the desktop).
22920
22921 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22922
22923         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
22924         here. Fixes crash on startup in AlbumSurfer.
22925
22926 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
22927
22928         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
22929           values
22930
22931 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22932
22933         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
22934         statement to avoid calling XNextEvent which will block if another thread
22935         took the event that we were expecting. Fixes bug #78605.
22936
22937 2006-06-07  Mike Kestner  <mkestner@novell.com>
22938
22939         * ListView.cs : isolated checkbox clicking from the selection logic.
22940         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
22941
22942 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22943
22944         * Form.cs: Check that the value passed to Form.DialogResult
22945         is a valid enum value.
22946
22947 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22948
22949         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
22950         Computer'. Clicking it in the network view goes to 'My Computer'.
22951         Added CIFS filesystem type. Display the mount point of filesystems.
22952         Avoid duplicate mount points (happens for me with CIFS);
22953
22954 2006-06-06  Jackson Harper  <jackson@ximian.com>
22955
22956         * InternalWindowManager.cs: Draw the maximized windows buttons
22957         when resizing.
22958
22959 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22960
22961         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
22962         all other dialogs. Fixes bug #78585.
22963
22964 2006-06-06  Mike Kestner  <mkestner@novell.com>
22965
22966         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
22967         Only invalidate checkbox on checkstate changes to avoid flicker.
22968         * ListBox.cs : avoid unselect/select when clicking selected item.
22969         avoid reselection flicker for already multiselected items.
22970         Fixes #78382.
22971
22972 2006-06-06  Jackson Harper  <jackson@ximian.com>
22973
22974         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
22975         the parent form so that the menu is removed if needed.
22976
22977 2006-06-06  Mike Kestner  <mkestner@novell.com>
22978
22979         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
22980         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
22981
22982 2006-06-06  Mike Kestner  <mkestner@novell.com>
22983
22984         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
22985
22986
22987 2006-06-06  Jackson Harper  <jackson@ximian.com>
22988
22989         * Control.cs: Use the property (instead of the field) to get the
22990         default cursor so it is instantiated correctly.
22991         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
22992         resizes so we need to manually repaint the window decorations here.
22993         - Set the titlebar button locations as soon as they are created,
22994         otherwise they are not set correctly on win32.
22995         
22996 2006-06-06  Chris Toshok  <toshok@ximian.com>
22997
22998         * CurrencyManager.cs (set_Position): call PullData before
22999         OnCurrentChanged.
23000         (AddNew): after calling IBindingList.AddNew, update our
23001         listposition, and call OnCurrentChanged/OnPositionChanged (without
23002         calling PullData).
23003         (OnCurrentChanged): remove the call to PullData from here.
23004         (OnItemChanged): remove the call to PushData from here.
23005         (OnPositionChanged): change the test from == null to != null to
23006         match the other methods.
23007         (ListChangedHandler): the grossest part of the patch.  Implement
23008         this such that it passes the unit tests in CurrencyManagerTest and
23009         the output more or less matches that of MS's implementation.
23010  
23011 2006-06-06  Mike Kestner  <mkestner@novell.com>
23012
23013         * ListView.cs : only update check state on single click.
23014         * ThemeWin32Classic.cs : fix focus drawing for details view without
23015         fullrowselect.  Fixes #78454.
23016         * XplatUIX11.cs : fix for double click emission.
23017
23018 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
23019
23020         * PropertyGridView.cs : Applied Atsushi's patch to fix
23021         font dialog bug  (#78197).
23022
23023 2006-06-05  Jackson Harper  <jackson@ximian.com>
23024
23025         * TreeNode.cs: Compute the next node for expanding/collapsing
23026         correctly. We now factor in nodes without a NextNode
23027         correctly. (Fixes somes cases in nunit-gui).
23028         * InternalWindowManager.cs: Set the bounds when updating the
23029         virtual position of a tool window.
23030         
23031 2006-06-05  Chris Toshok  <toshok@ximian.com>
23032
23033         * DataGrid.cs: rename cached_currencymgr to list_manager.
23034         (set_CurrentCell): move SetCurrentCell code here, and clean it up
23035         some.
23036         (CurrentRow, CurrentColumn): single accessors so we can make the
23037         cursor movement code a lot easier to understand.
23038         (CurrentRowIndex): implement this in terms of CurrentRow.
23039         (BeginEdit): clean this up a bit.
23040         (CancelEditing): sort out the is_editing/is_changing/is_adding
23041         stuff a little.
23042         (EndEdit): minor changes.
23043         (OnKeyDown): add a comment about a (most likely) unnecessary
23044         check.
23045         (OnMouseDown): cancel editing when we click on a row header.  And
23046         use the CurrentRow setter, not CurrentCell.
23047         (ProcessDialogKey): directly call ProcessGridKey.
23048         (UpdateSelectionAfterCursorMove): factor out this common block of
23049         code (it's used everywhere that we move the cursor by updating row
23050         or column).
23051         (ProcessGridKey): pretty substantial overhaul.  Use the
23052         CurrentRow/CurrentColumn properties to make the code a lot more
23053         readable.  Only use the CurrentCell property when we have to
23054         modify both row and column at once.  Tab behavior is still broken,
23055         and Delete is untested.
23056         (Select): if we have no selected rows, set selection_start to
23057         @row.
23058         (EditCurrentCell): rename EditCell this.  It was only ever invoked
23059         with CurrentCell as the arg, so drop the arg and rename it.
23060
23061         * DataGridColumnStyle.cs: clean up the constructors a little, and
23062         drop CommonConstructor().
23063
23064         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
23065         actually get notified when the user hits it.
23066         (ProcessKeyMessage): *substantially* simplify this method.
23067         There's no reason (that I can see) for the textbox to be making
23068         calls into the datagrid at all.  Remove all of them but the ones
23069         for Enter handling.  those will take some more work.
23070
23071         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
23072         calling HideEditBox.
23073         (HideEditBox): if we have an active textbox, render it invisible
23074         without causing a re-layout of the datagrid.
23075
23076 2006-06-05  Mike Kestner  <mkestner@novell.com>
23077
23078         * ListView.cs : fix NRE crasher when focuseditem is cleared by
23079         collection changes by resetting it to Items[0].  Fixes #78587.
23080
23081 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23082
23083         * MessageBox.cs: if the height of the text is larger than the icon_size,
23084         use that. Fixes bug #78575.
23085
23086 2006-06-05  Jackson Harper  <jackson@ximian.com>
23087
23088         * TreeView.cs: Fix line drawing when scrolling.  To do this each
23089         node is basically responsible for drawing its entire horizontal
23090         area.  When drawing a node it draws its parent node lines if
23091         needed.
23092         - Adjust the clip area to the viewport rectangle
23093         - Fix Left/Right key handling to match MS. (It expand/collapses
23094         and moves to parents/first child but does not move selection to
23095         sibling nodes).
23096         - Fix SetTop to work with new bound calculation code
23097         - When scrollbars are no longer needed we need to reset scrolling
23098         vars and recalculate the visible order so the redraw is correct
23099         * TreeNode.cs: We can't expand/collapse nodes with no children.
23100
23101 2006-06-03  John Luke  <john.luke@gmail.com> 
23102
23103         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
23104         so the colors work without dev packages
23105         
23106 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
23107
23108         * Control.cs 
23109           - Select: Implemented to just use activate. Seems to match MS 
23110             behaviour closest. Documented to only do actual control walking 
23111             based on it's parameters if in a container control so I moved 
23112             the code there.
23113           - Removed selection check logic from our internal Select() method
23114         * ContainerControl.cs:
23115           - Select: Moved selection logic from Control here, since MS documents
23116             that containers obey the bool arguments. No longer calling base
23117
23118 2006-06-02  Jackson Harper  <jackson@ximian.com>
23119
23120         * TreeView.cs: If the selected node isn't changed when we get
23121         focus update the previously selected node so that we see the
23122         selection box.
23123
23124 2006-06-02  Mike Kestner  <mkestner@novell.com>
23125
23126         * ComboBox.cs: restructure grab and general mouse event handling.
23127         Make the composite control raise mouse events like it was a single
23128         control for leaves/enters/motion/up/down events.  fix dropdown list
23129         coordinate mangling and refactor it into the scrollbar subclass to
23130         reduce code duplication.  Fixes #78282 #78361 and #78457.
23131
23132 2006-06-02  Mike Kestner  <mkestner@novell.com>
23133
23134         * ScrollBar.cs: remove Capture setting/clearing, as it happens
23135         automatically in the Control.WndProc.
23136
23137 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23138
23139         * FileDialog.cs: fix crash when running SharpChess, which sets the
23140         FilterIndex to 2 with only one Filter.
23141
23142 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23143
23144         * ToolBar.cs: add SizeSpecified property.
23145         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
23146         try to figure out our real size, otherwise fallback to what the
23147         container says.
23148
23149 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
23150
23151         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
23152         * Control.cs (WndProc): MS always calls the DefWndProc to pass
23153           up the event
23154
23155 2006-06-01  Mike Kestner  <mkestner@novell.com>
23156
23157         * ListView.cs: revamp the focus management in ListView.  It still
23158         causes churn of LostFocus/GotFocus emissions on clicks, but it's
23159         better than not handling focus at all.  Will revisit when pdb feels
23160         the general focus handling is solid.  Fixes #78526.
23161
23162 2006-06-01  Jackson Harper  <jackson@ximian.com>
23163
23164         * TreeView.cs: Set the default border style in the constructor.
23165         - Move painting to use OnPaintInternal instead of capturing
23166         WM_PAINT, this is the correct way of doing things
23167         - UpdateBelow shouldn't invalidate the scrollbar area
23168         - Cap the top on update below in case the node was above the top
23169         of the viewport rectangle.
23170         - ExpandBelow and Collapse below need to obey Begin/End Update.
23171         * TreeNode.cs: Make is_expanded internal so the treenode
23172         collection can change it without firing the whole event chain.
23173         * TreeNodeCollection.cs: When clearing all the child nodes make
23174         sure to recalc the visible order.
23175         - Improve algo for remove the top node
23176
23177 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
23178
23179         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
23180           SendMessage directly calling window procedures, which in turn might
23181           call SetFocus()
23182
23183 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
23184
23185         * Control.cs: Don't handle WM_SETFOCUS if the same window already
23186           has focus (works around X11 sending a FocusIn after our SetFocus)
23187         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
23188
23189 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
23190
23191         * Mime.cs: Fix for the NET_2_0 build.
23192           NameValueCollection needs StringComparer now.
23193
23194 2006-05-31  Chris Toshok  <toshok@ximian.com>
23195
23196         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
23197         return (via an out parameter) the starting X of the column.
23198         (UpdateVisibleColumn): track change to FromPixelToColumn.
23199         (HitTest): add a ColumnResize case here.
23200         (DrawResizeLine): new function, probably poorly named.
23201
23202         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
23203         only need to keep one reference.
23204         (set_ListManager): same.
23205         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
23206         Also, add support for HitTestType.ColumnResize.
23207         (OnMouseMove): add column resize behavior here, and change the
23208         cursor to the correct one as we move around the datagrid.
23209         (OnMouseUp): terminate the column resize if we're resizing.
23210         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
23211         for the current cell.
23212         (ConnectListManagerEvents): use cached_currencymgr.
23213         (DisconnectListManagerEvents): fill this in, using
23214         cached_currencymgr.
23215         (SetCurrentCell): remove cached_currencymgr_events handling.
23216         (SetDataMember): only call DisconnectListManagerEvents if
23217         cached_currencymgr is != null.
23218         (SetDataSource): same.
23219         (OnListManagerCurrentChanged): cached_currencymgr_events ->
23220         cached_currencymgr.
23221
23222 2006-05-31  Jackson Harper  <jackson@ximian.com>
23223
23224         * BindingManagerBase.cs: Remove somedebug code that creeped into
23225         SVN.
23226         * TreeNode.cs: We get the indent level dynamically right now, so
23227         don't track it as a member.
23228         * TreeNodeCollection.cs: Make sure all nodes added to the list
23229         have parents, treeviews/topnodes setup properly.
23230         - Don't attempt to track indent level.
23231
23232 2006-05-30  Jackson Harper  <jackson@ximian.com>
23233
23234         * BindingContext.cs: Create the currency manager tables here.
23235         This allows us to more easily create null tables (when bad data
23236         members are used), and more easily create related currency
23237         managers.
23238         * CurrencyManager.cs: All the table creation stuff is done by the
23239         binding context now.
23240         - Current should throw an exception if listposition is -1.
23241         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
23242         been bound yet.
23243
23244 2006-05-30  Mike Kestner  <mkestner@novell.com>
23245
23246         * ListView.cs: allow reexpansion of zero-width column headers.
23247         Fixes #78528.
23248
23249 2006-05-28  Chris Toshok  <toshok@ximian.com>
23250
23251         * CurrencyManager.cs (get_Current): after the late binding
23252         listposition = -1 fix, we need to guard against it here and return
23253         null, otherwise we raise an exception (which is swallowed
23254         elsewhere, and breaks datagrid databinding.)
23255
23256 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
23257
23258         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
23259           than WM_SYSKEY, don't throw if get something unexpected (#78507)
23260
23261 2006-05-26  Jackson Harper  <jackson@ximian.com>
23262
23263         * ControlPaint.cs:
23264         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
23265         values, it's faster and it's all we care about (we don't care if
23266         the names aren't equal).
23267         * KeyboardLayouts.cs: Eliminate some dead code.
23268         - Lazy init things
23269         * X11Keyboard.cs: Lazy init keyboard detection.
23270         - Cleanup access modifiers a little.
23271
23272 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
23273
23274         * XplatUIX11.cs: Once again, attempting to get layout just right.
23275
23276 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
23277
23278         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
23279           the sizes of each link section, that will result in sizes that
23280           match DrawString's layout (Fixes #78391)
23281
23282 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
23283
23284         * FileDialog.cs: If AddExtension property is true autocomplete the
23285           extensions in SaveFileDialog correctly. Fixes bug #78453.
23286           Set MyNetwork and MyComputer to "C:\" for windows. This should
23287           fix part 8 of bug #78446 for now.
23288
23289 2006-05-26  Chris Toshok  <toshok@ximian.com>
23290
23291         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
23292         invalidate the current row header if we need to, but presumably
23293         we'll invalidate the row corrsponding to the bounds or
23294         editingControl.
23295         (GridHScrolled): switch back to this method, as it's part of the
23296         public api.  *sigh*.
23297         (GridVScrolled): same.
23298         (OnMouseWheel): hack up something that more or less works.  Call
23299         GridHScrolled/GridVScrolled directly, instead of duplicating much
23300         of their code here.
23301         (EnsureCellVisibility): reinstate a bunch of this code, since we
23302         can't just set the scrollbar Value and expect to do all the work
23303         in the ValueChanged handler.  Also, Call Update() after scrolling
23304         in one direction so the other XplatX11.ScrollWindow call has the
23305         proper stuff in the proper places.
23306         (EditCell): set is_editing to true before calling .Edit.
23307
23308         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
23309         don't bother comparing first.
23310         (OnKeyPress): call grid.ColumnStartedEditing before calling
23311         base.OnKeyPress.  this will set is_changing and invalidate the row
23312         header if necessary.
23313         (ProcessKeyMessage): for WM_CHAR messages, call
23314         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
23315         and WM_KEYDOWN.
23316         
23317         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
23318         it's done in the DataGrid.
23319         (NextState): call grid.ColumnStartedEditing, which takes care of
23320         invalidating the row header (and setting is_changing).
23321
23322         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
23323         here.  it's done in the DataGrid.
23324
23325 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23326
23327         * Control.cs: allow changing the cursor when the mouse position is
23328         out of bounds but Capture is set.
23329         * LinkLabel.cs: handle the case when the mouse button is pressed on the
23330         linklabel but released somewhere else.
23331
23332 2006-05-25  Jackson Harper  <jackson@ximian.com>
23333
23334         * TreeView.cs: When we get focus if there is no selected node make
23335         it the top node
23336         - Remove some uneeded setup code from Draw.
23337         * TreeNodeCollection.cs: If the tree doesn't have a top node when
23338         a new node is inserted make the new node the top.
23339         * XplatUIX11.cs:
23340         * Timer.cs: Use Utc time so that no local time zone stuff needs to
23341         be used (should be faster).
23342         
23343 2006-05-25  Chris Toshok  <toshok@ximian.com>
23344
23345         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
23346         problem with the last commit.
23347
23348 2006-05-25  Chris Toshok  <toshok@ximian.com>
23349
23350         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
23351         need the invalidate call here, while scrolling right-to-left via
23352         the left arrow key (i.e. moving the editing cell while scrolling).
23353
23354         * DataGrid.cs (.ctor): remove the initialization of
23355         ctrl_pressed/shift_pressed.  We no longer track them using key
23356         up/down handlers, but by using Control.ModifierKeys.  Also, switch
23357         to using ValueChanged handlers on the scrollbars instead of
23358         Scrolled event handlers.  This simplifies a bunch of the scrolling
23359         code.
23360         (GridHValueChanged): rename from GridHScrolled, and change it to
23361         work with the new event args.
23362         (GridVValueChanged): same.
23363         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
23364         (OnMouseWheel): actually scroll the datagrid.  Don't change the
23365         selected cell.
23366         (ProcessGridKey): correct all the keyboard navigation stuff I
23367         could find.  Ctrl up/down/left/right/home/end work now.
23368         (EnsureCellVisibility): correct method name spelling.  Also,
23369         simplify this a touch by not explicitly calling the
23370         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
23371         scrollbar value.
23372         (OnKeyUpDG): no need for this method now.
23373         
23374 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23375
23376         * LinkLabel.cs: display the OverrideCursor when hovering the label.
23377         Fixes bug #78392.
23378
23379 2006-05-25  Chris Toshok  <toshok@ximian.com>
23380
23381         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
23382         r61019.
23383
23384 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
23385
23386         * Application.cs: Moved setting of is_modal and closing to before
23387           we create the control, to allow the event handlers called as a
23388           result of creation affect closing. Also removed Gonzalo's previous
23389           change to setting DialogResult, the behaviour has been moved to 
23390           Form.ShowDialog()
23391         * Form.cs: 
23392           - ShowDialog(): Removed explicit creation of the form, let RunLoop
23393             handle it instead
23394           - ShowDialog(): If no dialog result is set, we need to return Cancel
23395           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
23396             the close is cancelled
23397
23398 2006-05-25  Jackson Harper  <jackson@ximian.com>
23399
23400         * StatusBar.cs: We only need to update the sizes of the other
23401         panels when we have auto size contents.  Also we are only updating
23402         the contents of the panel, not the borders, so compensate for the
23403         border width (TODO: get this width from the theme somehow).
23404         * TreeView.cs: Scrollable is true by default
23405         - Use invalidate instead of refresh where needed
23406         - Factor the scrollable value into scrollbar updating
23407         - Update the scrollbars if the Scrollable property is altered
23408         - Update the selected node if its ImageIndex is changed
23409         - Handle null nodes in UpdateNode (mainly so we don't have to
23410         check if selected is null when updating it
23411         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
23412         are factored into the visible count
23413         - Use VisibleCount for clarity in the code
23414         - When the font is changed we need to recurse through all the
23415         nodes and invalidate their sizes
23416         
23417 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23418
23419         * Application.cs: set the DialogResult to fixed when the main form is
23420         hidden or destroyed while being modal.
23421
23422 2006-05-25  Miguel de Icaza  <miguel@novell.com>
23423
23424         * Theme.cs: Use Tangoified messagebox icons. 
23425
23426         (GetSizedResourceImage): Also cope with width = 0 and do not
23427         trigger a warning in that case (0 means "give me your icon from
23428         the resouce, no special size needed).
23429
23430 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
23431
23432         * Application.cs: Leave runloop if the the main modal form is 
23433           hidden (fixes #78484)
23434
23435 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
23436
23437         * BindingContext.cs : reject null datasource in Contains() and
23438           Item[].
23439         * CurrencyManager.cs : check data_member validity when data_source
23440           is dataset. When it is late binding, the initial position is -1.
23441
23442 2006-05-24  Jackson Harper  <jackson@ximian.com>
23443
23444         * TreeNodeCollection.cs: Dont't recalculate the visible order on
23445         inserted nodes that aren't visible.  This changes the
23446         max_visible_order which confuses scrollbar settings.
23447         - Use the enumerator to get the prev node instead of duplicating
23448         code.
23449         * TreeView.cs: Use new method for setting scrollbar values
23450         - Don't set the bounds every time the scrollbar is updated
23451         - When updating below the root node use an invalidate instead of a
23452         refresh to prevent the child controls (scrollbars) from being
23453         refreshed. (UpdateBelow still needs to be reworked anyways).
23454         - Reenable SetBottom now that visible orders are set correctly,
23455         added some debug code incase we ever get bad values there again.
23456         - Set the scrollbar max to 2 less then the max value, this
23457         compensates for the max value being one above the node count, and
23458         for scrollbars adding one extra "notch".
23459         - When drawing image nodes if there is an imagelist we draw the
23460         first image in the list if the supplied image index is out of the
23461         image list's bounds.
23462         
23463 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
23464
23465         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
23466           we receive a size change from the WM (Fixes #78503)
23467
23468 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
23469
23470         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
23471           rectangle (Fixes #78501)
23472
23473 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
23474
23475         * ButtonBase.cs: 
23476           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
23477             as a bitfield.
23478           - Fixed MouseMove to no longer switch pressed state unless the left
23479             mouse button is pressed. Atsushi provided the original patch (#78485)
23480           
23481 2006-05-24  Jackson Harper  <jackson@ximian.com>
23482
23483         * ScrollBar.cs: New internal methods that allow us to change a
23484         couple values on the scrollbar (the most common case is maximum
23485         and large change) without getting multiple invalidates.
23486
23487 2006-05-24  Chris Toshok  <toshok@ximian.com>
23488
23489         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
23490         (Edit): save off the original state in oldState, and set
23491         grid.is_editing to true.
23492         (OnKeyDown): abort editing if escape is pressed.  also, call
23493         NextState if space is pressed.
23494         (OnMouseDown): call NextState.
23495         (NextState): factor out shared code from OnKeyDown and OnMouseDown
23496         here.  Also, only invalidate the row header once (on the initial
23497         is_changing switch) to save on redraws.
23498
23499 2006-05-24  Chris Toshok  <toshok@ximian.com>
23500
23501         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
23502         if the value in the cell is different than it was before.  This
23503         keeps us from triggering a layout when we move around a datarid
23504         with a highlighted cell.
23505         (Edit): suspend layout when creating/positining the text box, and
23506         resume passing false so we don't ever actually re-layout.
23507         (ReleaseHostedControl): same.
23508         (EnsureTextBox): reformat slightly, and set WordWrap to false.
23509
23510         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
23511         control-key sequences should go to the datagrid - remove that
23512         lock.  Also, modify the conditions under which we move between
23513         cells when moving the cursor within a cell, and remove the "this"
23514         and "base" from field accesses.  We weren't even consistent, given
23515         they all were in the base class.
23516
23517 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
23518
23519         * Binding.cs : (.ctor)
23520           An obvious NRE fix for BindingTest.CtorNullTest().
23521
23522 2006-05-23  Chris Toshok  <toshok@ximian.com>
23523
23524         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
23525         them between lines.  This fixes some quirks editing cells in the
23526         datagrid.
23527
23528 2006-05-23  Jackson Harper  <jackson@ximian.com>
23529
23530         * TreeView.cs: Use begin/end update when doing expand/collapse all
23531         so that we don't get flicker on the scrollbar.
23532
23533 2006-05-23  Jackson Harper  <jackson@ximian.com>
23534
23535         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
23536         treenode calculations to be independant of the painting code. To
23537         do this nodes track a visible order which is calculated by the
23538         treeview.
23539         - Call new methods for expanding/collapsing nodes.  These methods
23540         use scrollwindow so we don't have to update everything below the
23541         node.
23542         * TreeView.cs: Refactored drawing and scrolling code.  We don't
23543         need to update nodes when drawing anymore or calculate scrollbar
23544         stuff.
23545         - Added new methods for expanding/collapsing nodes. These methods
23546         use ScrollWindow so as to not have to redraw all the nodes below.
23547         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
23548         we add/remove nodes or sort.
23549         - Handle removing the selected and the top node properly.
23550
23551 2006-05-23  Chris Toshok  <toshok@ximian.com>
23552
23553         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
23554         maybe this should actually happen in the datagrid code?
23555         (EndEdit): no need to invalidate anything, given that
23556         ReleaseHostedControl causes the datagrid to relayout, which
23557         invalidates everything anyway.
23558
23559         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
23560         in SetCurrentCell).
23561         (set_SelectionBackColor): call InvalidateSelection instead of
23562         Refresh.
23563         (set_SelectionForeColor): same.
23564         (BeginEdit): Flesh this out a bit.
23565         (CancelEditing): only do any of this if we're editing/adding.
23566         (EndEdit): same.
23567         (OnMouseDown): there's no need to cancel editing here, it's done
23568         in SetCurrentCell.
23569         (SetCurrentCell): only invalidate the current row header if it's a
23570         different row than the new one.
23571         (ShiftSelection): fix this to work like MS does.
23572         (ResetSelection): factor out the invalidation of selected_rows to
23573         InvalidateSelection.
23574         (SetDataSource): cancel any editing that's going on.
23575
23576         * DataGridColumnStyle.cs
23577         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
23578         call the non-interface version.
23579
23580         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
23581         header rectangle with the clip rectangle so we don't redraw the
23582         entire header for just a small area.  Gets rid of the last flicker
23583         when horizontally scrolling.
23584         (DataGridPaintRow): same.
23585
23586 2006-05-23  Mike Kestner  <mkestner@novell.com>
23587
23588         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
23589         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
23590         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
23591         Critical bug report.
23592
23593 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
23594
23595         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
23596           and this fixes #78493
23597
23598 2006-05-23  Miguel de Icaza  <miguel@novell.com>
23599
23600         * Theme.cs (GetSizedResourceImage): Scale images if the proper
23601         size is not found.  
23602         
23603         * FileDialog.cs: Do not change the background for the side bar as
23604         it wont work nicely with the theme, and also reduces the artifacts
23605         in rendering the icons (which I want to fix too).
23606
23607         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
23608         resources, not resgen resources. 
23609
23610         (PlatformDefaultHandler): Pull images using the new API.
23611
23612 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
23613
23614         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
23615           a reference to the hwnd and will not remove it unless there are
23616           no pending exposures (fixes #78341)
23617         * XplatUI.cs: Improved debug
23618
23619 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
23620
23621         * MenuAPI.cs : don't handle OnClick event when it was not the left
23622           button. Fixed bug #78487.
23623
23624 2006-05-23  Mike Kestner  <mkestner@novell.com>
23625
23626         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
23627         prefer submenus to the top menu for item lookup, to avoid popping down
23628         top-row items.
23629
23630 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
23631
23632         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
23633           Graphics.FillRectangle as the visual results are really bad (even
23634           on win). We now draw perfect arrows (and perfect shadows when the
23635           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
23636           Pen.DashPattern to draw the dots of each line.
23637
23638 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
23639
23640         * FileDialog.cs: Update the filename combobox when navigating through
23641           the ListView with the cursor keys. Fixes part 7 of bug #78446.
23642
23643 2006-05-22  Mike Kestner  <mkestner@novell.com>
23644
23645         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
23646         Fixes #78463.
23647
23648 2006-05-22  Mike Kestner  <mkestner@novell.com>
23649
23650         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
23651         requests. Fix a misspelled parameter and a copy paste exception error
23652         in Select.
23653
23654 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
23655
23656         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
23657           to get the same width/height (5/13) on X11 as the default font has on
23658           win32. This means that our DefaultFont emSize is smaller than the 
23659           the MS SWF equivalent (even thought the width/height stays the same)
23660
23661 2006-05-20  Jackson Harper  <jackson@ximian.com>
23662
23663         * MdiClient.cs:
23664         * MdiWindowManager.cs:
23665         * InternalWindowManager.cs: Make sure to use the border width from
23666         the theme.
23667
23668 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
23669
23670         * PrintDialog.cs: Implements printer details
23671
23672 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
23673
23674         * FileDialog.cs: Added focus handling for PopupButtonPanel.
23675           Fixes part 1 and 2 of bug #78446
23676
23677 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
23678
23679         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
23680           instead of sticking to the first ever calculated value
23681
23682 2006-05-19  Mike Kestner  <mkestner@novell.com>
23683
23684         * ComboBox.cs: fix mouse motion selection to use MousePosition and
23685         PointToClient, since Capture is set. Fixes #78344.
23686
23687 2006-05-19  Mike Kestner  <mkestner@novell.com>
23688
23689         * ListView.cs: match MS behavior in Details view where items are not
23690         drawn if Columns.Count == 0. 
23691         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
23692         Use a separate pen to draw the check, since changing the width affects
23693         the box as well.  Fixes #78454.
23694
23695 2006-05-18  Miguel de Icaza  <miguel@novell.com>
23696
23697         * ListView.cs: ArgumentOutOfRangeException, single versions of the
23698         exception should throw the name of the invalid argument.
23699
23700         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
23701         there are no files listed. 
23702
23703 2006-05-18  Jackson Harper  <jackson@ximian.com>
23704
23705         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
23706         up.
23707
23708 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
23709
23710         * Control.cs: Brought back our old UpdateZOrder method as a private
23711           function and switched our calls from UpdateZOrder to the new one.
23712           This fixes the Paint.Net canvas disappearing bug.
23713
23714 2006-05-18  Jackson Harper  <jackson@ximian.com>
23715
23716         * Theme.cs:
23717         * ThemeWin32Classic.cs:
23718         * InternalWindowManager.cs: Move the drawing into the theme,
23719         expose everything the theme should need from the window manager.
23720
23721 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
23722
23723         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
23724           from the call to NativeWindow to avoid walking up the parent chain
23725           further than needed (speeds up setting cursors and avoids setting
23726           the wrong cursor if a parent has another cursor defined)
23727         * Cursor.cs: When loading an icon as cursor, MS uses the center of
23728           the icon as hotspot, not what's contained as hotspot in the icon
23729           file. This fixes the perceived drawing offset seen with Paint.Net
23730         
23731 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
23732
23733         * XplatUIX11.cs: 
23734           - Store the calculated rectangle in Hwnd object and use it when 
23735             setting the client size
23736           - Force Toolwindows to always be type Dock, to ensure they're on top
23737
23738 2006-05-18  Mike Kestner  <mkestner@novell.com>
23739
23740         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
23741         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
23742         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
23743         Substantial refactoring to remove confusing nested classes. Coding
23744         standard and Get+Set->property refactorings.  Shift to index based
23745         highlighting in ComboListBox instead of constantly using IndexOf and
23746         Items[]. Add invalidations on resize for DropDownList to fix ugliness
23747         in FileDialog growth.  Draw borders manually since Simple mode needs
23748         to look like two independent controls.  Make listbox border
23749         conditional to DropDownStyle.  Improved OwnerDraw support.
23750
23751 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
23752
23753         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
23754         Don't set the disposed graphics to null, so we can throw the "right"
23755         exception if the graphics is reused later (added a flag to avoid 
23756         double disposing). Some behaviours are different under 2.0 and are
23757         filled under bug #78448.
23758
23759 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
23760
23761         * Control.cs: When double-buffering is enabled, we need to reset
23762           our graphics context between paint calls. Otherwise, any 
23763           transformations and other alterations on the context will 
23764           become cumulative (#77734)
23765
23766 2006-05-18  Mike Kestner  <mkestner@novell.com>
23767
23768         * ListView.cs: do focused item selection like MS on clicks. 
23769         Rework focus handling for ItemControl so LostFocus invalidates as
23770         well.
23771         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
23772         the ListView ItemControl has focus.
23773
23774 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
23775
23776         * XplatUIX11.cs: If client_window ends up being width or height zero
23777           due to border settings, move it off window inside whole_window (#78433)
23778
23779 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
23780
23781         * Mime.cs: Shrink the mime file cache correctly.
23782
23783 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
23784
23785         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
23786
23787 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
23788
23789         * XplatUIX11.cs (AddExpose): More sanity checks
23790
23791 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
23792
23793         * XplatUIX11.cs:
23794           - AddExpose: Don't add expose ranges outside the size of our
23795             window
23796           - Cast opacity values to Int32 to avoid crashes with certain
23797             values
23798           - Added disabled code paths that protect against illegal cross-
23799             thread painting (Developers.exe)
23800
23801 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
23802
23803         * ProgressBar.cs: Invalidate the control when it's resized
23804           since block size is based on control size. (#78388)
23805
23806 2006-05-16  Miguel de Icaza  <miguel@novell.com>
23807
23808         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
23809         of setting the incoming argument to the "reset" value, we set the
23810         this.datamember to string.empty (before we were invalidating the
23811         incoming data).   
23812
23813         Fixes 78420
23814
23815 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
23816
23817         * Form.cs: Only apply transparency settings after the form
23818           is created. (Fixes #77800)
23819
23820 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
23821
23822         * ApplicationContext.cs: Grab the HandleDestroyed event so
23823           we know when to fire OnMainFormClosed 
23824
23825 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
23826
23827         * Application.cs: Introduced sub-class to allow tracking of
23828           threads and centralized triggering of the event mess for
23829           ThreadExit, AppExit, etc..  (#76156)
23830
23831 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
23832
23833         * MimeIcon.cs:
23834           - Do not return a null icon index value for a mime subclass.
23835             Instead try the main mime type class too.
23836           - Seems that some newer distributions don't have a link to some
23837             gnome default icons anymore. So check the default gnome dir too.
23838           
23839
23840 2006-05-16  Jackson Harper  <jackson@ximian.com>
23841
23842         * MdiClient.cs: Don't paint the parent background image if we have
23843         our own background image.
23844
23845 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
23846
23847         * Control.cs:
23848           - PerformLayout: Do not shrink space filled by DockStyle.Fill
23849             controls, all filled controls are supposed to overlap (#78080)
23850           - UpdateZOrder is supposed to update the control's z-order in the
23851             parent's z-order chain. Fixed to behave like that
23852           - BringToFront: Removed obsolete code
23853           - SendToBack: Simplyfied
23854           - SetChildIndex: Trigger layout calculations when Z-order changes
23855             since layout is done by z-order
23856
23857 2006-05-16  Chris Toshok  <toshok@ximian.com>
23858
23859         [ fixes bug #78410 ]
23860         * DataGrid.cs (set_AlternatingBackColor): use
23861         grid_drawing.InvalidateCells instead of Refresh().
23862         (set_BackColor): call grid_drawing.InvalidateCells.
23863         (set_BackgroundColor): use Invalidate instead of Refresh.
23864
23865         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
23866         invalidate the cell area.
23867
23868 2006-05-15  Chris Toshok  <toshok@ximian.com>
23869
23870         [ fixes bug #78011 ]
23871         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
23872         on to DataGridPaintRow.
23873         (DataGridPaintRow): take a clip argument, and only draw the cells
23874         which intersect it.  same with the not_usedarea.
23875
23876         * Theme.cs (DataGridPaintRow) add @clip parameter.
23877
23878         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
23879         XplatUI.ScrollWindow.
23880         (ScrollToRow): same.
23881
23882         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
23883         with last column which was causing a gray swath to appear with the
23884         XplatUI.ScrollWindow code.
23885
23886 2006-05-15  Chris Toshok  <toshok@ximian.com>
23887
23888         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
23889         use XplatUI.ScrollWindow.
23890         (VerticalScrollEvent): use XplatUI.ScrollWindow.
23891
23892 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
23893
23894         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
23895
23896 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
23897
23898         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
23899           file since there are no equivalent X11 cursors
23900
23901 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
23902
23903         * MonthCalendar.cs : DateTimePicker should reflect selected date
23904           on mouse*up*, not mouse*down*. Fixed originally reported part of
23905           bug #76474.
23906
23907 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
23908
23909         * TabControl.cs : When argument index is equal or more than tab
23910           count, just ignore. Fixed bug #78395.
23911
23912 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
23913
23914         * Control.cs: Dispose all child controls when control is diposed (#78394)
23915
23916 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
23917
23918         * ColorDialog.cs: Finally it is possible to select the color with
23919           the text boxes
23920
23921 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
23922
23923         * PrintDialog.cs: Fix typo
23924
23925 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
23926
23927         * PrintDialog.cs: PrintDialog is not resizable
23928         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
23929           color. Made some ToolBar drawing methods protected virtual.
23930
23931 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
23932
23933         * PrintDialog.cs: Implementation of the PrintDialog
23934
23935 2006-05-12  Chris Toshok  <toshok@ximian.com>
23936
23937         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
23938         thumb, instead use MoveThumb.  This has the side effect of making
23939         most of the other thumb moving machinery use MoveThumb as well.
23940         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
23941         need to actually invalidate the rectangle where the new thumb will
23942         go.
23943         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
23944         We force an Update() after, so it's not as fast as it could be,
23945         but at least there's zero flicker and no droppings.
23946         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
23947         (UpdateThumbPos): add another argument (dirty), which says whether
23948         or not to calculate/add dirty regions which we later invalidate.
23949         For cases where we know we're going to use MoveThumb, we pass
23950         false for this.  Otherwise, pass true.
23951
23952 2006-05-12  Jackson Harper  <jackson@ximian.com>
23953
23954         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
23955         the status bar.
23956         
23957 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
23958
23959         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
23960           and GetClipRegion methods and UserClipWontExposeParent property.
23961         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
23962           overriding UserClipWontExposeParent property, setting to false, since
23963           Win32 handles the required expose messages to draw our clipped parent
23964           areas internally
23965         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
23966           PaintEventStart to set the user clip region if set.
23967         * Control.cs: 
23968           - Now internally tracking the Region for the control since we need to
23969             store it if the handle is not yet created and only set it when it
23970             becomes created. Before setting the region forced handle creation
23971           - Added code to draw the parents underneath a user-clipped region
23972         * Hwnd.cs: Added UserClip property
23973
23974 2006-05-12  Chris Toshok  <toshok@ximian.com>
23975
23976         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
23977         (set_Maximum): same.
23978         (set_Minimum): same.
23979         (set_SmallChange): same.
23980         (OnMouseUpSB): remove the call to refresh when releasing the
23981         thumb.  We shouldn't need it.
23982         
23983 2006-05-12  Miguel de Icaza  <miguel@novell.com>
23984
23985         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
23986         AutoSize set to None, we do not need to relayout everything, we
23987         just need to invalidate the current region.
23988
23989         (Draw): Do not draw the entire ClientArea, just redraw the
23990         clip area being passed.
23991
23992         * MdiClient.cs: Make MdiClient constructor with the Form argument
23993         internal. 
23994
23995 2006-05-12  Jackson Harper  <jackson@ximian.com>
23996
23997         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
23998         parents background image,  but strangely not their own.
23999         - (DrawStatusBarPanel): Take into account horizontal alignment
24000         when drawing the strings and icons.
24001
24002 2006-05-12  Mike Kestner  <mkestner@novell.com>
24003
24004         * ListBox.cs: avoid invalidations for focus when the collection is
24005         empty. 
24006
24007 2006-05-12  Chris Toshok  <toshok@ximian.com>
24008
24009         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
24010         invalidate the entire thumb area.  Call InvalidateDirty which
24011         limits the redraw to the thumb itself and surrounding pixels.
24012
24013         * XplatUIX11.cs (ScrollWindow): optimize copying.
24014         
24015 2006-05-12  Chris Toshok  <toshok@ximian.com>
24016
24017         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
24018         Figure out the positioning/layout in a single pass instead of
24019         multiple recursive invocations.  Speeds up the initial display of
24020         the data grid.  Also, make many things private that were
24021         originally public but unused outside this class.
24022
24023 2006-05-11  Jackson Harper  <jackson@ximian.com>
24024
24025         * MdiClient.cs: Improved layout code.
24026
24027 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
24028
24029         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
24030           not SelectedObject.
24031
24032 2006-05-11  Chris Toshok  <toshok@ximian.com>
24033
24034         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
24035         union of that will always be {0,0,width,height}.
24036
24037 2006-05-11  Jackson Harper  <jackson@ximian.com>
24038
24039         * Form.cs: Match MS's DefaultSize for forms (they must have
24040         changed the size in sp2).
24041
24042 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
24043
24044         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
24045
24046 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
24047
24048         * TextControl.cs : Fixed bug #78109. This incorrect position
24049           comparison caused crash on automatic line split.
24050         * TextBoxBase.cs : reduce duplicate code.
24051
24052 2006-05-10  Jackson Harper  <jackson@ximian.com>
24053
24054         * MdiClient.cs: Active form is only sent to the back when using
24055         the Next form functionality, when a form is clicked the current
24056         active shouldn't be sent to the back.
24057         - Layout the mdi windows when the container is first made visible.
24058         * Form.cs: Give the MdiClient a ref to the containing form when we
24059         create it.
24060         
24061 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
24062
24063         * LinkLabel.cs : link_font could be uninitialized, so populate one
24064           before actual use. Fixed bug #78340.
24065
24066 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
24067
24068         * XplatUIX11.cs : clipboard format native value is IntPtr.
24069           Fixed bug #78283.
24070
24071 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
24072
24073         * Control.cs: 
24074           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
24075             which is passed up the parent chain by DefWndProc
24076           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
24077             to DefWndProc (#77956)
24078         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
24079
24080 2006-05-10  Jackson Harper  <jackson@ximian.com>
24081
24082         * MdiClient.cs: We need to remove the controls from the mdi
24083         collection, when we close the window.
24084         * MdiWindowManager.cs: Special handling of closing mdi windows.
24085         * InternalWindowManager.cs: Make the close method virtual so the
24086         mdi window manager can handle it specially.
24087
24088 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
24089
24090         * DataGrid.cs:
24091           - Recalculate grid when the data source has changed
24092           - Matches styles provided by user from all data sources types
24093         * DataGridTableStyle.cs: For columns that provided by the user set the
24094         with the preferred value is there was unassigned.
24095         * CurrencyManager.cs: throw OnItemChanged event
24096
24097 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
24098
24099         * PictureBox.cs: Don't animate until handle is created. Start animation
24100           when handle is created.
24101
24102 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
24103
24104         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
24105           current codebase.
24106         * XEventQueue.cs: We don't need to provide the extra info
24107
24108 2006-05-10  Jackson Harper  <jackson@ximian.com>
24109
24110         * MdiClient.cs: If the mdi clients parent form has a background
24111         image set, we draw that background image for the mdi area's
24112         background.
24113
24114 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
24115
24116         * TextBoxBase.cs: Set IBeam cursor (#78347)
24117
24118 2006-05-10  Mike Kestner  <mkestner@novell.com>
24119
24120         * ToolBar.cs: fix some text padding issues with ButtonSize
24121         calculation. Update the default size to match MS documentation.
24122         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
24123         button size. Fixes #78296.
24124
24125 2006-05-10  Mike Kestner  <mkestner@novell.com>
24126
24127         * ListBox.cs: use is_visible for scrollbar positioning in case the
24128         control isn't on screen yet.  Fix off by one with Right vs Width
24129         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
24130         
24131 2006-05-10  Jackson Harper  <jackson@ximian.com>
24132
24133         * X11Dnd.cs: Drop to a control with another control on top of it.
24134         * ToolBar.cs: Work on a copy of the buttons list, so that it can
24135         be modified in click handlers. TODO: Look for similar problems in
24136         other controls.
24137
24138 2006-05-09  Jackson Harper  <jackson@ximian.com>
24139
24140         * Form.cs: Window managers need the old window state when setting
24141         window state now.
24142         * InternalWindowManager.cs: Allow the base mdi window manager to
24143         handle more of the MDI only stuff (like maximize buttons).
24144         * MdiWindowManager.cs: Fix some snafus in changing the window
24145         state.  Add all the menu functionality, for both popup and
24146         maximized menus.
24147         * MdiClient.cs: When a new form is selected the currently
24148         activated form is sent to the back, this matches MS.
24149         - Implement a new method to activate the next mdi child window.
24150
24151 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
24152
24153         * Control.cs: 
24154           - Added new InternalCapture method to allow controls to prevent
24155             the capture behaviour on the click handlers
24156           - Switched to use InternalCapture
24157         * ComboBox.cs:
24158           - Using InternalCapture to prevent mouse captures from being released
24159             on mouse button release (Fixes #78100)
24160         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
24161           returns Form borders if a caption is present. (Fixes #78310)
24162
24163 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
24164
24165         * TreeNode.cs: Changed serialization .ctor to not require every field
24166           to be present. (#78265)
24167         * OwnerDrawPropertyBag.cs: Added serialization .ctor
24168
24169 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
24170
24171         * MimeIcon.cs: for is faster than foreach for strings.
24172
24173 2006-05-05  Mike Kestner  <mkestner@novell.com>
24174
24175         * CheckedListBox.cs: update check handling code to not use selected.
24176         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
24177         behavior for visual feedback, motion response, shift/ctrl handling,
24178         and properly deal with all 4 selection modes. Updates to bounds
24179         handling logic.  Add scroll wheel support. [Fixes #77842]
24180
24181 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
24182
24183         * ListView.cs:
24184           - Moved adding of Implicit controls into .ctor. That way, subsequent
24185             creation of the controls will not cause them to think they are 
24186             toplevel windows (fixes #78200 header problem)
24187           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
24188           - Switched visibility setting of header control to use internal field
24189             to avoid triggering handle creation
24190           - Now checking if handle is created before causing a refresh when items
24191             are added (This makes us now match handle creation time with MS)
24192         * Splitter.cs: Removed loading of private splitter cursor, switched to
24193           Cursors version now that that is loading the right ones
24194         * Cursors.cs: Load proper splitter cursors from resources
24195         * Cursor.cs: Added second method of loading resource cursors for the 
24196           VS.Net users amongst us
24197
24198 2006-05-05  Mike Kestner  <mkestner@novell.com>
24199
24200         * ListView.cs: give header_control a minimum size based on the
24201         ListView size.
24202
24203 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
24204
24205         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
24206           window seems to do that with metacity, so set that type. (#78120)
24207
24208 2006-05-05  Mike Kestner  <mkestner@novell.com>
24209
24210         * ListViewItem.cs: fix Details mode checkbox layout bug.
24211         * ThemeWin32Classic.cs: draw a ListView column header for unused space
24212         at the end of the header, if it exists. [Fixes for #78200]
24213
24214 2006-05-04  Jackson Harper  <jackson@ximian.com>
24215
24216         * MdiClient.cs: Add a helper property to get the container form.
24217         * MdiWindowManager.cs: We have to make sure to use the menu origin
24218         when drawing the icons and buttons, this fixes maximized window
24219         icons/buttons on win32.
24220         * InternalWindowManager.cs: Reset the restore captions when a
24221         window goes from Maximized to Minimized and vice versa. Move the
24222         DrawMaximizedButtons into the MdiWindowManager source, tool
24223         windows can't be maximized. NOTE: This could use a little
24224         refactoring if time ever permits.
24225         
24226 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
24227
24228         * TextBox.cs: Add MWFCategoryAttributes
24229         * TextBoxBase.cs: Add MWFCategoryAttributes
24230         * Form.cs: Add MWFCategoryAttributes
24231
24232 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
24233
24234         * Control.cs: Add MWFCategoryAttributes
24235         * ScrollableControl.cs: Add MWFCategoryAttributes
24236
24237 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
24238
24239         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
24240           Divider is true. Fix a little glitch in PropertyToolBar
24241           drawing code
24242
24243 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
24244
24245         * Control.cs:
24246           - Dispose: Call base.Dispose, this causes the disposed event
24247             to be fired (and probably other, more important stuff)
24248           - SetVisibleCore: Set is_visible to true after creating the
24249             window so that the window still gets created invisible (if
24250             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
24251             to generate a WM_ACTIVE message
24252         * Form.cs: Call Dispose when we want to destroy the window, instead of
24253           just destroying the handle (Dispose will do that for us)
24254         * XplatUIX11.cs:
24255           - RootWindow also needs a queue, so we can properly process the
24256             property change events from RootWindow (like Activate)
24257           - Generatic synthetic WM_ACTIVE message when the active window is
24258             being destroyed
24259
24260 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
24261
24262         * LinkLabel.cs: Trigger a recalc of our label dimensions when
24263           bounds are changed
24264
24265 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
24266
24267         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
24268           for determining width and height (image might not be assigned if
24269           we're drawing an imagelist)
24270
24271 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
24272
24273         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
24274         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
24275           height from system
24276         * Theme.cs: No longer returns hardcoded menu height, instead calls
24277           new driver method
24278         * Form.cs (OnLoad): Scaling happens before triggering Load events 
24279           on MS (# 78257)
24280
24281 2006-05-01  Mike Kestner  <mkestner@novell.com>
24282
24283         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
24284
24285 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
24286
24287         * TextBoxBase.cs: Removed Fixme
24288         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
24289
24290 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
24291
24292         * XplatUIX11.cs:
24293           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
24294             the rectangle relative to the parent, considering borders. We
24295             don't really want that.
24296           - ScrollWindow: Fixed warning to be more understandable
24297         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
24298           scrollbars and scroll only the visible area
24299         * RichTextBox.cs: Removed debug output
24300
24301 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
24302
24303         * NumericUpDown.cs (Text): Just use base
24304         * UpDownBase.cs: Ensure txtView is created before using it
24305
24306 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
24307
24308         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
24309           casting to IntPtr to avoid 64bit overflow errors
24310
24311 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
24312
24313         * Control.cs:
24314           - AllowDrop: Don't force handle creation.
24315           - CreateHandle: Added call to tell driver if we're allowed to drop
24316
24317 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
24318
24319         * FileDialog.cs: Remember the last directory not only for the
24320           current instance but also for new FileDialog instances.
24321
24322 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
24323         
24324         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
24325           broke sending async messages
24326
24327 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
24328
24329         * XplatUIX11.cs:
24330           - ScrollWindow: Fixed method. We finally generate expose events again
24331             for scrolled areas. This was causing 'garbage' when scrolling
24332             textbox and other controls that used ScrollWindow
24333           - Switched from using the regular queue for paint events to the MS 
24334             model of 'generating' paint events when the queue is empty.
24335             We use the new XQueueEvent.Paint subclass to store which windows
24336             need painting.
24337           - AddExpose now takes the x/y/width/height of the exposed area
24338             and inserts the window into the paint queue if not already there
24339           - InvalidateWholeWindow: Switched to use new AddExpose method
24340           - UpdateMessageQueue: Added which queue to monitor for paint events
24341           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
24342             the unlikely case nothing above handles it. We reset the expose
24343             pending states to get them off the queue.
24344           - GetMessage: Now pulls a paint event if no other events are in the
24345             queue
24346           - Invalidate: Switched to new AddExpose method
24347           - PeekMessage: Updated to understand pending paint events
24348           - UpdateWindow: Fixed logic bug. We were only updating if the window
24349             didn't need updating. Also switched to sending WM_PAINT directly,
24350             like MS does.
24351         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
24352           and random access Remove(). The random access is needed to handle
24353           UpdateWindow() where a WM_PAINT is sent directly without accessing
24354           the queue.
24355         * ScrollBar.cs: Added Update() calls to cause immediate updates to
24356           allow for better feedback when scrolling. Scrollbars are small and
24357           the immediate update should make it 'feel' more responsive without
24358           slowing things down. ScrollBar still needs it's invaliate logic
24359           updated to not always invalidate the whole bar on certain changes.
24360
24361 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24362
24363         * Control.cs:
24364         (BackColor): if the control does not support a transparent background,
24365         return the default backcolor when the parent backcolor is transparent.
24366
24367 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
24368
24369         * Application.cs: Updated to new StartLoop/GetMessage API
24370         * RichTextBox.cs: Provide some output on RTF parsing errors
24371         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
24372           new queue_id argument to GetMessage and PeekMessage to allow faster
24373           handling of per-thread queues in drivers.
24374         * Hwnd.cs: Added Queue tracking and property
24375         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
24376         * XEventQueue.cs: Added thread trackingA
24377         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
24378         * XplatUIX11.cs:
24379           - Implemented new per-thread queue
24380           - GetMessage: Fixed return/break behaviour on several cases. We were
24381             returning stale messages in some cases, instead of just processing
24382             the next message
24383
24384 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
24385
24386         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
24387
24388 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
24389
24390         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
24391           fixed off-by-one comparisons between Width/Height and Right/Bottom.
24392
24393 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
24394
24395         * PropertyGridView.cs: Fix drop down width.
24396
24397 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
24398
24399         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
24400           a mess in DrawToolBar, so I removed one of them.
24401
24402 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
24403
24404         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
24405           needed (clip). Otherwise we get artifacts.
24406
24407 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
24408
24409         * FixedSizeTextBox.cs: Added constructor to allow specifying which
24410           dimension is fixed
24411         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
24412           and switched FixedSizeTextBox to only be fixed vertical (#78116)
24413         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
24414           if it matches the scale base font (avoids unneeded scaling)
24415
24416 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
24417
24418         * X11DesktopColors.cs: One gtk_init_check should be enough
24419
24420 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
24421
24422         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
24423           match MS behaviour
24424
24425 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
24426
24427         * TextBoxBase.cs: 
24428           - Generate OnTextChanged for Backspace even if we're only deleting
24429             the current selection
24430           - When setting the Text property, only select all text if the
24431             control does not have focus when it is being set. Otherwise
24432             just place the cursor at the beginning of the control
24433
24434 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
24435
24436         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
24437           Added a little helper to draw PropertyGrid ToolBar with a different
24438           border and a different BackColor.
24439         * PropertyGrid.cs: Some background parts didn't get painted with the
24440           correct background color. Added a class that helps us to draw the
24441           correct border for PropertyGridView and a class that helps us to
24442           draw ToolBars with a different backcolor
24443         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
24444
24445 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
24446
24447         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
24448         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
24449
24450 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
24451
24452         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
24453           into the palette entries. Also, since we're working on a copy
24454           we needed to copy the palette back onto the bitmap.
24455         * Cursor.cs: Same fix as XplatUIWin32.cs.
24456
24457 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
24458
24459         * ImageListStreamer.cs: Need to read the var (or we're off)
24460
24461 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
24462
24463         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
24464           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
24465           TextBoxBase.cs: Unused var fixes
24466         * AxHost.cs: Small 2.0 fix
24467         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
24468           as it seems that is what at least Metacity expects. This will make
24469           icons show up on 64bit platforms. We still have some 64bit size
24470           issues, though, since the startup app window size still won't match.
24471
24472 2006-04-25  Mike Kestner  <mkestner@novell.com>
24473
24474         * *.cs: cleanup newly reported exception var unused warnings.
24475
24476 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
24477
24478         * ThemeWin32Classic.cs: Button image alignment now matches exactly
24479           ms
24480
24481 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
24482
24483         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
24484           image. The image position is always the same, no matter if the
24485           button is pressed or not.
24486
24487 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
24488
24489         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
24490           selection and set the correct filename for SaveFileDialog.
24491           Patch by Emery Conrad.
24492
24493 2006-04-24  Mike Kestner  <mkestner@novell.com>
24494
24495         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
24496         check for item.X outside the ClientRect instead of item.Y. Fixes
24497         #78151.
24498
24499 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24500
24501         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
24502         trust that value blindly and do some sanity check. Fixes bug #77814.
24503
24504 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24505
24506         * ImageListStreamer.cs: save the mask as a 1bpp image.
24507
24508 2006-04-21  Mike Kestner  <mkestner@novell.com>
24509
24510         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
24511         pass Checked and Indeterminate to the Theme Engine. Improve
24512         encapsulation with ListBox.
24513         * ListBox.cs: Keep a StringFormat instead of calculating it every item
24514         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
24515         nested types.  Move all CheckState functionality to CheckedListBox.
24516         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
24517         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
24518         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
24519         single base list. Fix scrollbar sizing and placement to mirror MS.
24520         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
24521         used.
24522         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
24523         for CheckedListBox by using new DrawItemState info.  Center the
24524         checkboxes on the items. Use new StringFormat property.
24525
24526 2006-04-18  Jackson Harper  <jackson@ximian.com>
24527
24528         * Form.cs: MdiChildren don't do default locations the same way as
24529         regular forms.  This prevents a crash when trying to position the
24530         mdi windows.
24531
24532 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
24533
24534         * PropertyGridTextBox.cs: Formatting, copyright
24535         * PropertiesTab.cs: Formatting
24536         * PropertyGrid.cs: Formatting
24537         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
24538           click toggling of values
24539           
24540 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
24541
24542         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
24543         * Control.cs (.ctor): verify_thread_handle is static, don't reset
24544           every time a control is created
24545         * Application.cs: Removed obsolete EnableRTLMirroring method
24546
24547 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
24548
24549         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
24550         SelectedIndex to -1. Fixes bug #78121.
24551
24552 2006-04-17  Jackson Harper  <jackson@ximian.com>
24553
24554         * Binding.cs: Handle null values for Current and BindingContext.
24555         This occurs when binding is a little delayed.
24556         * CurrencyManager.cs: return null for Current when there are no
24557         items in the list.
24558         - Hookup to the listchanged event on the DataView and update
24559         bindings when the list is changed.  This fixes late binding of
24560         controls.
24561
24562 2006-04-17  Jackson Harper  <jackson@ximian.com>
24563
24564         * X11Dnd.cs:
24565         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
24566         Ringenbach.
24567
24568 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
24569
24570         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
24571           place
24572         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
24573           with the correct ButtonState
24574
24575 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
24576
24577         * XplatUIX11.cs: Improved distinguishing between window types to
24578           tell the WM a type closer to what the app wants (Fixes #78107)
24579
24580 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
24581
24582         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
24583           GrabHandle
24584
24585 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
24586
24587         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
24588           drawing code to reflect the size grip changes
24589
24590 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24591
24592         * ImageListStreamer.cs: fix handling of the mask that follows the main
24593         bitmap when deserializing and serialize it properly. The generated mask
24594         should better be a 1bpp image, but I'll do that later.
24595
24596 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
24597
24598         * FileDialog.cs: Show something in the DirComboBox on *nix if the
24599           path doesn't fit into some of our Current.Places
24600
24601 2006-04-13  Jackson Harper  <jackson@ximian.com>
24602
24603         * ComboBox.cs: Use borders instead of drawing our own decorations,
24604         try to obey correct rules for heights.
24605         * Theme.cs:
24606         * ThemeNice.cs:
24607         * ThemeClearLooks.cs:
24608         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
24609         this is now handled by borders.
24610         - Remove unused DrawListBoxDecorationSize method.
24611         
24612 2006-04-13  Mike Kestner  <mkestner@novell.com>
24613
24614         * MenuAPI.cs: null guarding for the disbled click check fixes crash
24615         reported by Alex.
24616
24617 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
24618
24619         * ThemeWin32Classic.cs: 
24620           - Fixed CPDrawStringDisabled
24621           - Corrected drawing of disabled menu items
24622           - Fixed drawing of disabled radio buttons (bug #78095)
24623           - Draw check in a disabled CheckBox with color ControlDark 
24624
24625 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
24626
24627         * Form.cs: Use the provided width when calculating the menu size;
24628           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
24629           and ClientSize.Width won't be updated yet
24630         * Application.cs: Use Visible instead of Show() to make form visible,
24631           this way we create the handle later and menusize is considered
24632
24633 2006-04-12  Mike Kestner  <mkestner@novell.com>
24634
24635         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
24636         reporting.
24637
24638 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
24639
24640         * TextBox.cs: Implemented context menu
24641
24642 2006-04-12  Mike Kestner  <mkestner@novell.com>
24643
24644         * ListView.cs: implement box selection. fixes #77838.
24645         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
24646
24647 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
24648
24649         * XplatUIX11.cs: Added setting of window type when transient window
24650           is created (metacity would move it otherwise)
24651         * X11Structs.cs: Added WINDOW_TYPE atoms
24652         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
24653           background (the control is Opaque but still wants transparent
24654           backgrounds)
24655
24656 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
24657
24658         * Control.cs: Added OnPaintBackgroundInternal to allow controls
24659           that set Opaque but don't mean it (like all ButtonBase-derived
24660           controls) to still draw their background
24661         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
24662           the background
24663
24664 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
24665
24666         * Control.cs (PaintControlBackground): Set the graphics object
24667           on our PaintEvent to null to prevent it from being disposed
24668           when the PaintEvent gets disposed
24669
24670 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
24671
24672         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
24673         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
24674
24675 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
24676
24677         * Control.cs: 
24678           - Added transparency check to BackColor property. Transparent
24679             backgrounds are only allowed if the control styles permit it
24680           - Added recursive painting of parent control background and
24681             foreground if a control with a transparent backcolor is drawn
24682             (Thanks to Tim Ringenback for providing his 'hack' as a base
24683              for this patch) Fixes #77985 and #78026.
24684           - Added Opaque style check before calling OnPaintBackground, no
24685             need to draw the background if the control is opaque
24686           - Removed ControlAccessibleObject owner variable (inherited from
24687             base, no need to define again)
24688           - Added some documentation links explaining the drawing events
24689             and styles
24690
24691 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
24692
24693         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
24694           that the affected control is the located at the left border of our
24695           parent (Fixes #77936)
24696
24697 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
24698
24699         * TextBoxBase.cs: When rendering disabled or readonly controls,
24700           draw the background with 'Control' instead of 'Window' color as
24701           long as the user hasn't specifically set a color
24702
24703 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
24704
24705         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
24706           since that won't be updated if the user types text (only if it's
24707           programatically set)
24708
24709 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
24710
24711         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
24712           layout changes do to app-triggered resizes will have the proper
24713           display rectangle for layout
24714
24715 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
24716
24717         * ThemeWin32Classic.cs:
24718           - Make use of the SystemBrushes and SystemPens wherever possible
24719           - Corrected some highlight colors
24720           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
24721             drawing
24722         * Theme.cs: Added Empty field to CPColor struct
24723
24724 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
24725
24726         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
24727           is displayed when calculating the display rectangle. Thanks to Mike
24728           for teaching me the err of my ways.
24729
24730 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
24731
24732         * ScrollableControl.cs:
24733           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
24734             (instead of 0,0) and we now return the real width/height instead of
24735             just the clientrectangle, adjusted for padding. The rectangle is
24736             now cached and created by the new CalculateDisplayRectangle method.
24737           - Created new CalculateDisplayRectange method, which basically does
24738             what get_DisplayRectangle() did originally, but now using the 
24739             right edge instead of DisplayRectangle to determine the size of
24740             our scrollbars
24741           - get_Canvas(): Fixed it to properly calculate canvas for 
24742             right/bottom controls which seem to be placed to the right/bottom
24743             of any controls that have a fixed location
24744           - Removed TODO that's taken care of
24745           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
24746             and SetDisplayRectLocation according to new MSDN2 docs
24747           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
24748             event when that is called, this is added for compatibility
24749           - ScrollControlIntoView(): Implemented.
24750           - Switched scrollbars to be implicit, they shouldn't be selectable
24751         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
24752           call it when the active control is set/changed
24753         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
24754         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
24755           implicit_control variable (used for native Win32 message generation)
24756         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
24757           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
24758         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
24759         * XplatUIStructs.cs: Added ScrollBarCommands enum
24760
24761 2006-04-10  Jackson Harper  <jackson@ximian.com>
24762
24763         * ButtonBase.cs:
24764         * CheckedListBox.cs:
24765         * ComboBox.cs:
24766         * DataGrid.cs:
24767         * DataGridView.cs:
24768         * Form.cs:
24769         * GroupBox.cs:
24770         * ListBox.cs:
24771         * PrintPreviewControl.cs:
24772         * ProgressBar.cs:
24773         * PropertyGrid.cs:
24774         * Splitter.cs:
24775         * StatusBar.cs:
24776         * TrackBar.cs:
24777         * UpDownBase.cs: Fixup base event overrides.
24778         
24779 2006-04-06  Mike Kestner  <mkestner@novell.com>
24780
24781         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
24782         all user-initiated value changes to min <= value <= max-thumbsz+1.
24783         (set_Value): check for vert/horiz when calculating new thumb position.
24784         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
24785         like MS does.
24786         (OnMouseMoveSB): refactor the thumb dragging code and refine
24787         invalidation logic to reduce flicker.
24788         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
24789         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
24790         (UpdateThumbPosition): small code readability cleanup
24791
24792 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
24793
24794         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
24795           different
24796
24797 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
24798
24799         * ThemeNice.cs: Use a better graphics effect when a button is pressed
24800
24801 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
24802
24803         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
24804         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
24805           This dramatically reduces the number of Pen.Dispose calls. 
24806           Where possible call ResPool methods only once instead of calling it
24807           over and over again (for example for the same color).
24808
24809 2006-04-06  Mike Kestner  <mkestner@novell.com>
24810
24811         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
24812         Also remove an unused private field on the collection. Fixes #77972.
24813
24814 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
24815
24816         * ThemeNice.cs: Added ToolBar drawing code
24817
24818 2006-04-06  Mike Kestner  <mkestner@novell.com>
24819
24820         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
24821         I'm assuming that means we need to look up the toplevel for the
24822         provided control. Fixes the crash trace in #77911 but exposes another
24823         crash in some strange reflection usage in NDocGui.
24824
24825 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
24826
24827         * ThemeNice.cs: Gave it a little silver touch and added Images
24828           method
24829         * FontDialog.cs: FontDialog is not resizable
24830         * FileDialg.cs: Added SizeGripStyle.Show
24831
24832 2006-04-05  Jackson Harper  <jackson@ximian.com>
24833
24834         * KeyboardLayouts.cs: Remove warning.
24835
24836 2006-04-05  Jackson Harper  <jackson@ximian.com>
24837
24838         * Control.cs: Enable OnPaintInternal so we can use it for drawing
24839         all of our controls instead of Paint +=.
24840         * ListBox.cs:
24841         * ListView.cs:
24842         * MenuAPI.cs:
24843         * MessageBox.cs:
24844         * NotifyIcon.cs:
24845         * ProgressBar.cs:
24846         * ScrollBar.cs:
24847         * Splitter.cs:
24848         * StatusBar.cs:
24849         * TabControl.cs:
24850         * TextBoxBase.cs:
24851         * ToolBar.cs:
24852         * TrackBar.cs:
24853         * UpDownBase.cs:
24854         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
24855         use OnPaintInternal. Remove Width/Height and Visible checks in
24856         paint handler, this is done at a higher level now.
24857         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
24858         * PaintEventArgs.cs: Add a handled flag so controls that don't
24859         want anymore painting after OnPaintInternal can make sure OnPaint
24860         isn't called.
24861
24862 2006-04-05  Mike Kestner  <mkestner@novell.com>
24863
24864         * Form.cs: fix the menu WndProc hacks to respect the native enabled
24865         state of the form, so that we don't process events when Modal dialogs
24866         are up. Fixes #77922.
24867
24868 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
24869
24870         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
24871           checking is done.
24872
24873 2006-04-05  Mike Kestner  <mkestner@novell.com>
24874
24875         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
24876
24877 2006-04-05  Mike Kestner  <mkestner@novell.com>
24878
24879         * ListView.cs (HeaderMouseMove): null guarding for the over column
24880         when setting up the drag_to_index.  Fixes #78015.
24881
24882 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
24883
24884         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
24885           in the taskbar. Transient windows seem to accomplish that.
24886
24887 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
24888
24889         * Form.cs:
24890           - Re-enabled CreateParams.X/Y code for FormStartPosition
24891           - Added code for manual placement when creating the Control
24892           - Incomplete patch to treat MDI forms differently when
24893             setting the ClientSizeCore. (Still need to figure out handling
24894             x/y coords there)
24895         * XplatUIX11.cs:
24896           - When we're explicitly setting the X/Y position of a non-Child
24897             window, let the WM know. Metacity really wants this.
24898
24899 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
24900
24901         * ThemeNice.cs: Added CPDrawButton
24902
24903 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
24904
24905         * ThemeNice.cs: Changed the color for focused buttons and activated
24906           the arrows for small scroll buttons.
24907
24908 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
24909
24910         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
24911           anymore. Changed some method modifiers to protected (virtual)
24912         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
24913           changes
24914         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
24915           Updated drawing of menus, buttons and progressbars; added
24916           CPDrawBorder3D 
24917
24918 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24919
24920         * ImageListStreamer.cs: implemented serialization/deserialization
24921         of the images.
24922
24923 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
24924
24925         * ThemeWin32Classic.cs:
24926           - Removed all the DrawFrameControl stuff; CPDrawButton,
24927             CPDrawCheckBox and CPDrawRadioButton are now handled directly
24928             inside the methods
24929           - Updated and corrected the drawing code of CPDrawButton,
24930             CPDrawCheckBox and CPDrawRadioButton to better match ms
24931           - Updated theme checkbox and radiobutton code to use the CP*
24932             methods
24933
24934 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
24935
24936         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
24937           bug is fixed
24938
24939 2006-03-31  Jackson Harper  <jackson@ximian.com>
24940
24941         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
24942         sometimes.
24943         * UpDownBase.cs: Don't CreateGraphics manually, use a
24944         Refresh. Ideally we would invalidate the correct areas here.
24945
24946 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
24947
24948         * XplatUIX11.cs: 
24949           - We now track the mapping state of windows. If a window (or 
24950             one of it's parents) is not mapped we no longer permit
24951             WM_PAINT messages to be generated since we'd otherwise get 
24952             lots of BadMatch X errors. Jackson did all the work figuring
24953             out the problem.
24954           - Destroying the caret if the window it's contained in is 
24955             destroyed. Can't use regular DestroyCaret method since it
24956             might fall into a drawing function (trying to remove the
24957             caret) and with that generate new BadMatch errors. Again,
24958             Jackson tracked this down.
24959           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
24960             make sure we send the messages to all windows. (The old code
24961             would send the WM_DESTROY to the window, and then all child
24962             windows would be 'gone' because the WM_DESTROY handle lookup
24963             would no longer find the destroyed window)
24964         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
24965         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
24966
24967 2006-03-31  Jackson Harper  <jackson@ximian.com>
24968
24969         * ScrollableControl.cs: Dont recalc if we are not visible.
24970
24971 2006-03-31  Mike Kestner  <mkestner@novell.com>
24972
24973         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
24974         the visibility branch.
24975
24976 2006-03-31  Jackson Harper  <jackson@ximian.com>
24977
24978         * ScrollBar.cs: Cap values when incrementing/decrementing.
24979
24980 2006-03-31  Mike Kestner  <mkestner@novell.com>
24981
24982         * MenuAPI.cs: setup menu.tracker for popup/context menus.
24983         * ToolTip.cs: guard against timer expirations with no active control.
24984         Not sure why it happened.
24985
24986 2006-03-31  Mike Kestner  <mkestner@novell.com>
24987
24988         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
24989         text.
24990         * ToolTip.cs: Position the tooltip based on where the cursor is at
24991         popup time, not at MouseEnter time.  Add a Down state so that we don't
24992         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
24993         positioning offset. Lookup DisplaySize at positioning time, since it
24994         can theoretically change during invocation.
24995         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
24996         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
24997
24998 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
24999
25000         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
25001           Fixes behaviour when the Text property of the box is String.Empty
25002
25003 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
25004
25005         * XplatUIX11.cs: Only send mouseleave for our client windows, not
25006           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
25007           a window)
25008
25009 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
25010
25011         * FileDialog.cs: Visual enhancement for the popup buttons in 
25012           PopupButtonPanel
25013
25014 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
25015
25016         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
25017           code
25018
25019 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
25020
25021         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
25022           highlighted menu items to match ms
25023
25024 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
25025
25026         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
25027
25028 2006-03-30  Mike Kestner  <mkestner@novell.com>
25029
25030         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
25031         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
25032         go active to account for HotLight to Selected transition.
25033         * MenuItem.cs: add internal Selected prop. Fill out the Status
25034         property by calculating it from item info. Add HotLight,
25035         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
25036
25037 2006-03-30  Mike Kestner  <mkestner@novell.com>
25038
25039         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
25040
25041 2006-03-29  Jackson Harper  <jackson@ximian.com>
25042
25043         * Form.cs: Implement TODO.
25044
25045 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
25046
25047         * PrintPreviewDialog.cs: Implemented missing methods and events; still
25048           missing proper dialog setup in the constructor
25049
25050 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
25051
25052         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
25053         * Control.cs:
25054           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
25055           - Fixed ResetBindings and removed TODO
25056           - Added check for cross-thread calls to get_Handle()
25057           - Added Marshaller attribute for set_Font to satisfy class status
25058         * FontDialog.cs: Removed TODOs that seemed implemented
25059         * UpDownBase.cs: Removed unneeded TODO and Fixme
25060         * MessageBox.cs: Implemented support for Default button and removed TODO
25061         * FileDialog.cs: Removed obsolete TODO
25062         * DomainUpDown.cs: Removed obsolete TODO
25063         * ButtonBase.cs: Removed obsolete TODO
25064         * XplatUIWin32.cs: Removed obsolete TODO
25065         * Form.cs:
25066           - Removed obsolete TODO
25067           - Calling CheckAcceptButton when the acceptbutton is changed to allow
25068             internal status updates
25069           - Making sure the active control is selected when the control is created
25070         * CurrencyManager.cs: Removed obsolete TODO
25071
25072 2006-03-29  Mike Kestner  <mkestner@novell.com>
25073
25074         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
25075         of PrintPreviewDialog and RichTextBox.
25076
25077 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
25078
25079         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
25080           DarkDark, Light and LightLight colors for a specific color
25081         * ThemeWin32Classic.cs:
25082           - Use Button drawing code to draw RadioButtons and CheckBoxes with
25083             Appearance = Button 
25084           - Make use of the new ResPool helper CPColor
25085           - Draw ProgressBar and StatusBar with correct 3D borders
25086
25087 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
25088
25089         * ColorDialog.cs: Return selected color. Fixes bug #77940.
25090
25091 2006-03-28  Mike Kestner  <mkestner@novell.com>
25092
25093         * ListView.cs: fix Icon layout to plan for scrollbar widths when
25094         calculating col/row counts.
25095
25096 2006-03-28  Mike Kestner  <mkestner@novell.com>
25097
25098         * ColumnHeader.cs:
25099         * ListView.cs:
25100         * ListViewItem.cs:
25101         * Menu.cs: 
25102         switch to explicit interface method implementation for some methods
25103         corcompare identifies as inconsistent with MS.
25104
25105 2006-03-28  Mike Kestner  <mkestner@novell.com>
25106
25107         * MainMenu.cs: 
25108         * Menu.cs:
25109         add a few missing methods from the class status output.
25110
25111 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
25112
25113         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
25114           correct.
25115
25116 2006-03-28  Mike Kestner  <mkestner@novell.com>
25117
25118         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
25119
25120 2006-03-27  Mike Kestner  <mkestner@novell.com>
25121
25122         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
25123         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
25124
25125 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
25126
25127         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
25128
25129 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
25130
25131         * ThemeWin32Classic.cs:
25132           - GroupBox: Inserted a little gap between the text and the lines
25133             on the right side
25134           - Made the code in CPDrawBorder3D more readable
25135           - Corrected the drawing location of the up and down arrows in 
25136             CPDrawScrollButton
25137
25138 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
25139
25140         * ControlPaint.cs: Corrected line widths in DrawBorder for
25141           ButtonBorderStyle Inset and Outset
25142
25143 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
25144
25145         * ThemeWin32Classic.cs:
25146           - Rewrote the totally broken CPDrawBorder3D method. That was
25147             one of the main problems for the terrific ThemeWin32Classic
25148             look
25149           - Updated and corrected Button drawing
25150           - Correct the dimensions of the SizeGrip to match ms ones
25151           - Removed a small drawing glitch in DrawComboBoxEditDecorations
25152         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
25153           Border3DStyle.Sunken to match ms.
25154
25155 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
25156
25157         * ThemeWin32Classic.cs: First small part of the "de-uglify
25158           ThemeWin32Classic" effort, SizeGrip
25159
25160 2006-03-24  Jackson Harper  <jackson@ximian.com>
25161
25162         * XplatUIX11.cs: Give a max idle time of one second, this matches
25163         MS and forces an Idle event every second when there are no other
25164         events in the queue.
25165
25166 2006-03-24  Mike Kestner  <mkestner@novell.com>
25167
25168         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
25169         * ListView.Item.cs: fix layout issues with null image lists and images
25170         smaller than checkbox size.
25171         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
25172         mode like MS does.  It's weird, but consistent.  ;-)
25173         Fixes #77890.
25174
25175 2006-03-24  Mike Kestner  <mkestner@novell.com>
25176
25177         * ListView.cs: Scroll wheel support for the item control.  Fixes
25178         #77839.
25179
25180 2006-03-23  Jackson Harper  <jackson@ximian.com>
25181
25182         * ScrollableControl.cs: Special case negative sized areas, not
25183         zero.
25184         * MonthCalendar.cs: Save the rect of the clicked date so we can
25185         use it for invalidation.
25186         - Try to cut down on the number of invalidates
25187         - Invalidate the rect the mouse is over and was over when moving
25188         the mouse, so we get the focus box following the cursor.
25189
25190 2006-03-23  Mike Kestner  <mkestner@novell.com>
25191
25192         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
25193         focus rectangle drawing. Fixes #77835.
25194
25195 2006-03-23  Mike Kestner  <mkestner@novell.com>
25196
25197         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
25198         the if and else if and reverting back to the original == check on the
25199         None conditional.
25200
25201 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
25202
25203         * FontDialog.cs: Update the example panel if the selected index of
25204           the fontListBox changes.
25205
25206 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
25207
25208         * FileDialog.cs: Make FileDialog remember which directory it was in
25209           last in the same execution.
25210
25211 2006-03-22  Mike Kestner  <mkestner@novell.com>
25212
25213         * FileDialog.cs: make the DropDownMenu on the toolbar display
25214         RadioChecks since they are mutually exclusive and that's what MS does.
25215
25216 2006-03-22  Mike Kestner  <mkestner@novell.com>
25217
25218         * Theme.cs: add Color param to CPDrawMenuGlyph.
25219         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
25220         checks and radio marks and arrows are visible on highlighted items.
25221         * ControlPaint.cs: update to use new Theme signature.
25222
25223 2006-03-22  Mike Kestner  <mkestner@novell.com>
25224
25225         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
25226         is active. Fixes #77870.
25227
25228 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
25229
25230         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
25231           to be focused/selected after startup
25232
25233 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
25234
25235         * ColorDialog.cs: 
25236           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
25237             CustomColors and ShowHelp properties
25238           - Some internal rewrites to get better results when using the
25239             ColorMatrix
25240
25241 2006-03-22  Mike Kestner  <mkestner@novell.com>
25242
25243         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
25244         HoverSelection.  Fixes #77836.
25245
25246 2006-03-22  Mike Kestner  <mkestner@novell.com>
25247
25248         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
25249         ToggleButtons.  (De)Sensitize the Back button around a stack count of
25250         1, not 0.  Update ButtonSize based on a pixel count of the win32
25251         control.  Adjust the toolbar size/location for new button size.
25252
25253 2006-03-22  Jackson Harper  <jackson@ximian.com>
25254
25255         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
25256         true.
25257         * ScrollBar.cs: When doing increments and decrements we need to
25258         set the Value property so that ValueChanged gets raised. A
25259         possible optimization here would be to make an internal SetValue
25260         that doesn't invalidate immediately.
25261         * ToolTip.cs: Tooltips get added to their container (when
25262         supplied) so they get disposed when the container is disposed.
25263         - Don't create tooltips for String.Empty. This prevents all these
25264         little 2-3 pixel windows from showing up when running nunit-gui
25265         and driving me mad.
25266         * Form.cs: Don't set topmost when setting the owner if the handles
25267         haven't been created yet.  The topmost set will happen when the
25268         handles are created.
25269
25270 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
25271
25272         * XplatUIX11.cs:
25273           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
25274           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
25275             visible (to allow them to recalculate their sizes)
25276
25277 2006-03-21  Mike Kestner  <mkestner@novell.com>
25278
25279         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
25280         methods. Removed a ton of redundant code.  Still not really happy with
25281         the border rendering, but I think that's mainly because of the
25282         ControlDarkDark being black instead of a dark grey. Depending on how 
25283         close we want to be, we might want to revisit those color choices.
25284         Among the new features added during the refactor were DropDownArrow
25285         pressed rendering, Disabled image rendering.  Proper flat appearance
25286         boundary rendering.  Removed the Divider and Wrapping dividers since I
25287         can't figure out any combination of themes and conditions to make the
25288         MS control draw a horizontal line on a toolbar despite what the
25289         Divider property docs indicate.
25290         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
25291         conditions and incorrect layout.  Updated to coding standard.
25292         * ToolBarButton.cs: refactored layout and positioning code from
25293         ToolBar to here.  Invalidate wherever possible instead of forcing
25294         redraws of the whole toolbar. 
25295         (Known remaining issues: explicit ButtonSize smaller than provided
25296         images.)
25297
25298 2006-03-21  Mike Kestner  <mkestner@novell.com>
25299
25300         * ContextMenu.cs (Show): use the position parameter instead of just
25301         showing at the MousePosition.
25302
25303 2006-03-21  Jackson Harper  <jackson@ximian.com>
25304
25305         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
25306         control handle this.
25307         * TreeNodeCollection.cs: If we are clearing the root node we need
25308         to reset top_node so calcs can still happen.
25309         * ThemeWin32Classic.cs: This is a Flags so we need to check
25310         properly.
25311         
25312 2006-03-21  Jackson Harper  <jackson@ximian.com>
25313
25314         * DataGrid.cs: Create columns when the binding context has been
25315         changed.
25316         * X11Structs.cs: Keysyms are uints.
25317         - Add size to fix build.
25318
25319 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
25320
25321         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
25322           XplatUIOSX.cs: 
25323           - Added ResetMouseHover method to allow controls to retrigger
25324             hovering if they need it more than once
25325           - Implemented MouseHoverTime and MouseHoverSize properties
25326         * Timer.cs: Start() must reset the interval
25327         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
25328           properties
25329
25330 2006-03-21  Jackson Harper  <jackson@ximian.com>
25331
25332         * X11Keyboard.cs: improved layout detection. Move the nonchar
25333         tables into this file.
25334         * KeyboardLayouts.cs: Move the tables into resource files.
25335
25336 2006-03-21  Mike Kestner  <mkestner@novell.com>
25337
25338         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
25339
25340 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
25341
25342         * Mime.cs: Various speed optimizations. Looking up mime types
25343           is now 2 times faster than before
25344
25345 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
25346
25347         * CreateParams.cs: Added internal menu field
25348         * Control.cs: 
25349           - Switched call order for UpdateBounds; now we always call
25350             the one that also takes ClientSize, and we're calculating the 
25351             client size via driver method in the others. The previous
25352             method of tracking client size by difference wasn't working
25353             for forms where even the starting client size wouldn't match
25354             the overall form size (due to borders) (Part of fix for #77729)
25355           - CreateParams(): Do not use parent.Handle unless the handle is
25356             already created. Causes havoc with Nexxia and throws off our
25357             creation of controls
25358         * XplatUIX11.cs:
25359           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
25360           - Switched handling of ConfigureNotify over to new PerformNCCalc 
25361             method (consolidates code)
25362           - Changed RequestNCRecalc to use new PerformNCCalc method
25363           - Added calls to RequestNCRecalc when menus and borders are changed
25364             to allow app to set NC size. (Part of fix for #77729) This matches
25365             when MS send a WM_NCRECALC on Win32 windows.
25366           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
25367             (Part of fix for #77729). This matches what MS does, they also
25368             send that message when the form is made visible.
25369           - XException.GetMessage: Improved usability of X errors by including
25370             a translation of the window into Hwnd and Control class
25371           - Improved debug info for window creation, reparenting and destruction
25372           - Created helper method WindowIsMapped() [Currently not used]
25373         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
25374         * Form.cs:
25375           - CreateParams: Now setting our menu on the new internal menu field
25376           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
25377             avoid calculating the same property twice
25378         * Hwnd.cs:
25379           - Improved usability of ToString() for debugging purposes
25380           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
25381             determine the height of the menu, instead of just the font. This
25382             required to also create a graphics context and to keep a bmp 
25383             around (for performance reasons)
25384
25385 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
25386
25387         * MenuAPI.cs: Added OnMouseUp method
25388         * Form.cs:
25389           - Now remembering the requested client size, avoids size errors
25390           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
25391             instead of base if the menu is active. This is required due to
25392             control now capturing and releasing on down/up and it would
25393             prematurely release our menu capture
25394
25395 2006-03-17  Jackson Harper  <jackson@ximian.com>
25396
25397         * KeyboardLayouts.cs: Add the czech layouts.
25398
25399 2006-03-16  Jackson Harper  <jackson@ximian.com>
25400
25401         * Control.cs: Use the viewport space when sizing not the controls
25402         client size, so things like ScrollableControl that effect the
25403         viewport size (when scrollbars are added) are computed correctly.
25404         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
25405         of ManagerEntrys.
25406         - Handle creating BindingManagers for null data sources.
25407         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
25408         source, otherwise when rows are added they are added to the 'fake'
25409         datasource and we will crash when trying to set the position in
25410         those rows.
25411         - Use Implicit scrollbars on the datagrid so they arent
25412         selectable.
25413         
25414 2006-03-16  Jackson Harper  <jackson@ximian.com>
25415
25416         * Binding.cs:
25417         * InternalWindowManager.cs:
25418         * MdiWindowManager.cs:
25419         * X11Keyboard.cs: I really want Mike to love me again (fix
25420         compiler warnings).
25421
25422 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
25423
25424         * DataGrid.cs:
25425           - OnMouseDown: Switch to editing mode when clicking on the cell
25426                          even if we're clicking on the cell that's currently 
25427                          selected
25428           - ProcessGridKey: Left/Right now wrap like MS.Net does
25429           - ProcessGridKey: Tab now knows to add a new row when tab is
25430                             pressed in the cell of the last column of the 
25431                             last row
25432           - ProcessGridKey: Enter now adds another row  if pressed in the last
25433                             row and selectes the new row, same column cell
25434           - ProcessGridKey: Home/End navigate columns, not rows, like 
25435                             originally implemented
25436           - Broke ProcessKeyPreview code out into an extra Internal method
25437             so it can be called from the edit code
25438         * DataGridTextBox.cs (ProcessKeyMessage):
25439           - Switched to accept Tab keypresses
25440           - Added F2 handling to allow jumping to the end of the edited cell
25441           - Added logic to allow moving caret left/right inside edited cell
25442             and making the edited cell jump when the caret hits cell borders
25443           - Tab and Enter are now passed to the datagrid after being handled
25444         * TextBoxBase.cs:
25445           - Removed capture code now that Control handles it
25446           - set_SelectionStart now ensures caret is visible
25447
25448 2006-03-16  Jackson Harper  <jackson@ximian.com>
25449
25450         * TrackBar.cs: Debackwards the increment/decrement for handling
25451         mouse clicks on the bar with vertical trackbars.
25452         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
25453         bottom to match MS.
25454
25455 2006-03-16  Mike Kestner  <mkestner@novell.com>
25456
25457         * ListView.cs: make shift/ctrl keyboard and mouse selection 
25458         consistent with the MS control. Fix a bug in
25459         SelectedListViewItemCollection.Clear that was pissing me off for the
25460         better part of a day because the collection was being altered
25461         underneath us as we walked the list.
25462
25463 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
25464
25465         * Control.cs: Not sure how we could miss this so long, but it seems
25466           that MS.Net has Capture set all the way from before calling 
25467           OnMouseDown through sending the mouse events until after
25468           OnMouseUp. This will fix DataGrid's selection being set to end
25469           at the location of the MouseUp.
25470
25471 2006-03-15  Jackson Harper  <jackson@ximian.com>
25472
25473         * BindingContext.cs: Check the binding after its added so that it
25474           can initialize the binding managers and hookup to events.
25475         * Binding.cs: Data members seem to sometimes include rows/cols in
25476           the format Row.Column we now take this into account.
25477           - Hookup to the position changed event so we can update the
25478           control when the position has changed in the data set.
25479         * CurrencyManager.cs: Take into account the row/col naming
25480           convention when creating dataset tables.
25481         * BindingContext.cs: Using a newer better way of storing
25482           datasource/datamember pairs.  Hopefully this better matches MS for
25483           looking up binding managers.
25484
25485
25486 2006-03-15  Jackson Harper  <jackson@ximian.com>
25487
25488         * BindingContext.cs: The currency manager needs the data member
25489         name, if the member is a data set we use the name to find the
25490         correct table.
25491         * CurrencyManager.cs: When creating the list prefer an IList over
25492         an IListSource.
25493         - Attempt to create a DataTable from a DataSet (TODO: might need
25494         some better error checking here, although MS doesn't seem to have much)
25495         - If we have a DataTable create a view and use it as our list.
25496
25497 2006-03-15  Mike Kestner  <mkestner@novell.com>
25498
25499         * ListView.cs: keep a matrix of the icon mode layout to facilitate
25500         keyboard navigation. Support Up/Down/Left/Right selection correctly
25501         for all 4 View modes.
25502         * ListViewItem.cs: add internal row/col fields for icon layouts.
25503
25504 2006-03-15  Jackson Harper  <jackson@ximian.com>
25505
25506         * TabControl.cs: Redraw the tabs when we resize so their newly
25507         calculated sizes are drawn on screen.
25508         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
25509         composite characters.
25510         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
25511         - filter events so that composite characters can be created
25512         patches by peter
25513         * X11Structs.cs: Add XIMProperties enum.
25514
25515 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
25516
25517         * Control.cs (BringToFront, SendToBack): Don't use window or handle
25518           unless it's created
25519
25520 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
25521
25522         * Control.cs (PerformLayout): We don't need to consider visiblity
25523           for anchoring, only for docking. This fixes 'whacky' alignment
25524           in listbox and other controls that use implicit scrollbars after
25525           the previous PerformLayout patch
25526         * ListBox.cs: Switched to use implicit scrollbars
25527           
25528 2006-03-14  Mike Kestner  <mkestner@novell.com>
25529
25530         * ToolBar.cs: 
25531         * VScrollBar.cs:
25532         - chain up the "new event" overrides to base and use
25533         OnEvent to raise them.  Part of fix for bug #76509.
25534
25535 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
25536
25537         * FileDialog.cs: Do not select an item in the parent directory
25538           on backspace
25539
25540 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
25541
25542         * Control.cs (PerformLayout): It would seem that we considered
25543           invisible windows for our layout. Not quite the right thing
25544           to do. Now we don't any longer, thereby fixing bug #76889.
25545
25546 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
25547
25548         * Control.cs (CanFocus): I goofed. A control can have focus 
25549           even though it's not selectable. Made it match MS docs.
25550
25551 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
25552
25553         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
25554           center by default (fixes #76895)
25555         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
25556           all uses of Border3DSides.All with the explicit ORd together
25557           Left|Right|Top|Bottom because I assume that nobody was aware 
25558           that All also implies a center fill. Most places I checked had
25559           a fill right above.
25560         * ProgressBarStyle.cs: Added
25561
25562 2006-03-13  Mike Kestner  <mkestner@novell.com>
25563
25564         * ListView.cs: fix breakage in drag shadow header positioning 
25565         from Peter's csc compilation fix.
25566
25567 2006-03-13  Mike Kestner  <mkestner@novell.com>
25568
25569         * ListView.cs: fix NRE produced by backspacing twice in a focused
25570         FileDialog.
25571
25572 2006-03-13  Mike Kestner  <mkestner@novell.com>
25573
25574         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
25575
25576 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
25577
25578         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
25579           be changed
25580         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
25581           the allowed size before making programmatic size changes
25582
25583 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
25584
25585         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
25586           set, metacity is broken and will still use the emty sizes in 
25587           the struct. (Fix for #77089)
25588
25589 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
25590
25591         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
25592           WindowExStyles and marked both enums as Flags
25593         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
25594           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
25595           to match WindowStyles split
25596         * XplatUIX11.cs:
25597           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
25598           - Updated to match WindowStyles split
25599         * XplatUIWin32.cs:
25600           - Fixed FosterParent creation, was using ExStyle on the Style field
25601             (This should help with Popup focus issues)
25602           - Updated to match WindowStyles split
25603
25604 2006-03-13  Jackson Harper  <jackson@ximian.com>
25605
25606         * MdiWindowManager.cs: Use the system menu height. Fixes some
25607         strange sizing issues.
25608
25609 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
25610
25611         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
25612         * TextBoxBase.cs:
25613           - Scroll to caret after inserting text (#77672)
25614           - Make scroll range one pixel higher, fixes off-by-one error (and
25615             makes underlines visible on the last line)
25616
25617 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
25618
25619         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
25620           the keyboard state from being stuck with keys in 'pressed' state when
25621           focus is switched away via keyboard
25622         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
25623           reset the keyboard if no X11 KeyUp events are expected to come
25624         * X11Structs.cs: Switched type of Visible to bool to match driver
25625
25626 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
25627
25628         * TextControl.cs:
25629           - Switched caret to be just 1 pixel wide, matches MS and looks less
25630             clunky
25631           - Moved caret display 1 pixel down from the top of the control
25632             to improve view
25633           - InsertCharAtCharet: Update the selection start if moving the caret
25634             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
25635           - No longer always creating the caret when the caret methods are
25636             called. Only the actual ShowCaret/HideCaret will do that now
25637           - Only setting caret visible if the owner control has focus
25638           - UpdateView: Added invalidation-shortcut logic for center and right 
25639             aligned text. Previously we'd update all according to the left
25640             logic which caused drawing errors. Also fixed height of invalidated
25641             areas, now properly invalidating the whole area (was off-by-one)
25642           - owner_HandleCreated: Always generate the document when the
25643             handle is created; this ensures that 
25644         * TextBoxBase.cs:
25645           - Fixed situation where caret would disappear under the right
25646             window border, also improved scrolling behaviour on left-
25647             aligned textboxes
25648           - Fixed right-aligned textboxes to have a border to the
25649             right instead of the caret being under the right border
25650         * XplatUIX11.cs:
25651           - Switched from 'nested' to simple visible/not visible tracking 
25652             for caret (part of fix for #77671)
25653           - No longer passing through translated FocusIn/FocusOut messages
25654             since we were notifying too often and the wrong windows. Instead
25655             we just notify our focussed window of receiving or loosing focus
25656         * XplatUIWin32.cs: Switched from 'nested' show/hide 
25657           counting for caret to simple visible yes/no behaviour (part of 
25658           fix for #77671)
25659
25660 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
25661
25662         * Mime.cs: Remove debug code...
25663
25664 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
25665
25666         * MimeGenerated.cs: Removed
25667         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
25668           and subclasses) from /usr/(local/)share/mime and
25669           $HOME/.local/share/mime.
25670
25671 2006-03-10  Jackson Harper  <jackson@ximian.com>
25672
25673         * MdiWindowManager.cs: Recalc the NC area when a window is
25674         maximized/restored so that the menu area is drawn on forms that
25675         don't have a menu.
25676
25677 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
25678
25679         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
25680           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
25681           us to force a WM_NCCALCRESIZE message being sent. This is needed
25682           for MDI maximizing.
25683
25684 2006-03-10  Jackson Harper  <jackson@ximian.com>
25685
25686         * Form.cs: We need to use the ActiveMenu when calculating menu
25687         height.
25688         - Fix nullref when the window manager hasn't been created yet.
25689         * Control.cs: Fix nullref when we try to bring a control to the
25690         front that has no parent.
25691         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
25692         height.
25693         - Add a dummy item to the maximized menu so it always has the
25694         correct height. Otherwise when there are no menus we don't get our
25695         icon and buttons.
25696         
25697
25698 2006-03-10  Jackson Harper  <jackson@ximian.com>
25699
25700         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
25701         stuff.
25702         * Form.cs: Make the window_state internal so the window managers
25703         can track it.
25704         - When an MDI child is maximized let its window manager create the
25705         main menu (so it can add its icon).
25706         - Notify the window managers of state changes
25707         - Let the window manager paint its buttons and handle button
25708         clicks on the menu when it is maximized.
25709         * InternalWindowManager.cs: Move the prev_bounds into the mdi
25710         window manager, since tool windows don't use it, only mdi windows.
25711         - Tell the main form that we don't want it to handle NCPAINT
25712         itself to avoid extra painting.
25713         - Handle clicks on a maximized windows menu.
25714         - Handle window state changes
25715         - Handle minimize/maximize clicks correctly by setting the window state.
25716         * MdiWindowManager.cs: Add an icon menu that (the menu you get
25717         when clicking on the forms icon).
25718         - New method to create a forms maximized menu. This is its normal
25719         menu + an icon.
25720         - Handle window state changes.
25721         - Handle sizing of maximized windows.  Maximized windows are just
25722         drawn bigger then the parent visible area. All controls are still
25723         there, they are just outside the visible area (this matches windows).
25724         * MdiClient.cs: No scrollbars when a child window is maximized.
25725         - Let the children windows figure out how big they should be when
25726         sizing maximized windows.
25727         - Implement a version of ArrangeIconicWindows somewhat similar to
25728         Windows version.  There are some little differences, but I don't
25729         think any app will rely on the layout of minimized mdi windows.
25730
25731 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
25732
25733         * Padding.cs: Several fixes to allow compiling with csc 2.0
25734
25735 2006-03-09  Jackson Harper  <jackson@ximian.com>
25736
25737         * Menu.cs:
25738         * MenuItem.cs: Cheap hack so we can add items to the list without
25739         the events being raised.  This allows adding mdi items during
25740         drawing. TODO: Should probably find a better time to add the items.
25741
25742 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
25743
25744         * ThemeWin32Classic.cs:
25745           - CheckBox_DrawText: Added logic to not wrap if not enough space
25746             is available (Fix for bug #77727)
25747           - RadioButton_DrawText: Added logic not to wrap if not enough
25748             space is available (Fix for bug #77727). Also removed some
25749             duplicate code, DrawString always drawing the regular text
25750             before hitting the if statement.
25751
25752 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
25753
25754         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
25755
25756 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
25757
25758         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
25759         * ContainerControl.cs: Partial implementation of some 2.0 scaling
25760           methods. Moved the new 2.0 properties into alphabetical order with
25761           other properties and added MonoTODO tags
25762
25763 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
25764
25765         * AutoScaleMode.cs: Added. Fix build.
25766
25767 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
25768
25769         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
25770           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
25771           and was requiring premature handle creation for calls from above
25772         * Form.cs, Control.cs: Removed handle arguments from calls to
25773           CalculateClientRect()
25774
25775 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
25776
25777         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
25778           drag_column.column_rect is MarshalByRef and can't be used that way
25779
25780 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
25781
25782         * AxHost.cs: Added deserialization constructor for 
25783           AxHost+State (fixes 77743)
25784
25785 2006-03-09  Mike Kestner  <mkestner@novell.com>
25786
25787         * ListView.cs: 
25788         - Added column drag reordering for details view.
25789         - fixed behavior when mouse is dragged off column and
25790         AllowColumnReorder is false.
25791         * ColumnHeader.cs: clone the format too in Clone.
25792         * Theme.cs: add DrawListViewHeaderDragDetails method.
25793         * ThemeWin32Classic.cs:
25794         - impl new method for drawing drag column shadows and targets.
25795         - support column offset for details mode in DrawListViewItem.
25796
25797 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
25798
25799         * TextControl.cs: Reset the char_count when the document is cleared
25800           (Fixes bug reported on mono-winforms mailing list)
25801
25802 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
25803
25804         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
25805           of calling base we simply process the key ourselves, since both
25806           DefWindowProc and the handled method would set m.Result. 
25807           (Fixes #77732)
25808
25809 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
25810
25811         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
25812           method also moves the window; instead implemented a copy of
25813           Control.ScaleCore (Part of fix for #77456)
25814         * TextBoxBase.cs: 
25815           - Created new CreateGraphicsInternal method to allow providing
25816             a graphics context when no handle is created without triggering
25817             handle creation. (Part of fix for #77456)
25818           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
25819         * TextControl.cs: 
25820           - Switched Constructor to require TextBoxBase instead of Control (to
25821             allow uncast access to CreateGraphicsInternal)
25822           - Safeguarded use of owner.Handle property. No longer accessing it
25823             unless the handle is already created.
25824           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
25825           - Now triggering a recalc when owning control becomes visible
25826         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
25827           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
25828           premature handle creation (Part of fix for #77456)
25829         * Control.cs:
25830           - We now only destroy our double-buffering buffers when the
25831             control is resized or disposed, but not when visibility
25832             changes. (The code even re-created them twice every time)
25833           - Now requiring a redraw of the buffer on visibility changes
25834             (fixes bug 77654 part 2)
25835           - Not passing OnParentVisibleChanged up unless the control
25836             is visible
25837           - CanFocus: Fixed to match MS documentation
25838           - Focus: Fixed to return actual focus state and to check if
25839             setting focus is legal before setting it
25840
25841 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
25842
25843         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
25844           when to draw focus rectangle by looking at parent focus and
25845           selected state instead. This fixes TabPages on Linux sometimes
25846           having none or multiple focus rectangles.
25847         * XplatUIX11.cs (SetFocus): 
25848           - Don't set the focus if the same window already has focus
25849           - Use SendMessage instead of PostMessage (like it's Win32
25850             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
25851             to match MS behaviour
25852         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
25853           are not selectable.
25854
25855 2006-03-07  Jackson Harper  <jackson@ximian.com>
25856
25857         * PictureBox.cs: Revert line I accidently committed last week.
25858
25859 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
25860
25861         * Control.cs: 
25862           - Added new IsRecreating and ParentIsRecreating properties to
25863             allow testing if RecreateHandle has been called on ourselves
25864             or one of our parents
25865           - WndProc(WM_DESTROY): If our control handle is being recreated
25866             we immediately need to create the handle when receiving the
25867             destroy, that way our child windows find a valid parent handle
25868             when they themselves are being recreated upon WM_DESTROY receipt
25869             (fix for bug #77654 part 1)
25870         * XplatUIX11.cs:
25871           - DestroyWindow: WM_DESTROY must be sent to our own window before
25872             notifying any child windows. MS documents that child windows
25873             are still valid when WM_DESTROY is received. (Control now relies on
25874             this behaviour)
25875           - Added some fine-grain debug options
25876
25877 2006-03-06  Jackson Harper  <jackson@ximian.com>
25878
25879         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
25880         box and base calculations off this.
25881         * MdiChildContext.cs:
25882         * MdiWindowManager.cs: Don't need to ensure scrollbars here
25883         anymore.
25884         
25885 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
25886
25887         * Splitter.cs: In situations where the affected control is added
25888           to the parent's control list after the splitter, we would not
25889           populate affected. Now we try populating it on mousedown, if
25890           it's not already set, and force it to be re-set whenever our
25891           parent changes.
25892
25893 2006-03-03  Matt Hargett  <matt@use.net>
25894
25895         * Control.cs: implement Control.Padding
25896         * Padding.cs: -Padding.All returns -1 when constructing with the
25897         implicit default ctor
25898         -Padding.ToString() matches MS.NET
25899         * ContainerControl.cs: implement
25900         ContainerControl.AutoScaleDimensions
25901         * ListControl.cs: implement ListControl.FormattingEnabled
25902         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
25903         * ButtonBase.cs:
25904         * TabPage.cs: Implement UseVisualStyleBackColor.
25905         * PictureBox.cs: Implement PictureBox.InitialImage.
25906
25907 2006-03-03  Mike Kestner  <mkestner@novell.com>
25908
25909         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
25910         event declarations to proxy to base event.
25911         * ListViewItem.cs: update to use ItemControl.
25912         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
25913         * ThemeWin32Classic.cs: update to new ListView theme API and fix
25914         column header label rendering for 0 width columns.
25915
25916 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
25917
25918         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
25919           that causes the control to be created. Fixes #77476.
25920
25921 2006-03-02  Jackson Harper  <jackson@ximian.com>
25922
25923         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
25924         expose_pending.
25925
25926 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
25927
25928         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
25929           passed in for the EventArgs (fixes #77690)
25930
25931 2006-03-01  Jackson Harper  <jackson@ximian.com>
25932
25933         * ScrollBar.cs: Refresh afterbeing resized.
25934
25935 2006-02-28  Mike Kestner  <mkestner@novell.com>
25936
25937         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
25938         Clean up a tracker compile warning.
25939         * MenuItem.cs: add internal PerformPopup method.
25940         [Fixes #77457]
25941
25942 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
25943
25944         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
25945           implicit expose) when the text is set to null
25946
25947 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
25948
25949         * RichTextBox.cs (FlushText): When newline is true, we always
25950           need to split the line, even if no text is on it and we may
25951           never eat newlines. (Fixes #77669)
25952
25953 2006-02-28  Mike Kestner  <mkestner@novell.com>
25954
25955         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
25956         and set Selected instead.
25957         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
25958         collections.
25959
25960 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
25961
25962         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
25963
25964 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
25965
25966         * FontDialog.cs:
25967           - Got rid of the panel. All controls are now directly added to
25968             the dialog form
25969           - It is now possible to set a font with the Font property
25970           - MinSize and MaxSize property do now what they should
25971           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
25972           - Searching and selecting a font with the font textbox works now,
25973             the same applies to the style and size textbox
25974           - Draw the correct 3D border in the example panel
25975           - Fixed a little mem leak (unused fonts didn't get disposed)
25976           - Many other internal updates/rewrites...
25977           - Fix typo
25978
25979 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
25980
25981         * TextControl.cs: 
25982           - InsertRTFFromStream: Added 'number of characters inserted' argument
25983           - set_SelectedRTF: Now using the number of characters to calculate
25984             the new location for the selection and cursor (x/y cannot be used
25985             due to potentially already wrapped text)
25986
25987 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
25988
25989         * TextControl.cs: Added property and implemented means to allow 
25990           disabling recalculation of a document (can be used to speed up
25991           multiple inserts and is needed to make RTF inserts predictable, see
25992           bug #77659)
25993         * RichTextBox.cs: Using the new NoRecalc property of Document to
25994           keep x/y insert locations predictable. Also makes it faster inserting
25995           large chunks of RTF
25996
25997 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
25998
25999         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
26000           it's easier for a child control to handle the other messages without
26001           having to duplicate the special functionality
26002         * TextBoxBase.cs
26003           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
26004             code to handle processing the key ourselves, in order to get 
26005             access to the result of KeyEventArgs.Handled. We now only call 
26006             ProcessKey if they key hasn't been handled already. Fixes #77526.
26007           - set_Text: If null or empty string is given, just clear the 
26008             document. Fixes part of #77526
26009
26010 2006-02-27  Jackson Harper  <jackson@ximian.com>
26011
26012         * SizeGrip.cs: Paint the background color before painting the grip
26013         so things look right.
26014         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
26015
26016 2006-02-27  Mike Kestner  <mkestner@novell.com>
26017
26018         * ListView.cs:
26019           - Restructure layout and invalidation model to remove a ton of
26020           flicker from the control and speed up performance in general.
26021           - Add manual column resize, flickers like crazy, but I already have
26022           some ideas on how I'll fix that. (#76822)
26023           - Merge the three Icon-based views into a single layout method.
26024           - Move item selection interaction logic from the item since 
26025           interaction with the collections is more appropriate to the view.
26026           - Deselection on non-item clicks.
26027         * ListViewItem.cs:
26028           - Encapsulate most of the layout. Add some internal props to trigger
26029           layout.  Move to a model where Items invalidate themselves instead
26030           of just invalidating the whole control every time something changes.
26031           - Invalidate on Text/Caption changes.
26032           - switch to an offset based layout model to avoid having to absolute
26033           position every element on item moves.
26034           - correct checkbox layout to conform to MS layout.
26035         * ThemeWin32Classic.cs:
26036           - refactor some column header drawing code.
26037           - fix string justification for column headers (#76821)
26038           - make SmallIcon labels top justified for compat with MS impl.
26039         * ThemeClearlooks.cs:
26040           - adjust to new ListViewItem internal checkbox bounds api.
26041
26042 2006-02-27  Jackson Harper  <jackson@ximian.com>
26043
26044         * Control.cs:  Change where implicit controls fall in the zorder.
26045         They are now on top of all children.
26046         - Synced AddImplicit code with Add
26047         - Removed unused enumerator.
26048         * SizeGrip.cs: Remove the TODO as its been TODONE.
26049
26050 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
26051
26052         * TextControl.cs(Insert): Combine the last lines unless the insertion
26053           string ends with \n\n, otherwise we leave one line too many (Fixes
26054           something I noticed with the testapp for #77526; the bug itself was
26055           already fixed in the previous checkin)
26056
26057 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
26058
26059         * RichTextBox.cs:
26060           - SelectionColor and SelectionFont methods no longer set absolute
26061             styles. Instead, the keep font or color respectively (This 
26062             resolves a long-standing FIXME in the code)
26063           - When flushing RTF text, the insert code now considers text trailing
26064             behind the insertion point (Fixes the bug where when replacing
26065             the selected text via SelectedRTF the remainder of the line behind 
26066             the selection would stay on the first insertion line)
26067         * TextBoxBase.cs:
26068           - AppendText now updates the selection points after inserting text
26069           - AppendText now ensures that the last tag (sometimes 0-length) of
26070             the document is used for the style information (Fixes part of 
26071             bug #77220)
26072         * TextControl.cs:
26073           - Created new FontDefiniton class to allow describing partial style
26074             changes
26075           - StreamLine() now takes a lines argument, to allow it to decide
26076             whether an encountered zero-length tag is the last in the document
26077             (which must be kept to not loose the font/color contained in it,
26078             for later appends)
26079           - Created Combine() and Split() methods for Marker structs, to 
26080             support marker updates due to reformatted documents (soft line
26081             wraps)
26082           - Implemented Document.CaretTag setter
26083           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
26084             of the last line (Not the cause, but also exposed by bug #77220)
26085           - Added LineTag argument to InsertString method, to allow callers
26086             to force a certain tag to be used (required to force use of the
26087             trailing zero-length tag of a document)
26088           - Now updating markers in Combine(), to avoid stale tag markers
26089           - Added some method descriptions to aid maintenance
26090           - Implemented new FormatText concept, allowing additive/subtractive
26091             formatting by only specifying the components that are to be 
26092             changed. This was needed for resolving the RTB.SelectedColor/
26093             RTB.SelectedFont fixmes
26094           - Added Break() support method to allow breaking up linetags (used
26095             for partial formatting)
26096           - Added GenerateTextFormat() method. It is used for partial 
26097             formatting and allows to generate a full font/color from given
26098             attributes and an existing tag.
26099
26100 2006-02-26  Jackson Harper  <jackson@ximian.com>
26101
26102         * XplatUIX11.cs:  Use the correct caption height.
26103         - Translate hittest coordinates to screen coords to match MS.
26104         * XplatUIWin32.cs: When we create MDI windows we need to reset
26105         some of the style flags, so we get a nice blank window, and can
26106         draw all the decorations ourselves.
26107         - Set a clipping rectangle on the non client paint event, the
26108         window manager drawing code needs one.
26109         * Form.cs: The window manager needs to know when the window state
26110         has been updated.
26111         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
26112         don't need to factor in border and title sizes in these
26113         methods. TODO: Remove the args and fix the call points.
26114         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
26115         properly.
26116         - Let the driver set the cursors.
26117         - Improve active window handling
26118         - Correct sizes for title bars and buttons.
26119         - Match MS drawing better
26120         * MdiWindowManager.cs: We don't need to handle border style
26121         updates specially anymore.
26122         - Check for scrollbars when windows are done moving
26123         - Handle Active properly.
26124         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
26125         correctly. I am spewing the exception though, so we don't hide the
26126         bugs.
26127         
26128 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
26129
26130         * DataGridViewRowPostPaintEventArgs.cs,
26131           DataGridViewCellPaintingEventArgs.cs,
26132           DataGridViewRowCollection.cs,
26133           DataGridViewRowPrePaintEventArgs.cs,
26134           DataGridViewCell.cs: Clear a few warnings and implement a few
26135           exceptions that should be thrown.
26136
26137 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
26138
26139         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
26140           'inheriting' our parent's (non-default) cursor. (Part of
26141            the fix for #77479)
26142
26143 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
26144
26145         * XplatUIX11.cs: Fixed cast to make csc happy
26146
26147 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
26148
26149         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
26150           it's for the client area (part of fix for #77479 and needed
26151           for MDI window cursor handling)
26152         * XplatUIX11.cs
26153           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
26154             the appropriate default cursors and also passing the message
26155             up the parent chain 
26156           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
26157             for non-client areas
26158
26159 2006-02-15  Jackson Harper  <jackson@ximian.com>
26160
26161         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
26162         is a real MDI window
26163
26164 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
26165
26166         * X11DesktopColors.cs: Instead of checking the desktop session
26167           string for "KDE" check if it starts with "KDE"
26168
26169 2006-02-10  Jackson Harper  <jackson@ximian.com>
26170
26171         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
26172         systems).
26173
26174 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
26175
26176         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
26177           errors
26178         * ColorDialog.cs:
26179           - Got rid of the panel. All controls are now directly added to
26180             the dialog form
26181           - Changed to mono coding style
26182
26183 2006-02-10  Jackson Harper  <jackson@ximian.com>
26184
26185         * InternalWindowManager.cs: We don't need the set visibility to
26186         false hack anymore now that peter has written beautiful shutdown
26187         code.
26188
26189 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
26190
26191         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
26192           where already explicitly destroyed
26193
26194 2006-02-10  Jackson Harper  <jackson@ximian.com>
26195
26196         * MdiClient.cs: Handle the case where windows are too high or to
26197         the left and we need scrollbars.
26198
26199 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
26200
26201         * MimeIcon.cs: Added some icons
26202         * FileDialog.cs:
26203           - Fixed bug #77477
26204           - Got rid of the panel. All controls are now directly added to
26205             the dialog form
26206           - Changed to mono coding style
26207           - On Linux "My Computer" and "My Network" will now show some
26208             more usefull information. A new class, MasterMount, gathers
26209             this information from /proc/mount. Updated MWFFileView to make
26210             use of this information
26211           - Fixed a bug that caused FileDialog to crash when
26212             ".recently_used" file had a zero size
26213           - FilterIndex does now what it should
26214           - Some Refactoring
26215         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
26216             FileDialog changes
26217
26218 2006-02-09  Jackson Harper  <jackson@ximian.com>
26219
26220         * ComboBox.cs: Don't touch if null.
26221
26222 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
26223
26224         * Cursor.cs: 64bit safeness fix
26225         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
26226
26227 2006-02-09  Jackson Harper  <jackson@ximian.com>
26228
26229         * Form.cs: If a form is made into an MDI form update the styles so
26230         all the props can get set correctly.
26231         - Kill the mdi_container when we dont need it anymore.
26232         * InternalWindowManager.cs: Add missing NOT
26233
26234 2006-02-08  Jackson Harper  <jackson@ximian.com>
26235
26236         * InternalWindowManager.cs: Respek clipping when drawing MDi
26237         decorations.
26238
26239 2006-02-08  Jackson Harper  <jackson@ximian.com>
26240
26241         * Hwnd.cs: Add bits to track non client expose events.
26242         * XplatUIX11.cs: Track non client expose events on the hwnd. This
26243         gives us a proper invalid rect and will allow for some nice
26244         optimizations with NC client drawing
26245         - MDI windows are children windows, so move their style handling
26246         into the child window block.
26247         * InternalWindowManager.cs: Remove a state reset that was
26248         getting invoked at the wrong time. Fixes managed windows getting
26249         into a 'stuck' captured state.
26250
26251 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
26252
26253         * TextControl.cs (Document.ctor): Now initializing 
26254           selection_anchor. Fixes #77493
26255
26256 2006-02-07  Jackson Harper  <jackson@ximian.com>
26257
26258         * TrackBar.cs: The increment/decrements were backwards.
26259
26260 2006-02-07  Mike Kestner  <mkestner@novell.com>
26261
26262         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
26263         to the instance itself.
26264
26265 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
26266
26267         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
26268           on ulongs and pointers, the size differs between 32bit and 64bit
26269           systems. 
26270
26271 2006-02-07  Mike Kestner  <mkestner@novell.com>
26272
26273         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
26274         for 64 bit platforms to work around a metacity bug. 
26275
26276 2006-02-07  Jackson Harper  <jackson@ximian.com>
26277
26278         * TrackBar.cs: Process the input keys we need, and hookup to
26279         KeyDown instead of using WndProc, so we get key messages.
26280
26281 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
26282
26283         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
26284           machine we're on. 
26285         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
26286           we need to translate the XdndVersion atoms array before sending it
26287
26288 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
26289
26290         * XplatUIX11.cs: 
26291           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
26292             number of bits for the property, not the number of bytes. The
26293             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
26294             but would not crash since it specified 8 bits instead of 4 bits)
26295           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
26296             defined as XID -> long in the C headers)
26297           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
26298             references since those are now IntPtr to begin with
26299           - Switched all Atom.XXX 'int' casts to IntPtr casts
26300           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
26301           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
26302           - Added XChangeActivePointerGrab DllImport (for X11DnD)
26303         * X11Structs.cs:
26304           - Changed 'int' type for Atoms in XEvent structures to IntPtr
26305           - Changed atom in HoverStruct to be IntPtr
26306         * X11DnD.cs:
26307           - Removed local DllImports, switched code to use those from XplatUIX11
26308           - Removed/fixed casts related to the switch of Atom to be a IntPtr
26309
26310 2006-02-06  Mike Kestner  <mkestner@novell.com>
26311
26312         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
26313         method signatures in the import region.  There may still be some
26314         lingering struct marshaling issues, as I didn't drill down into those.
26315         Yet.
26316
26317 2006-02-06  Jackson Harper  <jackson@ximian.com>
26318
26319         * ComboBox.cs: Dont manually set the top_item, this is computed
26320         when the scrollbar position is set.
26321
26322 2006-02-06  Mike Kestner  <mkestner@novell.com>
26323
26324         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
26325         startup crashes on amd64.  There's other fixes needed.  All pinvoke
26326         usage of Atom needs to be mapped to IntPtr for example.  And there are
26327         likely other int/long issues to be addressed.
26328
26329 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
26330
26331         * FileDialog.cs: One more...
26332
26333 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
26334
26335         * FileDialog.cs: Next try
26336
26337 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
26338
26339         * FileDialog.cs: First part of fix for #77464
26340
26341 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
26342
26343         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
26344           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
26345           AcceptButton border drawing.
26346
26347 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
26348
26349         * Form.cs: Moved positioning of form after auto scaling is applied,
26350           otherwise it would possibly use wrong form size.
26351
26352 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
26353
26354         * Control.cs (RecreateHandle): No need to re-create any child
26355           controls, the child windows will get destroyed automatically by
26356           the windowing system or driver, and re-created when the handle
26357           is being accessed the first time. Fixes #77456
26358         * Form.cs: No longer setting the form to closing if the handle is 
26359           being recreated. This seems like the right thing to do, don't
26360           have a bug or testcase for this, though.
26361
26362 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
26363
26364         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
26365           controls to avoid unwanted side effects
26366
26367 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
26368
26369         * Control.cs: 
26370           - ScaleCore needs to scale the bounds, not the ClientSize of the 
26371             control. Fixes #77416.
26372           - DefaultSize is 0,0 for control
26373         * TextBoxBase.cs: 
26374           - DefaultSize is 100, 20
26375           - SetBoundsCore: Now enforcing the height, no matter if the provided
26376             height is more or less than the preferred one, as long as AutoSize
26377             is on
26378         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
26379
26380 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
26381
26382         * Control.cs:
26383           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
26384             call unless both performLayout is true *and* we have a pending
26385             layout change
26386           - ResumeLayout: MS does not completely nest Suspend and Resume,
26387             they bottom out at 0, fixed our code to match that.
26388           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
26389             SetBoundsCore, we were updating even when we shouldn't. This fixes
26390             swf-anchors mis-anchoring when resizing the app fast and lots.
26391           - UpdateDistances: Now only setting the left and top distance if 
26392             we have a parent and are not suspended, this is based on
26393             a suggestion by Don Edvaldson in bug #77355.
26394           - OnVisibleChanged: Fixed logic when to create the control. We may
26395             not create the control if we have no parent or if it's not visible;
26396             switched to using Visible property instead of is_visible field 
26397             since the property also considers parent states. This fixes a bug
26398             when starting Paint.Net
26399
26400 2006-02-02  Jackson Harper  <jackson@ximian.com>
26401
26402         * Form.cs: If the forms handle hasn't been created yet don't call
26403         into xplatui to make it top most, just set the topmost flag on the
26404         form in CreateParams
26405         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
26406
26407 2006-02-01  Jackson Harper  <jackson@ximian.com>
26408
26409         * ScrollableControl.cs: Refactored the Recalculate method a
26410         little, this wasn't handling all the variants of bottom and right
26411         bars needed to be added and added/removed based on their
26412         counterparts being added/removed (which changes the drawable
26413         size). Also we special case client widths and heights of 0 and
26414         don't add the scrollbar for those.
26415
26416 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
26417
26418         * XplatUIX11.cs: 
26419           - Added method to get AbsoluteGeometry(); currently unused, but might
26420             be used in the future, if we try again to figure out toplevel
26421             coordinates with some more crappy window managers
26422           - Added FrameExtents() method to retrieve the WM set decoration size
26423           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
26424             to deal with at least KDE, FVWM and metacity (Fixes #77092)
26425         * Hwnd.cs: 
26426           - Added whacky_wm tracking var for metacity
26427           - Added logic to have default menu height if the actual menu height
26428             has not yet been calculated (part of fix for #77426)
26429         * Form.cs: Keep track whether client size has been set and re-set 
26430           it if a menu is added/removed afterwards (Fixes #77426)
26431
26432 2006-01-31  Jackson Harper  <jackson@ximian.com>
26433
26434         * Control.cs: When a new Site is set on the component attempt to
26435         pull the AmbientProperties from it.
26436
26437 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
26438
26439         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
26440           in the background of the owning form. Fixes #77332
26441
26442 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
26443
26444         * MimeIcon.cs: Fix for #77409
26445
26446 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
26447
26448         * XplatUIX11GTK.cs: Initial import
26449
26450 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
26451
26452         * FixedSizeTextBox: fixes class signature
26453
26454 2006-01-30  Jackson Harper  <jackson@ximian.com>
26455
26456         * FixedSizeTextBox.cs: New internal class that represents a
26457         textBox that will not be scaled.
26458         * TreeView.cs:
26459         * ComboBox.cs:
26460         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
26461         standard TextBox.
26462                 
26463 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
26464
26465         * XplatUIX11.cs: Retrieve default screen number instead of
26466           assuming 0. Attempted fix for #77318
26467
26468 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
26469
26470         * XplatUIWin32.cs: 
26471           - GetWindowPos: When a window is parented by FosterParent, use 
26472             the desktop instead of FosterParent as the base to get coordinates
26473           - CreateWindow: Don't make FosterParent the parent window for Popups
26474             if we don't want a taskbar entry, Popups automatically don't get one
26475         * Hwnd.cs: Need to call remove to actually remove the key from the
26476           hash table
26477
26478 2006-01-30  Mike Kestner  <mkestner@novell.com>
26479
26480         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
26481
26482 2006-01-30  Jackson Harper  <jackson@ximian.com>
26483
26484         * TreeView.cs:
26485         * TreeNode.cs: Raise events no matter how the treenode is
26486         checked. Patch by Don Edvalson.
26487
26488 2006-01-30  Jackson Harper  <jackson@ximian.com>
26489
26490         * TreeNode.cs: Signature fix.
26491
26492 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
26493
26494         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
26495
26496 2006-01-20  Mike Kestner  <mkestner@novell.com>
26497
26498         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
26499         event forwarding when menus are active.
26500         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
26501         Most of the patch is pdb's with a little rework.
26502
26503 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
26504
26505         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
26506           Removed GetMenuDC and ReleaseMenuDC methods; replaced
26507           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
26508         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
26509         * InternalWindowManager.cs: Added use of PaintEventStart/End to
26510           handling of WM_NCPAINT message, now passing the PaintEventArgs to
26511           the PaintWindowDecorations method
26512         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
26513         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
26514         * MenuAPI.cs: Made tracker window invisible
26515         * XplatUIWin32.cs:
26516           - Removed GetMenuDC and ReleaseMenuDC methods
26517           - Implemented the client=false path for PaintEventStart and
26518             PaintEventEnd
26519
26520 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
26521
26522         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
26523         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
26524           styles
26525         * Form.cs: 
26526           - MaximizeBox, MinimizeBox: Recreate the handle when setting
26527             the style
26528           - CreateParams: Reworked the styles to match MS look'n'feel,
26529             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
26530             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
26531
26532 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
26533
26534         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
26535           window is not mapped, since otherwise every form that's being 
26536           created is considered minimized, which is wrong.
26537         * Form.cs: Catching the exception and returning our internal value
26538           instead
26539
26540 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
26541
26542         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
26543           SetWindowMinMax() to have means to tell the driver about the minimum,
26544           maximum and maximized state window sizes. (Part of the fix for #76485)
26545         * Form.cs:
26546           - Implemented tracking of minimum and maximum window size, now calling
26547             new SetWindowMinMax() driver method to tell the driver (Part of the
26548             fix for #76485)
26549           - Finished handling of WM_GETMINMAXINFO method, now setting all values
26550             (Completes fix for #76485)
26551           - Calling new SetWindowMinMax driver method when the handle for a 
26552             form is created, to make sure the driver knows about it even if
26553             the values have been set before the window was created
26554           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
26555             to avoid messing up our anchoring calculations (partial fix
26556             for #77355)
26557         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
26558         * XplatUIX11.cs:
26559           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
26560           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
26561             (and presumably other freedesktop.org compliant WMs). Left the
26562             assumption unmapped=minimized, needed for SetVisible to work.
26563           - Now setting the window state when creating windows
26564           - Fixed SetVisible to consider/set the window state when mapping
26565             a Form. We cannot set the state before it's mapped, and we cannot
26566             use Form.WindowState once it's mapped (since it would ask the
26567             driver and get 'normal'. Therefore, we grab the state before
26568             mapping, map, and then set state.
26569           - Implmemented SetWindowMinMax method; Metacity does not seem to
26570             honor the ZoomHints, though.
26571         * XplatUIWin32.cs:
26572           - Removed MINMAXINFO (moved to XplatUIStructs)
26573           - Added SetWindowMinMax stub (on Win32 the only way to set that
26574             information is in response to the WM_GETMINMAXINFO message, which
26575             is handled in Form.cs)
26576           - Added logic to SetVisible to set the proper window state when a 
26577             form is made visible (fixes #75720)
26578
26579 2006-01-26  Jackson Harper  <jackson@ximian.com>
26580
26581         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
26582         same way we handle them with Invoke.
26583
26584 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
26585
26586         * Form.cs:
26587           - Added tracking of window state so CreateParams can return
26588             the appropriate style
26589           - Moved setting of WS_CAPTION style in CreateParams to allow
26590             styles without caption
26591         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
26592           control if the TextBox property is accessed. Fixes #77345
26593         * Control.cs:
26594           - get_Created: now uses is_disposed and is_created to determine
26595             return value (suggested by Jackson)
26596           - CreateHandle: No longer exits if the handle is being recreated
26597           - RecreateHandle: If the handle is not yet created call the 
26598             appropriate method to create either control or handle. If the
26599             control is already created CreateHandle will simply exit instead
26600             of just creating the handle
26601         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
26602           now SendMessage WM_DESTROY directly to the control when DestroyWindow
26603           is called.
26604         * XplatUIX11.cs: 
26605           - When DestroyWindow is called, instead of waiting for the 
26606             DestroyNotification from X11, we directly post it to the WndProc
26607             and immediately dispose the hwnd object.
26608             Same applies to DestroyChildWindows, and this obsoletes the
26609             expose_pending tracking. Contrary to Win32 behaviour we destroy our
26610             child windows before our own, to avoid X11 errors.
26611           - Removed the direct sending of WM_PAINT on UpdateWindow
26612         * XplatUIWin32.cs:
26613           - Reworked DoEvents and GetMessage to allow access to internal queue
26614             even when trying non-blocking access to the queue.  Fixes #77335. 
26615             Based on a patch suggestion by Don Edvalson. The new private
26616             GetMessage can now also be used as a backend for a PeekMessage
26617             frontend version.
26618         * XplatUI.cs: Improved debug output for CreateWindow
26619
26620 2006-01-25  Jackson Harper  <jackson@ximian.com>
26621
26622         * Help.cs: Allow param to be null. Patch by Don Edvalson.
26623
26624 2006-01-24  Jackson Harper  <jackson@ximian.com>
26625
26626         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
26627         when we have a MaxDropItems lower then the selected index.
26628
26629 2006-01-24  Jackson Harper  <jackson@ximian.com>
26630
26631         * Control.cs: Don't allow selection of non visible controls, allow
26632         selection of controls without parents.
26633
26634 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
26635
26636         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
26637         * DataGridDrawingLogic.cs: Add editing row only when is necessary
26638
26639 2006-01-23  Jackson Harper  <jackson@ximian.com>
26640
26641         * UpDownBase.cs: Make the textbox handle all the selection and
26642         tabbing. This fixes tabing to updown controls.
26643
26644 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
26645
26646         * TextBoxBase.cs: fixes exception thown the object was null
26647
26648 2006-01-23  Jackson Harper  <jackson@ximian.com>
26649
26650         * ButtonBase.cs: Just use the base CreateParams. They set
26651         visibility and enabled correctly.
26652         * ComboBox.cs:
26653         * TrackBar.cs:
26654         * MonthCalendar.cs: Lets let the base set as much of the
26655         createparams as possible so we don't have duplicate code all over
26656         the place.
26657
26658 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
26659
26660         * ThemeGtk.cs: Added TrackBar and some experimental code to
26661           get double buffering back
26662
26663 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
26664
26665         * DataGrid.cs: Allows row number set internally higher than the last
26666         when creating a new row. Restores the editing functionality.
26667
26668 2006-01-20  Mike Kestner  <mkestner@novell.com>
26669
26670         * MimeIcon.cs: delay Image creation until the icons are accessed
26671         instead of creating 190 scaled images on GnomeHandler startup.
26672
26673 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
26674
26675         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
26676           first call base before processing the event. Fixes #77279
26677
26678 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
26679
26680         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
26681           that the stride for the GDI bitmap would match the stride of
26682           a DIB or a Cursor.
26683
26684 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
26685
26686         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
26687
26688 2006-01-19  Jackson Harper  <jackson@ximian.com>
26689
26690         * ComboBox.cs: Hookup the text controls keydown event so we get
26691         those when the text control has the focus.
26692
26693 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
26694
26695         * Label.cs: Now using the base events instead of defining new ones;
26696           this allows us to just call the base properties without having to
26697           duplicate all base property logic 
26698
26699 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
26700
26701         * Label.cs: A label by default is not a tabstop (Fixes one of our
26702           failing nunit tests)
26703
26704 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
26705
26706         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
26707         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
26708
26709 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
26710
26711         * Cursor.cs: Reimplemented creating cursor bitmaps without using
26712           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
26713           This fixes #77218
26714         * XplatUIWin32.cs: 
26715           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
26716             constructor creates images that can't be saved. Part of the fix
26717             for #76103
26718           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
26719           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
26720             bug fix for handling window state in forms properly)
26721
26722 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
26723
26724         * ThemeGtk.cs: Simplify ScrollBar drawing
26725
26726 2006-01-18  Jackson Harper  <jackson@ximian.com>
26727
26728         * Splitter.cs: Set the default dock style for the splitter control
26729         in the constructor.
26730
26731 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
26732
26733         * ThemeGtk.cs: Corrected StateType and ShadowType for
26734           gtk_paint_box
26735
26736 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
26737
26738         * Control.cs: Make use of Theme.DoubleBufferingSupported
26739         * ThemeGtk.cs:
26740           - Added drawing for flat style buttons
26741           - Added ScrollBar drawing
26742
26743 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
26744
26745         * ThemeClearlooks.cs: Removed some unneeded code.
26746         * ThemeGtk.cs: First part of ThemeGtk enhancements.
26747
26748 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
26749
26750         * LinkLabel.cs: We need to update the hover drawing when
26751           leaving the control as well.
26752
26753 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
26754
26755         * DataGrid.cs: Clicking on non empty areas in the columns
26756            area was giving an exception
26757
26758 2006-01-17  Jackson Harper  <jackson@ximian.com>
26759
26760         * ThemeWin32Classic.cs:
26761         * ListView.cs: Do not draw/clip the headers when the header style
26762         is None.
26763
26764 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
26765
26766         * DataGrid.cs: Fixes 77260
26767         
26768 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
26769
26770         * DataGrid.cs: Clicking on a column on a empty grid was giving
26771           an exception
26772
26773 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
26774
26775         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
26776           or any keypress will crash the grid.
26777
26778 2006-01-17  Mike Kestner  <mkestner@novell.com>
26779
26780         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
26781         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
26782         invisible/previously-visible items.
26783         [Fixes #76909]
26784
26785 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
26786
26787         * ThemeClearlooks.cs:
26788         - Added CL_Draw_Button method; now other theme controls that are 
26789           not derived from button or do not have a button can draw buttons
26790           too
26791         - Updated ComboBox drawing
26792         - Beautified RadioButton drawing
26793         - Corrected drawing of bottom and left tabs
26794         - Beautified DateTimePicker and MonthCalendar
26795         - Added CPDrawButton and CPDrawRadioButton
26796
26797 2006-01-16  Jackson Harper  <jackson@ximian.com>
26798
26799         * ComboBox.cs: Set the initial value of the scrollbar to the
26800         current index. Reduce the numbers of refreshs and IndexOfs called.
26801
26802 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
26803
26804         * FileDialog.cs: When the file listview is focused hitting the
26805           backspace key moves the fileview to the parent directory
26806
26807 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
26808
26809         * Form.cs: 
26810           - Added RecreateHandle call when changing taskbar visibility to 
26811             trigger reparenting in Win32 driver (Fixes #75719)
26812           - If a window has minimize or maximize buttons, it cannot have
26813             a help button
26814         * XplatUIWin32.cs:
26815           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
26816             the toplevel form with FosterParent (A toolwindow not on the
26817             taskbar) (Fixes #75719)
26818           - Made FosterParent a toolwindow
26819
26820 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
26821
26822         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
26823
26824 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
26825
26826         * ToolTip.cs: If SetToolTip is called from a control and the mouse
26827           is currently over that control, make sure that tooltip_window.Text
26828           gets updated
26829
26830 2006-01-13  Mike Kestner  <mkestner@novell.com>
26831
26832         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
26833
26834 2006-01-13  Jackson Harper  <jackson@ximian.com>
26835
26836         * TreeView.cs: On MS GetNodeAt never actually factors in the X
26837         value passed.  Also redraw the selected node when we recieve
26838         focus, so tabbing between trees works correctly.
26839
26840 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
26841
26842         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
26843           ~/.gconf/%gconf-tree.xml, so use
26844           .gconf/desktop/gnome/interface/%gconf.xml
26845
26846 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
26847
26848         * TextControl.cs: Draw text in gray if control is disabled
26849
26850 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
26851
26852         * TreeView.cs: Draw the focus rectangle outside the highlight, to
26853           make sure it's always visible. Fixes #76680.
26854
26855 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
26856
26857         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
26858
26859 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
26860
26861         * PageSetupDialog.cs: Added.
26862         * PrintDialog.cs: Attributes.
26863         * PrintPreviewControl.cs: Updates.
26864         * PrintPreviewDialog.cs: Updates.
26865         
26866 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
26867
26868         * Control.cs: Undid my selection check fix, since it's not needed
26869         * TextBoxBase.cs:
26870           - Now considering the presence of hscroll/vscroll when sizing
26871             vscroll/hscroll respectively. Fixed bug #77077
26872           - Added Left/Up/Down/Right to IsInputKey list to prevent
26873             ContainerControl from stealing them. This fixes what I broke
26874             with my last checkin.
26875
26876 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
26877
26878         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
26879           I finally understand how the property can be set without a setter :-)
26880
26881 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
26882
26883         * Application.cs:
26884           - Switched RunLoop to use static Message.Create to create a 
26885             Message object
26886           - Added PreProcessMessage call in runloop for keyboard events; this
26887             is part of the fix for #77219, I overlooked this originally in the
26888             MSDN doc for PreProcessMessage
26889         * Control.cs:
26890           - Removed call to PreProcessMessage from handling of keyboard 
26891             messages; it's supposed to be done in the message pump
26892           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
26893             per MSDN documentation.
26894           - IsInputChar: All chars are input chars by default; removed the 
26895             parent calling chain, MS does not document that
26896           - PreProcessMessage: If IsInputChar is true, we want to return false
26897             to allow dispatching of the message
26898           - When selecting the next control, now also check that we're not
26899             selecting ourselves again and therefore return a false positive.
26900         * TextBoxBase.cs:
26901           - Tried to match return values for IsInputKey and ProcessDialogKey
26902             to what MS returns; moved processing of our special keys outside
26903             ProcessDialogKey since MS does not seem to return true on those.
26904           - Moved code that previously was in ProcessDialogKey into new private
26905             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
26906           - Reworked handling of WM_CHAR to not have to duplicate code from
26907             Control.cs anymore, instead we simply call down to base.
26908            
26909 2006-01-12  Jackson Harper  <jackson@ximian.com>
26910
26911         * ComboBox.cs: We always need to refresh the text area when
26912         EndUpdate is called. Fixes the combobox in the file dialog.
26913         * Control.cs: Don't create the creator_thread until the controls
26914         handle is created.  Also in InvokeRequired we check if the
26915         creator_thread is null. This gives the effect of InvokeRequired
26916         returning true if the controls handle is not created yet, and
26917         matches MS.
26918
26919 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
26920
26921         * XplatUI.cs:
26922           - Added StartLoop() driver method. This is used to allow drivers to
26923             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
26924             loop for a particular thread
26925           - Added EndLoop() driver method. This is called once the message
26926             pump for the thread is shut down
26927           - Added SupportsTransparency method to allow the driver to indicate
26928             opacity support for windows
26929         * Form.cs:
26930           - Removed TODO attribute, completed AllowTransparency property
26931           - Added documented logic to Opacity
26932         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
26933           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
26934           versions of CompatibleTextRendering
26935         * X11Structs.cs: Added opacity atom to our atom enumeration
26936         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
26937           of a form might be set before it's reparented by the WM, and we need
26938           the opacity value without calling up to Form)
26939         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
26940           SupportsTransparency() driver methods
26941         * Application.cs: Now calling StartLoop and EndLoop driver methods
26942         * XplatUIX11.cs:
26943           - Added opacity atom registration
26944           - Added StartLoop()/EndLoop() methods. They're empty right now but
26945             will need to get implemented when we switch to a per-thread queue
26946           - Implemented SupportsTransparency() method
26947           - Implemented SetWindowTransparency() method
26948           - Added support for setting the opacity value when a window is
26949             reparented (since the opacity needs to be set on the WM frame)
26950         * XplatUIOSX.cs, XplatUIWin32.cs:
26951           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
26952
26953 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
26954
26955         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
26956
26957 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
26958
26959         * FileDialog.cs: Added ToolTip for MWFFileView
26960         * MimeIcon.cs: Rewrote GnomeHandler.
26961           - Get currently used gnome icon theme from
26962             ($HOME)/.gconf/%gconf-tree.xml
26963           - Make use of inherited icon themes
26964           - Support SVG icon themes like Tango via librsvg
26965
26966 2006-01-12  Miguel de Icaza  <miguel@novell.com>
26967
26968         Revert's Jackson's revert which broke 2.0 builds.   Fix both
26969         builds. 
26970         
26971         * Application.cs: Move the use_compatible_text_rendering outside
26972         the NET_2_0 define.  If we ever need to use the
26973         use_compatible_text_rendering on the individual controls they will
26974         access the variable from the common shared code paths.
26975
26976 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
26977
26978         * XplatUI.cs:
26979           - Added more granular debug options
26980           - Added method to print both window text and id
26981           - Switched debug output to use new Window() debug method
26982           - Added IsEnabled() driver method
26983           - Added EnableWindow() driver method
26984         * Form.cs:
26985           - Removed end_modal; no longer needed, new loop handles termination
26986             via 'closing' variable
26987           - If form is modal, setting DialogResult will now initiate loop
26988             termination via 'closing' variable
26989           - Added support for is_enabled/WS_DISABLED to CreateParams
26990           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
26991             does all the work
26992           - Removed code that's now in RunLoop from ShowDialog()
26993           - Added various documented sanity checks to ShowDialog()
26994           - Added handling of WM_DESTROY message; we set 'closing' on getting
26995             the message to indicate the message pump to terminate
26996           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
26997             send by the Application.ExitThread method. (We send the message
26998             to destroy the window after all other events have been
26999             processed through the queue, instead of destroying the handle 
27000             directly)
27001           - Moved code from Close() method to WM_CLOSE handler; added logic
27002             to only send close-related events if the form is not displayed
27003             modal
27004         * Splitter.cs (..ctor): Fixed typo in resource name
27005         * Control.cs:
27006           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
27007             brush now
27008           - set_Cursor: Now only setting calling into XplatUI if the handle for
27009             the control is already created; this avoids implict handle creation
27010             or crashes if it's not created
27011           - set_Enabled: Now setting the enabled state via the new driver method
27012             instead of just tracking it
27013           - CreateParams: Added logic to set WS_DISABLED based on enabled state
27014           - CreateControl: Reordered event firing and method calls to more
27015             closely fire events in the order MS does. Now setting the
27016             enabled state in the driver when creating the control.
27017           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
27018             match MS order
27019         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
27020           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
27021         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
27022         * Hwnd.cs:
27023           - Added tracking of window enabled state (get_Enabled/set_Enabled)
27024           - Added EnabledHwnd property to easily allow a driver to find the
27025             handle of the first enabled window in the parent chain (this is
27026             used by drivers to pass up input events of disabled windows)
27027         * XplatUIDriver.cs: Added IsEnabled() method
27028         * Application.cs:
27029           - Removed crude and obsolete exiting tracking variable
27030           - Removed internal ModalRun(); replaced by RunLoop()
27031           - Implemented private CloseForms() method to allow closing all 
27032             windows owned by a particular (or all) threads
27033           - Exit() now properly closes all windows without forcing the message
27034             pump to quit
27035           - Removed obsolete InternalExit() method
27036           - Changed Run() methods to use new RunLoop() message pump
27037           - Implemented new RunLoop() method for both modal and non-modal forms
27038         * CommonDialog.cs:
27039           - get_CreateParams: Added setting of WS_DISABLED
27040           - Simplified ShowDialog(); now all the work is done in RunLoop(),
27041             invoked via Form.ShowDialog()
27042         * NativeWindow.cs: We don't remove the window from the collection when
27043           the handle is destroyed; there might still be messages for it in the
27044           queue (mainly the resulting WM_DESTROY); instead it will be removed
27045           when Control calls InvalidateHandle in the WM_DESTROY handler
27046         * XplatUIX11.cs:
27047           - CreateWindow: Added logic to handle the WS_DISABLED window style
27048           - EnableWindow: Implemented based on Hwnd.Enabled
27049           - GetMessage: Reset PostQuitState so the method can be called again
27050           - Implemented support for disabled windows (passing messages to the
27051             first enabled parent) in handling all input messages
27052           - Added optimizations for handling Expose events
27053           - Implemeted new driver method IsEnabled()
27054           - Now always resetting paint pending tracking vars when we start paint
27055           - Re-implemented UpdateWindow via just sending a WM_PAINT message
27056         * XplatUIOSX.cs: Added IsEnabled method stub
27057         * XplatUIWin32.cs: Implemented new IsEnabled() method
27058
27059 2006-01-11  Jackson Harper  <jackson@ximian.com>
27060
27061         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
27062         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
27063         variables a little.
27064         * ColorDialog.cs: Clear out the old form before adding the new
27065         panel.  
27066
27067 2006-01-11  Jackson Harper  <jackson@ximian.com>
27068
27069         * X11Dnd.cs: Make sure to add all the text formats when adding
27070         strings to the data object.
27071         * TreeNodeCollection.cs: When adding to a sorted tree we need to
27072         do some redrawing too.  Also change the UpdateNode to an
27073         UpdateBelow so the newly added node gets painted.
27074         
27075 2006-01-11  Miguel de Icaza  <miguel@novell.com>
27076
27077         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
27078         LinkLabel.cs, PropertyGrid.cs: Implement the
27079         UseCompatibleTextRendering property for 2.x
27080
27081         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
27082
27083 2006-01-11  Jackson Harper  <jackson@ximian.com>
27084
27085         * TreeView.cs: Use the property for setting the selected node so
27086         the correct events get raised.
27087         * TreeNode.cs: Update the tree when the fore/back colours of a
27088         node are set.
27089
27090 2006-01-10  Jackson Harper  <jackson@ximian.com>
27091
27092         * TreeView.cs: Allow setting SelectedNode to null.
27093
27094 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
27095
27096         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
27097
27098 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
27099
27100         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
27101
27102 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
27103
27104         * PrintDialog.cs: Added attributes and set default property values.
27105
27106 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
27107
27108         * PrintControllerWithStatusDialog.cs: 
27109         Added PrintControllerWithStatusDialog.
27110
27111 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
27112
27113         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
27114         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
27115
27116 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
27117
27118         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
27119
27120 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
27121
27122         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
27123         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
27124
27125 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
27126
27127         * MimeIcon.cs: Added internal class SVGUtil.
27128
27129 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
27130
27131         * FileDialog.cs: Don't crash if there are two files with the
27132           same name but different locations.
27133
27134 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
27135
27136         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
27137         dates across multiple month grids. Used to not highlight entire 
27138         month, but does now.
27139         
27140 2006-01-06  Jackson Harper  <jackson@ximian.com>
27141
27142         * MonthCalendar.cs: Removed DoEvents call to prevent a running
27143         message loop. Change timer intervals to numbers that seem more
27144         natural.
27145
27146 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
27147
27148         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
27149           object for location info since screen object is now implemented.
27150
27151 2006-01-05  Jackson Harper  <jackson@ximian.com>
27152
27153         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
27154         * AsyncMethodResult.cs: We no longer use a WeakReference for the
27155         AsyncMethodResult, this is because we ALWAYS want the
27156         ManualResetEvent to get set.
27157         * Control.cs: When disposing use an async invoke to call shutdown
27158         code, so that thigns don't block on the finalizer thread.  Also
27159         check if we even have a message loop before trying to send
27160         messages, if we don't then don't bother sending messages.
27161         - No more weak references for async methods
27162         * XplatUIDriver.cs: No more weak references for async methods.
27163
27164 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
27165
27166         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
27167           returns two FontFamily with the same name
27168
27169 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
27170
27171         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
27172           drawing disabled text. Instead using the ColorGrayText color
27173
27174 2006-01-04  Jackson Harper  <jackson@ximian.com>
27175
27176         * TreeNode.cs: redraw the node when its image index is changed.
27177
27178 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
27179
27180         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
27181           time I checked there are no others like it.
27182
27183 2006-01-04  Jackson Harper  <jackson@ximian.com>
27184
27185         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
27186         this gives the behavoir I was looking for.
27187         * Control.cs: Special case Invoking EventHandlers, this matches MS
27188         and fixes part of bug #76326.
27189
27190 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
27191
27192         * ThemeClearlooks.cs, FileDialog.cs:
27193           - Reflect the latest Theme class changes
27194           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
27195             with DateTime
27196             
27197 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
27198
27199         * Theme.cs: Cache UI resource images and resize them if needed
27200
27201 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
27202
27203         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
27204           is called. This fixes the crash in Nexxia when setting the font
27205           attributes in the chat. [However, RTF needs a look-over to make sure
27206           that all SelectionXXX methods handle the special case that selection
27207           is empty and therefore the change must be applied to all text starting
27208           at the cursor/selection start]
27209
27210 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
27211
27212         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
27213           XplatUIOSX.cs: Added SendMessage and PostMessage methods
27214         * X11Keyboard.cs: Switched to new way of calling PostMessage
27215
27216 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
27217
27218         * Theme.cs: Added theme interface for images to allow the theme to
27219           control what images are used for things like FileDialog, MessageBox
27220           icons, etc.
27221         * MessageBox.cs: Now uses the new Theme icon/image interfaces
27222
27223 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
27224
27225         * FileDialog.cs:
27226           - Removed some dead code
27227           - Opening a recently used file does work now
27228           - Small UI enhancements
27229           - Refactoring
27230
27231 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
27232
27233         * FileDialog.cs: Forgot too add __MonoCS__
27234
27235 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
27236
27237         * FileDialog.cs: We are able to read recently used files now let's
27238           go on and write them.
27239
27240 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
27241
27242         * FileDialog.cs: Breathe some life into "last open"/"recently used"
27243           button
27244         * MimeIcon.cs: Do a check for the top level media type also
27245
27246 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
27247
27248         * ThemeClearlooks.cs:
27249           - Added CPDrawStringDisabled
27250           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
27251             some chars if the text doesn't fit into text_rect
27252           - DrawListViewItem: If View = View.LargeIcon center the image;
27253             rewrote the drawing of ListViewItem.Text if View = 
27254             View.LargeIcon
27255
27256 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
27257
27258         * MimeIcon.cs: Use default KDE icon theme if there is no
27259           "48x48" directory for the current icon theme, fixes #77114
27260         * Mime.cs: Disable not working and actually not used code. 
27261         * ThemeWin32Classic.cs:
27262           - Replace "new SolidBrush" in GetControlBackBrush and
27263             GetControlForeBrush with ResPool.GetSolidBrush
27264           - Changed DrawListViewItem from private to protected virtual
27265         * FileDialog.cs:
27266           - Added form.MaximizeBox = true
27267           - Don't throw an exception if there is a broken symbolic link
27268
27269 2005-12-23  Jackson Harper  <jackson@ximian.com>
27270
27271         * TabControl.cs: Give the panels focus, keyboard navigation is
27272         fixed so this works correctly now.
27273         - We need these key events also.
27274         * ToolBar.cs: Remove some of the poor mans double buffering.
27275         
27276 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
27277
27278         * ComboBox.cs: The internal TextBox now returns the focus.
27279
27280 2005-12-23  Jackson Harper  <jackson@ximian.com>
27281
27282         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
27283
27284 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
27285
27286         * Control.cs: Removed debug code
27287         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
27288           implicit children
27289
27290 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
27291
27292         * Control.cs: When creating the control, update the Z-order after
27293           all it's children are created, too. (Fixes nexxia not showing
27294           picturebox bug)
27295
27296 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
27297
27298         * Control.cs: Do not update the anchoring distances if layout is
27299           suspended, instead do it once layout is resumed
27300
27301 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
27302
27303         * Control.cs: 
27304           - After many hours of debugging, for both Jackson and
27305             myself, it turns out that it helps to set the parent of a control
27306             if you want to actually see it onscreen. In the spirit of that
27307             discovery, we're now setting the parent of the control and
27308             it's children when the control's handle is created. This fix
27309             will make Lutz Roeder's Reflector run happily. 
27310           - now just creating the handle instead of the whole control when
27311             getting a graphics context for the control.
27312
27313 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
27314
27315         * ScrollableControl.cs: When calculating the canvas, don't consider
27316           the scrollbar widths. Instead, predict if horizontal scrollbar
27317           will affect canvas when deciding on vertical display and vice versa.
27318
27319 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
27320
27321         * RichTextBox.cs: Set default RTF font for documents that don't
27322           have a font table (Fixes #77076)
27323
27324 2005-12-22  Jackson Harper  <jackson@ximian.com>
27325
27326         * TextBoxBase.cs: It's difficult to do, but you can have an empty
27327         clipboard. This prevents a NullRef in that case.
27328         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
27329         clipboard. PRIMARY is for the currently selected text only. (We
27330         should implement PRIMARY at some point.
27331
27332 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
27333
27334         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
27335           a Unicode function with a structure that was defined in Ansi way.
27336           This fixes #76942.
27337
27338 2005-12-21  Jackson Harper  <jackson@ximian.com>
27339
27340         * StatusBar.cs: Statusbar handles its fore/back colours on it's
27341         on. Because thats how it rolls. (and this avoids it using ambient
27342         colours).
27343         * ThemeWin32Classic.cs: Use the proper back color for filling.
27344         * Menu.cs: Use the system menu bar color for drawing menu
27345         bars. Using the window back color will bring ambient colours into
27346         the picture.
27347
27348 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
27349
27350         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
27351           Bitmaps were created and not disposed.
27352
27353 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
27354
27355         * Control.cs (CreateControl): Don't do anything if the control is
27356           already created, otherwise we'd fire the OnCreated event more than
27357           once
27358
27359 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
27360
27361         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
27362           will always match. Instead return -1. Fixes #76464.
27363
27364 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
27365
27366         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
27367           neither the beginning nor the end of the line (Fixes bug #76479)
27368
27369 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
27370
27371         * Control.cs:
27372           - ControlNativeWindow.ControlFromHandle(): Now handling situation
27373             where handle is invalid
27374           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
27375             instead of slower linear search
27376         * NativeWindow.cs: Don't remove the window from the hashtable until
27377           after the driver has destroyed it (since the driver might use
27378           Control.FromHandle to lookup the control object
27379         * Hwnd.cs: Added DestroyPending property to track if a window is 
27380           already destroyed as far as the driver is concerned and only hasn't
27381           yet notified the control
27382         * XplatUIX11.cs:
27383           - Activate(): Check if the window is still valid before using the 
27384             handle
27385           - Implemented DestroyChildWindow() method to mark child windows as
27386             destroyed when a window is destroyed. This prevents situations 
27387             where we might call an X method based on queued events for a
27388             window that already has been destroyed but we haven't yet pulled
27389             the destroy method from the queue.
27390           - Added a call to the new DestroyChildWindow() method to the drivers
27391             DestroyWindow code. Also now marking the destroyed window itself
27392             as pending
27393
27394 2005-12-20  Jackson Harper  <jackson@ximian.com>
27395
27396         * StatusBar.cs:
27397         * StatusBarPanel.cs: Don't calculate panel sizes on draw
27398         anymore. Just do them when needed, also track the rects of panels
27399         so that we can optimize refreshing more in the future.
27400
27401 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
27402
27403         * ColorDialog.cs: Fixed focus drawing in small color controls
27404
27405 2005-12-19  Jackson Harper  <jackson@ximian.com>
27406
27407         * InternalWindowManager.cs:
27408         * MdiWindowManager.cs: Cleanup some coordinate system changes so
27409         moving windows works properly.
27410
27411 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
27412
27413         * Control.cs: 
27414           - Removed call to InitLayout() from SetBoundsCore(); doc says
27415             it's only called when a control is added to a container
27416           - Split InitLayout logic, moved to separate UpdateDistances() method
27417             since we need to perform those calculations more often than just
27418             when adding the control to a container. (Needed to fix #77022)
27419           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
27420           - Reduced the OnBindingContextChanged events count, don't send them
27421             unless the control is created, we still aren't totally matching
27422             MS, but I can't quite figure out some of their rules
27423
27424 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
27425
27426         * ThemeClearlooks.cs: Corrected distance between ProgressBar
27427           stripes
27428
27429 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
27430
27431         * ThemeClearlooks.cs:
27432           - Updated ProgressBar drawing
27433           - Corrected drawing of ScrollBars and scroll buttons
27434           - Some temporary fixes for minor pixel artefacts
27435
27436 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
27437
27438         * Control.cs:
27439           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
27440             cause events to be sent in the same order as MS does.
27441           - Added ChangeParent() method to trigger various OnXXXChanged events
27442             that need to be fired when a parent changes (This is a reworking
27443             of the patch from r54254, with the X11 errors fixed)
27444           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
27445             since on MS we get OnLayoutChanged events when calling Clear()
27446           - Changed Enabled property to consider parent state as well, if a
27447             parent is not enabled, the control will not be either
27448           - Changed Parent property to simply call Controls.Add() since that
27449             now does all the work required, this way we avoid code duplication
27450           - Threw in a few OnBindingsContextChanged calls to try and match
27451             when MS sends them. We seem to send a few too many, though.
27452           - Added call to CreateControl when adding the control to a parent.
27453             We were never calling CreateControl. Still needs some work, in
27454             some places we treat HandleCreated and ControlCreated as equal, 
27455             which is wrong
27456           - Removed obsolete commented out code from UpdateZOrder()
27457
27458 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
27459
27460         * ThemeClearlooks.cs: Updated TrackBar drawing.
27461
27462 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
27463
27464         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
27465
27466 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
27467
27468         * FileDialog.cs: Add the Help button and the open readonly
27469           checkbox only if needed
27470
27471 2005-12-16  Jackson Harper  <jackson@ximian.com>
27472
27473         * Control.cs: Make sure we have an active menu before trying to
27474         process commands on it. Prevents menu-less forms from crashing
27475         when Alt is pressed.
27476         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
27477         Dieter Bremes.
27478         * RichTextBox.cs: Expand statement to help out gmcs and fix the
27479         2.0 build.
27480
27481 2005-12-16  Jackson Harper  <jackson@ximian.com>
27482
27483         * InternalWindowManager.cs: Don't translate tool windows screen
27484         coordinates. This fixes windows 'bouncing' around when being moved.
27485
27486 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
27487
27488         * TextBoxBase.cs:
27489           - MaxLength now treats 2^31-1 equal to unlimited length (this is
27490             not quite MS compatible, MS uses that number only for single line
27491             and 2^32-1 for multi-line, but I figure it won't hurt keeping
27492             the limit at 2GB)
27493           - Now enforcing the MaxLength limit when entering characters
27494           - Added argument to internal Paste() method to track if it's called
27495             from programatically or via keyboard, since keyboard driven pastes
27496             need to enforce max-length
27497           - Added logic to Paste to only paste as many chars as MaxLength 
27498             allows
27499         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
27500         * TextControl.cs:
27501           - Added Length property to return number of characters in document
27502           - Added private CharCount property which only tracks actual chars
27503             in the document (no linefeeds) and fires event when CharCount
27504             changes
27505           - Added tracking of character count to all methods that alter it
27506           - Added LengthChanged event to allow applications to subscribe
27507             to any changes to the document
27508
27509 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
27510
27511         * TextBox.cs: 
27512           - Removed local password_char field (moved to TextBoxBase)
27513           - Now setting the document's password var when password is
27514             set
27515         * TextBoxBase.cs:
27516           - Added password_char field (needed here so MultiLine can
27517             access it)
27518           - Added logic to MultiLine property setter to set the document's
27519             variable when password display is allowed
27520           - Removed debug code and made some debug code conditional
27521         * TextControl.cs:
27522           - Added RecalculatePasswordLine() method to handle special password
27523             char only lines
27524           - Added PasswordChar property, also added related tracking vars
27525           - Draw() method now uses local text var for grabbing text to draw,
27526             this var is set to line.text unless we're doing password display,
27527             then it is set to the pre-generated all-password-chars line
27528           - Added calling RecalculatePasswordLine() method for password lines
27529
27530 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
27531
27532         * Hwnd.cs: 
27533           - Added Reparented property to allow tracking of Window Manager
27534             reparenting actions (which affect X/Y calculations of toplevel 
27535             windows)
27536           - Made ToString() print window handles in hex
27537         * XplatUIX11.cs:
27538           - AddConfigureNotify(): Now uses reparented state off Hwnd to
27539             determine if X/Y needs offsetting
27540           - AddConfigureNotify(): Fixed offset calculations
27541           - Now adds ReparentNotify messages into the queue
27542           - Now processes ReparentNotify messages and causes a 
27543             WM_WINDOWPOSCHANGED message to be sent upstream if a window
27544             is reparented (as most likely it's X/Y coordinates are changed
27545             due to that)
27546
27547 2005-12-14  Jackson Harper  <jackson@ximian.com>
27548
27549         * XplatUIX11.cs: Tool windows still need to respek focus.
27550
27551 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
27552
27553         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
27554           have a working release
27555
27556 2005-12-13  Jackson Harper  <jackson@ximian.com>
27557
27558         * Form.cs: Update styles after setting the border style regardless
27559         of whether or not the window is using a window manager.
27560
27561 2005-12-13  Jackson Harper  <jackson@ximian.com>
27562
27563         * Form.cs: We now hook into an internal window manager instead of just an
27564         MDI subsystem, this is so we can have properly behaving tool windows.
27565         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
27566         * InternalWindowManager.cs: New internal class that acts as a
27567         window manager for tool windows and as a base for mdi windows.
27568         * MdiWindowManager.cs: New class that acts as a window manager for
27569         mdi windows.
27570
27571 2005-12-12  Jackson Harper  <jackson@ximian.com>
27572
27573         * Control.cs: Updates so we match behavoir for for implicit
27574         controls. Fixes explosions in MDI.
27575
27576 2005-12-12  Jackson Harper  <jackson@ximian.com>
27577
27578         * Control.cs: Implement Invalidate (Region).
27579
27580 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
27581
27582         * Control.cs: 
27583           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
27584             the same events as MS does. MS fires events for each property 
27585             except, for unknown reasons, Cursor, when the control is reparented. 
27586             I can't seem to totally match add/remove since MS also fires some 
27587             VisibleChanged events, which makes no sense. Consolidated the
27588             parenting code into a separate method so it can be called from
27589             both Add and Remove. set_Parent no longer needs any special logic
27590             as it calls the parent's add method which implicitly fires
27591             all events
27592           - Removed some obsolete code and debug output
27593           - Enabled state is inherited from parents, if this is enabled
27594
27595 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
27596
27597         * Form.cs: Removed commented out code
27598
27599 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
27600
27601         * Control.cs:
27602           - Added internal version of Invoke, with additional argument 
27603             indicating if we're calling it from a Dispose() handler. That
27604             way we can avoid BeginInvoke throwing an exception if we're
27605             calling for an already destroyed window.
27606           - Added a dispose argument to BeginInvokeInternal, and made the
27607             check if a valid window handle chain exists conditional on
27608             it not being a dispose call
27609           - Removed code in DestroyHandle to destroy our children. Since we
27610             now handle the WM_DESTROY message we will catch all our children
27611             being destroyed.
27612           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
27613         * Form.cs:
27614           - Added a field to track the application context of the form.
27615           - No need to set closing variable as response to WM_CLOSE, instead
27616             we destroy the window. We also call PostQuitMessage if the form
27617             has an application context (which makes it the main app form,
27618             which, when closed terminates the app)
27619         * XplatUI.cs:
27620           - Dropped Exit() method, it's naming was confusing
27621           - Added PostQuitMessage() which causes GetMessage to return false
27622             once the message queue is empty
27623         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
27624           PostQuitMessage()
27625         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
27626           no longer a valid XplatUI method, but left it in since it's used
27627           internally. Added empty PostQuitMessage() method.
27628         * MenuAPI.cs: Replaced call to Exit() with call to
27629           PostQuitMessage, even though this is probably no longer needed.
27630         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
27631         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
27632         * Application.cs:
27633           - Replaced call to XplatUI.Exit() with PostQuitMessage()
27634           - Removed old debug code that would call XplatUI for exception
27635             display, enabled standard exception handling (Still not enabled
27636             though, until NativeWindow's ExternalExceptionHandler define
27637             is removed
27638         * NativeWindow.cs:
27639           - Added internal method to allow control to update NativeWindow
27640             after a window has been destroyed
27641           - Added handling of already destroyed windows when calling i
27642             DestroyWindow
27643           - Added removal of handle from list on ReleaseHandle
27644         * XplatUIX11.cs:
27645           - Dropped GetMessageResult var and related code
27646           - Added PostQuitState to field to track if PostQuitMessage has been
27647             called
27648           - Dropped Exit() method
27649           - Added PostQuitMessage() method
27650           - GetMessage now will return false if PostQuitState is set and no
27651             more messages are in the queue.
27652           - Expose handler will no longer generate WM_PAINT messages if we are
27653             in PostQuitState since it's very likely any windows have already
27654             been destroyed, and since Hwnd won't get updated until we have
27655             processed the DestroyNotify we'd be causing X errors.
27656         
27657 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
27658
27659         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
27660           Thanks to Mike for pointing out the err of my ways.
27661
27662 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
27663
27664         * Control.cs(PreProcessMessage): Moved menu handling back, but
27665           after all other key handling, to match MS (who handles Menu in
27666           DefWndProc)
27667         * Menu.cs (WndProc): Removed my brainfart
27668
27669 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
27670
27671         * Control.cs(PreProcessMessage): Removed special menu handling 
27672         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
27673
27674 2005-12-07  Mike Kestner  <mkestner@novell.com>
27675
27676         * Control.cs : special case SYSKEYUP so that we can adjust keynav
27677         state according in tracker.
27678         * Menu.cs : promote tracker field to base class and provide a tracker
27679         lookup capability.  Add/Remove shortcuts dynamically if the top menu
27680         has a tracker. Unparent items that are removed from the collection.
27681         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
27682         * Theme*.cs: add always_show_hotkeys field to support configurability
27683         of mnemonic display.  win32 doesn't show mnemonics until Alt is
27684         pressed.
27685
27686 2005-12-07  Jackson Harper  <jackson@ximian.com>
27687
27688         * MdiChildContext.cs: Use Control.ResetCursor.
27689         * Control.cs: ResetCursor needs to set the property so that the
27690         correct XplatUI call gets made.
27691
27692 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
27693
27694         * Control.cs: More fixes to make our key events match MS. We
27695           were not setting the modifier state on KeyData, and we were
27696           not generating any events when Alt was pressed with a key
27697           since handling of WM_SYSxxx was missing for the OnKey methods.
27698
27699 2005-12-07  Jackson Harper  <jackson@ximian.com>
27700
27701         * MdiChildContext.cs: reenable the sizing code.
27702         - When the mouse leaves a window reset its cursor.
27703
27704 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
27705
27706         * ThemeClearlooks.cs: Reflect latest Hwnd changes
27707
27708 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
27709
27710         * Hwnd.cs: Now using the theme 3d bordersize to calculate
27711           widths of Fixed3D borders
27712
27713 2005-12-07  Jackson Harper  <jackson@ximian.com>
27714
27715         * MdiClient.cs: Fix warnings. Earn Mike's love.
27716
27717 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
27718
27719         * ThemeClearlooks.cs:
27720           - Adjusted mouse over button color
27721           - Added first parts of CheckBox drawing
27722           - Added correct color for selected text background
27723           - Fixed ComboBox drawing
27724           - Added CPDrawBorder3D and CPDrawBorder
27725
27726 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
27727
27728         * XplatUIX11.cs: Added call to XBell for AudibleAlert
27729
27730 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
27731
27732         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
27733           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
27734           alert users via sound. We could add an enum arg with different
27735           types of alerts in the future
27736
27737 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
27738
27739         * Control.cs: Fix behaviour problems pointed out by Mike
27740
27741 2005-12-05  Mike Kestner  <mkestner@novell.com>
27742
27743         * StatusBarPanel.cs: add Invalidate method and hook it into all the
27744         prop setters.  Calls parent.Refresh for now, but could be maybe be
27745         optimized with an internal method on StatusBar at some point.
27746         [Fixes #76513]
27747
27748 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
27749
27750         * RichTextBox.cs: Implemented get_SelectionColor
27751
27752 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
27753
27754         * ThemeClearlooks.cs:
27755           - Removed dead code
27756           - Draw black button border only if button is Form.AcceptButton
27757           - Draw correct button color for pressed RadioButton if the mouse 
27758             has entered the button
27759           - Updated ProgressBar drawing!
27760           - Updated CPDrawSizeGrip drawing
27761           - Updated StatusBarPanel drawing
27762
27763 2005-12-05  Mike Kestner  <mkestner@novell.com>
27764
27765         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
27766         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
27767
27768 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
27769
27770         * ThemeClearlooks.cs: Initial check-in, activate with
27771           export MONO_THEME=clearlooks
27772         * ThemeEngine.cs: Added ThemeClearlooks
27773
27774 2005-12-03  Mike Kestner  <mkestner@novell.com>
27775
27776         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
27777         [Fixes #76897]
27778
27779 2005-12-02  Jackson Harper  <jackson@ximian.com>
27780
27781         * Form.cs: If the child form has no menu the default main menu is
27782         used as the active menu.
27783
27784 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
27785
27786         * ListBox.cs: Check if any items exist before trying to resolve 
27787           coordinates into items
27788
27789 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
27790
27791         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
27792           as the second color for the background hatch
27793
27794 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
27795
27796         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
27797         * RichTextBox.cs: FormatText position arguments are 1-based, now making
27798           sure that what we pass to FormatText is always 1-based. Fixes #76885
27799
27800 2005-11-29  Miguel de Icaza  <miguel@novell.com>
27801
27802         * NumericUpDown.cs (EndInit): When we are done initializing,
27803         reflect any updates on the UI.
27804
27805 2005-12-02  Jackson Harper  <jackson@ximian.com>
27806
27807         * ImplicitHScrollBar.cs:
27808         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
27809         their container controls.
27810         * TreeView.cs: Use the new implicit scrollbars.
27811
27812 2005-12-02  Jackson Harper  <jackson@ximian.com>
27813
27814         * TreeView.cs: Make top_node internal so the TreeNodeCollections
27815         can play with it.
27816         * TreeNodeCollection.cs: If we remove the topnode we need to
27817         update topnode to the next node in line.
27818         - When clearing nodes go through the same process as removing
27819         them, so they get depareneted and checked if they are top node.
27820
27821 2005-12-01  Jackson Harper  <jackson@ximian.com>
27822
27823         * TreeView.cs: When imagelists are used the image area is
27824         selectable as well as the text.
27825         - If there are no selected nodes select the first one.
27826         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
27827         so don't do it more then we need to.
27828
27829 2005-12-01  Jackson Harper  <jackson@ximian.com>
27830
27831         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
27832         that arrows can be scaled.
27833
27834 2005-12-01  Jackson Harper  <jackson@ximian.com>
27835
27836         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
27837         fail. Patch by Dieter Bremes
27838
27839 2005-11-30  Jackson Harper  <jackson@ximian.com>
27840
27841         * Form.cs: Property is 2.0 only
27842         * PrintDialog.cs: Signature fix.
27843
27844 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
27845
27846         * TextControl.cs: 
27847           - No longer artificially moves text 2 pixels down (now that we have
27848             borders this is no longer needed)
27849           - Added calcs for left, hanging and right indent
27850
27851 2005-11-23  Mike Kestner  <mkestner@novell.com>
27852
27853         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
27854
27855 2005-11-30  Jackson Harper  <jackson@ximian.com>
27856
27857         * MdiChildContext.cs: Set the cloned menus forms, as these don't
27858         get cloned as part of CloneMenu ().
27859         * Menu.cs: Make sure the parent of the items get set correctly
27860         when they are added.  And the owners are notified of the changes.
27861         * Form.cs: Create an ActiveMenu property, so that when MDI is used
27862         we can change the menu being displayed/handled by the form without
27863         changing the menu assosciated with the form.
27864         - Don't let Mdi children draw/handle menus.
27865         
27866 2005-11-30  Jackson Harper  <jackson@ximian.com>
27867
27868         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
27869         a MenuChanged event. Just to make the API a little more
27870         consistent.
27871         * MainMenu.cs:
27872         * MenuItem.cs: Use the new OnMenuChanged
27873         * MdiChildContext.cs: Handle menu merging.
27874         * Form.cs: Implement MergedMenu.
27875         
27876 2005-11-30  Jackson Harper  <jackson@ximian.com>
27877
27878         * Menu.cs: We were misusing Add. Add goes behind the specified
27879         index according to the docs, and does not replace the specified
27880         index. So I added an Insert method.
27881
27882 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
27883
27884         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
27885           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
27886           is for Jackson
27887         * RichTextBox.cs: Added calls to base for DnD events
27888
27889 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
27890
27891         * TextControl.cs:
27892           - Fixed drag-selection related crash; style fixes
27893           - Implemented undo class
27894             o Implemented method to capture document state for specified
27895               range in document tree
27896             o Implemented method to restore captured document state
27897             o Implemented cursor tracking
27898             o Implemented basic undo stack
27899           - Added undo cursor tracking to methods altering cursor location
27900           - Added undo tracking to selection deletion (still missing
27901             other text-altering hookups)
27902         * RichTextBox.cs:
27903           - Added SelectionLength property
27904           - Implemented CanPaste()
27905           - Implemented Paste()
27906           - Added missing protected methods
27907           - Fixed RTF->Document conversion; now uses font index 0 and color 
27908             index 0 as the default font for the parsed text
27909           - Fixed RTF<->Document font size translation
27910           - Fixed RTF generation, now properly handles cross-tag boundaries
27911             for single line selection
27912           - No longer always appends blank line to generated RTF
27913           - Removed TODOs
27914           - Added missing attributes
27915           - Hooked up undo-related methods
27916         * TextBoxBase.cs:
27917           - Implemented Copy()
27918           - Implemented Paste()
27919           - Implemented Cut()
27920           - Fixed caret mis-behaviour on backspace across line-boundaries
27921
27922 2005-11-29  Jackson Harper  <jackson@ximian.com>
27923
27924         * MdiClient.cs: Add a method for activating mdi children. Very
27925         basic right now. I imagine someday it might need more girth.
27926         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
27927         children windows names are added to the menu item.
27928         * ThemeWin32Classic.cs: Draw the arrow if the item is an
27929         mdilist. This happens regardless of whether or not there are any
27930         mdi windows to see in the list, and according to my tests happens
27931         before the items are even added. Also happens if there isn't even
27932         an mdi client to get windows from.
27933
27934 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
27935
27936         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
27937         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
27938
27939 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
27940
27941         * DataGridTableStyle.cs:
27942           - Create always the styles for the missing columns even if they are
27943             provided by the user (not default table style)
27944         * DataGrid.cs:
27945           - Fixes bug 76770
27946           - Fixes SetDataBinding (always re-attach source)
27947           - Fixes SetNewDataSource (only clear styles if they are not for 
27948             this source)
27949          -  Expands OnTableStylesCollectionChanged to handle style refresh 
27950             and remove properly
27951
27952 2005-11-29  Jackson Harper  <jackson@ximian.com>
27953
27954         * FileDialog.cs: Implement missing bits, remove some dead
27955         code.
27956         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
27957         creation of the panel so that the options set on the dialog are
27958         seen when the panel is created.
27959         * TreeView.cs: raise a click when items are clicked.
27960         
27961 2005-11-29  Jackson Harper  <jackson@ximian.com>
27962
27963         * MdiClient.cs: Pass some signature methods through to base.
27964
27965 2005-11-28  Jackson Harper  <jackson@ximian.com>
27966
27967         * ListView.cs: Raise the click event when items are clicked.
27968
27969 2005-11-28  Jackson Harper  <jackson@ximian.com>
27970
27971         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
27972         a nullref.
27973
27974 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
27975
27976         * ThemeNice.cs: - Removed 1 pixel bitmaps
27977           - Use SmoothingMode.AntiAlias where it makes sense
27978             (ScrollButton arrow for example)
27979           - Enhanced Button focus drawing
27980           - Fixed ComboBox drawing (no artefacts anymore, focus
27981             rectangle is back again, reduced size of ComboButton, etc.)
27982           - Fixed RadioButton focus drawing for Appearence.Button
27983           - Slight ScrollButton redesign
27984           - Some LinearGradientBrush size fixes
27985           - GroupBoxes have now rounded edges
27986           - Fixed StatusBar drawing
27987
27988 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
27989
27990         * ThemeNice.cs: - Remove dead code
27991           - use correct background colors for menus, etc.
27992           - Fake pixel drawing with 1 pixel bitmaps
27993
27994 2005-11-24  Jackson Harper  <jackson@ximian.com>
27995
27996         * MdiClient.cs: Size the scrollbars when resizing the window.
27997         - Resize the maximized windows when the client is resized
27998         * Form.cs: Make the child context available
27999         
28000 2005-11-23  Jackson Harper  <jackson@ximian.com>
28001
28002         * MdiChildContext.cs: Don't size windows if they are maximized.
28003
28004 2005-11-23  Mike Kestner  <mkestner@novell.com>
28005
28006         * ContextMenu.cs: use MenuTracker.
28007         * Control.cs: remove menu handle usage.
28008         * Form.cs: remove menu handle usage.
28009         * Hwnd.cs: remove menu handle usage.
28010         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
28011         motion and clicks to the new Tracker handlers.
28012         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
28013         and handle usage.
28014         * MenuAPI.cs: refactored to combine popup and menubar event handling.
28015         Killed the MENU and MENUITEM data types and associated collections
28016         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
28017         MenuTracker class that exposes the leftovers from the old MenuAPI
28018         static methods. Restructured Capture handling so that only one grab is
28019         done for the entire menu hierarchy instead of handing off grabs to
28020         submenus. Tracker now has an invisible control to Capture when active.
28021         * MenuItem.cs: add sizing accessors, kill Create
28022         and handle usage.
28023         * Theme.cs: remove menu handle and MENU(ITEM) usage.
28024         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
28025         MENU(ITEM). remove menu handle usage, use Menu directly.
28026         * XplatUIDriver.cs: remove menu handle usage.
28027         * XplatUIOSX.cs: remove menu handle usage.
28028         * XplatUIWin32.cs: remove menu handle usage.
28029         * XplatUIX11.cs: remove menu handle usage.
28030
28031 2005-11-22  Jackson Harper  <jackson@ximian.com>
28032
28033         * Hwnd.cs: Don't compute the menu size for
28034         DefaultClientRectangle.
28035         - Reenable menu sizes being computed for GetClienRectangle.
28036         * Form.cs: Remove comment of trechery
28037         
28038 2005-11-22  Jackson Harper  <jackson@ximian.com>
28039
28040         * Hwnd.cs: The adjustments for the menu bar are made when it is
28041         attached to the form.
28042
28043 2005-11-19  Jackson Harper  <jackson@ximian.com>
28044
28045         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
28046         (just like on windows).
28047
28048 2005-11-19  Jackson Harper  <jackson@ximian.com>
28049
28050         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
28051         use real buttons anymore because they are in non client area. The
28052         one TODO here is that I need to somehow invalidate a section of
28053         the non client area.
28054
28055 2005-11-18  Jackson Harper  <jackson@ximian.com>
28056
28057         * Control.cs: Put the enum check back in now that MDI doesnt have
28058         to use this to set border styles.
28059         * Form.cs: Only set mdi child windows borders if the handle has
28060         been created.
28061         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
28062         this directly on to the driver.
28063         - Get the move start position before adjusting for the titlebar
28064         height, this fixes the windows "skipping" when they are first
28065         moved.
28066
28067 2005-11-18  Jackson Harper  <jackson@ximian.com>
28068
28069         * XplatUIX11.cs: Just compute the mdi borders separately as they
28070         don't totally match up with normal form borders.
28071
28072 2005-11-18  Jackson Harper  <jackson@ximian.com>
28073
28074         * Control.cs: Set WS_ styles for borders, so that the driver does
28075         not have to retrieve the control instance to figure out what kind
28076         of borders it should have.
28077         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
28078         driver can know its an mdi child easily.
28079         * XplatUIX11.cs: Get the border styles and whether the window is
28080         MDI from the Styles and ExStyles params instead of having to get a
28081         control. This prevents a chicken and egg problem.       
28082
28083 2005-11-18  Jackson Harper  <jackson@ximian.com>
28084
28085         * MdiClient.cs: Fix typo so scrollbars show up correctly.
28086
28087 2005-11-18  Jackson Harper  <jackson@ximian.com>
28088
28089         * MdiClient.cs: Calculate when to add and remove scrollbars
28090         correctly.
28091         * MdiChildContext.cs: Adjust the y position to take the titlebar
28092         into account.
28093         - No height for FormBorderStyle.None
28094
28095 2005-11-18  Jackson Harper  <jackson@ximian.com>
28096
28097         * Control.cs: Allow non enum values to be used for
28098         InternalBorderStyle.  MDI does this to set a special border style.
28099         - New utility methods for converting points to/from client coords
28100         - Add the newly created control to the Controls collection before
28101         updating its style. This way UpdateStyle can walk the control
28102         heirarchy to find the control if needed.
28103         so I don't need to create a new Point object all the time.
28104         * Form.cs: Let MDI windows handle their border styles.
28105         - Set styles on MDI windows so the correct title style is derived.
28106         * MdiChildContext.cs: Move all the painting and window handling
28107         into the non client area.
28108         - Use correct sizing and put correct buttons on frames based on
28109         the FormBorderStyle.
28110         - Notify the mdi client about scrolling
28111         - Need to handle the buttons ourselves now, because they are all
28112         in non client areas and we can't add controls there.
28113         * MdiClient.cs: Halfway to scrolling, this implementation is
28114         somewhat broken though, we need to check to make sure other
28115         windows aren't causing scrolling before removing the bars. Also
28116         the bars need to be drawn on top, maybe I can switch implicit
28117         controls to be on top.
28118         * Hwnd.cs: caption_height and tool_caption_height are now
28119         properties of an hwnd, this way they can be set by the driver
28120         based on the type of window they are.  In X11 the window manager
28121         handles the decorations so caption_height is zero unless its an
28122         MDI window.
28123         - Add 3 pixel borders for MDI windows (0xFFFF).
28124         - Get rid of some code duplication, have DefaultClientRectanle
28125         just call GetClientRectangle.
28126         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
28127         Hwnd now.
28128         - Set border styles differently for mdi windows.
28129         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
28130         Hwnd now.
28131         
28132 2005-11-15  Mike Kestner  <mkestner@novell.com>
28133
28134         * Menu.cs: when adding an item to the collection, if item is already 
28135         parented, remove it from the parent.
28136
28137 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
28138
28139         * X11DesktopColors.cs: Added KDE support
28140
28141 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
28142
28143         * XplatUIWin32.cs: 
28144           - Clipboard methods now can translate Rtf format
28145           - No longer removes clipboard contents whenever a new format is added
28146             to allow placing multiple formats on the clipboard
28147         * Clipboard.cs: Clipboard now supports getting a IDataObject and
28148           will place all formats contained in it onto the clipboard. Also
28149           now cleans the clipboard before placing a new object onto it
28150         * RichTextBox.cs:
28151           - Implemented set_Rtf
28152           - Implemented set_SelectedRtf
28153           - Created InsertRTFFromStream() method to allow single code base
28154             for all properties and methods that insert RTF into document
28155           - Removed debug output
28156         * TextControl.cs:
28157           - Fixed Delete(int) to fix up line numbers
28158           - Fixed ReplaceSelection to combine start and end line
28159           - Fixed serious DeleteChars bug that would leave the document tree
28160             broken
28161           - Improved DumpTree with several logic checks to detect broken
28162             document trees
28163           - Removed debug lines
28164           - Fixed Caret.WordForward/WordBack moving code, now always also 
28165             updates caret.tag (fixes crash when word-selecting across tag
28166             boundaries via keyboard)
28167           - Added Insert() method for inserting multiline text into documents
28168           - Fixed DeleteChars() calculation errors that would cause a broken
28169             tag chain with multiple tag lines
28170           - DeleteChars() no longer crashes on multi-tag lines if not all tags
28171           - Split() no longer moves caret if split is at caret location
28172           - ReplaceSelection() now updates the cursor and re-displays it
28173           - ReplaceSelection() now uses new Insert() method to avoid code
28174             duplication
28175           - FormatText() can now handle formatting partial lines
28176         * TextBoxBase.cs:
28177           - Append now uses new TextControl.Insert() method (this avoids 
28178             duplicate code)
28179           - Implemented Ctrl-X (Cut) (
28180           - Implemented Ctrl-C (Copy)
28181           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
28182             regeneration when pasting text; roundtripping Copy&Paste within
28183             edit control still fails due to some calculation bugs in GenerateRTF)
28184           - The Delete key will now remove the current selection if it is visible
28185         * TextBox.cs: Removed debug lines
28186         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
28187           driver to be initialized and can't therefore be done via a static ctor)
28188
28189 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
28190
28191         * TextControl.cs: Added backend code for finding char arrays and strings
28192         * TextBoxBase.cs:
28193           - Added mouse wheel scroll support
28194           - Added support for VScroll and HScroll events
28195         * RichTextBox.cs:
28196           - Implemented all seven Find() variants
28197           - Implemented GetCharFromPosition()
28198           - Implemented GetCharIndexFromPosition()
28199           - Implemented GetLineFromIndex()
28200           - Implemented GetPositionFromCharIndex();
28201           - Implemented SaveFile for PlainText and UnicodeText
28202           - Fixed set_Font, now setting a new font applies that font to
28203             the whole document
28204           - Implemented generic Document to RTF converter
28205           - Implemented SaveFile for RichText format (still missing unicode
28206             conversion for non-ansi chars)
28207           - Implemented get_Rtf
28208           - Implemented get_SelectedRtf
28209
28210 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
28211
28212         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
28213           to allow any captures to be released before triggering OnClick. This
28214           way a click handler may capture the mouse without interference.
28215         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
28216           This way we send them even though X may not allow a grab (if the window
28217           isn't visible, for example)
28218
28219 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
28220
28221         * DataGridViewRowEventArgs.cs: DataGridView implementation
28222         * DataGridViewElement.cs: DataGridView implementation
28223         * DataGridViewComboBoxCell.cs: DataGridView implementation
28224         * DataGridViewDataErrorContexts.cs: DataGridView implementation
28225         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
28226         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
28227         * ImageLayout.cs: DataGridView implementation
28228         * DataGridViewComboBoxColumn.cs: DataGridView implementation
28229         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
28230         * DataGridViewSelectionMode.cs: DataGridView implementation
28231         * IDataGridViewEditingControl.cs: DataGridView implementation
28232         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
28233         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
28234         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
28235         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
28236         * DataGridViewColumnSortMode.cs: DataGridView implementation
28237         * DataGridView.cs: DataGridView implementation
28238         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
28239         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
28240         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
28241         * Padding.cs: DataGridView implementation
28242         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
28243         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
28244         * DataGridViewRowEventHandler.cs: DataGridView implementation
28245         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
28246         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
28247         * DataGridViewButtonCell.cs: DataGridView implementation
28248         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
28249         * DataGridViewEditMode.cs: DataGridView implementation
28250         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
28251         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
28252         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
28253         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
28254         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
28255         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
28256         * DataGridViewCellEventHandler.cs: DataGridView implementation
28257         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
28258         * DataGridViewCellStyleConverter.cs: DataGridView implementation
28259         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
28260         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
28261         * DataGridViewColumnEventArgs.cs: DataGridView implementation
28262         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
28263         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
28264         * QuestionEventArgs.cs: DataGridView implementation
28265         * IDataGridViewEditingCell.cs: DataGridView implementation
28266         * DataGridViewTriState.cs: DataGridView implementation
28267         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
28268         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
28269         * DataGridViewColumnCollection.cs: DataGridView implementation
28270         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
28271         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
28272         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
28273         * DataGridViewColumn.cs: DataGridView implementation
28274         * DataGridViewCellBorderStyle.cs: DataGridView implementation
28275         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
28276         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
28277         * DataGridViewRow.cs: DataGridView implementation
28278         * DataGridViewImageCellLayout.cs: DataGridView implementation
28279         * DataGridViewImageCell.cs: DataGridView implementation
28280         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
28281         * DataGridViewCheckBoxCell.cs: DataGridView implementation
28282         * DataGridViewHeaderCell.cs: DataGridView implementation
28283         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
28284         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
28285         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
28286         * DataGridViewTextBoxColumn.cs: DataGridView implementation
28287         * QuestionEventHandler.cs: DataGridView implementation
28288         * DataGridViewCellStyleScopes.cs: DataGridView implementation
28289         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
28290         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
28291         * DataGridViewCell.cs: DataGridView implementation
28292         * DataGridViewCellEventArgs.cs: DataGridView implementation
28293         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
28294         * DataGridViewCellStyle.cs: DataGridView implementation
28295         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
28296         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
28297         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
28298         * TextFormatFlags.cs: DataGridView implementation
28299         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
28300         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
28301         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
28302         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
28303         * DataGridViewButtonColumn.cs: DataGridView implementation
28304         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
28305         * HandledMouseEventArgs.cs: DataGridView implementation
28306         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
28307         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
28308         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
28309         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
28310         * DataGridViewRowCollection.cs: DataGridView implementation
28311         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
28312         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
28313         * DataGridViewHitTestType.cs: DataGridView implementation
28314         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
28315         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
28316         * DataGridViewColumnEventHandler.cs: DataGridView implementation
28317         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
28318         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
28319         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
28320         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
28321         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
28322         * DataGridViewContentAlignment.cs: DataGridView implementation
28323         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
28324         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
28325         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
28326         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
28327         * DataGridViewPaintParts.cs: DataGridView implementation
28328         * DataGridViewCellCollection.cs: DataGridView implementation
28329         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
28330         * DataGridViewImageColumn.cs: DataGridView implementation
28331         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
28332         * DataGridViewElementStates.cs: DataGridView implementation
28333         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
28334         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
28335         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
28336         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
28337         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
28338         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
28339         * DataGridViewRowHeaderCell.cs: DataGridView implementation
28340         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
28341         * DataGridViewTextBoxCell.cs: DataGridView implementation
28342         * DataGridViewBand.cs: DataGridView implementation
28343         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
28344         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
28345         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
28346         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
28347         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
28348         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
28349         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
28350         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
28351         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
28352         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
28353         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
28354
28355 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
28356
28357         * ThemeWin32Classic.cs: 
28358           - Draw the outside focus rectangle around buttons
28359           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
28360             doesn't use end caps for every dash of a line anymore. This
28361             workaround ignores the forecolor.
28362
28363 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
28364
28365         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
28366           endian safe.
28367
28368 2005-11-07  Jackson Harper  <jackson@ximian.com>
28369
28370         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
28371
28372 2005-11-07  Jackson Harper  <jackson@ximian.com>
28373
28374         * ScrollableControl.cs: Calculate the maximum and change vars
28375         (more) correctly so that scrollbars appear as a sensible size.
28376
28377 2005-11-04  Jackson Harper  <jackson@ximian.com>
28378
28379         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
28380         collection.
28381         * TreeView.cs: When the tree is sorted null out the top_node so
28382         that it is recalculated.
28383         - Use dotted lines instead of dashed lines to match MS better.
28384
28385 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
28386
28387         * ListView.cs: 
28388           - Implements key search for items. Useful when browsing files with FileDialog
28389           - When changing view mode or when clear the items reset scrollbar positions
28390
28391 2005-11-04  Jackson Harper  <jackson@ximian.com>
28392
28393         * CurrencyManager.cs: Implement the MetaDataChanged event, the
28394         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
28395         as to what the method may do as there is no real way of creating a
28396         derived CurrencyManager and calling the method. 
28397
28398 2005-11-03  Jackson Harper  <jackson@ximian.com>
28399
28400         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
28401         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
28402         method which seems to just be used internally to refresh the tabs.
28403
28404 2005-11-03  Jackson Harper  <jackson@ximian.com>
28405
28406         * TabControl.cs: Implement the remove method. Fix some broken
28407         comments.
28408
28409 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
28410
28411         * DateTimePicker.cs:
28412           - Added missing DateTimePickerAccessibleObject class
28413           - Added missing events
28414           - Added OnFontChanged method
28415         * Form.cs: Added missing attributes
28416         * TreeView.cs: Added missing attributes
28417
28418 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
28419
28420         * GridItemCollection.cs: Fix signatures
28421
28422 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
28423
28424         * XplatUI.cs: Updated build rev/date
28425         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
28426           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
28427         * Application.cs: Trigger context-specific ExitThread events
28428
28429 2005-11-03  Jackson Harper  <jackson@ximian.com>
28430
28431         * Menu.cs:
28432         * MainMenu.cs:
28433         * GridTableStylesCollection.cs:
28434         * Timer.cs:
28435         * TabPage.cs:
28436         * HelpProvider.cs:
28437         * StatusBar.cs:
28438         * MonthCalendar.cs: Signature fixes
28439
28440 2005-11-03  Jackson Harper  <jackson@ximian.com>
28441
28442         * TreeNodeCollection.cs: Remove should not be virtual.
28443         * TreeView.cs: Implement the last of the missing methods.
28444
28445 2005-11-03  Jackson Harper  <jackson@ximian.com>
28446
28447         * TreeNodeConverter.cs: Implement to get off my class-status back.
28448
28449 2005-11-03  Jackson Harper  <jackson@ximian.com>
28450
28451         * TreeView.cs: Hookup the bits for drag and drop.
28452         * TreeNode.cs: Don't cache the tree_view or index anymore, now
28453         that nodes can be moved from tree to tree easily this just causes
28454         all sorts of problems.
28455         * TreeNodeCollection: Don't need to give treenodes an index and
28456         treeview anymore when they are added, these are computed on the
28457         fly. Also make sure to remove a node before its added.
28458
28459 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
28460
28461         * TextControl.cs:
28462           - Added CaretSelection enum
28463           - Added comparison methods to Marker struct, makes selection code
28464             more readable
28465           - Added SelectionStart and SelectionEnd as 'moveable' location for
28466             the CaretDirection enum and handler
28467           - Added selection_prev variable to track optimized invalidation for
28468             word and line selection
28469           - Added SelectionVisible property (returns true if there is a valid 
28470             selection)
28471           - Switched CaretHasFocus to only display the caret if there is no
28472             visible selection
28473           - Avoiding StringBuilder.ToString to retrieve a single char, instead
28474             using the direct character index; should be much faster
28475           - Added various conditional debug statements
28476           - Fixed invalidation calculation for selection ranges
28477           - Added ExpandSelection() method to support word and line selection
28478           - Switched SetSelectionToCaret to use new Marker compare overloads
28479           - Added central IsWordSeparator() method to determine word 
28480             separators/whitespace and FindWordSeparator() to streamline common
28481             usage of IsWordSeparator()
28482         * TextBoxBase.cs:
28483           - Removed unneeded grabbed variable, it was just mirroring
28484             Control.Capture
28485           - No longer firing OnTextChanged event when Text setter is called,
28486             since the base will fire the event for us
28487           - Added handling of Ctrl-Up/Down selection
28488           - Added handling of Shift-Cursorkey selection
28489           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
28490             words
28491           - Added handling of Shift and Ctrl-Shift-Home/End selection
28492           - Removed some debug output
28493           - Added handling for single/double/tripple-click to place caret/
28494             select word/select line respectively (Fixes bug #76031)
28495           - Added support for drag expansion of word/line selection
28496         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
28497           current selection
28498
28499 2005-11-02  Jackson Harper  <jackson@ximian.com>
28500
28501         * X11Dnd.cs: If the drag is going to and from a MWF window just
28502         copy the data instead of sending it out through the X Selection
28503         mechanism.
28504
28505 2005-11-02  Jackson Harper  <jackson@ximian.com>
28506
28507         * X11Dnd.cs:
28508         * XplatUIX11.cs: When in a drag we don't want motion notify
28509         messages to get passed on to the other controls. This prevents
28510         mouse move messages from showing up in the drag source.
28511
28512 2005-11-02  Jackson Harper  <jackson@ximian.com>
28513
28514         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
28515         the correct button is release to end a drag.
28516         * XplatUIX11.cs: Make the button state internal so the drag system
28517         can access it.  Dragging needs to know about all button releases,
28518         not just left button.
28519
28520 2005-11-02  Miguel de Icaza  <miguel@novell.com>
28521
28522         * Form.cs (Icon): If the icon is null, reset the icon to the
28523         default value. 
28524
28525         * Cursor.cs: When writing the AND-mask bitmap do not include the
28526         number of colors, but hardcode those to two (black and white),
28527         fixes the loading of color cursors (Paint Dot Net).
28528
28529         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
28530         turn off autoscaling.
28531
28532         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
28533
28534 2005-11-02  Jackson Harper  <jackson@ximian.com>
28535
28536         * X11Dnd.cs: Make sure to send a status message if the pointer
28537         enters a control that can not accept a drop, otherwise the cursor
28538         isn't updated correctly. Also tried to compress the lines of code
28539         a bit.
28540
28541 2005-11-02  Jackson Harper  <jackson@ximian.com>
28542
28543         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
28544         set actions correctly.  This isn't perfect as XDND and win32 have
28545         some differences on how you allow actions. I'll clear this up by
28546         adding a path for drag from MWF to MWF windows.
28547         * XplatUIX11.cs: Hook into the dnd system.
28548
28549 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
28550
28551         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
28552         previously shown but they are no longer need it. Very obvious when 
28553         browsing files with FileDialog.
28554
28555 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
28556
28557         * Control.cs: We always need to call OnPaintBackground. We pretty much
28558           ignore AllPaintingInWmPaint and always do the painting there, whether 
28559           it's set or not, since we always ignore the WM_ERASEBKGND message 
28560           (which we don't generate on X11). This fixes #76616.
28561         * Panel.cs: Removed unneeded background painting. This happens properly
28562           in Control.cs already
28563
28564 2005-10-31  Mike Kestner  <mkestner@novell.com>
28565
28566         * Menu.cs: Add items to collection before setting their index.
28567         * MenuItem.cs : add range checking with ArgumentException like MS.
28568         [Fixes #76510]
28569
28570 2005-10-31  Jackson Harper  <jackson@ximian.com>
28571
28572         * ListBox.cs: Invalidate if the area is visible at all not just
28573         contained in the visible rect. Fixes unselection of semi visible
28574         items.
28575
28576 2005-10-31  Jackson Harper  <jackson@ximian.com>
28577
28578         * Control.cs: Consistently name the dnd methods. Make them
28579         internal so we can override them to match some MS behavoir
28580         internally.
28581         * Win32DnD.cs: Use the new consistent names.
28582
28583 2005-10-31  Jackson Harper  <jackson@ximian.com>
28584
28585         * TreeView.cs: Don't draw the selected node when we lose focus.
28586
28587 2005-10-31  Jackson Harper  <jackson@ximian.com>
28588
28589         * X11Dnd.cs: We still need to reset the state even though a full
28590         reset isn't being done, otherwise status's still get sent all over
28591         the place.
28592
28593 2005-10-31  Jackson Harper  <jackson@ximian.com>
28594
28595         * Control.cs: Make the dnd_aware flag internal so the dnd
28596         subsystem can check it. Catch exceptions thrown in dnd handlers to
28597         match MS behavoir.
28598         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
28599         * X11Dnd.cs: Handle null data in the converters. Set the XDND
28600         version when sending a XdndEnter. Use the control/hwnd dnd_aware
28601         flags to reduce the number of dnd enters/status's sent.
28602
28603 2005-10-31  Jackson Harper  <jackson@ximian.com>
28604
28605         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
28606
28607 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
28608
28609         * PictureBox.cs: Fixes 76512
28610
28611 2005-10-28  Jackson Harper  <jackson@ximian.com>
28612
28613         * X11Dnd.cs: Early implementation to support winforms being a drag
28614         source for data on X11. Also restructured the converters so they
28615         can go both ways now.
28616         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
28617         
28618 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
28619
28620         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
28621           clipboard requests
28622
28623 2005-10-27  Jackson Harper  <jackson@ximian.com>
28624
28625         * TreeNode.cs: Implement serialization so my DnD examples will work.
28626
28627 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
28628
28629         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
28630           TreeView.cs: Don't dispose objects that are not owned.
28631           
28632 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
28633
28634         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
28635           should retrieve the current cursor and report that, but XplatUI
28636           doesn't (yet) have an interface for that (and I'm not sure I even
28637           can, on X11)
28638         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
28639           until any message loop processing is done (and the WM_SETCURSOR
28640           replaces the cursor to the proper one)
28641         * XplatUIX11.cs: 
28642           - Fixed override behaviour, we can't set the cursor globally on X11, 
28643             just for our windows.
28644           - Invalidating the System.Drawing X11 display handle when we are
28645             shutting down
28646         * Control.cs: Fix to make csc happy
28647
28648 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
28649
28650         * TextBoxBase.cs: 
28651           - get_Text: Add last line (without trailing newline) to returned
28652             value (Fixes 76212)
28653           - get_TextLength: Count last line in returned length
28654           - ToString: Call Text property instead of duplicating code
28655
28656 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
28657
28658         * ImageList.cs: Dispose ImageAttributes objects.
28659
28660 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
28661
28662         * ImageList.cs: Use attribute constructors with less arguments where
28663           possible.
28664
28665 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
28666
28667         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
28668           Use typeof instead of strings when assembly is referenced. Added
28669           some more comments.
28670
28671 2005-10-21  Jackson Harper  <jackson@ximian.com>
28672
28673         * ListView.cs: Raise a double click event. Also tried to somewhat
28674         fix when the selectedindexchanged event is raised. Its still
28675         broken though.
28676
28677 2005-10-21  Jackson Harper  <jackson@ximian.com>
28678
28679         * TreeView.cs: New method to invalidate the plus minus area of a
28680         node without invalidating the whole node (maybe this can be used
28681         in some more places).
28682         * TreeNodeCollection.cs: When adding to an empty node we need to
28683         invalidate its plus minus area so the little block shows up.
28684         
28685 2005-10-21  Jackson Harper  <jackson@ximian.com>
28686
28687         * TreeView.cs: Make sure that when we invalidate a node the bounds
28688         are big enough to cover the selected box and the focus
28689         rectangle. Use a different colour for the lines connecting nodes
28690         so they show up with all themes.
28691
28692 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
28693
28694         * NativeWindow.cs: Don't call anything that could call into the driver,
28695           we might be on a different thread.
28696
28697 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
28698
28699         * Control.cs(Dispose): Since Dispose might run on a different thread,
28700           make sure that we call methods that could call into the driver via
28701           invoke, to avoid thread issues
28702
28703 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
28704
28705         * XplatUI.cs: Removed finalizer
28706         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
28707           not allowing to be called on the finalizer thread.
28708
28709 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
28710
28711         * ImageList.cs:
28712           - Reverted r51889 and r51891.
28713           - Added ImageListItem class that stores unmodified image items and image
28714             properties required to create list images until handle is created.
28715           - Added AddItem and moved image creation logic to AddItemInternal.
28716           - Added CreateHandle method that creates images based on unmodified items.
28717           - Added DestroyHandle that changes state to store unmodified items.
28718           - Add and AddStrip methods no more create handle.
28719           - ReduceColorDepth has no return value.
28720           - Dispose destroys handle.
28721           - Modified other methods to reflect the above changes.
28722           - Implemented key support.
28723           - Added profile 2.0 members and attributes.
28724           - Added private Reset and ShouldSerialize methods that provide the same
28725             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
28726             them as they are private.
28727           - Added some more comments about implementation details.
28728
28729 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
28730
28731         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
28732
28733 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
28734
28735         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
28736
28737 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
28738
28739         * DataGridDrawingLogic.cs: Fixes column hit calcultation
28740         * DataGridColumnStyle.cs: Remove debug message
28741
28742 2005-10-20  Jackson Harper  <jackson@ximian.com>
28743
28744         * TreeView.cs: We can always get input keys regardless of whether
28745         or not editing is enabled. They are used for navigation.
28746
28747 2005-10-20  Jackson Harper  <jackson@ximian.com>
28748
28749         * TreeNode.cs: Use the viewport rect for determining if a node
28750         needs to be moved for visibility. Don't use Begin/End edit. This
28751         calls a full refresh when its done.
28752         * TreeView.cs: New SetBottom works correctly.  Make the viewport
28753         rect property internal so the treenodes can see it. When clicking
28754         on a node we need to ensure that its visible because it might just
28755         be partly visible when clicked.
28756
28757 2005-10-20  Jackson Harper  <jackson@ximian.com>
28758
28759         * TreeNodeCollection.cs: Remove debug code.
28760
28761 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
28762
28763         * Datagrid.cs: Implements column sorting in Datagrid
28764         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
28765
28766 2005-10-20  Jackson Harper  <jackson@ximian.com>
28767
28768         * TreeNodeCollection.cs: Remove items properly. Update the correct
28769         area after removing them.
28770
28771 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
28772
28773         * Datagrid.cs: Should not call base.OnPaintBackground
28774
28775 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
28776
28777         * XplatUIX11.cs (GetMessage):
28778           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
28779             window instead of client window
28780           - Now properly calculates NC_xBUTTONUP message coordinates
28781           - ScreenToMenu now properly calculates it's coordinates of whole 
28782             window, since menus are in the whole window, not in the client
28783             window
28784           - Added WholeToScreen coordinate translation method
28785
28786 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
28787
28788         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
28789           want to return a message, loop back to the beginning of the function
28790           and grab the next real message to process instead.
28791
28792 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
28793
28794         * Splitter.cs: Properly set limits if no filler control is used
28795
28796 2005-10-19  Jackson Harper  <jackson@ximian.com>
28797
28798         * ColorDialog.cs: Don't show the help button if it is not enabled
28799         instead of disabling it (this is what MS does). Don't create the
28800         panel until the dialog is run, otherwise the vars (such as
28801         ShowHelp) are not set yet.
28802
28803 2005-10-19  Jackson Harper  <jackson@ximian.com>
28804
28805         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
28806         are reduced when adding nodes.
28807         * TreeNode.cs:
28808         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
28809         tree.
28810         
28811 2005-10-19  Jackson Harper  <jackson@ximian.com>
28812
28813         * FolderBrowserDialog.cs: End editing our treeview so the window
28814         actually gets refreshed.
28815
28816 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
28817
28818         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
28819           Obsoleted handling of WM_ERASEBKGND, now always draws our background
28820           inside of WM_PAINT
28821
28822 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
28823
28824         * MenuAPI.cs: Returns after Hidding window
28825         * XplatUIX11.cs: Added TODO found while debugging menu issues
28826
28827 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
28828
28829         * XplatUIX11.cs: Do not re-map the whole window when it's size
28830           becomes non-zero unless it's supposed to be actually visible
28831
28832 2005-10-18  Jackson Harper  <jackson@ximian.com>
28833
28834         * TreeView.cs: We don't need to keep a count anymore.
28835         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
28836         use the Grow method.
28837
28838 2005-10-18  Jackson Harper  <jackson@ximian.com>
28839
28840         * TreeNodeCollection.cs: Insert is not supported on arrays, so
28841         implement it manually here.
28842
28843 2005-10-18  Jackson Harper  <jackson@ximian.com>
28844
28845         * ImageList.cs: Dont kill the list when the colour depth is
28846         changed, just change the colour depth of all the images.
28847         - Same goes for setting the image size. Just resize them all
28848         instead of killing the list softly.
28849
28850 2005-10-18  Jackson Harper  <jackson@ximian.com>
28851
28852         * Control.cs: Don't invalidate empty rectangles.
28853
28854 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
28855
28856         * ListViewItem.cs:
28857           - Adds checked item to the Checked/Item lists (where empty before)
28858           - Do not add items to the Selected lists if they are already present
28859         * ListView.cs:
28860           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
28861           - When deleting items make sure that we delete them for the Selected
28862           and Checked list also.
28863
28864 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
28865
28866         * Label.cs: Dispose objects no longer used
28867         * ThemeWin32Classic.cs: Dispose objects no longer used
28868
28869 2005-10-18  Jackson Harper  <jackson@ximian.com>
28870
28871         * TabControl.cs: Don't refresh the whole control when the tabs are
28872         scrolled, we just need to refresh the tab area.
28873
28874 2005-10-17  Jackson Harper  <jackson@ximian.com>
28875
28876         * XplatUIX11.cs: Compress code a little bit. Only calculate the
28877         after handle when we need it.
28878
28879 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
28880
28881         * Control.cs: When the parent size changes, recalculate anchor 
28882           positions. Partial fix for #76462
28883
28884 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
28885
28886         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
28887           drawn. Fixes #76462
28888
28889 2005-10-17  Jackson Harper  <jackson@ximian.com>
28890
28891         * MonthCalendar.cs: Don't create the numeric up down until our
28892         handle is created. Otherwise our handle is created in the
28893         constructor and we don't know if we are a WS_CHILD or WS_POPUP
28894         yet.
28895
28896 2005-10-17  Jackson Harper  <jackson@ximian.com>
28897
28898         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
28899         correctly.
28900
28901 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
28902         * TreeNode.cs : small logical fix (was using local var instead of field)
28903         
28904 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
28905
28906         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
28907
28908 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
28909
28910         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
28911
28912 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
28913
28914         * Control.cs: 
28915           - Re-implemented anchoring code. My first version was really broken.
28916             This fixes bug #76033. Unlike the previous implementation we will
28917             no longer have round errors since all numbers are calculated from
28918             scratch every time. Removed various anchor-related obsolete vars.
28919           - InitLayout no longer causes layout event firing and layout to be 
28920             performed
28921
28922 2005-10-16  Jackson Harper  <jackson@ximian.com>
28923
28924         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
28925         which was broken).
28926
28927 2005-10-16  Jackson Harper  <jackson@ximian.com>
28928
28929         * TabControl.cs: Remove debug code.
28930
28931 2005-10-16  Jackson Harper  <jackson@ximian.com>
28932
28933         * XEventQueue.cs: Increase the default queue size (very simple
28934         apps needed to grow the queue).
28935         * Hwnd.cs: No finalizer so we don't need to suppress
28936         finalization. Compute the invalid area manually so a new rectangle
28937         does not newto be created.
28938         * ScrollableControl.cs: Don't set any params (otherwise visibility
28939         isn't set correctly).
28940         * MdiChildContext.cs: New constructor takes the mdi parent so it
28941         doesn't have to be computed and avoids a crash on windows. Draw
28942         the window icon properly, and allow the text to be seen.
28943         * Form.cs: Use new MdiChildContext constructor. Make sure the
28944         child context isn't null in wndproc.
28945         * TabControl.cs: Don't set focus, this is muddling keyboard
28946         behavoir. Expand the tab rows when a window size increase will
28947         allow extra tabs to be seen. Don't allow tabs smaller than the
28948         width of a window to be scrolled out of view.
28949         * TreeNode.cs:
28950         * TreeView.cs: Use measure string to calculate a nodes width, the
28951         width is cached and only updated when the text or the font is
28952         changed. Don't check for expand/collapse clicks on the first level
28953         nodes if root lines are disabled.
28954         
28955 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
28956
28957         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
28958
28959 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
28960
28961         * DataGridBoolColumn.cs: fixes warning
28962
28963 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
28964
28965         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
28966         to match more to match more precisely the MS Net behavior
28967
28968 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
28969
28970         * Hwnd.cs: Added field to track if window is mapped
28971         * XplatUIX11.cs: 
28972           - Unmap windows if they become 0-size, re-map when 
28973             they are >0 again; fixes #76035
28974           - Re-set our error handler after initializing X11Desktop
28975             to override any error handlers Gtk or whatever was called
28976             may have set.
28977
28978 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
28979
28980         * CheckedListBox.cs: Removed unused vars
28981         * ListView.cs: Fixed signatures
28982         * RichTextBox.cs: Removed unused vars
28983         * TextBoxBase.cs: Removed unused vars
28984         * XplatUIWin32.cs: Removed unused vars
28985         * XplatUIX11.cs: Removed unused vars
28986         * XplatUI.cs: Updated version and date to latest published
28987
28988 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
28989
28990         * Cursor.cs: Added private .ctor to work around a bug in
28991           resourceset (Thanks to Geoff Norton for the help on this)
28992         * SplitterEventArgs.cs: Made fields accessible so we don't
28993           waste boatloads of objects and can reuse the same one
28994           in Splitter
28995         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
28996           any captions and borders when generating screen coordinates
28997         * Splitter.cs: Reimplemented control, now fully complete, uses
28998           rubberband drawing, supports and obeys all properties, has
28999           proper cursors
29000
29001 2005-10-13  Miguel de Icaza  <miguel@novell.com>
29002
29003         * Form.cs (Form): Setup default values for autoscale and
29004         autoscale_base_size;  Make these instance variables, not static
29005         variables. 
29006
29007         (OnLoad): on the first load, adjust the size of the form.
29008
29009 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
29010
29011         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
29012           width argument to DrawReversibleRectangle()
29013         * XplatUIWin32.cs, XplatUIX11.cs: 
29014           - Implemented width for DrawReversibleRectangle()
29015           - Added logic to DrawReversibleRectangle that recognizes a zero
29016             width or height and only draws a line in that situation
29017         
29018 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
29019
29020         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
29021         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
29022         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
29023           method (it uses our FosterParent window to get a graphics context)
29024
29025 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
29026
29027         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
29028           and SetWindowBackground methods
29029         * Control.cs:
29030           - Setting proper ControlStyles
29031           - We no longer call XplatUI.SetWindowBackground and XplatUI.
29032             EraseWindowBackground, instead we draw the window background
29033             ourselves in PaintControlBackground. This behaviour is
29034             required to match MS, where, when OnPaintBackground is not
29035             called, the background is not drawn.
29036           - Removed unneeded Refresh() in set_Text
29037         * Hwnd.cs: Dropped the ErasePending support. No longer needed
29038         * XplatUIX11.cs:
29039           - Created DeriveStyles method to translate from CreateParams to
29040             FormBorderStyle and TitleStyle, also handles BorderStyle (which
29041             matches FormBorderStyle enum values)
29042           - Consolidated SetHwndStyles and CalculateWindowRect border/title
29043             style calculations into single DeriveStyles method
29044           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
29045             from redrawing the whole window on any resize or expose.
29046           - Fixed CreateWindow usage of SetWindowValuemask. Before not
29047             all styles were applied to our whole/client window appropriately
29048           - Removed EraseWindowBackground() and SetWindowBackground() methods
29049           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
29050             no longer clear/redraw the background through X
29051           - Removed handling of erase_pending bit, we have no use for it (or
29052             so it seems)
29053         * XplatUIOSX.cs:
29054           - Removed generation and handling of WM_ERASEBKGND message
29055           - Removed EraseWindowBackground() and SetWindowBackground() methods
29056           - Removed handling of hwnd.ErasePending flag
29057         * XplatUIWin32.cs:
29058           - Removed EraseWindowBackground() and SetWindowBackground() methods
29059           - We no longer call EraseWindowBackground on PaintEventStart, we 
29060             ignore the fErase flag, erasing is handled in Control in the
29061             background handler
29062         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
29063           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
29064           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
29065           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
29066           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
29067           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
29068           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
29069
29070 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
29071
29072         * PropertyGrids.cs: Get sub properties
29073         * PropertyGridView.cs: Fix drawing code
29074
29075 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
29076
29077         * ListBox.cs: Fixes 76383
29078
29079 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
29080
29081         * DataGridTextBoxColumn.cs: Sets location and size before attachment
29082         * ThemeWin32Classic.cs: Fixes border drawing and calculations
29083         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
29084
29085
29086 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
29087
29088         * ComboBox.cs: Fixes border drawing
29089
29090 2005-10-10  Miguel de Icaza  <miguel@novell.com>
29091
29092         * MimeIcon.cs: Ignore errors if the file can not be read.
29093
29094 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
29095
29096         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
29097          - Fixed border calculations
29098          - Fixed horizontal scrolling in single column listboxes
29099          - Fixed drawing issues
29100
29101 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
29102
29103         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
29104           FormBorderStyle enum
29105         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
29106           code to determine FormBorderStyles from CreateParams
29107         * Form.cs:
29108           - Fixed bug where we'd set the wrong window styles if we were
29109             not creating an MDI window
29110           - Added call to XplatUI.SetBorderStyle when form borders are set
29111         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
29112         * Hwnd.cs:
29113           - Removed obsolete edge style
29114           - Switched from BorderStyle to FormBorderStyle
29115         
29116 2005-10-10  Jackson Harper  <jackson@ximian.com>
29117
29118         * Form.cs: Use the property to get the window handle instead of
29119         accessing it directly. Prevents a null reference exception.
29120
29121 2005-10-10  Jackson Harper  <jackson@ximian.com>
29122
29123         * TreeView.cs: Don't adjust the rect given to DrawString now that
29124         our libgdiplus draws correctly.
29125
29126 2005-10-08  Jackson Harper  <jackson@ximian.com>
29127
29128         * TreeView.cs: Don't try to find the clicked on node if there are
29129         no nodes in the tree.
29130
29131 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
29132
29133         * RichTextBox.cs:
29134
29135           restore
29136
29137 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
29138
29139         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
29140           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
29141           ErrorProvider.cs:
29142           Use ResPool for brushes and dispose System.Drawing objects that
29143           are not used anymore.
29144
29145 2005-10-07  Jackson Harper  <jackson@ximian.com>
29146
29147         * MdiChildContext.cs: Use the new borders instead of drawing them
29148         ourselves.
29149
29150 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
29151
29152         * Calling UpdateBounds after changing the window's BorderStyle 
29153         since the style can change the ClientSize
29154
29155 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
29156
29157         * Control.cs: Made PaintControlBackground virtual
29158         * Panel.cs: Overriding PaintControlBackground instead of using paint
29159           event; paint event method was interfering with 'real' users of the
29160           event.
29161
29162 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
29163
29164         * ThemeWin32Classic.cs: remove border drawing since it is handled
29165         by the base control class now and was causing double border drawing.
29166
29167 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
29168
29169         * Panel.cs: Redraw our background on paint. Not a pretty solution,
29170           but it does seem to match MS behaviour. This fixes bug #75324
29171
29172 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
29173
29174         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
29175           somewhat hackish looking
29176
29177 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
29178
29179         * TextBoxBase.cs:
29180           - We now accept Enter even if AcceptEnter is false, if the containing
29181             form does not have an AcceptButton configured (fixes bug #76355)
29182           - Calculations are now fixed to no longer use Width/Height, but
29183             ClientSize.Width/Height, since we now support borders (this was
29184             a result of fixing borders and therefore bug #76166)
29185           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
29186             true (fixes bug #76354)
29187         
29188 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
29189
29190         * Control.cs: 
29191           - Defaulting BorderStyle and setting it in XplatUI when our window 
29192             is created
29193           - Added enum check to InternalBorderStyle setter
29194         * XplatUIX11.cs: 
29195           - Added drawing of window borders
29196           - Now properly calculates WM decorations offset for toplevel 
29197             windows (fixes bug #74763)
29198         * XplatUIWin32.cs: 
29199           - Implemented BorderStyles for windows (we're letting win32 draw 
29200             the border for us)
29201           - Fixed the signature for SetWindowLong
29202         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
29203           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
29204           setting borders
29205         * UpDownBase.cs: Remove drawing of borders, this is handled by
29206           the driver, outside the client area
29207         * ListView.cs: Removed bogus border calculations. The control should
29208           be oblivious to borders, since those are not part of the client
29209           area. 
29210         * X11DesktopColors.cs: Commented out (currently) unneeded variables
29211         * ThemeWin32Classic.cs: Removed border calculations from ListView 
29212           drawing code
29213
29214 2005-10-06  Jackson Harper  <jackson@ximian.com>
29215
29216         * MdiChildContext.cs: Clear out the old virtual position remove
29217         all the unneeded calls to CreateGraphics.
29218
29219 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
29220
29221         * TextControl.cs: Use proper color for highlighted text; fixes #76350
29222
29223 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
29224
29225         * Form.cs: 
29226           - Added loading and setting of our new default icon
29227           - Only set icon if window is already created
29228
29229 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
29230
29231         * Label.cs:
29232           - Do not explicitly set the foreground and background colors, to
29233             allow inheriting from parents (fixes #76302)
29234           - Use Control's InternalBorderStyle property to deal with borders
29235
29236 2005-10-06  Jackson Harper  <jackson@ximian.com>
29237
29238         * MdiChildContext.cs: Use the new xplatui function to draw a
29239         reversible rect.
29240
29241 2005-10-06  Jackson Harper  <jackson@ximian.com>
29242
29243         * Form.cs: Add the parent before creating the child context cause
29244         we need the parent when setting up the child.
29245
29246 2005-10-06  Jackson Harper  <jackson@ximian.com>
29247
29248         * FolderBrowserDialog.cs: redo the tree population code so a
29249         second thread isn't used. Should be a lot faster and more stable
29250         now.
29251
29252 2005-10-05  Jackson Harper  <jackson@ximian.com>
29253
29254         * TreeView.cs: There are no expand/collapse boxes if the node has
29255         no children.
29256
29257 2005-10-05  Jackson Harper  <jackson@ximian.com>
29258
29259         * X11DesktopColors.cs: Get menu colours for the gtk theme.
29260
29261 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
29262
29263         * FileDialog.cs: Fix InitialDirectory
29264
29265 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
29266
29267         * ComboBox.cs:
29268                 - Fixes changing between styles
29269                 - Fixes simple mode
29270                 - Fixes last item crashing when navigating with keyboard
29271
29272 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
29273
29274         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
29275
29276 2005-10-05  Jackson Harper  <jackson@ximian.com>
29277
29278         * TreeView.cs: If updating the root node do a full refresh.
29279         * TreeNode.cs: The root node should be expanded by default. Also
29280         added a utility prop to tell if we are the root node.
29281         * TreeNodeCollection.cs: Only refresh if the node we are being
29282         added to is expanded. Also added a comment on a potential
29283         optimization.
29284         
29285 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
29286
29287         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
29288           in dispose method. Fixes #76330
29289
29290 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
29291
29292         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
29293
29294                 - Implements vertical and horizontal scrolling using XplatUI
29295                 - Fixes keyboard navagation
29296                 - Fixes EnsureVisible
29297                 - Drawing fixes
29298                 - Handles and draws focus properly
29299
29300
29301 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
29302
29303         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
29304           Create handle. NET_2_0: Destroy handle when value is null.
29305
29306 2005-10-03  Jackson Harper  <jackson@ximian.com>
29307
29308         * ScrollBar.cs: My last scrollbar patch was broken. This is a
29309         revert and a new patch to prevent the thumb from refreshing so
29310         much.
29311
29312 2005-10-02  Jackson Harper  <jackson@ximian.com>
29313
29314         * ScrollBar.cs: Don't update position if it hasn't actually
29315         changed. This occurs when you hold down the increment/decrement
29316         buttons and the thumb gets to the max/min.
29317
29318 2005-10-01  Jackson Harper  <jackson@ximian.com>
29319
29320         * Form.cs:
29321         * MdiChildContext.cs:
29322         * MdiClient.cs: Implement ActiveMdiChild in Form.
29323
29324 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
29325
29326         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
29327
29328 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
29329
29330         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
29331           be found
29332
29333 2005-09-30  Jackson Harper  <jackson@ximian.com>
29334
29335         * ListBox.cs: Don't do a full refresh unless some data has
29336         actually changed.
29337
29338 2005-09-30  Jackson Harper  <jackson@ximian.com>
29339
29340         * TreeView.cs: Make sure that the checkboxes size is factored in
29341         even when not visible.
29342
29343 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
29344
29345         * FileDialog.cs: Fix Jordi's build break
29346
29347 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
29348
29349         * FileDialog.cs: 
29350                 - Use standard the Windows colours for the combobox as espected
29351                 - Dispose objects that use resouces when no longer need them
29352
29353 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
29354
29355         * X11DesktopColors.cs: Initial incomplete implementation
29356         * XplatUIX11.cs: Added call to initialize X11DesktopColors
29357
29358 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
29359
29360         * Theme.cs: 
29361           - Switched Theme color names to match the names defined in 
29362             System.Drawing.KnownColors. Life's hard enough, no need to make 
29363             it harder.
29364           - Added setters to all theme color properties so themes can set
29365             their color schemes. The setters also propagate the color changes
29366             to System.Drawing.KnownColors via reflection
29367         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
29368           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
29369           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
29370           use the new, more logical theme color names
29371         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
29372           post-NT colors
29373         * ThemeWin32Classic.cs:
29374           - Removed code to set the old classic Windows colors. Instead it
29375             now relies on the colors returned by System.Drawing.KnownColors
29376             which will be either modern static colors (Unix) or colors
29377             read from the user's configuration (Win32)
29378           - Updated to use the new, more logical theme color names
29379           - Switched DataGrid drawing code to use only Theme colors instead of
29380             a mix of System.Drawing.KnownColors and Theme colors
29381           - DrawFrameControl(): Removed code that fills the button area, the
29382             fill would overwrite any previous fill done by a control. This
29383             fixes bug #75338 
29384           - Added DrawReversibleRectangle() stub
29385         * ScrollableControl.cs: Set visible state to false when scrollbars
29386           are removed (pdn fix)
29387         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
29388           DrawReversibleRectangle() method to allow drawing primitive 
29389           'rubber bands'
29390         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
29391
29392 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
29393
29394         * ImageList.cs: Add(Icon): Create handle.
29395
29396 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
29397
29398         * ListView.cs:
29399         * ThemeWin32Classic.cs:
29400                 - Fixes detail mode
29401                 - Sets clippings
29402                 - Issues with drawing
29403
29404 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
29405
29406         * ImageList.cs: Moved RecreateHandle back to ImageList as event
29407           source has to be the ImageList.
29408
29409 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
29410
29411         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
29412
29413 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
29414
29415         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
29416
29417 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
29418
29419         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
29420
29421 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
29422         * GridItem.cs: Fixed TODOs
29423         * GridItemCollection.cs: Added ICollection interface
29424
29425 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
29426
29427         * ImageList.cs: Resize icons when needed.
29428
29429 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
29430
29431         * ListViewItem.cs
29432                 - Fixes GetBounds and returns on screen rects
29433         * ListView.cs:
29434                 - Fixes vertical and horzintal scrolling of items
29435         * ThemeWin32Classic.cs:
29436                 - Fixes drawing
29437                 
29438 2005-09-29  Raja R Harinath  <harinath@gmail.com>
29439
29440         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
29441
29442 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
29443
29444         * ImageList.cs: Added comments about handle creation. Moved Handle,
29445           HandleCreated and OnRecreateHandle implementations to ImageCollection.
29446           Handle is created in Add methods.
29447
29448 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
29449          
29450         * DataGridDrawingLogic.cs: 
29451                 - Takes rows into account on Colum calculations
29452                 - Returns the column when clickig
29453         * DataGrid.cs:
29454                 - Fixes default HitTestInfo values
29455                 - Fixes HitTestInfo.ToString
29456                 - Fixes ResetBackColor          
29457         
29458 2005-09-28  Jackson Harper  <jackson@ximian.com>
29459
29460         * MdiChildContext.cs: Obey rules for fixed sized windows (no
29461         sizing or cursor changes). Also added some temp code to draw the
29462         titlebars text (Makes dev a little easier).
29463
29464 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
29465
29466         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
29467
29468 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
29469          
29470         * ListBox.cs: Fixes bug 76253
29471
29472 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
29473
29474         * ImageList.cs: Added comments about the current implementation. Added
29475           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
29476           Format32bppArgb to preserve transparency and can use Graphics.FromImage
29477           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
29478           with Bitmap.LockBits for better performance. Revised the whole file to
29479           match MS.NET behaviour and provide better performance. Non-public
29480           interface members are calling public members even when they throw
29481           NotSupportedException for better maintainability. Moved ColorDepth,
29482           ImageSize, ImageStream and TransparentColor implementations to
29483           ImageCollection for better performance as these properties are not used
29484           by ImageList.
29485         * ImageListStreamer.cs: Added a new internal constructor that takes an
29486           ImageList.ImageCollection and serializes Images based on
29487           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
29488           match ImageList property name.
29489
29490 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
29491
29492         * ListBox.cs: Fixes IndexFromPoint for last item
29493
29494 2005-09-27  Jackson Harper  <jackson@ximian.com>
29495
29496         * Form.cs: Set the position of new mdi children correctly.
29497
29498 2005-09-27  Jackson Harper  <jackson@ximian.com>
29499
29500         * MdiClient.cs: New mdi children need to be added to the back of
29501         the controls collection so the zorder is set correctly. Also add a
29502         count of all the child windows that have been created.
29503
29504 2005-09-27  Jackson Harper  <jackson@ximian.com>
29505
29506         * Form.cs (CreateParams): Setup MDI forms correctly.
29507
29508 2005-09-27  Jackson Harper  <jackson@ximian.com>
29509
29510         * MdiChildContext.cs:
29511         * MonthCalendar.cs:
29512         * UpDownBase.cs:
29513         * ListBox.cs:
29514         * ListView.cs:
29515         * TextBoxBase.cs:
29516         * TreeView.cs:
29517         * ScrollableControl.cs:
29518         * ComboBox.cs: Add implicit controls using the new implict control
29519         functionality in ControlCollection. Also try to block multiple
29520         control add in a suspend/resume layout to save some cycles.
29521         
29522 2005-09-27  Jackson Harper  <jackson@ximian.com>
29523
29524         * Control.cs: Add functionality to the controls collection to add
29525         'implicit controls' these are controls that are created by the
29526         containing control but should not be exposed to the user. Such as
29527         scrollbars in the treeview.
29528         * Form.cs: The list var of the ControlsCollection is no longer
29529         available because of the potential of implicit controls getting
29530         ignored by someone accessing the list directly.
29531
29532 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
29533
29534         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
29535           loose it's parent. (Fixed bug introduced in r49103 when we added
29536           setting the child parent to null on Remove)
29537
29538 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
29539
29540         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
29541         * Splitter.cs: Added missing attributes for BorderStyle property.
29542         * TextBoxBase.cs: Marked Calculate* methods internal.
29543         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
29544         MS.NET.
29545
29546 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
29547          
29548         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
29549
29550 2005-09-25  Jackson Harper  <jackson@ximian.com>
29551
29552         * TreeView.cs: Update the node bounds correctly regardless of
29553         whether the node is visible.
29554
29555 2005-09-25  Jackson Harper  <jackson@ximian.com>
29556
29557         * ImageList.cs: Don't dispose the image after it is added to the
29558         image list. Only reformat images that need to be resized.
29559
29560 2005-09-25  Jackson Harper  <jackson@ximian.com>
29561
29562         * ImageList.cs: Don't set the format when changing the image.
29563
29564 2005-09-25  Jackson Harper  <jackson@ximian.com>
29565
29566         * TreeView.cs: We can't just assume the node has a font. Use the
29567         treeviews font if no node font is available.
29568
29569 2005-09-25  Jackson Harper  <jackson@ximian.com>
29570
29571         * TreeView.cs: Allow the scrollbars to be reset with negative
29572         values.
29573         - Don't add scrollbars to negative sized windows.
29574
29575 2005-09-23  Jackson Harper  <jackson@ximian.com>
29576
29577         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
29578         old Mono.Posix. Also remove some stray code that shouldn't have
29579         been committed.
29580
29581 2005-09-23  Jackson Harper  <jackson@ximian.com>
29582
29583         * TreeView.cs: Attempt at proper sizing of the horizontal
29584         scrollbar. Also don't resize the scrollbars unless they are
29585         visible.
29586
29587 2005-09-23  Jackson Harper  <jackson@ximian.com>
29588
29589         * TreeView.cs: We don't need to expand the invalid area when the
29590         selection changes, as this is all drawn in the node's bounding
29591         box. The area needs to be expanded (previous typo was contracting
29592         it) when the focus rect moves.
29593
29594 2005-09-23  Jackson Harper  <jackson@ximian.com>
29595
29596         * TreeView.cs: Display the selection box under the correct
29597         circumstances. We were rendering white text with no selection box
29598         before.
29599
29600 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
29601
29602         * TextControl.cs(Split): Now updates selection start/end if it points 
29603           into a line that's being split. Fixes a FIXME and bug #75258
29604
29605 2005-09-23  Jackson Harper  <jackson@ximian.com>
29606
29607         * Binding.cs:
29608         * ListControl.cs: Don't use the path when retrieving binding
29609         managers from the binding context. My bat sense tells me that the
29610         path is only used on insertion.
29611
29612 2005-09-22  Jackson Harper  <jackson@ximian.com>
29613
29614         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
29615
29616 2005-09-22  Jackson Harper  <jackson@ximian.com>
29617
29618         * Splitter.cs: There are special cursors used for splitting.
29619         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
29620
29621 2005-09-22  Jackson Harper  <jackson@ximian.com>
29622
29623         * Splitter.cs: Change the cursor appropriately when the splitter
29624         is moused over, so the user actually knows there is a splitter
29625         there.
29626
29627 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
29628
29629        * Label.cs : Fix ToString method to give same output as MS.NET
29630
29631 2005-09-22  Jackson Harper  <jackson@ximian.com>
29632
29633         * TreeView.cs: Create the scrollbars when the handle is created
29634         and add them right away, just make them invisble. Also account for
29635         the window being shrunk vertically to the point that the vert
29636         scrollbar needs to be added.
29637         - Remove some 0.5 adjustments to get around anti aliasing issues.
29638         
29639 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
29640          
29641         * MainMenu.cs: Fixes default value
29642         * MenuItem.cs: Fixes default value
29643
29644 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
29645
29646         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
29647
29648 2005-09-21  Jackson Harper  <jackson@ximian.com>
29649
29650         * Control.cs: Don't try to set the border style on the window if
29651         it hasn't been created. When the window is created the border
29652         style will be used.
29653
29654 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
29655
29656         * Control.cs (Update): Don't call XplatUI if we don't have a
29657           window handle yet
29658
29659 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
29660
29661         * ContainerControl.cs: Instead of throwing an exception, print
29662           a one-time warning about Validate not being implemented
29663         * XplatUIWin32.cs: Removed debug output
29664
29665 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
29666
29667         * Control.cs: Only set XplatUI background if we expect the windowing
29668           system to handle the background. This stops controls that draw their
29669           own background from flickering
29670
29671         * XplatUIX11.cs: Support custom visuals and colormaps for window 
29672           creation. This allows, amongst other things, using MWF X11 windows 
29673           with OpenGL.
29674
29675 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
29676
29677         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
29678           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
29679           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
29680           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
29681           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
29682           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
29683           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
29684           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
29685           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
29686           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
29687           GridColumnStylesCollection.cs, 
29688           IDataGridColumnStyleEditingNotificationService.cs,
29689           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
29690           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
29691           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
29692           TreeNodeCollection.cs, AmbientProperties.cs, 
29693           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
29694           DataObject.cs, ErrorProvider.cs, Splitter.cs,
29695           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
29696           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
29697           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
29698           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
29699           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
29700           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
29701           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
29702           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
29703           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
29704           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
29705           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
29706           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
29707           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
29708           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
29709           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
29710           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
29711           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
29712           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
29713           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
29714           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
29715           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
29716           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
29717           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
29718           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
29719           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
29720           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
29721           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
29722           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
29723           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
29724           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
29725           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
29726           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
29727           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
29728           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
29729           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
29730
29731 2005-09-21  Jackson Harper  <jackson@ximian.com>
29732
29733         * TreeNode.cs: Call Before/After Expand not Collapse when
29734         expanding.
29735
29736 2005-09-20  Jackson Harper  <jackson@ximian.com>
29737         
29738         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
29739
29740 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
29741          
29742         * ListViewItem.cs:
29743                 - Fixes bug 76120
29744                 - Fixes proper storing of subitems
29745                 - Fixes not updated items
29746
29747 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
29748
29749         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
29750           things if our window handle isn't created yet. Also disabled 
29751           debug for TextBoxBase
29752
29753 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
29754
29755         * MenuAPI.cs: Remove filtering of events to allow menu usage
29756
29757 2005-09-20  Miguel de Icaza  <miguel@novell.com>
29758
29759         * Cursor.cs: Allow null to be passed to Cursor.Current.
29760
29761 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
29762
29763         * ThemeWin32Classic.cs:
29764           - Change some private methods/fields to protected virtual so that 
29765             they can be accessed and overriden in derived classes
29766           - First refactoring of some methods. Derived themes now don't 
29767             need to duplicate the complete code from ThemeWin32Classic
29768         * ThemeNice.cs:
29769           - Added nice StatusBar
29770           - Derive from ThemeWin32Classic and not Theme
29771           - Removed duplicate ThemeWin32Classic code
29772
29773 2005-09-20  Miguel de Icaza  <miguel@novell.com>
29774
29775         * Control.cs (ControlCollection.Add): If the value null is passed
29776         the control is ignored. 
29777
29778         Optimize this loop.
29779
29780 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
29781
29782         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
29783           PostQuitMessage state.
29784         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
29785
29786 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
29787
29788         * Application.cs: Our constructor will never get called, move 
29789           initialization to fields; fixes bug #75933
29790
29791 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
29792
29793         * FileDialog.cs :
29794                 - Allow files to be selected properly using file name
29795                 combo box.
29796                 - Add ability to change diretory (absolute / relative)
29797                 using file name combo box.
29798
29799 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
29800          
29801         * ListBox.cs: 
29802                 - Fixes Multicolumn listboxes item wrong calculations
29803                 - Allows to click when only one item is in the listbox
29804                 - Fixes crash when no items using keyboard navigation
29805
29806 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
29807
29808         * ComboBox.cs: Reverted almost everything from the latest patch which
29809           broke ComboBox
29810
29811 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
29812         
29813         * ToolTip.cs:
29814                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
29815         * ComboBox.cs:
29816                 - When DropDownStyle is Simple, it does not show scrollbar 
29817                 to the last item of the list.
29818                 - When DropDownStyle is Simple, it crashed when the list was 
29819                 scrolled down with the down cursor key.
29820                 - Fixed a bug that when DropDownStyle is DropDownList, the 
29821                 selected item was not shown.
29822                 - The position of the selected item was not preserved when 
29823                 the next dropdown happened.
29824         * ThemeWin32Classic.cs:
29825                 - Items were wrapped at the right end.
29826         * CheckedListBox.cs:
29827                 - Fixed Add method
29828         * ListBox.cs:
29829                 - Items should be fully shown.
29830                 - When resizing and vertical scrollbar disappeared, the item 
29831                 of index 0 should be on the top of the list.
29832                 - GetItemRectangle should consider the size of ver. scrollbar
29833         * StatusBar.cs:
29834                 - SizingGrip area should not be allocated when it is not 
29835                 displayed.
29836                 - Now it reflects MinWidth of the containing panel and 
29837                 fixed a crash that happens when its width becomes so small.
29838
29839 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
29840
29841         * CheckedListBox.cs: Fixes bug 76028
29842         * ListBox.cs: Fixes bug 76028
29843
29844 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
29845
29846         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
29847         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
29848
29849 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
29850
29851         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
29852
29853 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
29854
29855         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
29856
29857 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
29858
29859         * IRootGridEntry.cs: Added
29860         * PropertyGridCommands.cs: Added
29861         * PropertiesTab.cs: Added missing methods and property
29862         * PropertyGridView.cs: Made class internal
29863         * PropertyGridTextBox.cs: Made class internal
29864
29865 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
29866
29867         * MimeIcon.cs: Try to check some other environment variables
29868           if "DESKTOP_SESSION" returns "default"
29869
29870 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
29871
29872         * ThemeNice.cs: Corrected background colors (e.g. menus)
29873         * ColorDialog.cs: Use correct background colors for controls
29874
29875 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
29876
29877         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
29878
29879 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
29880
29881         * RichTextBox.cs: Added initial implementation
29882         * lang.cs: Removed. Was accidentally checked in long time ago
29883         * TODO: Removed. Contents were obsolete
29884
29885 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
29886                                                                                 
29887         * PropertiesTab.cs : Added
29888
29889 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
29890                                                                                 
29891         * PropertyGrid.cs : Update
29892         * PropertyGridView.cs : Update
29893         * System.Windows.Forms.resx : Added images and strings
29894
29895 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
29896
29897         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
29898  
29899 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
29900
29901         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
29902           a busy loop right after the Ungrab the X11 display is otherwise 
29903           blocked
29904
29905 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
29906
29907         * ThemeWin32Classic.cs: Optimise the use of clipping
29908
29909 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
29910
29911         * DataGrid.cs: fixes recursion bug
29912
29913 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
29914
29915         * ThemeNice.cs: 
29916           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
29917           - Cleanup
29918
29919 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
29920
29921         * ThemeNice.cs: Draw nice ProgressBars
29922
29923 2005-09-01  Miguel de Icaza  <miguel@novell.com>
29924
29925         * VScrollBar.cs: Another buglet found by Aaron's tool. 
29926
29927         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
29928         bug finder.
29929
29930 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
29931
29932         * ThemeNice.cs:
29933           - Added nicer menu drawing
29934           - Updated DrawTab
29935           - some refactoring
29936
29937 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
29938
29939         * CreateParams.cs (ToString): Made output match MS
29940         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
29941             handle is already created (to avoid forcing window creation)
29942         * XplatUIX11.cs: Set window text to caption after creating window,
29943           in case Text was set before window was created
29944         * Form.cs: Use this.Text instead of a static string as caption
29945
29946 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
29947
29948         * NotifyIcon.cs: Don't set the window to visible; this screws
29949           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
29950           OnPaint without a bitmap)
29951         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
29952           happen very often anyway; we could add the check to the WM_PAINT 
29953           event generation code
29954
29955 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
29956
29957         * NotifyIcon.cs: Fill the icon area with a background color, to 
29958           avoid 'residue' when transparent icons are drawn
29959         * XplatUIX11.cs:
29960           - Handle whole_window == client_window when destroying windows
29961           - SystrayAdd(): Set client_window to whole_window value to
29962             get mouse and other events passed to NotifyIcon
29963
29964 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
29965
29966         * Form.cs: Set proper default for Opacity property
29967         * NotifyIcon.cs:
29968           - ShowSystray(): Don't bother creating telling the OS
29969             about the systray item if no icon is provided
29970           - Now handles WM_NCPAINT message to deal with whole/client window
29971             split
29972           - Create window as visible to not get caught by Expose optimization
29973         * Hwnd.cs: Removed debug message
29974         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
29975           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
29976             PaintEventStart/End to use new client argument
29977         * TextBoxBase.cs:
29978           - Commented out debug messages
29979           - Switched PaintEventStart/End to use new client argument
29980         * XplatUI.cs: Added client window bool to PaintEventStart()/
29981           PaintEventEnd() calls, to support drawing in non-client areas
29982         * XplatUIDriver.cs: 
29983           - Added client window bool to PaintEventStart()/PaintEventEnd() 
29984             calls, to support drawing in non-client areas
29985           - Added conditional compile to allow using MWF BeginInvoke 
29986             on MS runtime
29987         * XplatUIX11.cs:
29988           - Added some conditional debug output
29989           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
29990             whole/client window split
29991           - Implemented handling of client argument to PaintEventStart()/End()
29992         * Control.cs:
29993           - Throw exception if BeginInvoke() is called and the window handle
29994             or one of the window's parent handles is not created
29995           - Added conditional compile to allow using MWF BeginInvoke on
29996             MS runtime
29997           - get_Parent(): Only sets parent if handle is created. This avoids
29998             forcing window handle creation when parent is set.
29999           - Now fires Layout and Parent changed events in proper order
30000           - Switched to use Handle instead of window.Handle for Z-Order setting,
30001             the get_Parent() patch above causes us to possibly get null for 'window'
30002           - Implemented handling of client argument to PaintEventStart()/End()
30003           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
30004             default handling)
30005           - Now sends a Refresh() to all child windows when Refresh() is called
30006
30007 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
30008
30009         * Form.cs: Added (non-functional) Opacity property
30010         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
30011
30012 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
30013         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
30014           use export MONO_THEME=nice to activate it.
30015           Currently supported controls:
30016           - Button
30017           - ComboBox
30018           - ScrollBar
30019           - TabControl (TabAlignment.Top only, other will follow)
30020         * ThemeEngine.cs: Add theme nice
30021         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
30022           if enabled
30023
30024 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
30025
30026         * Splitter.cs: Resize docked control and its neighbor.
30027
30028 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
30029         -- Making Windows with Menus layout correctly --
30030         * Form.cs : The first leg of the fix
30031                 Menu setter - adjust Client Size as needed to make space for the menu
30032                 SetClientSizeCore - doesn't call base version to be able to pass the 
30033                         menu handle to XplatUI.CalculateWindowRect
30034         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
30035         * XplatUIX11.cs: The critical second leg of the fix
30036                 GetWindowPos needs to use a recalculated client_rect
30037                 so that resizing the window doesn't break layout of child controls. 
30038                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
30039                 Lots of \t\n killed
30040
30041 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
30042
30043         * Label.cs: Now properly recalculates width and height on Font and Text
30044           changes if AutoSize is set
30045
30046 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
30047         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
30048
30049 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
30050
30051         * ImageList.cs: Makes ToString method compatible with MS
30052
30053 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
30054
30055         * MenuAPI.cs: fixes bug 75716
30056
30057 2005-08-11 Umadevi S <sumadevi@novell.com>
30058         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
30059
30060 2005-08-11 Umadevi S <sumadevi@novell.com>
30061         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
30062
30063 2005-08-10  Umadevi S <sumadevi@novell.com>
30064         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
30065
30066 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
30067
30068         * Menu.cs: fixes bug 75700
30069         * MenuAPI.cs: fixes navigation issues
30070
30071 2005-08-09  Umadevi S <sumadevi@novell.com>
30072         * CheckedListBox.cs - simple fix for GetItemChecked.
30073
30074 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
30075
30076         * ComboBox.cs: Serveral fixes
30077         * ListBox.cs: Serveral fixes
30078
30079 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
30080
30081         * ComboBox.cs: Fixes FindString methods and GetItemHeight
30082         * ListBox.cs: Fixes FindString methods
30083
30084 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
30085
30086         * DataGrid.cs: fixes bugs exposed by new tests
30087
30088 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
30089
30090         * Mime.cs: Compile Mono assembly references only if compiling
30091           with Mono (Allows to build with VS.Net again)
30092
30093 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
30094
30095         * Control.cs (PaintControlBackground): Draw background image
30096         corrrectly.
30097         (CheckForIllegalCrossThreadCalls): Stubbed.
30098         
30099         * Form.cs (OnCreateControl): Center when should be centered.
30100         
30101         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
30102
30103 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
30104
30105         * Binding.cs: Binding to properties should be case unsensitive
30106
30107 2005-07-18 vlindos@nucleusys.com
30108
30109         * DataGrid.cs: fixes setmember order
30110
30111 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
30112
30113         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
30114         * FileDialog.cs: FileDialog is now resizable and uses the new
30115           MimeIconEngine
30116
30117 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
30118
30119         * DataGridTextBoxColumn.cs: default value
30120         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
30121         * GridTableStylesCollection.cs: fixes checking MappingName
30122         * DataGridDrawingLogic.cs: fixes drawing logic issues
30123         * DataSourceHelper.cs: rewritten to make compatible with more data sources
30124         * DataGrid.cs: fixes    
30125
30126 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
30127
30128         * MimeGenerated.cs: Use case sensitive comparer for
30129           NameValueCollections
30130
30131 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
30132
30133         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
30134         * ThemeWin32Classic.cs: bug fixes, code refactoring
30135         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
30136         * DataGrid.cs: bug fixes, code refactoring
30137         * DataGridTextBox.cs: bug fixes, code refactoring
30138         * DataGridColumnStyle.cs:  bug fixes, code refactoring
30139         * Theme.cs:  bug fixes, code refactoring
30140
30141 2005-07-01  Peter Bartok  <pbartok@novell.com> 
30142
30143         * TextControl.cs: Quick fix for the reported crash on ColorDialog
30144           and other text box usage
30145
30146 2005-07-01  Jackson Harper  <jackson@ximian.com>
30147
30148         * TabControl.cs: Make sure the bottom of the tab covers the pages
30149         border.
30150
30151 2005-06-30  Peter Bartok  <pbartok@novell.com> 
30152
30153         * Form.cs (ShowDialog): Assign owner of the dialog
30154         * TextBoxBase.cs: Always refresh caret size when deleting, caret
30155           might have been moved to a tag with different height
30156
30157 2005-06-30  Jackson Harper  <jackson@ximian.com>
30158
30159         * Form.cs: Don't create an infinite loop when setting focus
30160         * MenuItem.cs: Don't dirty the parents if we don't have any
30161
30162 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
30163
30164         * LibSupport.cs: Rename
30165
30166 2005-06-29  Peter Bartok  <pbartok@novell.com>
30167
30168         * TextBoxBase.cs: Re-align caret after deleting a character
30169         * TextControl.cs:
30170           - DeleteChars(): Ensure that tag covers the provided position
30171           - StreamLine(): Drop reference for dropped tag
30172
30173 2005-06-29  Peter Bartok  <pbartok@novell.com> 
30174
30175         * TextControl.cs: 
30176           - Selections now work properly, anchoring at the initial location
30177             and properly extending in either direction (SetSelectionToCaret(),
30178             SetSelectionStart() and SetSelectionEnd())
30179           - No longer redraws the whole control on selection change, now
30180             calculates delta between previous and new selection and only
30181             invalidates/redraws that area
30182           - Fixed FindPos() math off-by-one errors
30183           - Changed DeleteChars() to verify the provided tag covers the
30184             provided position, selections may have a tag that doesn't cover
30185             the position if the selection is at a tag border
30186           - Fixed off-by-one errors in DeleteChars()
30187           - Added missing streamlining check in DeleteChars() to remove
30188             zero-length tags
30189           - Implemented Invalidate() method, now properly calculates exposures
30190             between two given lines/positions
30191           - Implemented SetSelection()
30192           - Obsoleted and removed FixupSelection()
30193           - Improved RecalculateDocument() logic, removing code duplication
30194
30195 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
30196
30197         * LibSupport.cs: changes to match different input/output arguments.
30198
30199 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
30200
30201         * LibSupport.cs: added libsupport.so init routine.
30202
30203 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
30204         
30205         * ControlBindingsCollection.cs
30206                 - Throws an exception on null datasource when adding
30207                 - Checks for duplicated bindings when adding
30208
30209 2005-06-28  Jackson Harper  <jackson@ximian.com>
30210
30211         * TreeView.cs (OnKeyDown): Support left and right properly
30212         (navigates as well as expanding and collapsing.
30213         - Add support for Multiply, this expands all the selected nodes
30214         children.
30215         - Fix some tabbing.
30216
30217 2005-06-28  Jackson Harper  <jackson@ximian.com>
30218
30219         * TreeView.cs: Implement keyboard navigation, currently supports,
30220         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
30221         support for toggling checkboxes with the space bar.
30222
30223 2005-06-28  Jackson Harper  <jackson@ximian.com>
30224
30225         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
30226         tree.
30227
30228 2005-06-28  Jackson Harper  <jackson@ximian.com>
30229
30230         * TreeView.cs: Add missing event.
30231
30232 2005-06-27  Peter Bartok  <pbartok@novell.com> 
30233
30234         * TextControl.cs:
30235           - Made line ending size configurable (now allows for counting 
30236             lineendings as \n or \r\n)
30237           - Added margin to viewport to keep caret visible on right side
30238           - Fixed translation routines for line/pos to documentpos to consider
30239             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
30240           - Fixed some line-endings to be unix style
30241           - Fixed Document.FormatText to perform it's calculations 1-based
30242           - Added descriptions for a few methods that might otherwise get 
30243             used wrong
30244           - Added NOTE section with some basic conventions to remember at 
30245             the top of the file
30246           - Major fixup for RichTextBox selection drawing:
30247             * Fixed crashes when multiple tags on a single line were selected
30248             * fixed selection box drawing not overlaying text
30249             * fixed bogus offset calculation for tags not starting at index 1
30250             * Switched behaviour from using multiple Substrings of a 
30251               StringBuilder.ToString() to using multiple 
30252               StringBuilder.ToString(start, length) statements, hoping this is
30253               faster (kept original version commented out in the code, in case
30254               original version was faster)
30255         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
30256           alignment != Left
30257         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
30258           call it as well
30259
30260 2005-06-27  Jackson Harper  <jackson@ximian.com>
30261
30262         * TabControl.cs: Move to the left and right with the arrow
30263         keys. These keys don't cycle beyond first and last like
30264         tab. Refresh all the tabs when scrolling them to the left or
30265         right.
30266
30267 2005-06-27  Jackson Harper  <jackson@ximian.com>
30268
30269         * TabControl.cs:
30270           - ToString: Added method
30271           - CreateParams: Remove TODO and comment
30272           - OnKeyDown: Cycle through bounds properly.
30273           - SelectedIndex: Scroll to the right or left if we need to
30274           display the newly selected tab.
30275
30276 2005-06-23  Jackson Harper  <jackson@ximian.com>
30277
30278         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
30279         set.
30280
30281 2005-06-23  Jackson Harper  <jackson@ximian.com>
30282
30283         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
30284         CTRL-SHIFT-TAB, and HOME, END are there any others?
30285
30286 2005-06-23  Jackson Harper  <jackson@ximian.com>
30287
30288         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
30289
30290 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
30291         
30292         * DataGridTextBoxColumn.cs: fixes and enhancements
30293         * ThemeWin32Classic.cs: fixes and enhancements
30294         * DataGridBoolColumn.cs:  fixes and enhancements
30295         * DataGridDrawingLogic.cs:  fixes and enhancements
30296         * CurrencyManager.cs: fixes and enhancements
30297         * DataGrid.cs: fixes and enhancements
30298         * DataGridColumnStyle.cs:  fixes and enhancements
30299
30300 2005-06-22  Jackson Harper  <jackson@ximian.com>
30301
30302         * TabControl.cs: Add some missing methods that just call into the
30303         base. Make the TabPageCollection's IList interface behave in the
30304         same manner as the MS implementation.
30305
30306 2005-06-22  Peter Bartok  <pbartok@novell.com> 
30307
30308         * TextControl.cs: Added sanity check
30309         * TextBoxBase.cs: 
30310           - Fixed wrapping behaviour, don't set wrap on single line controls
30311             (this fixes the breakage of colordialog introduced in an earlier
30312              checkin)
30313           - Added rudimentary support for autoscrolling right-aligned controls
30314             (still needs fixing, also, center alignment scroll is missing)
30315
30316 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
30317         
30318         * ScrollBar.cs: Fixes thumbpos on Maximum values
30319
30320 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
30321         
30322         * PropertyGridView.cs: Pass context information to UITypeEditors 
30323
30324 2005-06-21  Peter Bartok  <pbartok@novell.com> 
30325
30326         * TextBoxBase.cs:
30327           - Now calling PositionCaret with absolute space coordinates
30328           - Enabled vertical scrolling
30329           - Better tracking of scrollbar changes, tied into WidthChange
30330             event
30331           - Improved cursor tracking
30332           - Removed debug output
30333         * TextControl.cs:
30334           - PositionCaret coordinates are now works in absolute space, not 
30335             the canvas
30336           - Improved tracking of document size
30337           - Added events for width and height changes
30338
30339 2005-06-21  Peter Bartok  <pbartok@novell.com>
30340
30341         * Form.cs: Set focus to active control when form is activated
30342         * TextControl.cs: 
30343           - Added word-wrap functionality to RecalculateLine() 
30344           - Added some short function descriptions for VS.Net to aid in
30345             writing dependent controls
30346           - Added Caret property, returning the current coords of the caret
30347           - Added ViewPortWidth and ViewPortHeight properties
30348           - Added Wrap property
30349           - Added CaretMoved event
30350           - Removed some old debug code
30351           - Split() can now create soft splits
30352           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
30353           - Added method to format existing text
30354           - Fixed size/alignment calculations to use viewport
30355           - RecalculateDocument now can handle changing line-numbers while
30356             calculating lines
30357
30358         * TextBox.cs:
30359           - Added some wrap logic, we don't wrap if alignment is not left
30360           - Added casts for scrollbar var, base class switched types to
30361             also support RichTextBoxA
30362           - Implemented handling of scrollbar visibility flags
30363
30364         * TextBoxBase.cs:
30365           - Switched scrollbars type to RichTextBoxScrollBars to support
30366             RichTextBox
30367           - Added tracking of canvas width/height
30368           - Switched scrollbars to be not selectable (to keep focus on text)
30369           - Added central CalculateDocument() method to handle all redraw
30370             requirements
30371           - Added ReadOnly support
30372           - Added WordWrap support
30373           - Fixed handling of Enter key (we now treat it as a DialogKey)
30374           - Fixed caret positioning when h or v scroll is not zero
30375           - Fixed placing/generation of vertical scrollbar
30376           - Added CalculateScrollBars() method to allow updating scrollbar
30377             limits and visibility
30378           - Fixed handling of horizontal scroll
30379           - Added handling of vertical scroll
30380           - Implemented auto-'jump' when caret moves to close to a left or
30381             right border and there is text to be scrolled into view (currently
30382             there's the potential for a stack overflow, until a bug in
30383             scrollbar is fixed)
30384
30385 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
30386         
30387         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
30388
30389 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
30390
30391         * Mime.cs:
30392         - added inodes.
30393         - return application/x-zerosize for files with size zero
30394           (if no extension pattern matches).
30395         - check matches collection for strings too.
30396         - return only the first mime type if the name value
30397           collection has more than one mime type.
30398
30399 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
30400         
30401         * PropertyGrid.cs: Cleaned up some TODOs
30402         * PropertyGridView.cs: Added support for UITypeEditors
30403
30404 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
30405         
30406         * DataGrid.cs: clears cached value
30407
30408 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
30409
30410         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
30411         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
30412         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
30413         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
30414         
30415 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
30416
30417         * ThemeWin32Classic.cs: fixes colour
30418
30419 2005-06-15  Peter Bartok  <pbartok@novell.com>
30420
30421         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
30422         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
30423         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
30424         * Control.cs: Added some MWFCategory and MWFDescription attributes
30425         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
30426
30427 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
30428
30429         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
30430         usage
30431
30432 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
30433
30434         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
30435         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
30436         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
30437         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
30438         * DataGrid.cs: default datagrid settings for Default Styles, fixes
30439         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
30440
30441 2005-06-13  Jackson Harper  <jackson@ximian.com>
30442
30443         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
30444         isn't printed when the user enables dropping. (X11 does accept
30445         drops).
30446         
30447 2005-06-13  Jackson Harper  <jackson@ximian.com>
30448
30449         * TreeView.cs: Remove some TODOS.
30450
30451 2005-06-13  Jackson Harper  <jackson@ximian.com>
30452
30453         * Form.cs: Hook into the mdi framework.
30454         * MdiClient.cs: Use the base control collections add method so
30455         parents get setup correctly. Set the default back colour and dock
30456         style.
30457         * MdiChildContext.cs: New class, this bad actor handles an
30458         instance of an MDI window. Right now there is only basic
30459         support. You can drag, close, and resize windows. Minimize and
30460         Maximize are partially implemented.
30461
30462 2005-06-13  Jackson Harper  <jackson@ximian.com>
30463
30464         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
30465         freaky when both vals are negative. NOTE: There are probably other
30466         places in XplatUIX11 that this needs to be done.
30467
30468 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
30469
30470         * DataGrid.cs: implement missing methods, move KeyboardNavigation
30471         * DataGridColumnStyle.cs: fixes signature
30472
30473 2005-06-12  Jackson Harper  <jackson@ximian.com>
30474
30475         * XplatUIX11.cs: Use sizing cursors similar to the ones on
30476         windows.
30477
30478 2005-06-11  Jackson Harper  <jackson@ximian.com>
30479
30480         * StatusBarPanel.cs: Signature cleanups. Implement
30481         BeginInit/EndInit.
30482
30483 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
30484
30485         * DataGridTextBoxColumn.cs: Honors aligment
30486         * GridColumnStylesCollection.cs: Contains is case unsensitive
30487         * GridTableStylesCollection.cs: several fixes
30488         * DataGridTableStyle.cs: default column creation
30489         * DataGridDrawingLogic.cs: fixes
30490         * CurrencyManager.cs: ListName property
30491         * DataGrid.cs: multiple styles support
30492         * DataGridColumnStyle.cs: fixes
30493         
30494
30495 2005-06-10  Peter Bartok  <pbartok@novell.com>
30496
30497         * Control.cs(Select): Moved SetFocus call to avoid potential
30498           loops if controls change the active control when getting focus
30499         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
30500           the up/down buttons
30501
30502 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
30503
30504         * ImageListConverter.cs: Implemented
30505
30506 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
30507
30508         * MonthCalendar.cs: Wired in NumericUpDown control for year
30509
30510 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
30511
30512         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
30513           DoubleClick events, since they are not meant to be fired.
30514
30515 2005-06-09  Peter Bartok  <pbartok@novell.com>
30516
30517         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
30518           Jonathan's standalone controls into MWF, implemented missing
30519           events, attributes and methods; added xxxAccessible classes
30520         * AccessibleObject.cs: Made fields internal so other classes
30521           can change them if needed
30522
30523 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
30524
30525         * UpDownBase.cs: Complete implementation
30526         * NumericUpDown.cs: Complete implementation
30527         * DomainUpDown.cs: Complete implementation
30528
30529 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
30530
30531         * DataGridTextBoxColumn.cs: drawing fixes
30532         * DataGridCell.cs: fixes ToString method to match MSNet
30533         * DataGridTableStyle.cs: fixes
30534         * DataGridBoolColumn.cs: fixes, drawing
30535         * DataGridDrawingLogic.cs: fixes, new methods
30536         * DataGridTextBox.cs: Keyboard and fixes
30537         * DataGrid.cs:
30538                 - Keyboard navigation
30539                 - Scrolling fixes
30540                 - Row selection (single, multiple, deletion, etc)
30541                 - Lots of fixes
30542         
30543 2005-06-07  Jackson Harper  <jackson@ximian.com>
30544
30545         * ThemeWin32Classic.cs: Clear the background area when drawing
30546         buttons.
30547
30548 2005-06-06  Peter Bartok  <pbartok@novell.com>
30549
30550         * ImageListStreamer.cs: Fixed signature for GetData
30551         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
30552         * ComboBox.cs:
30553           - Added missing ChildAccessibleObject class
30554           - Added missing OnXXXFocus overrides, switched to using those
30555             instead of the event handler
30556         * Control.cs:
30557           - Added Parent property for ControlAccessibleObject
30558           - Fixed signatures
30559           - Fixed attributes
30560           - Added ResetBindings()
30561         * ListBindingConverter.cs: Implemented some methods
30562         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
30563         * ImageList.cs: Implemented basic handle scheme, removed TODOs
30564         * ContainerControl.cs: Fixed signature, now subscribing to the
30565           ControlRemoved event instead of overriding the handler, LAMESPEC
30566         * CurrencyManager.cs: Added missing attribute
30567         * MonthCalendar.cs: Added missing properties
30568
30569 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
30570
30571         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
30572         
30573 2005-06-06  Gaurav Vaish and Ankit Jain
30574
30575         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
30576         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
30577         
30578 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
30579
30580         * Control.cs: fixes CreateParams Width / Height.
30581
30582 2005-06-05  Peter Bartok  <pbartok@novell.com>
30583
30584         * Win32DnD.cs: Removed compilation warnings
30585
30586 2005-06-05  Peter Bartok  <pbartok@novell.com>
30587
30588         * Control.cs (CreateParams): Since we don't know if one of the
30589           properties we use is overridden, lets make sure if we fail accessing
30590           we continue with a backup plan
30591
30592 2005-06-05  Peter Bartok  <pbartok@novell.com>
30593
30594         * Win32DnD.cs:
30595           - Removed debug output
30596           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
30597             struct
30598           - Plugged resource leak
30599         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
30600           MS size
30601
30602 2005-06-05  Peter Bartok  <pbartok@novell.com>
30603
30604         * XplatUIWin32.cs: Removed DnD code
30605         * Win32DnD.cs: Implemented drop source and drop target functionality
30606
30607 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
30608
30609         * UpDownBase.cs: remove duplicate addition of event, enable some code
30610         that was commented out.
30611         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
30612         Validate input when a key is pressed. It works fine now for every
30613         combination of Hexadecimal. Only missing some drawing love when sharing
30614         space with other controls.
30615
30616 2005-06-04  Peter Bartok  <pbartok@novell.com>
30617
30618         * Control.cs:
30619           - We need to pass a window for DragDrop, so enable callback events
30620           - Added DnD callback events when being a DragSource
30621         * XplatUI.cs (StartDrag): Added window handle argument
30622         * XplatUIDriver.cs (StartDrag): Added window handle argument
30623         * QueryContinueDragEventArgs: Made fields internally accessible so
30624           drivers can set them
30625         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
30626           can set them
30627
30628 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
30629
30630         * DataGridTextBoxColumn.cs: column text editing
30631         * DataGridTableStyle.cs: Respect columns styles created by the user
30632         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
30633         * DataGridBoolColumn.cs: bool column editing
30634         * DataGrid.cs: fixes to scrolling, properties, etc
30635         * DataGridTextBox.cs: handle keyboard
30636         * DataGridColumnStyle.cs: fixes
30637
30638 2005-06-02  Jackson Harper  <jackson@ximian.com>
30639
30640         * ImageListStreamer.cs: Somewhat broken implementation of
30641         GetObjectData. The RLE needs some work to match MS properly.
30642
30643 2005-06-02  Jackson Harper  <jackson@ximian.com>
30644
30645         * X11Dnd.cs: Attempting to keep at least one file in MWF
30646         monostyled.
30647
30648 2005-06-02  Peter Bartok  <pbartok@novell.com>
30649
30650         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
30651           that way
30652
30653 2005-06-02  Peter Bartok  <pbartok@novell.com>
30654
30655         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
30656         * XplatUI.cs: Added DoDragDrop() method
30657         * XplatUIDriver.cs: Added DoDragDrop() method
30658
30659 2005-06-02  Jackson Harper  <jackson@ximian.com>
30660
30661         * Splitter.cs: Implement BorderStyle.
30662
30663 2005-06-02  Jackson Harper  <jackson@ximian.com>
30664
30665         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
30666         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
30667         X11 using XDND.
30668
30669 2005-06-02  Peter Bartok  <pbartok@novell.com>
30670
30671         * DataObject.cs:
30672           - Added Data setter
30673           - Fixed broken insertion code for SetData, now also
30674             overwrites any existing entry of the same format name
30675         * Hwnd.cs: Added list of pointers that automatically gets
30676           freed when the window is disposed
30677         * XplatUI.cs: Call driver initialization method when loading
30678           a driver
30679         * Control.cs:
30680           - OnDragLeave takes EventArgs, not DragEventArgs
30681           - Added setting of WS_EX_ACCEPTFILES style when dropping is
30682             supported
30683           - Forces style update when drop state changes
30684         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
30685           not perfect since we cannot (yet) call the IDataObject.GetData()
30686           method, we keep getting 0x80004005 error, dunno why)
30687
30688 2005-06-02  Peter Bartok  <pbartok@novell.com>
30689
30690         * DragEventArgs.cs: Make fields internal so we can cache the
30691           object and re-set the fields from XplatUI
30692
30693 2005-06-02  Jackson Harper  <jackson@ximian.com>
30694
30695         * Control.cs: Add some internal methods so the DnD subsystem can
30696         raise DnD events. Also call into the driver when AllowDrop is set.
30697         * XplatUI.cs:
30698         * XplatUIDriver.cs: New method for setting whether or not a window
30699         is allowed to accept drag and drop messages.
30700                 
30701 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
30702         
30703         * ScrollBar.cs: Make sure that values sent in Scroll events
30704         are always between Maximum and Minimum.
30705
30706 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
30707
30708         * Menu.cs: Call MenuChanged when menuitem visibility has been
30709         changed.
30710         * MenuItem.cs: Rebuild menu when item is (not) visible.
30711         * MainMenu.cs: MainMenu has special MenuChanged.
30712         * Theme.cs: Caption and FrameBorderSize are not fixed.
30713         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
30714         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
30715         * XplatUIX11.cs,
30716         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
30717         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
30718
30719 2005-05-30  Jackson Harper  <jackson@ximian.com>
30720
30721         * DataFormat.cs: We can't statically initialize this stuff because
30722         it calls into the xplatui and could create a loop. So we lazy init
30723         it.
30724
30725 2005-05-28  Jackson Harper  <jackson@ximian.com>
30726
30727         * Control.cs: Proper implementation of Product(Name/Version).
30728
30729 2005-05-27  Jackson Harper  <jackson@ximian.com>
30730
30731         * DataObject.cs: Dont crash if no data is found.
30732
30733 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
30734         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
30735                 as per status page, guessing it should be set to true
30736
30737 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
30738
30739         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
30740         * DataGridTableStyle.cs: set proper formatting text, def header text
30741         * ThemeWin32Classic.cs: new themable paramaters
30742         * DataGridBoolColumn.cs: paint check box, get data, fixes
30743         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
30744         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
30745         * DataGridColumnStyle.cs: fixes
30746         * Theme.cs: new themable paramaters
30747                 
30748 2005-05-26  Peter Bartok  <pbartok@novell.com>
30749
30750         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
30751
30752 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
30753         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
30754
30755 2005-05-24  Peter Bartok  <pbartok@novell.com>
30756
30757         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
30758           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
30759           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
30760           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
30761           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
30762           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
30763           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
30764           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
30765           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
30766           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
30767           missing attributes, etc
30768         * DataGridPreferredColumnWidthTypeConverter.cs: Added
30769
30770 2005-05-24  Peter Bartok  <pbartok@novell.com>
30771
30772         * Help.cs: Added, implemented trivial functions, throws up MessageBox
30773           when user tries to get help
30774         * DataObject.cs, DataFormats.cs, LinkArea.cs,
30775           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
30776           to suppress warnings
30777         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
30778           avoid unreachable code warning
30779
30780 2005-05-20  Peter Bartok  <pbartok@novell.com>
30781
30782         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
30783
30784 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
30785
30786         * DataGridTextBoxColumn.cs: Basic painting methods
30787         * DataGridTableStyle.cs: Set table style in the column
30788         * ThemeWin32Classic.cs: Use Theme for colors
30789         * DataGridDrawingLogic.cs: Implement more drawing
30790         * DataGrid.cs: drawing, theming, enhacements, fixes
30791         * DataGridColumnStyle.cs: fixes, drawing
30792         * Theme.cs: theming for Datagrid
30793
30794 2005-05-20  Peter Bartok  <pbartok@novell.com>
30795
30796         * Cursor.cs: Implemented GetObjectData() method
30797
30798 2005-05-20  Peter Bartok  <pbartok@novell.com>
30799
30800         * Cursors.cs: Added setting of cursor name
30801         * Cursor.cs:
30802           - Implemented constructors
30803           - Implemented Draw and DrawStretched
30804           - Implemented Current property
30805           - Implemented == and != operators
30806           - Implemented Dispose()
30807           - Implemented ToString
30808           - Added missing attributes
30809         * XplatUIX11.cs:
30810           - Added missing reset for OverrideCursor when DoEvents is called
30811           - Fixed creation of cursor, logic was wrong
30812         * XplatUIWin32.cs:
30813           - Added missing reset for OverrideCursor when DoEvents is called
30814           - Fixed creation of cursor, bit arrays were swapped
30815         * Clipboard.cs: Removed obsolete MonoTODO attribute
30816
30817 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
30818
30819         * ComboBox.cs: fixes OnSelectedItemChanged
30820         * ControlBindingsCollection.cs: fixes item range check
30821
30822 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
30823
30824         * UpDownBase.cs:
30825                 - Calc preferred height properly
30826                 - Implement missing properties
30827                 
30828         * NumericUpDown.cs: Implement missing events
30829
30830 2005-05-19  Jackson Harper  <jackson@ximian.com>
30831
30832         * TabControl.cs: New method that resizes the tab pages before
30833         redrawing them. This as needed as the control is double buffered
30834         and sizing will not be recalculated unless ResizeTabPages is
30835         called.
30836         * TabPage.cs: Set base.Text instead of Text in the constructor so
30837         that UpdateOwner does not get called. Use the new Redraw method of
30838         TabControl instead of Refresh so the sizing is recalculated.
30839         * ThemeWin32Classic.cs: Draw the text for button tabs.
30840
30841 2005-05-19  Jackson Harper  <jackson@ximian.com>
30842
30843         * Control.cs: Paint control background images. Fix typo where
30844         PaintControlBackground was not getting called correctly.
30845
30846 2005-05-19  Peter Bartok  <pbartok@novell.com>
30847
30848         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
30849           I can investigate, apparently I broke FileDialog
30850
30851 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
30852
30853         * AxHost.cs: Some simple properties.
30854         * Control.cs: window must be accessible after ctor.
30855         * Form.cs: Added TransparencyKey property.
30856         * TextBoxBase.cs: Implemented Clear. Text property can be null.
30857         * XplatUIWin32.cs: SetBorderStyle implemented.
30858
30859 2005-05-18  Peter Bartok  <pbartok@novell.com>
30860
30861         * DataObject.cs: Entries are not global but particular to the
30862           DataObject, now it behaves that way
30863         * XplatUIWin32.cs: Implemented Clipboard methods
30864         * Clipboard.cs: Implemented
30865         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
30866         * XplatUIOSX.cs: Updated to final clipboard prototypes
30867         * XplatUIX11.cs: Implemented Clipboard methods
30868         * XplatUIDriver.cs: Updated to final clipboard prototypes
30869         * XplatUIStructs.cs:
30870           - Added BITMAPINFOHEADER struct
30871           - Added ClipboardFormats enum
30872         * X11Structs.cs:
30873           - Added ClipboardStruct
30874           - Added Atom enum items for clipboard types
30875           - Fixed atom types for Selection event structures
30876         * DataFormats.cs:
30877           - Added internal properties and methods for drivers to enumerate
30878             all known formats
30879           - Switched initialization method to allow drivers to assign their
30880             own IDs even for the MS predefined clipboard IDs
30881         * XplatUI.cs: Updated to final clipboard interface
30882
30883 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
30884         * PropertyGridView.cs: Fixed compiler warnings.
30885
30886 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
30887         * PropertyGrid.cs: Added some event calls
30888         * PropertyGridView.cs: Change drawing code to use double buffering
30889         * PropertyGridTextBox.cs: Changed Text property name
30890         * GridItem.cs: Added Bounds property.
30891         * GridEntry.cs: Added Bounds property.
30892
30893 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
30894
30895         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
30896         since GetType() may not return the correct type if the object is
30897         a remoting proxy.
30898
30899 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
30900
30901         * TreeNodeCollection.cs: fixes get/set item ranges
30902         
30903 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
30904
30905         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
30906                 
30907 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
30908
30909         * ComboBox.cs: Fix item range comparation
30910         * ListView.cs: Fix item range comparation
30911
30912 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
30913
30914         * FontDialog.cs:
30915           - Clear example panel when OnPaint is called
30916           - Better solution for displaying the example panel text
30917           - Select default indexes in the ListBoxes
30918
30919 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
30920
30921         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
30922
30923 2005-05-11  Peter Bartok  <pbartok@novell.com>
30924
30925         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
30926         * SelectionRangeConverter.cs: Implemented
30927         * PropertyGrid.cs: Fixed attribute value
30928         * Control.cs:
30929           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
30930           - Added Sebastien Pouliot's CAS Stack Propagation fixes
30931         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
30932           that's common to all drivers. First methods to go there are
30933           Sebastien Pouliot's CAS Stack Propagation helper methods
30934         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
30935           Sebastien Pouliot for CAS Stack Propagation
30936
30937 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
30938
30939         * OSXStructs.cs:
30940           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
30941
30942 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
30943
30944         * DataGridTextBoxColumn.cs: fixed some members
30945         * GridColumnStylesCollection.cs: indexed column is case insensitive
30946         * DataGridTableStyle.cs: fixes
30947         * ThemeWin32Classic.cs: add new theme parameter
30948         * Theme.cs: add new theme parameter
30949         * DataGridDrawingLogic.cs: Datagrid's drawing logic
30950         * DataGrid.cs: fixes, new internal properties, etc.
30951         * DataGridColumnStyle.cs: allows to set grid value
30952         *
30953
30954 2005-05-10  Peter Bartok  <pbartok@novell.com>
30955
30956         * AccessibleObject.cs:
30957           - Removed MonoTODO attribute on help, method is correct
30958           - Fixed Bounds property
30959         * AxHost.cs: Moved MonoTODO
30960         * ButtonBase.cs: Now setting AccessibleObject properties
30961         * RadioButton.cs: Setting proper AccessibleObject role
30962         * CheckBox.cs: Setting proper AccessibleObject role
30963         * ControlBindingsCollection.cs: Added properties, methods and attributes
30964         * DataFormats.cs: Fixed awkward internal API, and changed to enable
30965           userdefined DataFormats.Format items as well
30966         * ListControl.cs: Removed data_member from the public eye
30967         * OpenFileDialog.cs:
30968           - Made class sealed
30969           - Added missing attributes
30970         * SaveFileDialog.cs: Added missing attributes
30971         * ImageListStreamer.cs: Fixed code that caused warnings
30972         * LinkLabel.cs: Removed unreachable code
30973         * TreeView.cs: Fixed code that caused warnings
30974         * PropertyGridView.cs: Fixed code that caused warnings
30975         * GridColumnStylesCollection.cs: Added missing attributes
30976         * GridTableStylesCollection: Added missing attribute
30977         * PropertyManager: Added .ctor
30978         * SecurityIDType: Added
30979         * DataObject.cs: Implemented class
30980         * LinkArea.cs: Added missing attribute
30981
30982 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
30983
30984         * RadioButton.cs: call base method to allow to fire OnClick event
30985         * UpDownBase.cs: OnMouseUp call base method
30986         * CheckedListBox.cs: call base method before returning
30987         * TrackBar.cs: call base method before returning
30988         
30989
30990 2005-05-10  Peter Bartok  <pbartok@novell.com>
30991
30992         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
30993           for messages
30994
30995 2005-05-10  Peter Bartok  <pbartok@novell.com>
30996
30997         * DataFormats.cs: Implemented
30998         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
30999           XplatUIX11.cs: Added Clipboard APIs
31000         * XplatUIWin32.cs: Implemented Clipboard APIs
31001         * FolderBrowserDialog.cs: Added missing event, attributes
31002
31003 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
31004
31005         * CheckBox.cs: call base method to allow to fire OnClick event
31006
31007 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
31008
31009         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
31010
31011 2005-05-06  Peter Bartok  <pbartok@novell.com>
31012
31013         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
31014         * Screen.cs: Implemented
31015         * HelpNavigator.cs: Added
31016         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
31017           property
31018         * HelpProvider.cs: Implemented all we can do until we have a CHM
31019           help library (which means that "What's This" does work now)
31020
31021 2005-05-06  Jackson Harper  <jackson@ximian.com>
31022
31023         * XplatUIX11.cs: Fix waking up the main loop.
31024                 
31025 2005-05-05  Peter Bartok  <pbartok@novell.com>
31026
31027         * XplatUI.cs: Updated revision
31028         * Form.cs: Removed enless loop
31029         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
31030         * Label.cs (OnPaint): Added call to base.OnPaint()
31031         * ToolTip.cs: Made ToolTipWindow reusable for other controls
31032         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
31033         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
31034         * AxHost.cs: Added
31035         * ButtonBase.cs: Moved base.OnPaint() call to end of method
31036         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
31037           to ToolTip.ToolTipWindow for drawing and size methods; this allows
31038           reuse of ToolTipWindow by other controls
31039         * SizeGrip.cs: Moved base.OnPaint() call to end of method
31040         * XplatUIX11.cs: Now clipping drawing area (experimental)
31041         * PictureBox.cs: Moved base.OnPaint() call to end of method
31042         * Theme.cs: Fixed ToolTip abstracts to match new format
31043         * ErrorProvider.cs: Implemented
31044
31045 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
31046
31047         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
31048         * LinkLabel.cs:
31049                 - Adds cursors
31050                 - Handles focus
31051                 - Implements LinkBehavior
31052                 - Fixes many issues
31053
31054 2005-05-03  Jackson Harper  <jackson@ximian.com>
31055
31056         * ListView.cs: Calculate the scrollbar positioning on resize and
31057         paint, so they get put in the correct place.
31058
31059 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
31060
31061         * ColorDialogs.cs: The small color panels are now handled by
31062           SmallColorControl. This fixes drawing of the focus rectangle
31063           and adds a 3D border.
31064
31065 2005-05-03  Peter Bartok  <pbartok@novell.com>
31066
31067         * Control.cs: Modified version of Jonathan Chamber's fix for
31068           double-buffering
31069
31070 2005-05-03  Jackson Harper  <jackson@ximian.com>
31071
31072         * ListView.cs: Remove redraw variable. Control now handles whether
31073         or not a redraw needs to be done, and will only raise the paint
31074         event if redrawing is needed.
31075
31076 2005-05-03  Jackson Harper  <jackson@ximian.com>
31077
31078         * Splitter.cs: No decorations for the splitter form. Cache the
31079         hatch brush.
31080
31081 2005-05-03  Jackson Harper  <jackson@ximian.com>
31082
31083         * TreeView.cs: Use dashed lines to connect nodes. Use the
31084         ControlPaint method for drawing the focus rect instead of doing
31085         that in treeview.
31086
31087 2005-05-02  Peter Bartok  <pbartok@novell.com>
31088
31089         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
31090
31091 2005-04-29  Jackson Harper  <jackson@ximian.com>
31092
31093         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
31094         entire image buffer. Just clear the clipping rectangle.
31095
31096 2005-04-29  Jackson Harper  <jackson@ximian.com>
31097
31098         * ThemeWin32Classic.cs: Don't draw list view items that are
31099         outside the clipping rectangle.
31100
31101 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
31102
31103         * ListBox.cs: added horizontal item scroll
31104
31105 2005-04-29  Jackson Harper  <jackson@ximian.com>
31106
31107         * ThemeWin32Classic.cs: Remove some old debug code that was
31108         causing flicker with the new double buffering code.
31109
31110 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
31111
31112         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
31113         behave like combobox and comboboxlist (still not sure if this is
31114         correct though).
31115
31116 2005-04-28  Jackson Harper  <jackson@ximian.com>
31117
31118         * ThemeWin32Classic.cs: Don't fill the middle of progress
31119         bars. This fills areas outside of the clip bounds that don't need
31120         to be filled.
31121
31122 2005-04-28  Jackson Harper  <jackson@ximian.com>
31123
31124         * Control.cs: Don't expose functionality to touch the image buffers.
31125         * ProgressBar.cs:
31126         * ListView.cs: We do not need to (and no longer can) manipulate
31127         the image buffers directly. All of this is handled by Control.
31128
31129 2005-04-28  Peter Bartok  <pbartok@novell.com>
31130
31131         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
31132           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
31133           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
31134
31135 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
31136
31137         * Combobox:
31138                 - Adjust control's height for non-simple comboboxes (bug fix)
31139                 - Remove dead code
31140         * MenuAPI.cs: remove unused var
31141         * ScrollBar.cs: remove unsed var
31142                  
31143         * ListBox.cs: unselect items when clearing
31144
31145 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
31146
31147         * ListControl.cs: honors OnPositionChanged and default Selected Item
31148         * ListBox.cs: unselect items when clearing
31149
31150 2005-04-27  Jackson Harper  <jackson@ximian.com>
31151
31152         * X11Keyboard.cs: Initialize a default keyboard and give a warning
31153         if a "correct" keyboard is not found. This will make us not crash,
31154         but might give some users bad keyboard layouts...seems to be the
31155         same thing rewind does.
31156
31157 2005-04-27  Jackson Harper  <jackson@ximian.com>
31158
31159         * BindingManagerBase.cs: Attach the current/position changed
31160         handlers to their respective events.
31161
31162 2005-04-27  Jackson Harper  <jackson@ximian.com>
31163
31164         * Control.cs: Make sure that the first WM_PAINT does a full draw,
31165         not just a blit.
31166         * ThemeWin32Classic.cs: Don't fill the background for picture
31167         boxes. This could overright user drawing.
31168         * ComboBox.cs: Just fill the clipping rect not the entire client
31169         rect when drawing the background. This prevents pieces of the
31170         image buffer from getting overwritten and is theoretically faster.
31171
31172 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
31173
31174         * ComboBox.cs: Databinding support fixes, fire missing events
31175         * ListControl.cs: implement missing methods and properties, fixes
31176         * ThemeWin32Classic.cs: Databiding support on Drawing
31177         * CheckedListBox.cs: Databinding support fixes, fire missing events
31178         * ListBox.cs: Databinding support fixes, fire missing events
31179         
31180 2005-04-25  Peter Bartok  <pbartok@novell.com>
31181
31182         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
31183
31184 2005-04-25  Jackson Harper  <jackson@ximian.com>
31185
31186         * TreeView.cs: Use the horizontal scrollbars height not width when
31187         determining how much of the client area is available.
31188
31189 2005-04-25  Jackson Harper  <jackson@ximian.com>
31190
31191         * Control.cs: Double buffering is handled differently now. As per
31192         the spec, the extra buffer is created in the WM_PAINT message and
31193         passed down to the control's drawing code.
31194         * GroupBox.cs:
31195         * Label.cs:
31196         * CheckBox.cs:
31197         * ProgressBar.cs:
31198         * RadioButton.cs:
31199         * ColorDialog.cs:
31200         * ComboBox.cs:
31201         * PropertyGridView.cs:
31202         * UpDownBase.cs:
31203         * MessageBox.cs:
31204         * MenuAPI.cs:
31205         * ListView.cs:
31206         * ButtonBase.cs:
31207         * SizeGrip.cs:
31208         * ScrollBar.cs:
31209         * ListBox.cs:
31210         * TrackBar.cs:
31211         * ToolBar.cs:
31212         * PictureBox.cs:
31213         * DateTimePicker.cs:
31214         * StatusBar.cs:
31215         * TreeView.cs: Update to new double buffering system.
31216         * MonthCalendar.cs: Uncomment block, as Capture is now
31217         working. Update to new double buffering
31218         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
31219         * PaintEventArgs.cs: New internal method allows us to set the
31220         graphics object. This is used for double buffering.
31221         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
31222         rectangle. The internal paint_area var has been removed from
31223         StatusBar. The clipping rect should be used instead.
31224         * Theme.cs: Give the PictureBox drawing method a clipping rect.
31225         * TabPage.cs: The RefreshTabs method was removed, so just call the
31226         tab controls Refresh method now.
31227         * TabControl.cs: Update to new double buffering. Make sure the
31228         handle is created before sizing the tab pages, otherwise we will
31229         get stuck in a loop.
31230
31231 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
31232
31233         * LinkLabel.cs: Fix typo, bug #74719; patch
31234           from Borja Sanchez Zamorano
31235
31236 2005-04-22  Jackson Harper  <jackson@ximian.com>
31237
31238         * TreeNode.cs: Implement Handle stuff.
31239         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
31240
31241 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
31242
31243         * DataGridTextBoxColumn.cs: call base constructors, fixes
31244         * GridColumnStylesCollection.cs: missing events, methods, and functionality
31245         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
31246         * DataGridTableStyle.cs: implements create default column styles
31247         * DataGridBoolColumn.cs: which types can handle
31248         * DataGrid.cs: missing methods, fixes, new functionality
31249         * DataGridColumnStyle.cs: fixes
31250
31251 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
31252         * FolderBrowserDialog.cs:
31253         - Use a thread to fill the TreeView
31254         - Adjusted some sizes
31255
31256 2005-04-19  Peter Bartok  <pbartok@novell.com>
31257
31258         * LinkLabel.cs: (Re-)create the pieces when setting the Text
31259           property. Fixes #74360.
31260
31261 2005-04-19  Jackson Harper  <jackson@ximian.com>
31262
31263         * XEventQueue.cs: Lock when getting the lockqueue size.
31264         * PictureBox.cs: Call base OnPaint
31265         
31266 2005-04-19  Peter Bartok  <pbartok@novell.com>
31267
31268         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
31269           messages were no longer being processed (this broke BeginInvoke)
31270
31271           
31272 2005-04-18  Jackson Harper  <jackson@ximian.com>
31273
31274         * TreeView.cs: buglet that caused node images to get drawn
31275         regardless of whether or not they were in the clipping rectangle.
31276
31277 2005-04-18  Jackson Harper  <jackson@ximian.com>
31278
31279         * CurrencyManager.cs: There are four rules for GetItemProperties:
31280         - If the type is an array use the element type of the array
31281         - If the type is a typed list, use the type
31282         - If the list contains an Item property that is not an object, use
31283         that property
31284         - use the first element of the list if there are any elements in
31285         the list.
31286         
31287 2005-04-17  Jackson Harper  <jackson@ximian.oom>
31288
31289         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
31290         click. This handles offsets for scrolling properly and reduces
31291         memory. Also fixed GetNode to not offset now that TopNode works
31292         properly.
31293         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
31294         
31295 2005-04-17  Jackson Harper  <jackson@ximian.com>
31296
31297         * CursorConverter.cs: Initial implementation.
31298
31299 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
31300
31301         * ListControl.cs: work towards complex data binding support on ListControl
31302         * CurrencyManager.cs: work towards complex data binding support on ListControl
31303         * ListBox.cs: work towards complex data binding support on ListControl
31304
31305
31306 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
31307
31308         * GridTableStylesCollection.cs: fixes name and constructor
31309         * DataGridTableStyle.cs: fixes
31310         * DataGridBoolColumn.cs: fixes names and constructors
31311         * DataGrid.cs: define methods and properties. Some init implementations
31312         * DataGridCell.cs: define methods and properties. Some init implementations
31313         * GridTablesFactory.cs: Define methods and properties
31314
31315 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
31316
31317         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
31318         graphics port changes.  We still want the coordinates in global screen
31319         coordinates.
31320
31321 2005-04-14  Jackson Harper  <jackson@ximian.com>
31322
31323         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
31324         check plus minus or checkbox clicks unless those features are enabled.
31325
31326 2005-04-14  Jackson Harper  <jackson@ximian.com>
31327
31328         * TreeView.cs: Add methods for setting the top and bottom visible
31329         nodes. TreeNode::EnsureVisible uses these methods.
31330         * TreeNode.cs: Implement EnsureVisible
31331
31332 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
31333
31334         * Form.cs: Pospone menu assignation if the window has not been created yet
31335         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
31336         size and position
31337
31338 2005-04-12  Jackson Harper  <jackson@ximian.com>
31339
31340         * TreeView.cs: Set the TopNode properly when scrolling
31341         occurs. This has the added benifit of reducing the amount of
31342         walking that needs to be done when drawing. Also removed an old
31343         misleading TODO.
31344         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
31345         
31346 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
31347
31348         * Timer.cs: fixes interval setting when the timer is already enabled
31349         
31350 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
31351
31352         * FolderBrowserDialog.cs: First approach
31353
31354 2005-04-09  Peter Bartok  <pbartok@novell.com>
31355
31356         * FolderBrowserDialog: Added
31357
31358 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
31359
31360         * LinkLabel.cs: move drawing code into the theme
31361         * ThemeWin32Classic.cs: drawing code and painting background bugfix
31362         * Theme.cs: define DrawLinkLabel method
31363
31364 2005-04-05  Jackson Harper  <jackson@ximian.com>
31365
31366         * BindingContext.cs: Use weak references so these bad actors don't
31367         stay alive longer then they need to.
31368
31369 2005-04-05  Jackson Harper  <jackson@ximian.com>
31370
31371         * ListControl.cs: Basic implementation of complex databinding.
31372         * ComboBox.cs:
31373         * ListBox.cs: Add calls to ListControl databinding methods.
31374
31375 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
31376
31377         * FileDialog.cs:
31378           - Don't change PopupButtonState to Normal when the
31379             PopupButton gets pressed several times.
31380           - Renamed ButtonPanel to PopupButtonPanel
31381
31382 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
31383
31384         * ColorDialog.cs: Use cached objects instead of creating them
31385         * LinkLabel.cs: Use cached objects instead of creating them
31386         * Splitter.cs: Use cached objects instead of creating them
31387         * FontDialog.cs: Use cached objects instead of creating them
31388         * PropertyGridView.cs: Use cached objects instead of creating them
31389         * MessageBox.cs: Use cached objects instead of creating them
31390         * FileDialog.cs: Use cached objects instead of creating them
31391         * ThemeWin32Classic.cs: Use cached objects instead of creating them
31392         * TreeView.cs: Use cached objects instead of creating them
31393         
31394 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
31395
31396         * Control.cs: use Equals to compare the font since no == op
31397         * ScrollBar.cs: use Equals to compare the font since no == op
31398
31399 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
31400
31401         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
31402
31403 2005-04-01  Jackson Harper  <jackson@ximian.com>
31404
31405         * Binding.cs: Implement IsBinding.
31406         * BindingManagerBase.cs:
31407         * PropertyManager.cs:
31408         * CurrencyManager.cs: Add IsSuspended property.
31409
31410 2005-04-01  Jackson Harper  <jackson@ximian.com>
31411
31412         * Binding.cs: Had some IsAssignableFrom calls backwards.
31413
31414 2005-04-01  Jackson Harper  <jackson@ximian.com>
31415
31416         * Binding.cs: Handle null data members when pulling data.
31417         * PropertyManager.cs: Handle the data member being a property that
31418         does not exist.
31419
31420 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
31421
31422         * DataGridTextBoxColumn.cs: fixes signature
31423         * DataGrid.cs: calls right constructor
31424
31425 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
31426
31427         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
31428         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
31429         * GridTableStylesCollection.cs: implements GridTableStylesCollection
31430         * DataGridTableStyle.cs: implements DataGridTableStyle
31431         * DataGridBoolColumn.cs: implements DataGridBoolColumn
31432         * DataGridTextBox.cs: implements DataGridTextBox
31433         * DataGridColumnStyle.cs: implements DataGridColumnStyle
31434
31435 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
31436
31437         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
31438
31439 2005-03-29  Peter Bartok  <pbartok@novell.com>
31440
31441         * Application.cs:
31442           - Properly implemented CompanyName property
31443           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
31444             returns a path that includes CompanyName, ProductName and
31445             Version (fixes bug #70330)
31446
31447 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
31448
31449         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
31450           fixes bug #72588.
31451
31452 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
31453
31454         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
31455         
31456           - Added ReadOnly CheckBox
31457           - Further refactoring: moved some code from Open-/SaveFileDialog
31458             to FileDialog
31459
31460 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
31461
31462         * OpenFileDialog.cs: Fixed CheckFileExists
31463         * FileDialog.cs:
31464           Moved FileView and DirComboBox outside FileDialog class.
31465           They can now be used outside FileDialog
31466
31467 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
31468
31469         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
31470         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
31471
31472 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
31473
31474         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
31475           - Added missing CreatePrompt property in SaveDialog
31476           - Overall SaveDialog handling should be better now
31477           - Added non standard ShowHiddenFiles property
31478           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
31479           - Added InitialDirectory and RestoreDirectory support
31480
31481 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
31482
31483         * FileDialog.cs: Made dirComboBox usable
31484
31485 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
31486
31487         * FileDialog.cs: Added Filter support (case sensitiv)
31488
31489 2005-03-24  Jackson Harper  <jackson@ximian.com>
31490
31491         * TabControl.cs: Need a couple more pixels for the lines.
31492
31493 2005-03-23  Jackson Harper  <jackson@ximian.com>
31494
31495         * TabControl.cs: Give the tab page focus when it is selected.
31496
31497 2005-03-23  Jackson Harper  <jackson@ximian.com>
31498
31499         * TabControl.cs: Account for the drawing of tabs borders when
31500         invalidating. If the slider was clicked dont do click detection on
31501         the tabs.
31502
31503 2005-03-23  Jackson Harper  <jackson@ximian.com>
31504
31505         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
31506
31507 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
31508
31509         * CategoryGridEntry.cs: Added
31510         * GridItem.cs: Added helper properties
31511         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
31512         * GridEntry.cs: Updated code for collection
31513         * PropertyGrid.cs: Cleaned up some formatting
31514         * PropertyGridView.cs: Added drop down functionality for enums.
31515         * GridItemCollection.cs: Added enumerator logic
31516         * PropertyGridEntry.cs: Added
31517
31518 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
31519
31520         * FileDialog.cs:
31521           - Removed unnecessary commented code
31522           - Fixed handling for entering the filename manually in the combobox
31523
31524 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
31525
31526         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
31527
31528 2005-03-18  Peter Bartok  <pbartok@novell.com>
31529
31530         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
31531           them being touching the border
31532
31533 2005-03-18  Peter Bartok  <pbartok@novell.com>
31534
31535         * TextControl.cs: Quick hack to center text better
31536
31537 2005-03-18  Peter Bartok  <pbartok@novell.com>
31538
31539         * ControlPaint.cs:
31540           - Don't throw NotImplemented exceptions, just print a notice once
31541             instead (requested by Miguel). This makes running existing SWF
31542             apps a bit easier
31543         * Control.cs:
31544           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
31545           - Added context menu trigger on right click
31546         * Panel.cs: Trigger invalidate on resize
31547         * StatusBar.cs:
31548           - Removed old double-buffer drawing
31549           - Added ResizeRedraw style to force proper update of statusbar
31550         * ListView.cs:
31551           - Removed debug output
31552         * ThemeWin32Classic.cs:
31553           - Fixed drawing of status bar, now draws Text property if there
31554             are no defined panels
31555
31556 2005-03-18  Jackson Harper  <jackson@ximian.com>
31557
31558         * ImageList.cs: When the image stream is set pull all the images
31559         from it.
31560         * ImageListStreamer.cs: Implement reading image list streams.
31561
31562 2005-03-18  Peter Bartok  <pbartok@novell.com>
31563
31564         * ThemeWin32Classic.cs (DrawPictureBox):
31565           - Fixed calculations for centered drawing
31566           - Fixed drawing for normal mode, not scaling the image on normal
31567
31568 2005-03-18  Peter Bartok  <pbartok@novell.com>
31569
31570         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
31571           textbox
31572         * FileDialog.cs:
31573           - Made Open/Save button the accept button for FileDialog
31574           - Tied the cancel button to the IButtonControl cancel button
31575           - Save/Open now properly builds the pathname
31576           - Now handles user-entered text
31577           - Preventing crash on right-click if no item is selected
31578           - Fixed Text property, now uses contents of textbox
31579           - Fixed SelectedText property, now just returns the text part that
31580             is selected in the text box
31581
31582 2005-03-18  Jackson Harper  <jackson@ximian.com>
31583
31584         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
31585         rect, make sure to de-adjust the interior rect after drawing the
31586         tab text.
31587
31588 2005-03-18  Peter Bartok  <pbartok@novell.com>
31589
31590         * MenuAPI.cs: Remove menu *before* executing selected action to
31591           prevent the menu from 'hanging around'
31592           
31593 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
31594
31595         * XplatUIOSX.cs: Implemented WorkingArea property
31596
31597 2005-03-17  Peter Bartok  <pbartok@novell.com>
31598
31599         * XplatUIX11.cs: Fixed menu coord calculations
31600         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
31601           for calculating offsets
31602
31603 2005-03-17  Peter Bartok  <pbartok@novell.com>
31604
31605         * Hwnd.cs: Do not consider menu presence for default client
31606           rectangle location/size
31607         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
31608           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
31609           translation functions
31610         * FileDialog.cs: Fixed (what I presume is a) typo
31611
31612 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
31613
31614         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
31615           X access (avoids X-Async errors)
31616
31617 2005-03-16  Jackson Harper  <jackson@ximian.com>
31618
31619         * TabControl.cs: Raise the SelectedIndexChanged event.
31620
31621 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
31622
31623         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
31624           - Removed vertical ToolBar and replaced it with a custom panel
31625             (desktop and home button already work)
31626           - Added Help button (some controls get resized or relocated then)
31627           - Draw correct text depending on Open or Save.
31628           - Fixed some typos...
31629
31630 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
31631
31632         * ScrollBar.cs:
31633           - Only change Maximum and Minimum when need it (bug fix)
31634
31635 2005-03-15  Peter Bartok  <pbartok@novell.com>
31636
31637         * Form.cs: Use Handle for icon, to trigger creation if
31638           the window does not yet exist
31639         * Control.cs:
31640           - CanSelect: Slight performance improvement
31641           - Focus(): Preventing possible recursion
31642           - Invalidate(): Removed ControlStyle based clear flag setting
31643           - WM_PAINT: fixed logic for calling OnPaintBackground
31644           - WM_ERASEBKGND: Fixed logic, added call to new driver method
31645             EraseWindowBackground if the control doesn't paint background
31646         * XplatUIWin32.cs:
31647           - Moved EraseWindowBackground() method to internal methods
31648           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
31649             is sent via SendMessage on BeginPaint call on Win32
31650         * XplatUIX11.cs:
31651           - Added EraseWindowBackground() method
31652           - No longer sends WM_ERASEBKGND on .Expose, but on call to
31653             PaintEventStart, which more closely matches Win32 behaviour
31654           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
31655           - Fixed SetFocus() to properly deal with client and whole windows
31656         * Hwnd.cs: Added ErasePending property
31657         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
31658         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
31659
31660 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
31661
31662         * XplatUIOSX.cs:
31663           - Fix hard loop when timers exist.
31664           - Fix bugs with middle and right click for 3 button mice.
31665
31666 2005-03-11  Peter Bartok  <pbartok@novell.com>
31667
31668         * XplatUIX11.cs:
31669           - get_WorkingArea: Need to call X directly, GetWindowPos only
31670             returns cached data now
31671           - Added sanity check to GetWindowPos hwnd usage
31672
31673 2005-03-11  Jackson Harper  <jackson@ximian.com>
31674
31675         * BindingManagerBase.cs: This method isn't used anymore as
31676         PullData now updates the data in the control.
31677
31678 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
31679
31680         * Form.cs: fixes menu drawing on X11
31681         * MenuAPI.cs:  fixes menu drawing on X11
31682
31683 2005-03-11  Peter Bartok  <pbartok@novell.com>
31684
31685         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
31686           from Jonathan Gilbert; should fix bug #73606
31687         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
31688           in Screen coordinates. Thanks, Jordi.
31689         * Form.cs: Added missing attribute
31690
31691 2005-03-11  Peter Bartok  <pbartok@novell.com>
31692
31693         * Form.cs:
31694           - Rudimentary Mdi support
31695           - Removed outdated FormParent code
31696           - Implemented lots of missing properties and methods, still missing
31697             transparency support
31698           - Added missing attributes
31699           - Implemented support for MaximumBounds
31700           - Added firing of various events
31701         * XplatUI.cs: Added SetIcon() method
31702         * XplatUIDriver.cs: Added SetIcon() abstract
31703         * XplatUIOSX.cs: Stubbed out SetIcon() method
31704         * XplatUIX11.cs:
31705           - Implemented SetIcon() support
31706           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
31707           - Switched to unix line endings
31708         * XplatUIWin32.cs:
31709           - Made POINT internal so for can access it as part of MINMAX
31710           - Implemented SetIcon() support
31711           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
31712             native Mdi support again, might have to go managed)
31713         * Control.cs: Now fires the StyleChanged event
31714         * MdiClient.cs: Added; still mostly empty
31715
31716 2005-03-10  Peter Bartok  <pbartok@novell.com>
31717
31718         * SaveFileDialog.cs: Added emtpy file
31719
31720 2005-03-08  Peter Bartok  <pbartok@novell.com>
31721
31722         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
31723           in turn triggers OnCreateContro) when creating a handle for the
31724           first time.
31725         * TextControl.cs: Fixed endless loop in certain cases when
31726           replacing the current selection
31727
31728 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
31729
31730         * ScrollBar.cs:
31731           - Honors NewValue changes in Scroll events allowing apps to change it
31732           - Adds First and Last Scroll events
31733           - Fixes Thumb events
31734
31735 2005-03-07  Peter Bartok  <pbartok@novell.com>
31736
31737         * Hwnd.cs: Added DefaultClientRectangle property
31738         * XplatUI.cs: Now using the X11 driver Where() method, which provides
31739           more detailed debug information
31740         * XplatUIX11.cs:
31741           - Fixed size-change feedback loop, where we would pull an old size
31742             off the queue and mistakenly change our window's size to an
31743             earlier value
31744           - Now compressing ConfigureNotify events, to reduce looping and
31745             redraw issues
31746         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
31747           is called
31748
31749 2005-03-07  Jackson Harper  <jackson@ximian.com>
31750
31751         * Binding.cs: Push data pushes from data -> property. Check if the
31752         property is readonly when attempting to set it.
31753
31754 2005-03-07  Jackson Harper  <jackson@ximian.com>
31755
31756         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
31757         instead of IsSubclassOf. Pulling data now sets the value on the
31758         control.
31759         * PropertyManager.cs:
31760         * CurrencyManager.cs: Just need to pull data when updating now,
31761         because PullData will set the value on the control.
31762
31763 2005-03-04  Jackson Harper  <jackson@ximian.com>
31764
31765         * Binding.cs: Implement data type parsing and converting on pulled
31766         data. TODO: Are there more ways the data can be converted?
31767
31768 2005-03-04  Jackson Harper  <jackson@ximian.com>
31769
31770         * Binding.cs: Support <Property>IsNull checks. Also bind to the
31771         controls Validating method so we can repull the data when the
31772         control loses focus.
31773
31774 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
31775
31776         * ColumnHeader.cs:
31777           - Fixes null string format
31778           
31779         * ListView.cs:
31780           - Adds enum type checks
31781           - Fixes redrawing and recalc need after changing some properties
31782           - Fixes on focus_item set after the event
31783           - Fixes adding columns after the control has been created
31784           
31785         * ThemeWin32Classic.cs:
31786           - Fixes CheckBox focus rectangle
31787           - Fixes ColumnHeader drawing
31788
31789
31790 2005-03-03  Jackson Harper  <jackson@ximian.com>
31791
31792         * Binding.cs: Bind to <Property>Changed events so we can detect
31793         when properties are changed and update the data.
31794
31795 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
31796
31797         * ImageList.cs:
31798           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
31799           - Fixes ImageList constructor with ImageList container
31800           - Fixes image scaling (wrong parameters at DrawImage)
31801
31802 2005-02-02  Jackson Harper  <jackson@ximian.com>
31803
31804         * Binding.cs: Make property searches case-insensitive. Eliminate
31805         some duplicated code.
31806
31807 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
31808
31809         * ComboBox.cs:
31810                 - Handle focus event
31811                 - Fix scrollbar events
31812                 - Discard highlighted item if remove it
31813                 - Fixes SelectedItem with strings
31814
31815 2005-03-01  Peter Bartok  <pbartok@novell.com>
31816
31817         * Control.cs:
31818           - Fixed Visible property, now follows (once again) parent chain
31819             to return false if any control in the chain is visible=false
31820           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
31821           - Fixed several places where is_visible instead of Visible was used
31822           - Implemented FIXME related to focus selection when setting focused
31823             control to be invisible
31824
31825         * XplatUIWin32.cs: Now using proper method to find out if window is
31826           visible. Thanks to Jordi for pointing it out
31827
31828 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
31829
31830         * ComboBox.cs: show/hide scrollbar instead of creating it
31831
31832 2005-02-27  Jackson Harper  <jackson@ximian.com>
31833
31834         * CurrencyManager.cs: Add PositionChanged stuff.
31835
31836 2005-02-27  Peter Bartok  <pbartok@novell.com>
31837
31838         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
31839         * XplatUIOSX.cs: Added GetMenuOrigin() stub
31840         * XplatUIWin32.cs: Implemented GetMenuOrigin()
31841         * XplatUIX11.cs:
31842           - Implemented GetMenuDC()
31843           - Implemented GetMenuOrigin()
31844           - Implemented ReleaseMenuDC()
31845           - Implemented generation of WM_NCPAINT message
31846           - Implemented generation and handling of WM_NCCALCSIZE message
31847         * Form.cs: Added debug helper message for Jordi's menu work
31848         * Hwnd.cs:
31849           - Modified ClientRect property; added setter, fixed getter to handle
31850             setting of ClientRect
31851           - Added MenuOrigin property
31852
31853 2005-02-26  Peter Bartok  <pbartok@novell.com>
31854
31855         * XplatUIX11.cs:
31856           - Destroys the caret if a window that's being destroyed contains it
31857           - Ignores expose events coming from the X11 queue for windows that
31858             already are destroyed
31859           - Now uses the proper variable for handling DestroyNotify, before we
31860             marked the wrong window as destroyed
31861           - Improved/added some debug output
31862
31863 2005-02-26  Peter Bartok  <pbartok@novell.com>
31864
31865         * X11Keyboard.cs: Fixes to work on 64bit systems
31866
31867 2005-02-26  Peter Bartok  <pbartok@novell.com>
31868
31869         * Control.cs:
31870           - Now calling OnHandleDestroyed from DestroyHandle()
31871             instead of Dispose()
31872           - Removed bogus call to controls.Remove() from DestroyHandle()
31873
31874 2005-02-26  Peter Bartok  <pbartok@novell.com>
31875
31876         * Control.cs: Properly destroy child windows when our handle is
31877           destroyed
31878
31879 2005-02-25  Peter Bartok  <pbartok@novell.com>
31880
31881         * XplatUI.cs:
31882           - Added 'DriverDebug' define to allow tracing XplatUI API calls
31883           - Alphabetized Static Methods and Subclasses
31884
31885         * XplatUIX11.cs:
31886           - Added XException class to allow custom handling of X11 exceptions
31887           - Created custom X11 error handler, tied into XException class
31888           - Added support for MONO_XEXCEPTIONS env var to allow the user
31889             to either throw an exception on X errors or continue running
31890             after displaying the error
31891           - Added handling of DestroyNotify message
31892           - Added handler for CreateNotify message (still disabled)
31893           - Improved (tried to at least) Where method to provide file and lineno
31894         * X11Structs.cs:
31895           - Added XErrorHandler delegate
31896           - Added XRequest enumeration (to suppor translation of errors)
31897
31898 2005-02-25  Jackson Harper  <jackson@ximian.com>
31899
31900         * PropertyManager.cs: Implement editing features
31901         * CurrencyManager.cs:
31902         * Binding.cs: First attempt at UpdateIsBinding
31903         * BindingManagerBase.cs: Call UpdateIsBinding before
31904         pushing/pulling data.
31905
31906 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
31907
31908         * MenuAPI.cs: Respect disabled items
31909         * ThemeWin32Classic.cs
31910                 - Caches ImageAttributes creation for DrawImageDisabled
31911                 - Fixes vertical menu line drawing
31912                 - Draws disabled arrows in disable menu items
31913
31914 2005-02-24  Peter Bartok  <pbartok@novell.com>
31915
31916         * Hwnd.cs:
31917           - Added UserData property to allow associating arbitrary objects
31918             with the handle
31919           - Fixed leak; now removing Hwnd references from static windows array
31920         * XplatUIWin32.cs:
31921           - Fixed Graphics leak in PaintEventEnd
31922           - Removed usage of HandleData, switched over to Hwnd class
31923         * HandleData.cs: Removed, obsoleted by Hwnd.cs
31924
31925 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
31926
31927         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
31928         * ScrollBar.cs: Fixes bug
31929         * TrackBar.cs: removes death code, clipping, mimize refreshes,
31930          keyboard navigation enhancements
31931
31932 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
31933
31934         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
31935         * GroupBox.cs: Add control styles
31936         * Label.cs: Add control styles
31937         * UpDownBase.cs: Add control styles
31938         * ListBox.cs: Add control styles
31939         * XplatUIWin32.cs: Fixes wrong parameter order
31940
31941
31942 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
31943
31944         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
31945
31946 2005-02-23  Jackson Harper  <jackson@ximian.com>
31947
31948         * PropertyManager.cs: Implement property binding. This doesn't
31949         seem to work yet though as (I think) there are some bugs in
31950         System.ComponentModel.PropertyDescriptor.
31951         * BindingContext.cs: Use new PropertyManager constructor.
31952
31953 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
31954
31955         * ProgressBar.cs: use clip region in ProgressBar
31956         * ThemeWin32Classic.cs: use clip region in ProgressBar
31957
31958 2004-02-22  Jackson Harper  <jackson@ximian.com>
31959
31960         * BindingsCollection.cs: Remove some debug code.
31961
31962 2005-02-22  Jackson Harper  <jackson@ximian.com>
31963
31964         * BindingContext.cs:
31965         * ControlBindingsCollection.cs:
31966         * CurrencyManager.cs:
31967         * Binding.cs:
31968         * BindingManagerBase.cs: Initial implementation
31969         * BindingsCollection.cs: Add an internal contains method that the
31970         BindingManagerBase uses to ensure bindings aren't added twice to
31971         the collection.
31972         * PropertyManager.cs: Stubbed out.
31973         * Control.cs:
31974         * ContainerControl.cs: Hook up databinding
31975         
31976 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
31977
31978         * XplatUIOSX.cs:
31979           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
31980           Fixed Invalidate/Update chain.
31981           Fixed tons of other minor bugs (this is almost a complete rewrite).
31982
31983 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
31984
31985         * ComboBox.cs: do subcontrol creation when the control is created
31986
31987 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
31988
31989         * Label.cs: fixes image drawing (image and imagelist)
31990         * ThemeWin32Classic.cs: cache brushes
31991         
31992 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
31993
31994         * Form.cs: Move menu drawing code to Theme class
31995         * ComboBox.cs: Move ComboBox drawing code to Theme class
31996         * MenuItem.cs: Move menu drawing code to Theme class
31997         * MenuAPI.cs: Move menu drawing code to Theme class
31998         * ThemeWin32Classic.cs: New methods
31999         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
32000         * ListBox.cs: Move Listbox drawing code to Theme class
32001         * Theme.cs: New methods
32002
32003 2005-02-20  Peter Bartok  <pbartok@novell.com>
32004
32005         * Control.cs:
32006           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
32007             only process mnemonics on those)
32008           - Fixed event sequence for key handling; first calling
32009             ProcessKeyEventArgs now
32010         * TextBoxBase.cs:
32011           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
32012             for processing non-character keys
32013           - Fixed WM_CHAR to generate proper event sequence before processing
32014         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
32015           generation
32016
32017 2005-02-19  Peter Bartok  <pbartok@novell.com>
32018
32019         * UserControl.cs: Added TextChanged event; added attributes
32020         * SizeGrip.cs: Implemented resizing and optional display of grip
32021         * Form.cs: Fixed attribute
32022         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
32023           Changed meaning of ScrollWindow bool argument; instead of the
32024           clear attribute (which will be true usually anyway), it gives the
32025           option of moving child controls as well.
32026         * XplatUIX11.cs:
32027           - Changed to match new ScrollWindow argument
32028           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
32029             now handles the implicit parent window a WM puts around us
32030         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
32031           to work)
32032         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
32033         * TreeView.cs: Adjusted to new ScrollWindow arguments
32034
32035 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
32036
32037         * Form.cs: Menu integration with non-client area
32038         * MenuItem.cs: Menu integration with non-client area
32039         * MenuAPI.cs: Menu integration with non-client area
32040
32041 2005-02-18  Peter Bartok  <pbartok@novell.com>
32042
32043         * MethodInvoker.cs: Added
32044         * MdiLayout.cs: Added
32045         * SendKeys.cs: Started implementation
32046         * ErrorIconAlignment.cs: Added
32047
32048 2005-02-18  Peter Bartok  <pbartok@novell.com>
32049
32050         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
32051         * Form.cs: Added handling for Menu-related Non-client messages
32052
32053 2005-02-17  Peter Bartok  <pbartok@novell.com>
32054
32055         * UpDownBase.cs: Fixed typo, compilation errors
32056         * DomainUpDown.cs: Fixed attribute value
32057
32058 2005-02-16  Miguel de Icaza  <miguel@novell.com>
32059
32060         * UpDownBase.cs: Attach entry events.
32061         Propagate events.
32062         Add ForeColor property, Focused, InterceptArrowKeys (interception
32063         does not work yet).
32064
32065 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
32066
32067         * Form.cs:
32068                 - Redraw non client are on Setmenu
32069                 - Calc proper menu starting point
32070
32071 2005-02-17  Peter Bartok  <pbartok@novell.com>
32072
32073         * Application.cs: Fixed message_filter check
32074
32075 2005-02-17  Peter Bartok  <pbartok@novell.com>
32076
32077         * Application.cs: Now calls registered message filters
32078         * DockStyle.cs: Fixed attribute
32079         * Form.cs: Fixed attribute
32080         * Menu.cs: Fixed attribute
32081         * ToolTip.cs: Fixed attribute
32082         * TreeNode.cs: Added missing attributes and arranged in regions
32083         * PropertyGrid.cs: Fixed signatures
32084         * TreeNodeCollection.cs: Added attributes
32085         * Splitter.cs: Added missing attributes; arranged into regions
32086         * TabPage.cs: Added missing attributes; arranged into regions
32087         * TextBoxBase.cs: Added missing attributes
32088         * TextBox.cs: Added missing attributes
32089         * ArrangeDirection.cs: Added missing attributes
32090         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
32091         * ToolBarButton.cs: Fixed attributes
32092         * AnchorStyles.cs: Fixed attribute
32093         * TrackBar.cs: Fixed attributes
32094         * TabControl.cs: Added missing attributes and arranged into regions
32095         * ToolBar.cs: Fixed attribute
32096         * StatusBar.cs: Fixed signature, organized into regions and added
32097           attributes
32098         * StatusBarPanel.cs: Fixed attributes
32099         * ContentsResizedEventArgs.cs: Implemented
32100         * ContentsResizedEventHandler.cs: Implemented
32101         * DateBoldEventArgs.cs: Implemented
32102         * DateBoldEventHandler.cs: Implemented
32103         * UpDownEventArgs.cs: Implemented
32104         * UpDownEventHandler.cs: Implemented
32105         
32106 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
32107
32108         * Form.cs: first Menu NC refactoring
32109         * MenuAPI.cs: first Menu NC refactoring
32110         
32111 2005-02-16  Peter Bartok  <pbartok@novell.com>
32112
32113         * ImeMode.cs: Added missing attributes
32114         * Menu.cs: Fixed attribute
32115         * GroupBox.cs: Fixed attribute
32116         * Label.cs: Fixed attribute
32117         * ColorDialog.cs (RunDialog): Removed TODO attribute
32118         * ComboBox.cs: Fixed attributes
32119         * ListControl.cs: Added missing attributes
32120         * PropertyGrid.cs: Fixed attributes
32121         * Control.cs: Fixed attributes
32122         * ListViewItem.cs: Added TypeConverter attribute
32123         * NotifyIcon.cs: Fixed attributes
32124         * ListView.cs: Fixed attributes
32125         * ButtonBase.cs: Fixed attribute
32126         * ImageList.cs: Added missing attributes
32127         * ContainerControl.cs: Fixed signature
32128         * CheckedListBox.cs: Fixed attribute; added missing attributes
32129         * Panel.cs: Fixed attributes
32130         * PropertyTabChangedEventArgs.cs: Added missing attribute
32131         * PropertyValueChangedEventArgs.cs: Added missing attribute
32132         * Binding.cs: Fixed attribute
32133         * ListViewItemConverter: Implemented ListViewSubItemConverter class
32134         * ListBox.cs: Fixed attribute; added missing attributes;
32135         * ScrollableControl.cs: Added missing attributes
32136         * PictureBox.cs: Added missing attributes; implemented missing property
32137         * DateTimePicker.cs: Added missing attributes
32138         * Theme.cs (ToolWindowCaptionHeight): Fixed type
32139         * MonthCalendar.cs: Fixed attributes
32140         * StatusBarPanel.cs: Added missing attributes
32141         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
32142
32143 2005-02-16  Peter Bartok  <pbartok@novell.com>
32144
32145         * TextBoxBase.cs: The previous method to enforce height yet remember
32146           the requested high was less than ideal, this is an attempt to do
32147           it better.
32148         * Control.cs: Added comment about possible problem
32149         * Copyright: Updated format
32150         * GridItemType.cs: Fixed swapped values
32151
32152 2005-02-15  Jackson Harper  <jackson@ximian.com>
32153
32154         * BaseCollection.cs: Use property so we never access an
32155         uninitialized list. Also initialize the list in the property.
32156
32157 2005-02-15  Peter Bartok  <pbartok@novell.com>
32158
32159         * GroupBox.cs (ProcessMnemonic): Implemented
32160         * Label.cs (ProcessMnemonic): Implemented
32161         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
32162           hotkeys
32163
32164 2005-02-15  Peter Bartok  <pbartok@novell.com>
32165
32166         * RadioButton.cs (ProcessMnemonic): Implemented
32167         * CheckBox.cs (ProcessMnemonic): Implemented
32168         * Control.cs:
32169           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
32170             handling
32171           - Added internal method to allow calling ProcessMnemonic from other
32172             controls
32173         * ContainerControl.cs:
32174           - Started support for handling validation chain handling
32175           - Implemented ProcessMnemonic support
32176           - Added Select() call to Active, to make sure the active control
32177             receives focus
32178         * Form.cs: Setting toplevel flag for Forms (this was lost in the
32179           FormParent rewrite)
32180         * ThemeWin32Classic.cs:
32181           - DrawCheckBox(): Fixed stringformat to show hotkeys
32182           - DrawRadioButton(): Fixed stringformat to show hotkeys
32183         * CommonDialog.cs: Removed WndProc override, not needed
32184
32185 2005-02-14  Peter Bartok  <pbartok@novell.com>
32186
32187         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
32188           missed those in the rewrite
32189
32190 2005-02-14  Miguel de Icaza  <miguel@novell.com>
32191
32192         * NumericUpDown.cs (Increment, ToString): Add.
32193         (DecimalPlaces): implement.
32194         
32195         Add attributes.
32196         
32197         * UpDownBase.cs: Add the designer attributes.
32198
32199 2005-02-13  Peter Bartok  <pbartok@novell.com>
32200
32201         * Panel.cs: Removed border_style, now in Control
32202         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
32203           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
32204
32205 2005-02-13  Peter Bartok  <pbartok@novell.com>
32206
32207         * MouseButtons.cs: Added missing attributes
32208         * XplatUIStructs.cs: Added enumeration for title styles
32209         * LeftRightAlignment.cs: Added missing attributes
32210         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
32211           it compatible with Graphics.FromHwnd()
32212         * SelectedGridItemChangedEventArgs.cs: Fixed property type
32213         * Keys.cs: Added missing attributes
32214         * SelectionRange.cs: Added missing attributes
32215         * SelectionRangeConverter.cs: Added
32216         * XplatUI.cs:
32217           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
32218             ReleaseMenuDC methods
32219           - Renamed ReleaseWindow to UngrabWindow
32220           - Added proper startup notice to allow version identification
32221         * Form.cs:
32222           - Added missing attributes
32223           - Removed FormParent concept
32224         * Label.cs: Removed border_style field, now in Control
32225         * RadioButton.cs: Now properly selects RadioButton when focus is
32226           received
32227         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
32228         * Control.cs:
32229           - Added missing attributes
32230           - Added borderstyle handling
32231           - Removed FormParent concept support
32232           - Fixed calls to XplatUI to match changed APIs
32233           - Fixed bug that would case us to use disposed Graphics objects
32234           - Removed unneeded internal methods
32235           - PerformLayout(): Fixed to handle DockStyle.Fill properly
32236           - SelectNextControl(): Fixed to properly check common parents
32237         * TextBoxBase.cs: Removed border_style field (now in Control)
32238         * MessageBox.cs:
32239           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
32240             fixed calculations for form size
32241           - Added support for localized strings and icons
32242           - Improved form size calculations, added border
32243         * ListView.cs: Removed border_style field (now in Control)
32244         * X11Structs.cs: Moved several structs from X11 driver here
32245         * X11Keyboard.cs: Changed debug message
32246         * Application.cs: Removed FormParent concept support
32247         * CommonDialog.cs:
32248           - Resetting end_modal flag
32249           - Removed FormParent concept support
32250         * NativeWindow.cs: Removed FormParent concept support
32251         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
32252           Client area and Non-Client whole window to allow support for WM_NC
32253           messages
32254         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
32255           prevent using it until it supports Hwnd as per Geoff Norton's request
32256         * ToolBar.cs: Fixed drawing, was not doing proper drawing
32257         * PictureBox.cs: Removed border_style field, now in Control
32258         * XplatUIWin32.cs: Added new driver methods
32259
32260 2005-02-12  Peter Bartok  <pbartok@novell.com>
32261
32262         * OpacityConverter.cs: Implemented
32263         * Hwnd.cs: Internal class to support drivers that need to emulate
32264           client area/non-client area window behaviour
32265
32266 2005-02-11  Peter Bartok  <pbartok@novell.com>
32267
32268         * KeysConverter.cs: Implemented
32269
32270 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
32271
32272         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
32273         * LinkLabel: Added missing attributes
32274         * MainMenu.cs: fixes ToString
32275         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
32276         * ListBox.cs: fixes event position
32277         * TrackBar.cs: adds missing attributes and events
32278         
32279 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
32280
32281         * MenuItem.cs: Use SystemInformation and bug fixes
32282         * MenuAPI.cs: Use SystemInformation and bug fixes
32283
32284 2005-02-09  Jackson Harper  <jackson@ximian.com>
32285
32286         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
32287         their keystate otherwise things like VK_MENU get stuck "on".
32288
32289 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
32290
32291         * ListBox.cs: Fixes AddRange bug
32292         
32293 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
32294
32295         * ProgressBar.cs
32296                 - Add missing attributes
32297                 - Add missing method
32298                 
32299         * CheckedListBox.cs: Added missing attributes
32300                 - Add missing attributes
32301                 - Remove extra method
32302         
32303         * ComboBox.cs: Added missing attributes
32304         * VScrollBar.cs: Added missing attributes
32305         * ScrollBar.cs:  Added missing attributes
32306         * ListBox.cs: Fixes signature, add missing consts
32307         * LinkArea.cs:   Added missing attributes
32308         
32309
32310 2005-02-08  Peter Bartok  <pbartok@novell.com>
32311
32312         * Menu.cs: Added missing attributes
32313         * MainMenu.cs: Added missing attributes
32314         * GroupBox.cs: Added missing attributes
32315         * Label.cs: Added missing attributes
32316         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
32317         * ColorDialog.cs:
32318           - Added Instance and Options properties
32319           - Added missing attributes
32320         * Cursor.cs: Made Serializable
32321         * NotifyIcon: Added missing attributes
32322         * MenuItem.cs: Added missing attributes
32323         * TextBoxBase.cs: Implemented AppendText() and Select() methods
32324         * Panel.cs: Added Missing attributes
32325         * MonthCalendar.cs: Fixed CreateParams
32326
32327 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
32328         
32329         * LinkLabel.cs:
32330                 - Fixes signature
32331                 - Fixes issues with links
32332                 - Adds the class attributes
32333
32334 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
32335         
32336         * ComboBox.cs:
32337                 - Fixes button when no items available in dropdown
32338                 - Fixes repainting problems
32339                 - Adds the class attributes
32340                 
32341 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
32342
32343         * XplatUIOSX.cs: Detect the menu bar and title bar height from
32344         the current theme.  Cache these on startup.
32345
32346 2005-02-07  Jackson Harper  <jackson@ximian.com>
32347
32348         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
32349         the scrollbar buttons when they are depressed.
32350
32351 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
32352
32353         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
32354         Get the display size from the main displayid.  We currently dont
32355         support multiple display configurations.
32356
32357 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
32358
32359         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
32360
32361 2005-02-07  Miguel de Icaza  <miguel@novell.com>
32362
32363         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
32364
32365 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
32366
32367         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
32368
32369 2005-02-04  Jackson Harper  <jackson@ximian.com>
32370
32371         * ThemeWin32Classic.cs: Respect the clipping rect when
32372         drawing. Only fill the intersection of clips and rects so there
32373         isn't a lot of large fills.
32374         * ScrollBar.cs: Pass the correct clipping rect to the theme
32375         engine. Remove some debug code.
32376
32377 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
32378         
32379         * DateTimePicker.cs:
32380                 - Fixed crash on DateTime.Parse, use Constructor instead
32381
32382 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
32383         
32384         * MenuItem.cs:
32385         * MenuAPI.cs:
32386                 - Owner draw support (MeasureItem and DrawItem)
32387
32388 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
32389         
32390         *  Menu.cs:
32391                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
32392                 - Fixes MenuItems.Add range
32393         * MenuItem.cs:
32394                 - MergeMenu and Clone and CloneMenu functions
32395
32396 2005-02-03  Jackson Harper  <jackson@ximian.com>
32397
32398         * ScrollBar.cs: Make abstract
32399         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
32400         is abstract.
32401
32402 2005-02-03  Jackson Harper  <jackson@ximian.com>
32403
32404         * ScrollBar.cs: First part of my scrollbar fixups. This removes
32405         all the unneeded refreshes and uses invalidates with properly
32406         computed rects.
32407
32408 2005-02-03  Peter Bartok  <pbartok@novell.com>
32409
32410         * ComponentModel.cs: Added
32411         * IDataGridEditingService.cs: Added
32412         * Timer.cs: Added missing attributes
32413         * ToolTip.cs: Added missing attributes
32414
32415 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
32416
32417         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
32418
32419 2005-02-03  Peter Bartok  <pbartok@novell.com>
32420
32421         * ListBox.cs: Added missing attributes
32422
32423 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
32424         
32425         * ListBox.cs:
32426                 - Fixes font height after font change
32427                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
32428                 
32429 2005-02-02  Peter Bartok  <pbartok@novell.com>
32430
32431         * HandleData.cs: Introduced static methods to allow class
32432           to be more self-contained and track it's own HandleData objects
32433         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
32434           HandleData to use new static methods
32435
32436 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
32437
32438         * Combobox.cs:
32439                 - Fixes default size and PreferredHeight
32440                 - Missing events
32441                 - ObjectCollection.Insert implementation
32442                 
32443         * ListControl.cs
32444                 - Fixes signature
32445         * ListBox.cs:
32446                 - Several fixes
32447                 - ObjectCollection.Insert implementation
32448                 - No selection after clean
32449                 - Small fixes
32450
32451 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
32452
32453         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
32454
32455 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
32456
32457         * Combobox.cs:
32458                 - Caches ItemHeight calculation for OwnerDrawVariable
32459                 - Handles dropdown properly
32460                 - Fixes several minor bugs
32461
32462 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
32463
32464         * ListBox.cs:
32465                 - Fixes 71946 and 71950
32466                 - Fixes changing Multicolumn on the fly
32467                 - Fixes keyboard navigation on Multicolumn listboxes
32468
32469 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
32470         
32471         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
32472         crash reporter log.
32473
32474 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
32475
32476         * XplatUIOSX.cs: Allow applications to actually exit.
32477
32478 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
32479
32480         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
32481         their parent at creation time rather than lazily later.  Fixes a major
32482         regression we were experiencing.
32483
32484 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
32485
32486         * ThemeWin32Classic.cs: more date time picker painting fixes
32487         * DateTimePicker.cs: more monthcalendar drop down fixes
32488         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
32489
32490 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
32491
32492         * ScrollBar.cs:
32493                 - When moving the thumb going outside the control should stop the moving
32494                 - Adds the firing of missing events
32495                 - Fixes no button show if Size is not specified
32496                 - End / Home keys for keyboard navigation
32497
32498 2005-01-30  Peter Bartok  <pbartok@novell.com>
32499
32500         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
32501           sanity check to prevent theoretical loop
32502         * XplatUIWin32.cs (SetVisible): Removed debug output
32503         * XplatUIX11.cs (SystrayChange): Added sanity check
32504         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
32505         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
32506           behaviour, valid until the X11 client window rewrite is done
32507         * TextBox.cs (ctor): Setting proper default foreground and background
32508           colors
32509
32510 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
32511
32512         * Theme: Added DrawDateTimePicker to interface
32513         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
32514         * DateTimePicker.cs: Created (still needs keys and painting code)
32515         * DateTimePickerFormat.cs: added
32516         * MonthCalendar.cs: fixed CreateParams for popup window mode
32517           
32518 2005-01-29  Peter Bartok  <pbartok@novell.com>
32519
32520         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
32521           this should also the calculations for ligher/darker
32522         * Theme.cs: Fixed defaults for ScrollBar widths/heights
32523
32524 2005-01-29  Peter Bartok  <pbartok@novell.com>
32525
32526         * ArrangeDirection.cs: Added
32527         * ArrangeStartingPositon.cs: Added
32528         * SystemInformation.cs: Implemented
32529         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
32530           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
32531           used by SystemInformation class
32532         * X11Strucs.cs: Added XSizeHints structure
32533         * MenuAPI.cs:
32534           - Fixed CreateParams to make sure the menu window is always visible
32535           - TrackPopupMenu: Added check to make sure we don't draw the
32536             menu offscreen
32537
32538 2005-01-29  Peter Bartok  <pbartok@novell.com>
32539
32540         * HandleData.cs: Added method for altering invalid area
32541         * TextBoxBase.cs: Implemented TextLength
32542
32543 2005-01-28  Peter Bartok  <pbartok@novell.com>
32544
32545         * XplatUIX11.cs: Improvement over last patch, not sending
32546           the WM_PAINT directly anymore, instead we scroll any pending
32547           exposed areas and let the system pick out the WM_PAINT later
32548
32549 2005-01-28  Peter Bartok  <pbartok@novell.com>
32550
32551         * SWF.csproj: Deleted, no longer used. Instead,
32552           Managed.Windows.Forms/SWF.csproj should be used
32553         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
32554           directly, to avoid a potential race condition with the next
32555           scroll
32556
32557 2005-01-28  Peter Bartok  <pbartok@novell.com>
32558
32559         * XplatUI.cs: Made class internal
32560
32561 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
32562
32563         * CheckedListBox.cs:
32564                 - Draw focus
32565                 - Fixed Drawing
32566                 - Missing methods and events
32567
32568 2005-01-27  Peter Bartok  <pbartok@novell.com>
32569
32570         * Application.cs (Run): Don't use form if we don't have one
32571
32572 2005-01-27  Peter Bartok  <pbartok@novell.com>
32573
32574         * TextBoxBase.cs (get_Lines): Fixed index off by one error
32575
32576 2005-01-27  Peter Bartok  <pbartok@novell.com>
32577
32578         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
32579         * GridItem.cs: Added; Patch by Jonathan S. Chambers
32580         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
32581         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
32582         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
32583         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
32584         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32585         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
32586         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32587         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32588         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32589         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
32590
32591 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
32592
32593         * Combobox.cs:
32594                 - Draw focus on Simple Combobox
32595                 - Fixes drawing issues
32596                 - fixes 71834
32597
32598 2005-01-27  Peter Bartok  <pbartok@novell.com>
32599
32600         * Form.cs:
32601           - Place window in default location, instead of hardcoded 0/0
32602           - Send initial LocationChanged event
32603         * Control.cs:
32604           - UpdateBounds after creation to find out where the WM placed us
32605           - Make sure that if the ParentForm changes location the Form
32606             is notified
32607         * XplatUIX11.cs: XGetGeometry will not return the coords relative
32608             to the root, but to whatever the WM placed around us.
32609             Translate to root coordinates before returning toplevel
32610             coordinates
32611         * XplatUIWin32.cs: Removed debug output
32612         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
32613           flag to GetWindowPos, to allow translation of coordinates on X11
32614
32615 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
32616
32617         * ListBox.cs: connect LostFocus Event
32618
32619 2005-01-27  Peter Bartok  <pbartok@novell.com>
32620
32621         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
32622           XplatUIX11.cs: Extended the Systray API
32623         * Form.cs: Removed debug output
32624         * Application.cs: Fixed focus assignment, always need to call
32625           XplatUI.Activate() since Form.Activate() has rules that may
32626           prevent activation
32627         * NotifyIcon.cs: Should be complete now
32628         * ToolTip.cs: Worked around possible timer bug
32629
32630 2005-01-27  Jackson Harper  <jackson@ximian.com>
32631
32632         * TabControl.cs:
32633         - Only invalidate the effected tabs when the
32634         selected index changes. This reduces drawing and gets rid of some
32635         flicker.
32636         - Only refresh if the tabs need to be shifted, otherwise only
32637         invalidate the slider button.
32638         - On windows the tabs are not filled to right if the slider is
32639         visible.
32640         
32641 2005-01-27  Jackson Harper  <jackson@ximian.com>
32642
32643         * TabControl.cs: Only refresh on mouseup if we are showing the
32644         slider. Also only invalidate the button whose state has changed.
32645
32646 2005-01-26  Peter Bartok  <pbartok@novell.com>
32647
32648         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
32649         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
32650           and SystrayRemove() methods
32651         * XplatUIOSX.cs: Stubbed Systray methods
32652         * XplatUIX11.cs:
32653           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
32654             methods
32655           - Fixed broken XChangeProperty calls (marshalling messed up things)
32656         * X11Structs.cs: Added enums and structs required for Size hinting
32657         * NotifyIcon.cs: Added & implemented
32658
32659 2005-01-26  Jackson Harper  <jackson@ximian.com>
32660
32661         * TabControl.cs: Space vertically layed out tabs properly.
32662
32663 2005-01-26  Peter Bartok  <pbartok@novell.com>
32664
32665         * Form.cs (CreateClientParams): Always set the location to 0,0
32666           since we're a child window.
32667
32668         * Control.cs (SetVisibleCore): Always explicitly setting the location
32669           of a toplevel window, apparently X11 doesn't like to move windows
32670           while they're not mapped.
32671
32672 2005-01-26  Jackson Harper  <jackson@ximian.com>
32673
32674         * TabControl.cs: Implement FillToRight size mode with vertically
32675         rendered tabs.
32676
32677 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
32678
32679         * ControlPaint.cs, ThemeWin32Classic.cs
32680                 - Fixes DrawFocusRectangle
32681
32682 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
32683
32684         * MenuAPI.cs:
32685                 - MenuBar tracking only starts when item is first clicked
32686                 - Fixes menu hidding for multiple subitems
32687                 - Unselect item in MenuBar when item Executed
32688                 - Fixes bug 71495
32689
32690 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
32691
32692         * ListControl.cs:
32693                 - IsInputKey for ListBox
32694         * ListBox.cs:
32695                 - Focus item
32696                 - Shift and Control item selection
32697                 - Implement SelectionMode.MultiExtended
32698                 - Fixes RightToLeft
32699         * ComboBox.cs:
32700                 - IsInputKey implemented
32701                 - Do not generate OnTextChangedEdit on internal txt changes
32702                 
32703 2005-01-23  Peter Bartok  <pbartok@novell.com>
32704
32705         * AccessibleObject.cs: Partially implemented Select()
32706         * MonthCalendar.cs: Added missing attributes and events
32707         * Form.cs: Fixed CreateParams behaviour, now controls derived from
32708           form can properly override CreateParams.
32709         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
32710           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
32711           Control performs Invalidate & Update
32712         * NativeWindow (CreateHandle): Added special handling for Form
32713           and Form.FormParent classes to allow overriding of From.CreateParams
32714         * Control.cs:
32715           - ControlNativeWindow: Renamed 'control' variable to more intuitive
32716             name 'owner'
32717           - ControlNativeWindow: Added Owner property
32718           - Removed usage of Refresh() on property changes, changed into
32719             Invalidate(), we need to wait until the queue is processed for
32720             updates, direct calls might cause problems if not all vars for
32721             Paint are initialized
32722           - Added call to UpdateStyles() when creating the window, to set any
32723             styles that CreateWindow might have ignored.
32724           - Added support for Form CreateParent overrides to UpdateStyles()
32725         * MessageBox.cs: Removed no longer needed FormParent override stuff,
32726           CreateParams are now properly overridable
32727         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
32728           CreateParams are now properly overridable
32729
32730 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
32731
32732         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
32733         OnTextBoxChanged.
32734
32735         Capture LostFocus and OnTextBoxChanged.  The later introduces a
32736         recursive invocation that I have not figured out yet.
32737
32738         Reset the timer when not using (it was accumulating).
32739
32740
32741         (OnTextBoxChanged): Set UserEdit to true here to track whether the
32742         user has made changes that require validation.
32743
32744         Reset changing to avoid loops.
32745
32746 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
32747
32748         * NumericUpDown.cs: Display value at startup.
32749
32750         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
32751         ValidateEditText.
32752
32753         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
32754         filled in.  Added some basic parsing of text.
32755
32756         Still missing the OnXXX method overrides, and figuring out the
32757         events that must be emitted.
32758
32759         * UpDownBase.cs: Handle UserEdit on the Text property.
32760         
32761 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
32762
32763         * ComboBox.cs:
32764           - Fixes IntegralHeight
32765           - ToString method
32766
32767 2005-01-21  Jackson Harper  <jackson@ximian.com>
32768
32769         * TabControl.cs: Set the SelectedIndex property when SelectedTab
32770         is set so that the page visibility is updated and the tabs are
32771         sized correctly.
32772
32773 2005-01-21  Jackson Harper  <jackson@ximian.com>
32774
32775         * TabControl.cs: Use cliping rectangle for blitting. Give the
32776         theme the clipping rect so we can do clipping while
32777         drawing. Remove some debug code.
32778
32779 2005-01-21  Jackson Harper  <jackson@ximian.com>
32780
32781         * TabPage.cs: Add a new method so tab pages can force the tab
32782         control to recalculate the tab page sizes.
32783         * TabControl.cs: UpdateOwner needs to make the tab control recalc
32784         sizes.
32785
32786 2005-01-20  Jackson Harper  <jackson@ximian.com>
32787
32788         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
32789
32790 2005-01-20  Jackson Harper  <jackson@ximian.com>
32791
32792         * TreeView.cs: Set the bounds for nodes properly. They were
32793         getting screwed up when checkboxes were not enabled, but images
32794         were.
32795
32796 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
32797
32798         * ListBox.cs:
32799                 - Owner draw support
32800                 - Fixes
32801                 
32802 2005-01-20  Jackson Harper  <jackson@ximian.com>
32803
32804         * XplatUIStructs.cs: More misc keys
32805         * X11Keyboard.cs: Ignore some control keys.
32806
32807 2005-01-20  Jackson Harper  <jackson@ximian.com>
32808
32809         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
32810         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
32811
32812 2005-01-19  Peter Bartok  <pbartok@novell.com>
32813
32814         * Control.cs: Un-selecting the control when it is loosing focus
32815
32816 2005-01-19  Jackson Harper  <jackson@ximian.com>
32817
32818         * TreeView.cs: Hook up to the text controls leave event so we can
32819         end editing when the users clicks outside the text box.
32820         
32821 2005-01-19  Jackson Harper  <jackson@ximian.com>
32822
32823         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
32824         get set in the conversion array.
32825
32826 2005-01-19  Peter Bartok  <pbartok@novell.com>
32827
32828         * Application.cs (ModalRun): Added a call to CreateControl to ensure
32829           focus is properly set
32830         * Button.cs:
32831           - Added missing attributes
32832           - removed styles, those are already set in the base class
32833         * ButtonBase.cs:
32834           - Added missing attributes
32835           - Added clip window styles
32836         * CheckBox.cs: Added missing attributes
32837         * CommonDialog.cs:
32838           - FormParentWindow.CreateParams: Added required clip styles
32839         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
32840           also filters modifier keys
32841         * MessageBox.cs:
32842           - Added assignment of Accept and Cancel button to enable Enter
32843             and Esc keys in MessageBox dialogs
32844           - FormParentWindow.CreateParams: Added required clip styles
32845         * RadioButton.cs: Added missing attributes
32846         * TextControl.cs: No longer draws selection if control does not
32847           have focus
32848         * TextBoxBase.cs:
32849           - Now draws simple rectangle around test area to make it obvious
32850             there's a control. This is a hack until we properly support borders
32851           - A few simple fixes to support selections better, now erases selected
32852             text when typing, and resets selection when using movement keys
32853
32854 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
32855
32856         * UpDownBase.cs: Added some new properties.
32857
32858         * DomainUpDown.cs: Implement a lot to get my test working.
32859
32860 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
32861
32862         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
32863
32864 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
32865
32866         * OSXStructs (WindowAttributes): Fixed csc complaints
32867
32868 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
32869
32870         * XplayUIOSX.cs:
32871           OSXStructs.cs: Initial refactor to move enums and consts into
32872           OSXStructs and use them in the driver for greater readability.
32873
32874 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
32875
32876         * XplatUIOSX.cs: Initial support for Standard Cursors.
32877         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
32878
32879 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
32880
32881         * ComboBox.cs: ability to change style when the ctrl is already
32882         created, missing methods and events, bug fixes, signature fixes
32883
32884 2005-01-19  Peter Bartok  <pbartok@novell.com>
32885
32886         * Cursors.cs (ctor): Added ctor to fix signature
32887
32888 2005-01-18  Peter Bartok  <pbartok@novell.com>
32889
32890         * Button.cs: Implemented DoubleClick event
32891         * ButtonBase.cs:
32892           - Fixed keyboard handling to behave like MS, where the press of
32893             Spacebar is equivalent to a mousedown, and the key release is
32894             equivalent to mouseup. Now a spacebar push will give the same
32895             visual feedback like a mouse click.
32896           - Added missing attributes
32897           - Added ImeModeChanged event
32898           - Added support for generating DoubleClick event for derived classes
32899         * CheckBox.cs:
32900           - Implemented DoubleClick event
32901           - Added missing attributes
32902         * CommonDialog.cs: Added missing attribute
32903         * ContextMenu.cs: Added missing attributes
32904         * RadioButton.cs:
32905           - AutoChecked buttons do not allow to be unselected when clicked
32906             (otherwise we might end up with no selected buttons in a group)
32907           - Added missing attributes
32908           - Implemented DoubleClickEvent
32909         * ThreadExceptionDialog.cs: Enabled TextBox code
32910
32911 2005-01-18  Peter Bartok  <pbartok@novell.com>
32912
32913         * Form.cs: Removed debug output
32914         * Button.cs: Added support for DoubleClick method
32915
32916 2005-01-18  Peter Bartok  <pbartok@novell.com>
32917
32918         * Form.cs:
32919           - Added method to parent window that allows triggering size
32920             calculations when a menu is added/removed
32921           - set_Menu: Cleaned up mess from early days of Form and Control,
32922             now properly triggers a recalc when a menu is added/removed
32923           - Added case to select form itself as focused form if no child
32924             controls exist
32925           - Added PerformLayout call when showing dialog, to ensure properly
32926             placed controls
32927         * Control.cs:
32928           - Select(): Made internal so Form can access it
32929           - Focus(): Only call Xplat layer if required (avoids loop), and sets
32930             status
32931         * Application.cs (Run): Removed hack and calls PerformLayout instead
32932           to trigger calculation when Form becomes visible
32933
32934 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
32935
32936         * ComboBox.cs: fixes for ownerdraw
32937
32938 2005-01-18  Peter Bartok  <pbartok@novell.com>
32939
32940         * TextControl.cs:
32941           - Sentinel is no longer static, each Document gets it's own, this
32942             avoids locking or alternatively overwrite problems when more
32943             than one text control is used simultaneously.
32944           - Switched to use Hilight and HilightText brushes for text selection
32945
32946         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
32947
32948 2005-01-18  Peter Bartok  <pbartok@novell.com>
32949
32950         * Control.cs:
32951           - Hooked up the following events:
32952                 o ControlAdded
32953                 o ControlRemoved
32954                 o HandleDestroyed
32955                 o ImeModeChanged
32956                 o ParentChanged
32957                 o TabStopChanged
32958                 o Invalidated
32959                 o SystemColorsChanged
32960                 o ParentFontChanged
32961                 o Move
32962           - Removed debug output
32963           - Added a call to the current theme's ResetDefaults when a color change
32964             is detected
32965         * Form.cs: Now setting the proper ImeMode
32966         * Theme.cs: Defined a method to force recreation of cached resources
32967           and rereading of system defaults (ResetDefaults())
32968         * ThemeWin32Classic.cs: Added ResetDefaults() stub
32969
32970 2005-01-17  Peter Bartok  <pbartok@novell.com>
32971
32972         * Control.cs: Added missing attributes
32973
32974 2005-01-17  Jackson Harper  <jackson@ximian.com>
32975
32976         * TreeNode.cs: Implement editing. Add missing properties selected
32977         and visible.
32978         * TreeView.cs: Implement node editing. Also some fixes to use
32979         Invalidate (invalid area) instead of Refresh when selecting.
32980
32981 2005-01-17  Peter Bartok  <pbartok@novell.com>
32982
32983         * Control.cs:
32984           - Implemented InvokeGotFocus() method
32985           - Implemented InvokeLostFocus() method
32986           - Implemented InvokePaint() method
32987           - Implemented InvokePaintBackground() method
32988           - Implemented InvokeClick() method
32989           - Implemented FindForm() method
32990           - Implemented RectangleToClient() method
32991           - Implemented ClientToRectangle() method
32992           - Implemented ResetBackColor() method
32993           - Implemented ResetCursor() method
32994           - Implemented ResetFont() method
32995           - Implemented ResteForeColor() method
32996           - Implemented ResetImeMode() method
32997           - Implemented ResetLeftToRight() method
32998           - Implemented ResetText() method
32999           - Implemented Scale() methods
33000           - Implemented ScaleCore() method
33001           - Implemented Update() method
33002           - Removed unused variables
33003           - Stubbed AccessibilityNotifyClients and
33004             ControlAccessibleObject.NotifyClients() methods (dunno what to do
33005             with those yet)
33006           - Now setting proper default for RightToLeft property
33007           - Fixed bug in SetClientSizeCore that would cause windows to get
33008             really big
33009           - Now sending Click/DoubleClick events
33010           - Now selecting controls when left mouse button is clicked on
33011             selectable control
33012         * AccessibleEvents.cs: Added
33013         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
33014         * XplatUIOSX.cs: Stubbed UpdateWindow() method
33015         * XplatUIWin32.cs: Implemented UpdateWindow() method
33016         * XplatUIX11.cs: Implemented UpdateWindow() method
33017         * Form.cs: Removed stray semicolon causing CS0162 warning
33018         * ThemeWin32Classic.cs: Fixed unused variable warnings
33019         * ScrollableControl.cs: Now calls base method for ScaleCore
33020         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
33021           style to avoid interference with internal click handler (which is
33022           different than standard Control click handling)
33023         * RadioButton.cs:
33024           - Now unchecks all sibling radio buttons when control is
33025             selected (Fixes #68756)
33026           - Removed internal tabstop variable, using the one inherited from
33027             Control
33028
33029 2005-01-17  Jackson Harper  <jackson@ximian.com>
33030
33031         * NavigateEventArgs.cs: Fix base type.
33032         * LinkLabel.cs: Sig fix
33033         
33034 2005-01-17  Jackson Harper  <jackson@ximian.com>
33035
33036         * TreeView.cs: Only invalidate the effected nodes bounds when
33037         selecting nodes.
33038
33039 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
33040
33041         * XplatUIWin32.cs: fixes Win32 marshaling
33042         * XplatUIX11.cs: fixes method signature
33043
33044 2005-01-17  Peter Bartok  <pbartok@novell.com>
33045
33046         * XplatUIX11.cs: Clean up resources when we no longer need them
33047
33048 2005-01-17  Peter Bartok  <pbartok@novell.com>
33049
33050         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
33051           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
33052           and DestroyCursor() methods.
33053         * Cursor.cs: Partially implemented, now supports standard cursors;
33054           still contains some debug code
33055         * Cursors.cs: Implemented class
33056         * Control.cs:
33057           - WndProc(): Added handling of WM_SETCURSOR message, setting the
33058             appropriate cursor
33059           - Implemented Cursor property
33060           - Replaced break; with return; more straightforwar and possibly
33061             faster
33062           - Now properly setting the result for WM_HELP
33063         * X11Structs.cs: Added CursorFontShape enum
33064         * XplatUIStructs.cs:
33065           - Added StdCursor enum (to support DefineStdCursor() method)
33066           - Added HitTest enum (to support sending WM_SETCURSOR message)
33067         * XplatUIX11.cs:
33068           - Now sends the WM_SETCURSOR message
33069           - Implemented new cursor methods
33070         * XplatUIOSX.cs: Stubbed new cursor methods
33071         * XplatUIWin32.cs:
33072           - Implemented new cursor methods
33073           - Added GetSystemMetrics function and associated enumeration
33074
33075 2005-01-15  Peter Bartok  <pbartok@novell.com>
33076
33077         * Control.cs:
33078           - WndProc(): Now handles EnableNotifyMessage
33079           - SelectNextControl(): Fixed bug where if no child or sibling
33080             controls exist we looped endlessly
33081
33082 2005-01-14  Jackson Harper  <jackson@ximian.com>
33083
33084         * TreeView.cs: Recalculate the tab pages when a new one is added
33085         so that the proper bounding rects are created.
33086
33087 2005-01-14  Jackson Harper  <jackson@ximian.com>
33088
33089         * TreeView.cs: Draw a gray box instead of a grip in the lower
33090         right hand corner when there are both horizontal and vertical
33091         scroll bars.
33092
33093 2005-01-14  Jackson Harper  <jackson@ximian.com>
33094
33095         * Control.cs: When erasing backgrounds use FromHwnd instead of
33096         FromHdc when there is a NULL wparam. This occurs on the X driver.
33097         * XplatUIX11.cs: Set the wparam to NULL.
33098
33099 2005-01-13  Jackson Harper  <jackson@ximian.com>
33100
33101         * PictureBox.cs: Implement missing methods (except ToString, need
33102         to test that on windows) and events. When visibility is changed we
33103         need to redraw the image because the buffers are killed. When size
33104         is changed refresh if the sizemode needs it.
33105
33106 2005-01-13  Peter Bartok  <pbartok@novell.com>
33107
33108         * Control.cs (SelectNextControl): Was using wrong method to select
33109           a control
33110
33111 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
33112
33113         * ComboBox.cs: fixes dropstyle
33114
33115 2005-01-13  Peter Bartok  <pbartok@novell.com>
33116
33117         * Form.cs:
33118           - Implemented Select() override
33119           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
33120           - Now sets keyboard focus on startup
33121         * Control.cs (SelectNextControl): Now properly handles directed=true
33122         * TextBoxBase.cs:
33123           - WndProc: Now passes tab key on to base if AcceptTabChar=false
33124           - Added (really bad) focus rectangle (mostly for testing)
33125         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
33126           to enforce redraw on focus changes
33127         * ContainerControl.cs:
33128           - Fixed detection of Shift-Tab key presses
33129           - Fixed traversal with arrow keys
33130         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
33131           gonna keep this or if it's complete yet
33132         
33133 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
33134
33135         * ComboBox.cs: missing properties, fixes
33136
33137 2005-01-13  Peter Bartok  <pbartok@novell.com>
33138
33139         * Panel.cs (ctor): Setting Selectable window style to off
33140         * Splitter.cs (ctor): Setting Selectable window style to off
33141         * GroupBox.cs (ctor): Setting Selectable window style to off
33142         * Label.cs (ctor): Setting Selectable window style to off
33143
33144 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
33145
33146         * UpDownBase.cs (InitTimer): If the timer has been already
33147         created, enable it.
33148
33149         Use a TextBox instead of a Label.
33150
33151 2005-01-12  Jackson Harper  <jackson@ximian.com>
33152
33153         * TreeView.cs: Refresh the tree after sorting the nodes. Always
33154         draw the connecting node lines (when ShowLines is true).
33155         * TreeNode.cs: The nodes index can now be updated. This is used
33156         when a node collection is sorted.
33157         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
33158         insert or an existing unsorted node collection can be sorted.
33159         
33160 2005-01-12  Peter Bartok  <pbartok@novell.com>
33161
33162         * ContainerControl.cs: Implemented ProcessDialogKeys()
33163
33164 2005-01-12  Peter Bartok  <pbartok@novell.com>
33165
33166         * Control.cs:
33167           - Implemented SelectNextControl() method
33168           - Several focus related bug fixes
33169           - Fixed Docking calculations to match MS documentation and
33170             behaviour
33171
33172 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
33173
33174         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
33175         bug fixes
33176
33177 2005-01-12  Peter Bartok  <pbartok@novell.com>
33178
33179         * Control.cs:
33180           - Fixed broken Contains() method
33181           - Implemented GetNextControl() method. Finally. This is the pre-
33182             requisite for focus handling.
33183
33184 2005-01-12  Peter Bartok  <pbartok@novell.com>
33185
33186         * OSXStrucs.cs: Added
33187
33188 2005-01-12  Peter Bartok  <pbartok@novell.com>
33189
33190         * XplatUIWin32.cs:
33191           - Removed PeekMessageFlags
33192           - Implemented SetWindowStyle() method
33193         * XplatUIStructs.cs: Added PeekMessageFlags
33194         * X11Structs: Added missing border_width field to XWindowChanges struct
33195         * XplatUIX11.cs:
33196           - PeekMessage: Now throws exception if flags which are not yet
33197             supported are passed
33198           - Implemented SetWindowStyle() method
33199           - Fixed SetZOrder to handle AfterHwnd properly
33200         * XplatUI.cs: Added SetWindowStyle() method
33201         * XplatUIDriver.cs: Added SetWindowStyle() abstract
33202         * Control.cs:
33203           - Implemented UpdateStyles() method
33204           - Implemented UpdateZOrder() method
33205         * XplatUIOSX.cs: Added SetWindowStyle() stub
33206
33207 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
33208
33209         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
33210         button mouse).
33211
33212
33213 2005-01-11  Jackson Harper  <jackson@ximian.com>
33214
33215         * TreeView.cs: Still need to draw lines to siblings even if out of
33216         the current node is out of the clip.
33217
33218 2005-01-11  Jackson Harper  <jackson@ximian.com>
33219
33220         * TreeView.cs: When setting the hbar/vbar/grip position use
33221         SetBounds so that perform layout is only called once. Also suspend
33222         and resume layout so layout is only done once for all controls.
33223         - Removed some debug fluff
33224         * SizeGrip.cs: Call base implmentation in overriding methods.
33225         - When visibility is changed the drawing buffers are killed so we
33226         need to redraw.
33227
33228 2005-01-11  Jackson Harper  <jackson@ximian.com>
33229
33230         * TreeView.cs: Calculate the open node count while drawing. This
33231         saves us an entire tree traversal for every paint operation. Use
33232         a member var for the open node count so less vars are passed around.
33233
33234 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
33235
33236         * MonthCalendar.cs:
33237         - fixed selection to use mousemove, not mouse polling on timer
33238         * ThemeWin32Classic.cs
33239         - removed redundant unused variable "no_more_content"
33240         
33241 2005-01-11  Peter Bartok  <pbartok@novell.com>
33242
33243         * XplatUIX11.cs (DoEvents): Needs to return when no more events
33244           are pending, so it now calls PeekMessage instead of GetMessage;
33245           implemented a incomplete version of PeekMessage
33246         
33247 2005-01-11  Peter Bartok  <pbartok@novell.com>
33248
33249         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
33250           I18n issues
33251         * TextBoxBase.cs: Added sending of TextChanged event
33252
33253 2005-01-10  Jackson Harper  <jackson@ximian.com>
33254
33255         * TreeView.cs: Try not to draw outside the clipping rectangle on
33256         each node element.
33257
33258 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
33259
33260         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
33261
33262 2005-01-10  Jackson Harper  <jackson@ximian.com>
33263
33264         * TreeView.cs:
33265         - Implement fast scrolling. Now only the newly
33266         exposed nodes are drawn and the old image is moved using the
33267         XplatUI::ScrollWindow method.
33268         - Factor in height of nodes when calculating whether or not the
33269         node is in the clipping rect.
33270
33271 2005-01-10  Jackson Harper  <jackson@ximian.com>
33272
33273         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
33274
33275 2005-01-10  Peter Bartok  <pbartok@novell.com>
33276
33277         * Application.cs: Added temporary hack to resolve all our resize
33278           required issues on startup. This will get fixed properly at
33279           some point in the future
33280
33281 2005-01-10  Jackson Harper  <jackson@ximian.com>
33282
33283         * SizeGrip.cs: New internal class that is used as a sizing
33284         grip control...hence the name.
33285
33286 2005-01-10  Peter Bartok  <pbartok@novell.com>
33287
33288         * Control.cs: Implemented proper TabIndex handling, now assigning
33289           a tabindex when a control is added to a container
33290         * GroupBox.cs (ctor): Now sets the Container style bit, required
33291           for Control.GetNextControl()
33292
33293 2005-01-09  Jackson Harper  <jackson@ximian.com>
33294
33295         * TextBoxBase.cs: Clear window when scrolling (fixes build).
33296
33297 2005-01-09  Peter Bartok <pbartok@novell.com>
33298
33299         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
33300           XplatUIX11.cs: Added ability to control ScrollWindow expose and
33301           an overload for ScrollWindow to allow only scrolling a rectangle
33302
33303 2005-01-09  Peter Bartok <pbartok@novell.com>
33304
33305         * Form.cs:
33306           - Implemented SetDesktopBounds method
33307           - Implemented SetDesktopLocation method
33308
33309 2005-01-08  Jackson Harper  <jackson@ximian.com>
33310
33311         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
33312         the node count has changed, this removes to VScroll::Refresh calls
33313         when drawing.
33314
33315 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
33316
33317         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
33318
33319 2005-01-07  Jackson Harper  <jackson@ximian.com>
33320
33321         * TreeNode.cs: Just update the single node when it is
33322         checked. Don't refresh after toggling, the Expand/Collapse already
33323         handles this.
33324         * TreeView.cs: Respect clipping a little more when drawing. Try
33325         not to redraw things that don't need to be redrawn. Just hide the
33326         scrollbars when they are no longer needed instead of removing
33327         them, so they don't have to be created again and again.
33328         
33329 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
33330
33331         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
33332         coordinates to window space to place the caret properly, FIXED.
33333         Implement GetWindowState & SetWindowState
33334
33335 2005-01-06  Peter Bartok <pbartok@novell.com>
33336
33337         * Form.cs:
33338           - Implemented ClientSize property
33339           - Implemented DesktopBounds property
33340           - Implemented DesktopLocation property
33341           - Implemented IsRestrictedWindow property
33342           - Implemented Size property
33343           - Implemented TopLevel property
33344           - Implemented FormWindowState property
33345         * Control.cs:
33346           - Implemented GetTopLevel() method
33347           - Implemented SetTopLevel() method
33348         * X11Structs.cs (Atom):
33349           - Added AnyPropertyType definition
33350           - Added MapState definiton and updated XWindowAttribute struct
33351         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
33352         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
33353         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
33354         * XplatUIWin32.cs:
33355           - Implemented GetWindowState() and SetWindowState() methods
33356           - Fixed Win32GetWindowLong return type
33357         * XplatUIX11.cs:
33358           - Introduced central function for sending NET_WM messages
33359           - Implemented GetWindowState() and SetWindowState() methods
33360         * TextBoxBase.cs (set_Lines):
33361           - Now uses Foreground color for text added via Text property (Duh!)
33362           - Added code to remember programmatically requested size (fixes
33363             behaviour when Multiline is set after Size)
33364           - Added AutoSize logic
33365
33366 2005-01-06  Jackson Harper  <jackson@ximian.com>
33367
33368         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
33369
33370 2005-01-06  Jackson Harper  <jackson@ximian.com>
33371
33372         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
33373         set to less then 0.
33374
33375 2005-01-06  Jackson Harper  <jackson@ximian.com>
33376
33377         * ScrollableControl.cs: Lazy init the scrollbars.
33378         
33379 2005-01-06  Jackson Harper  <jackson@ximian.com>
33380
33381         * Theme.cs: Speed up getting pens and solid brushes, by using
33382         their ARGB as a hash instead of tostring and not calling Contains.
33383
33384 2005-01-06  Peter Bartok <pbartok@novell.com>
33385
33386         * Form.cs:
33387           - Implemented OnActivated and OnDeactivate event trigger
33388           - Implemented Activate() method
33389           - Fixed ShowDialog() to activate the form that was active before
33390             the dialog was shown
33391         * XplatUIX11.cs:
33392           - Added global active_window var that tracks the currently active
33393             X11 window
33394           - Now always grabs Property changes from the root window to always
33395             catch changes on the active window property
33396           - Added code to PropertyNotify handler to send Active/Inactive
33397             messages when state changes. This puts X11 and Win32 en par on
33398             WM_ACTIVATE notifications (except for double notifications when
33399             the user clicks away from our modal window to another one of our
33400             windows)
33401
33402 2005-01-05  Jackson Harper  <jackson@ximian.com>
33403
33404         * ImageList.cs: Implment ctor
33405
33406 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
33407
33408         * XplatUIOSX.cs: Implement Activate/SetTopmost
33409
33410 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
33411
33412         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
33413
33414 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
33415
33416         * XplatUIOSX.cs: Implement GetActive/SetFocus.
33417
33418 2005-01-05  Peter Bartok <pbartok@novell.com>
33419
33420         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
33421           XplatUIOSX.cs: Added GetActive method to return the currently
33422           active window for the application (or null, if none is active)
33423         * Form.cs:
33424           - Implemented ActiveForm
33425           - Commented out owner assignment for modal dialogs (causes problems
33426             on Win32, since the owner will be disabled)
33427           - Reworked some Active/Focus handling (still incomplete)
33428         * CommonDialog.cs: Commented out owner assignment for modal dialogs
33429           (causes problems on Win32, since the owner will be disabled)
33430         * IWin32Window: Added ComVisible attribute
33431
33432 2005-01-05  Peter Bartok <pbartok@novell.com>
33433
33434         * ToolTip.cs (WndProc): Enable setting focus now that we have the
33435           required XplatUI functions.
33436
33437 2005-01-05  Peter Bartok <pbartok@novell.com>
33438
33439         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
33440           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
33441           to implement focus and activation handling; still incomplete and
33442           with debug output
33443
33444 2005-01-04  Peter Bartok <pbartok@novell.com>
33445
33446         * TextBoxBase.cs: Changed access level for Document property to
33447           match switch to internal for TextControl
33448
33449 2005-01-04  Peter Bartok <pbartok@novell.com>
33450
33451         * AccessibleObject: Added ComVisible attribute
33452
33453 2005-01-04  Jackson Harper  <jackson@ximian.com>
33454
33455         * X11Keyboard.cs: Remove unneeded var.
33456
33457 2005-01-04  Jackson Harper  <jackson@ximian.com>
33458
33459         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
33460         but PAINT.
33461         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
33462         ClientMessage. This makes apps exit cleanly (more often).
33463         
33464 2005-01-04  Jackson Harper  <jackson@ximian.com>
33465
33466         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
33467         handling focus, return correct colors and fonts,
33468         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
33469         handle selection, horizontal scrolling, and mouse interaction.
33470
33471 2005-01-04  Peter Bartok <pbartok@novell.com>
33472
33473         * ICommandExecutor.cs: Added
33474         * IDataGridColumnStyleEditingNotificationService.cs: Added
33475         * IFeatureSupport.cs: Added
33476         * IFileReaderService.cs: Added
33477         * IDataObject.cs: Added ComVisible attribute
33478         * AmbientProperties.cs: Added
33479         * BaseCollection.cs: Added missing attributes
33480         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
33481         * BaseCollection.cs: Added missing attributes
33482         * Binding.cs: Added TypeConverter attribute
33483         * BindingContext.cs: Added DefaultEvent attribute
33484         * BindingsCollection.cs: Added DefaultEvent attribute
33485         * Button.cs: Added DefaultValue attribute
33486         * DragEventArgs.cs: Added ComVisible attribute
33487         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
33488         * KeyEventArgs.cs: Added ComVisible attribute
33489         * KeyPressEventArgs.cs: Added ComVisible attribute
33490         * MouseEventArgs.cs: Added ComVisible attribute
33491         * NavigateEventArgs.cs: Added
33492         * NavigateEventHandler.cs: Added
33493         * FeatureSupport.cs: Added
33494         * OSFeature.cs: Added
33495         * Theme.cs: Added abstract Version property to support OSFeature
33496         * ThemeWin32Classic.cs: Added Version property to
33497           support OSFeature.Themes
33498         * ProgressBar.cs: Removed OnPaintBackground override, not required since
33499           the proper styles to avoid background drawing are set, also doesn't
33500           match MS signature
33501         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
33502         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
33503         * ScrollEventArgs.cs: Added ComVisible attribute
33504         * SplitterEventArgs.cs: Added ComVisible attribute
33505         * AccessibleSelection.cs: Added Flags attribute
33506         * Appearance.cs: Added ComVisible attribute
33507         * Border3DSide.cs: Added ComVisible attribute
33508         * Border3DStyle.cs: Added ComVisible attribute
33509         * BorderStyle.cs: Added ComVisible attribute
33510         * DragAction.cs: Added ComVisible attribute
33511         * ErrorBlinkStyle.cs: Added
33512         * ScrollEventType.cs: Added ComVisible attribute
33513         * AnchorStyles.cs: Added Editor attribute
33514         * DockStyle.cs: Added Editor attribute
33515         * HorizontalAlignment.cs: Added ComVisible attribute
33516         * HelpEventArgs.cs: Added ComVisible attribute
33517         * PaintEventArgs.cs: Added IDisposable
33518
33519 2005-01-04  Peter Bartok <pbartok@novell.com>
33520
33521         * TextControl.cs: Switched Line, LineTag and Document classes to
33522           internal
33523
33524 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
33525
33526         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
33527         Simple mode, fixes, IntegralHeight, etc.
33528
33529 2005-01-04  Peter Bartok <pbartok@novell.com>
33530
33531         * TextBoxBase.cs: Using proper font variable now
33532
33533 2005-01-04  Peter Bartok <pbartok@novell.com>
33534
33535         * Form.cs (ShowDialog): Set parent to owner, if provided
33536         * GroupBox.cs: Removed unused vars
33537         * TextControl.cs:
33538           - Added GetHashCode() for Document and LineTag classes
33539           - Removed unused variables
33540           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
33541             to allow translation between continuous char position and line/pos
33542         * CheckBox.cs: Removed vars that are provided by base class
33543         * RadioButton.cs: Removed vars that are provided by base class, added
33544           new keyword where required
33545         * LinkLabel.cs: Added new keyword where required
33546         * Control.cs (WndProc): Removed unused variable
33547         * TextBoxBase.cs:
33548           - Finished SelectionLength property
33549           - Implemented SelectionStart property
33550           - Implemented Text property
33551           - Removed unused vars
33552         * MessageBox.cs: Added new keyword where required
33553         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
33554           WndProc signature
33555         * MenuAPI.cs: Added new keyword where required
33556         * ButtonBase.cs: Removed vars that are provided by base class, added
33557           new keyword where required
33558         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
33559           argument to double, to allow compiling with csc 2.0 (Atsushi ran
33560           into this)
33561         * Application.cs (Run): Now triggers the ThreadExit event
33562         * CommonDialog.cs: Added new keyword where required; now properly sets
33563           parent (owner) for dialog
33564         * XplatUIX11.cs: Commented out unused vars
33565         * StatusBar.cs: Fixed signature for Text property
33566         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
33567
33568 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
33569
33570         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
33571         TrackBar.cs, MonthCalendar.cs: remove unused vars
33572
33573 2005-01-03  Jackson Harper  <jackson@ximian.com>
33574
33575         * ThemeWin32Classic.cs:
33576         * X11Keyboard.cs: Remove unused vars.
33577
33578 2005-01-03  Peter Bartok  <pbartok@novell.com>
33579
33580         * TextBox.cs:
33581           - set_Text: Tied into TextControl
33582           - set_TextAlignment: Tied into TextControl
33583         * TextControl.cs:
33584           - Added alignment properties and implemented alignment handling
33585             and drawing (still has a bug, not generating proper expose events)
33586           - Added new Line() constructor to allow passing the line alignment
33587           - Fixed selection setting, properly handling end<start now
33588           - Added aligment considerations to RecalculateDocument()
33589         * TextBoxBase.cs:
33590           - Now properly enforces control height for single line controls
33591           - Added support for CharacterCasing
33592           - Added IsInputKey override
33593           - Fixed Keys.Enter logic
33594           - Added SetBoundsCore override
33595           - Fixed mouse selection handling
33596
33597 2005-01-03  Jackson Harper  <jackson@ximian.com>
33598
33599         * TreeView.cs:
33600           - Collapse and uncheck all nodes when CheckBoxes is disabled.
33601           - Checkboxes are always aligned to the bottom of the node,
33602           regardless of item height.
33603           - Use the node bounds to draw the text so we can center it when
33604           the item height is greater then the font height.
33605           - Node::Bounds are only the text part of the node.
33606         * TreeNode.cs: New method to combine collapsing and unchecking all
33607           nodes recursively.
33608
33609 2005-01-02  Jackson Harper  <jackson@ximian.com>
33610
33611         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
33612         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
33613         tree when a check is changed. TODO: Only refresh the checked node.
33614
33615 2004-12-30  Jackson Harper  <jackson@ximian.com>
33616
33617         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
33618         * TreeNode.cs: When collapsing make sure to never collapse the
33619         root node.
33620
33621 2004-12-29  Jackson Harper  <jackson@ximian.com>
33622
33623         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
33624         
33625 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
33626
33627         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
33628
33629 2004-12-28  Peter Bartok  <pbartok@novell.com>
33630
33631         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
33632           not yet assigned
33633
33634 2004-12-28  Peter Bartok  <pbartok@novell.com>
33635
33636         * Control.cs (WndProc): Added WM_HELP handler, now generates
33637           HelpRequested event
33638         * Form.cs: Added HelpButton property and required support code
33639         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
33640
33641 2004-12-28  Peter Bartok  <pbartok@novell.com>
33642
33643         * CommonDialog.cs:
33644           - Made DialogForm.owner variable internal
33645           - Added check to ensure owner form is set before setting
33646             owner properties in CreateParams
33647
33648 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
33649
33650         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
33651           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
33652           GetCursorPos.  Fix major visibility issues.  Rework the windowing
33653           system to support borderless/titleless windows (implements menus).
33654           Fix GetWindowPos.  Implement initial background color support for
33655           views.
33656
33657 2004-12-28  Peter Bartok  <pbartok@novell.com>
33658
33659         * Form.cs (get_CreateParams): Make sure we have an owner before using
33660           the owner variable. Implement proper default if no owner exists
33661
33662 2004-12-28  Peter Bartok  <pbartok@novell.com>
33663
33664         * In preparation for making Managed.Windows.Forms the default build target
33665           for System.Windows.Forms, the following stubbed files were added.
33666           Dialogs are currently being implemented by contributors and are only
33667           short-term place holders.
33668         * ColorDialog.cs: Initial check-in (minmal stub)
33669         * DataGrid.cs: Initial check-in (minimal stub)
33670         * DataGridLineStyle.cs: Initial check-in (minimal stub)
33671         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
33672         * DataGridTableStyle.cs: Initial check-in (minimal stub)
33673         * FontDialog.cs: Initial check-in (minimal stub)
33674         * FileDialog.cs: Initial check-in (minimal stub)
33675         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
33676         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
33677         * OpenFileDialog: Initial check-in (minimal stub)
33678         * IComponentEditorPageSite.cs: Initial check-in
33679         * Splitter.cs: Initial check-in (for Jackson)
33680         * SplitterEventArgs.cs: Initial check-in (for Jackson)
33681         * SplitterEventHandler.cs: Initial check-in (for Jackson)
33682         * TextBox.cs: Initial check-in; still needs some wiring to
33683           TextControl backend
33684         * Form.cs: Implemented ControlBox property
33685         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
33686         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
33687         * TextControl.cs: Added selection functionality; added todo header
33688         * TextBoxBase.cs:
33689           - Implemented Lines property
33690           - Implemented TextHeight property
33691           - Implemented SelectedText property
33692           - Implemented SelectionLength property
33693           - Implemented SelectAll method
33694           - Implemented ToString method
33695           - Removed and cleaned up some debug code
33696           - Implemented (still buggy) mouse text selection
33697
33698 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
33699
33700         * ComboBox.cs: Complete DropDownList implementation, fixes.
33701
33702 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
33703
33704         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
33705         * ComboBoxStyle.cs: ComboBoxStyle enum
33706         * ComboBox.cs: Initial work on ComboBox control
33707
33708 2004-12-21  Peter Bartok  <pbartok@novell.com>
33709
33710         * Control.cs (ctor, CreateParams): Moved setting of is_visible
33711           forward so that anything that creates a window gets the default,
33712           also no longer uses Visible property in CreateParams to avoid
33713           walking up the parent chain and possibly get the wrong visible
33714           status. Fixed IsVisible to no longer walk up to the parent.
33715
33716 2004-12-21  Peter Bartok  <pbartok@novell.com>
33717
33718         * Form.cs (ShowDialog): Unset modality for the proper window
33719  
33720 2004-12-20  Peter Bartok  <pbartok@novell.com>
33721
33722         * CommonDialog.cs: Initial check-in
33723
33724 2004-12-20  Peter Bartok  <pbartok@novell.com>
33725
33726         * Control.cs (Visible): Now uses the parent window instead of the
33727           client area window for the property
33728
33729         * Form.cs
33730           - ShowDialog(): Now uses the proper window for modality
33731           - The default visibility state for the form parent is now false. This
33732             will prevent the user from seeing all the changes to the form and
33733             its controls before the application hits Application.Run()
33734           - Removed some stale commented out code
33735
33736         * NativeWindow.cs:
33737           - Added FindWindow() method to have a method to check for existence
33738             of a window handle
33739           - Added ability to override default exception handling (for example
33740             when debugging with VS.Net; to do this the ExternalExceptionHandler
33741             define must be set
33742           - Removed some useless debug output
33743
33744         * XplatUIX11.cs:
33745           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
33746             not working as expected
33747           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
33748             property to allow switching back to the modal window if focus is
33749             given to another one of our windows (Application Modal)
33750           - Now only sets override_redirect if we create a window
33751             without WS_CAPTION
33752           - Moved EventMask selection before mapping of newly created window
33753             so we can catch the map event as well
33754           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
33755           - Added various Atom related DllImports
33756           - Implemented Exit() method
33757           - .ctor() : No longer shows window if WS_VISIBLE is not defined
33758             in the CreateParams
33759
33760         * MessageBox.cs: Now properly deals with the FormParent window by
33761           providing an override the FormParent CreateParams property to
33762           set as POPUP instead of OVERLAPPED window.
33763
33764 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
33765
33766         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
33767         Minor code cleanup.
33768
33769 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
33770         
33771         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
33772
33773 2004-12-18  Peter Bartok  <pbartok@novell.com>
33774
33775         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
33776           implementing SetModal() method
33777
33778 2004-12-18  Peter Bartok  <pbartok@novell.com>
33779
33780         * X11Structs.cs (XGCValues): Fixed type of function element
33781         * XplatUI.cs: Added ScrollWindow() method
33782         * XplatUIDriver.cs: Added ScrollWindow() abstract
33783         * XplatUIWin32.cs: Implemented ScrollWindow() method
33784         * XplatUIX11.cs: Implemented ScrollWindow() method
33785         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
33786
33787 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
33788
33789         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
33790         Some more keyboard support (INCOMPLETE)
33791
33792 2004-12-17  Peter Bartok  <pbartok@novell.com>
33793
33794         * TextControl.cs:
33795         - Added color attribute to line tags.
33796         - Added color argument to all functions dealing with tags
33797         - Added color argument support to various functions
33798         - Fixed miss-calculation of baseline/shift in certain circumstances
33799
33800         * TextBoxBase.cs: Added new color option to test code
33801
33802 2004-12-17  Jackson Harper  <jackson@ximian.com>
33803
33804         * TreeNode.cs:
33805         * MonthCalendar.cs: Signature fixes
33806
33807 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
33808
33809         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
33810         keyboard event moved it.  Create a new graphics context for each paint resolves this
33811
33812 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
33813
33814         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
33815         Make caret exist and go blink blink.  Initial keyboard support.
33816         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
33817         works.
33818
33819 2004-12-17  Jackson Harper  <jackson@ximian.com>
33820
33821         * XplatUIStructs.cs: Updated set of virtual keycodes.
33822         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
33823
33824 2004-12-17  Jackson Harper  <jackson@ximian.com>
33825
33826         * XplatUIX11.cs: Prune old keyboard code.
33827
33828 2004-12-17  Jackson Harper  <jackson@ximian.com>
33829
33830         * XplatUIX11.cs: When generating mouse wparams get the modifier
33831         keys from the ModifierKeys property.
33832
33833 2004-12-17  Jackson Harper  <jackson@ximian.com>
33834
33835         * X11Keyboard.cs: Send up/down input when generating
33836         messages. Remove some unused vars.
33837
33838 2004-12-17  Jackson Harper  <jackson@ximian.com>
33839
33840         * TabControl.cs:
33841         * TreeView.cs: get rid of warnings.
33842
33843 2004-12-17  Jackson Harper  <jackson@ximian.com>
33844
33845         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
33846
33847 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
33848
33849         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
33850           CheckedListBox.cs: Implementation
33851
33852 2004-12-17  Peter Bartok  <pbartok@novell.com>
33853
33854         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
33855
33856 2004-12-16  Peter Bartok  <pbartok@novell.com>
33857
33858         * TextControl.cs:
33859           - InsertCharAtCaret(): Fixed start pos fixup
33860           - CaretLine_get: No longer derives the line from the tag, the tag
33861             could be stale if lines in the document have been added or deleted
33862           - RebalanceAfterDelete(): Fixed bug in balancing code
33863           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
33864           - Line.Streamline(): Now can also elminate leading empty tags
33865           - DumpTree(): Added a few more tests and prevented exception on
33866             uninitialized data
33867           - Added Debug section for Combining lines
33868           - Delete(): Now copies all remaining properties of a line
33869           
33870         * TextBoxBase.cs:
33871           - Left mousebutton now sets the caret (and middle button still acts
33872             as formatting tester, which must go away soon)
33873           - Added Debug section for Deleting/Combining lines
33874           - Fixed calculations for UpdateView after Combining lines
33875
33876 2004-12-16  Peter Bartok  <pbartok@novell.com>
33877
33878         * TextControl.cs: Now properly aligns text on a baseline, using the
33879           new XplatUI.GetFontMetrics() method. Simplified several calculations
33880         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
33881           defined
33882
33883 2004-12-16  Peter Bartok  <pbartok@novell.com>
33884
33885         * XplatUI.cs: Added GetFontMetrics() method
33886         * XplatUIDriver.cs: Added GetFontMetrics() abstract
33887         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
33888           into libgdiplus, our private GetFontMetrics function
33889         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
33890         * XplatUIWin32.cs: Implemented GetFontMetrics() method
33891
33892 2004-12-16  Jackson Harper  <jackson@ximain.com>
33893
33894         * XplatUIStruct.cs: Add enum for dead keys
33895         * X11Keyboard.cs: Map and unmap dead keys.
33896
33897 2004-12-16  Jackson Harper  <jackson@ximian.com>
33898
33899         * X11Keyboard.cs: Detect and use the num lock mask.
33900
33901 2004-12-16  Peter Bartok  <pbartok@novell.com>
33902
33903         * Control.cs (CreateGraphics): Added check to make sure the
33904           handle of the window exists before calling Graphics.FromHwnd()
33905
33906 2004-12-16  Peter Bartok  <pbartok@novell.com>
33907
33908         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
33909           contains a lot of code that's not supposed to be there for the
33910           real thing, but required for developing/testing the textbox
33911           backend.
33912
33913 2004-12-16  Peter Bartok  <pbartok@novell.com>
33914
33915         * TextControl.cs:
33916         - Fixed Streamline method
33917         - Added FindTag method to Line
33918         - Added DumpTree method for debugging
33919         - Added DecrementLines() method for deleting lines
33920         - Fixed UpdateView to update the cursor to end-of-line on single-line
33921           updates
33922         - Added PositionCaret() method
33923         - Fixed MoveCaret(LineDown) to move into the last line, too
33924         - Added InsertChar overload
33925         - Fixed InsertChar tag offset calculations
33926         - Added DeleteChar() method
33927         - Added Combine() method for folding lines
33928         - Fixed Delete() method, no longer allocates wasted Line object and
33929           now copies all properties when swapping nodes
33930         - Delete() method now updates document line counter
33931
33932 2004-12-15  Jackson Harper  <jackson@ximian.com>
33933
33934         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
33935         * X11Keyboard.cs: Expose the currently selected modifier keys
33936         through a property.
33937
33938 2004-12-15  Peter Bartok  <pbartok@novell.com>
33939
33940         * TextControl.cs: Initial check-in. Still incomplete
33941
33942 2004-12-15  Jackson Harper  <jackson@ximian.com>
33943
33944         * TreeNode.cs:
33945         * TreeView.cs: Fix build on csc (second time today ;-))
33946
33947 2004-12-15  Jackson Harper  <jackson@ximian.com>
33948
33949         * TreeView.cs: Store the treenodes plus/minus box bounds when it
33950         is calculated and use this for click testing.
33951         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
33952
33953 2004-12-15  Jackson Harper  <jackson@ximian.com>
33954
33955         * TreeView.cs: Pass the nodes image index to the image list when
33956         drawing that image.
33957
33958 2004-12-15  Jackson Harper  <jackson@ximian.com>
33959
33960         * X11Keyboard.cs: Set messages hwnd.
33961         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
33962         post_message calls.
33963
33964 2004-12-15  Jackson Harper  <jackson@ximian.com>
33965
33966         * X11Keyboard.cs: Fix to compile with csc.
33967         
33968 2004-12-15  Jackson Harper  <jackson@ximian.com>
33969
33970         * X11Structs.cs: Add key mask values
33971         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
33972         * X11Keyboard.cs: New file - Extrapolates and interpolates key
33973         down/up foo into WM_CHAR foo
33974         * KeyboardLayouts.cs: Common keyboard layouts
33975         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
33976         post messages into the main queue.
33977
33978 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
33979
33980         * Button.cs: implement ProcessMnemonic
33981         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
33982           brushes everytime
33983         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
33984         * ButtonBase.cs: Show HotkeyPrefix (not the &)
33985
33986 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
33987         
33988         * MonthCalendar.cs: Implemented click-hold for next/previous month
33989           and date selection
33990           
33991 2004-12-11  Peter Bartok  <pbartok@novell.com>
33992
33993         * X11Structs.cs:
33994           - Added XKeyboardState (moved from XplatUIX11.cs)
33995           - Added XCreateGC related enums and structures
33996           - Added GXFunction for XSetFunction
33997
33998         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
33999
34000         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
34001           CaretVisible() calls
34002
34003         * ToolTip.cs: Added code to prevent stealing focus from app windows
34004
34005         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
34006           DestroyCaret, SetCaretPos and CaretVisible)
34007
34008         * XplatUIX11.cs:
34009           - Added implementation for caret functions
34010           - Moved hover variables into a struct, to make it a bit easier
34011             on the eyes and to debug
34012           - Removed XKeyboardState (moved to XplatUIX11.cs)
34013           - Moved Keyboard properties into the properties region
34014
34015         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
34016           call to get a graphics context for our control
34017
34018         * XplatUIOSX.cs: Added empty overrides for the new caret functions
34019
34020         * TreeView.cs: Fixed bug. No matter what color was set it would always
34021           return SystemColors.Window
34022
34023         * XplatUIWin32.cs: Implemented caret overrides
34024
34025 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
34026
34027         * ListBox.cs: fire events, implement missing methods and properties,
34028         sorting.
34029
34030 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
34031
34032         * MonthCalendar.cs: invalidation bug fixing
34033         * ThemeWin32Classic.cs: paint fixing
34034
34035 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
34036
34037         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
34038         prepare the CGContextRef there now.
34039
34040 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
34041
34042         * MonthCalendar.cs:
34043           - optimisationL only invalidate areas that have changed
34044         * ThemeWin32Classic.cs:
34045           - only paint parts that intersect with clip_area
34046
34047 2004-12-09  Peter Bartok  <pbartok@novell.com>
34048
34049         * Application.cs: Undid changes from r37004 which cause problems
34050         on X11
34051
34052 2004-12-09  Ravindra  <rkumar@novell.com>
34053
34054         * ToolBar.cs: Added support for displaying ContextMenu
34055         attached to a button on ToolBar.
34056         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
34057         property.
34058
34059 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
34060
34061         * Label.cs: autosize works in text change and removes unnecessary
34062         invalidate
34063
34064 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
34065
34066         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
34067         remove warnings
34068
34069 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
34070
34071         * XplatUIOSX.cs: Added mouse move/click/grab support
34072         Remove some debugging WriteLines not needed anymore.
34073         Add window resizing/positioning.
34074         Fix visibility on reparenting.
34075
34076 2004-12-08  Peter Bartok  <pbartok@novell.com>
34077
34078         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
34079
34080 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
34081
34082         * XplatUIOSX.cs: Initial checkin
34083         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
34084
34085 2004-12-03  Ravindra <rkumar@novell.com>
34086
34087         * ListView.cs: Added some keybindings and fixed scrolling.
34088         ScrollBars listen to ValueChanged event instead of Scroll
34089         Event. This would let us take care of all changes being
34090         done in the scrollbars' values programmatically or manually.
34091         * ListView.cs (CanMultiselect): Added a check for shift key.
34092         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
34093         * ListViewItem.cs (Clone): Fixed. We need to make a copy
34094         of ListViewSubItemCollection as well.
34095
34096 2004-12-06  Peter Bartok <pbartok@novell.com>
34097
34098         * Control.cs (Parent): Added check and exception to prevent
34099         circular parenting
34100
34101 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
34102
34103         * ListBox.cs: implemented clipping, selection single and multiple,
34104         bug fixing
34105
34106 2004-12-03  Ravindra <rkumar@novell.com>
34107
34108         * ListView.cs (ListView_KeyDown):
34109         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
34110         when CTRL key is pressed.
34111         * ListViewItem.cs (Selected): Fixed setting the property.
34112
34113 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
34114
34115         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
34116
34117         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
34118         MinimizeBox, ShowInTaskbar, TopMost properties.
34119
34120         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
34121         will be implemented).
34122
34123 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
34124
34125         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
34126
34127         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
34128         tests.
34129         
34130         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
34131         
34132         * TreeView.cs: BackColor is Colors.Window.
34133
34134 2004-12-01  Jackson Harper  <jackson@ximian.com>
34135
34136         * TreeView.cs: When resizing the tree if the user is making it
34137         smaller we don't get expose events, so we need to handle adding
34138         the horizontal scrollbar in the size changed handler as well as
34139         the expose handler.
34140
34141 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
34142
34143         * DrawItemState.cs: fixes wrong enum values
34144
34145 2004-12-01  Jackson Harper  <jackson@ximian.com>
34146
34147         * TreeView.cs: Resize the hbar as well as the vbar on resize.
34148
34149 2004-12-01  Jackson Harper  <jackson@ximian.com>
34150
34151         * NodeLabelEditEventArgs.cs:
34152         * NodeLabelEditEventHandler.cs:
34153         * OpenTreeNodeEnumerator.cs:
34154         * TreeNode.cs:
34155         * TreeNodeCollection.cs:
34156         * TreeView.cs:
34157         * TreeViewAction.cs:
34158         * TreeViewCancelEventArgs.cs:
34159         * TreeViewCancelEventHandler.cs:
34160         * TreeViewEventArgs.cs:
34161         * TreeViewEventHandler.cs: Initial implementation.
34162
34163 2004-12-01  Ravindra <rkumar@novell.com>
34164
34165         * ListView.cs (CalculateListView): Fixed scrolling related
34166         calculations. Also, removed some debug statements from other
34167         places.
34168         * ListViewItem.cs: Changed access to 'selected' instance variable
34169         from private to internal.
34170         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
34171
34172 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
34173
34174         * ThemeWin32Classic.cs: remove cache of brush and pens for
34175         specific controls and use the global system, fixes scrollbutton
34176         bugs (for small sizes, disabled, etc)
34177         
34178         * ScrollBar.cs: does not show the thumb for very small controls
34179         (as MS) and allow smaller buttons that the regular size
34180
34181 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
34182
34183         * UpDownBase.cs: Add abstract methods for the interface.
34184         Add new virtual methods (need to be hooked up to TextEntry when it
34185         exists).
34186         Add override methods for most features.
34187         Computes the size, forces the height of the text entry.
34188
34189         * NumericUpDown.cs: Put here the current testing code.
34190
34191         * Set eol-style property on all files that do not have mixed line
34192         endings, to minimize the future problems.  There are still a few
34193         files with mixed endings, and someone should choose whether they
34194         want to move it or not.
34195
34196 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
34197
34198         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
34199         System.Colors
34200         
34201 2004-11-30  Ravindra <rkumar@novell.com>
34202
34203         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
34204         drawing and replaced use of SystemColors by theme colors.
34205         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
34206         * ListView.cs (ListViewItemCollection.Add): Throw exception when
34207         same ListViewItem is being added more than once.
34208
34209 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
34210
34211         * MonthCalendar.cs:
34212           - ControlStyles love to make the control not flicker
34213           
34214 2004-11-30  Peter Bartok  <pbartok@novell.com>
34215
34216         * CharacterCasing.cs: Added
34217
34218 2004-11-29  Peter Bartok  <pbartok@novell.com>
34219
34220         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
34221           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
34222           I am removing these files as they conflict with already completed
34223           work. While it is fantastic to get contributions to MWF, I
34224           respectfully ask that everyone please coordinate their contributions
34225           through mono-winforms-list or #mono-winforms at this time. We're
34226           explicitly avoiding stubbing and don't want controls that don't have
34227           their basic functionality implemented in svn. Please also see
34228           http://www.mono-project.com/contributing/winforms.html
34229
34230
34231 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
34232
34233         * Application.cs (ModalRun): Don't hang after exit.
34234
34235         * Theme.cs: New TreeViewDefaultSize property.
34236
34237         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
34238         with less hardcoded SystemColors constant.
34239         Implemented TreeViewDefaultSize.
34240
34241         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
34242         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
34243
34244
34245 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
34246
34247         * MonthCalendar.cs:
34248           - Fix NextMonthDate and PrevMonthDate click moving calendar
34249
34250 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
34251
34252         * MonthCalendar.cs:
34253           - Fix usage of ScrollChange Property when scrolling months
34254
34255 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
34256
34257         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
34258          - Fixes menu destroying
34259          - Support adding and removing items on already created menus
34260
34261 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
34262
34263         * MonthCalendar.cs:
34264           - Re-worked all bolded dates handling to match win32
34265         * ThemeWin32Classic.cs:
34266           - Fixed rendering with bolded dates
34267
34268 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
34269
34270         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
34271         - Horizontal scroolbar
34272         - Multicolumn
34273         - Fixes
34274
34275
34276 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
34277
34278         * MonthCalendar.cs:
34279           - Fix Usage of MaxSelectionCount from SelectionRange
34280           - Fixed Shift + Cursor Selection
34281           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
34282           - Fixed normal cursor selection to be compat with win32
34283           - Fixed Shift + Mouse Click selection
34284
34285 2004-11-24  Peter Bartok <pbartok@novell.com>
34286
34287         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
34288         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
34289         * XplatUIX11.cs:
34290           - CreatedKeyBoardMsg now updates keystate with Alt key
34291           - Added workaround for timer crash to CheckTimers, Jackson will
34292             develop a proper fix and check in later
34293           - Implemented DispatchMessage
34294           - Removed calling the native window proc from GetMessage (call
34295             now moved to DispatchMessage)
34296
34297         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
34298           the keydata (Fixes bug #69831)
34299
34300         * XplatUIWin32.cs:
34301           - (DispatchMessage): Switched to return IntPtr
34302           - Added DllImport for SetFocus
34303
34304 2004-11-24  Ravindra <rkumar@novell.com>
34305
34306         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
34307         background drawing.
34308         * ListViewItem.cs: Fixed various properties, calculations
34309         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
34310         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
34311         and some internal properties. Fixed MouseDown handler and Paint
34312         method.
34313
34314 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
34315
34316         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
34317
34318 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
34319
34320         * ContainerControl.cs: correct accidental check in of local changes
34321
34322 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
34323
34324         * ThemeWin32Classic.cs:
34325                 - Fixed Drawing Last month in grid (sometimes not showing)
34326         * MonthCalendar.cs:
34327                 - Fixed title width calculation bug (makeing title small)
34328
34329 2004-11-23  Peter Bartok <pbartok@novell.com>
34330
34331         * XplatUIX11.cs:
34332           - Added generation of WM_MOUSEHOVER event
34333           - Added missing assignment of async_method atom
34334           - Fixed WM_ERASEBKGND; now only redraws the exposed area
34335
34336 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
34337
34338         * ThemeWin32Classic.cs:
34339                 - Fixed Drawing of today circle when showtodaycircle not set
34340                 - fixed drawing of first and last month in the grid (gay dates)
34341         * MonthCalendar.cs:
34342                 - Fixed Drawing of today circle
34343                 - Fixed drawing of grady dates
34344                 - Fixed HitTest for today link when ShowToday set to false
34345                 - Fixed DefaultSize to obey ShowToday
34346
34347 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
34348
34349         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
34350         * System.Windows.Forms/Theme.cs
34351         * MonthCalendar.cs: added for MonthCalendar
34352         * SelectionRange.cs: added for MonthCalendar
34353         * Day.cs: added for MonthCalendar: added for MonthCalendar
34354         * DateRangeEventArgs.cs: added for MonthCalendar
34355         * DateRangeEventHandler.cs: added for MonthCalendar
34356
34357 2004-11-22  Ravindra <rkumar@novell.com>
34358
34359         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
34360         property.
34361
34362 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
34363
34364         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
34365         event handler.
34366         
34367         * NumericUpDown.cs: Added new implementation.
34368         * UpDownBase.cs: Added new implementation.
34369
34370         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
34371         implementations.
34372         
34373         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
34374         implementations.
34375
34376         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
34377         methods.
34378
34379 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
34380
34381         * Timer.cs  (Dispose): Should call the base dispose when
34382         overriding.
34383
34384 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
34385
34386         * ScrollBar.cs: updates thumb position when max, min or increment
34387         is changed
34388
34389 2004-11-21  Ravindra <rkumar@novell.com>
34390
34391         * ListView.cs: Implemented item selection, activation and
34392         column header style. Fixed properties to do a redraw, if
34393         required. Added support for MouseHover, DoubleClick, KeyDown
34394         and KeyUp event handling and some minor fixes.
34395         * ListViewItem.cs: Fixed constructor.
34396         * ThemeWin32Classic.cs: Improved drawing for ListView.
34397
34398 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
34399
34400         * ThemeWin32Classic.cs: initial listbox drawing code
34401         * DrawMode.cs: new enumerator
34402         * ListControl.cs: stubbed class
34403         * ListBox.cs: initial implementation
34404         * Theme.cs: new methods definitions
34405         * SelectionMode.cs: new enumerator
34406
34407 2004-11-17  Peter Bartok  <pbartok@novell.com>
34408
34409         * XplatUIWin32.cs: Added double-click events to the class style
34410         * Control.cs (WndProc):
34411           - Added handling of click-count to MouseDown/ MouseUp events.
34412           - Added handling of middle and right mouse buttons
34413           - Removed old debug code
34414
34415 2004-11-17  Jackson Harper  <jackson@ximian.com>
34416
34417         * XplatUIX11.cs: Use the new Mono.Unix namespace.
34418
34419 2004-11-17  Ravindra <rkumar@novell.com>
34420
34421         * ListView.cs: Added event handling for MouseMove/Up/Down.
34422         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
34423         * ThemeWin32Classic.cs: We need to clear the graphics context and
34424         draw column header in a proper state.
34425
34426
34427 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
34428
34429         *  Menu.cs: fixes signature
34430
34431 2004-11-16  Peter Bartok  <pbartok@novell.com>
34432
34433         * XplatUIX11.cs (GetMessage): Implemented generation of
34434           double click mouse messages
34435
34436 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
34437
34438         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
34439         not by menu
34440
34441 2004-11-11  Peter Bartok  <pbartok@novell.com>
34442
34443         * HandleData.cs: Added Visible property
34444         * XplatUIX11.cs (IsVisible): Now uses Visible property from
34445           HandleData
34446         * XplatUIX11.cs: Removed old debug leftovers
34447         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
34448         * Control.cs (WndProc): Removed old debug leftovers,
34449           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
34450           needed WM_SIZE handling
34451
34452 2004-11-11  Jackson Harper  <jackson@ximian.com>
34453
34454         * OwnerDrawPropertyBag.cs:
34455         * TreeViewImageIndexConverter.cs: Initial implementation
34456
34457 2004-11-10  Jackson Harper  <jackson@ximian.com>
34458
34459         * ThemeWin32Classic.cs:
34460         * TabControl.cs: instead of moving tabs by the slider pos just
34461         start drawing at the tab that is offset by the slider. This way
34462         scrolling always moves by exactly one tab.
34463
34464 2004-11-10  Jackson Harper  <jackson@ximian.com>
34465
34466         * TabControl.cs: You can only scroll left when the slider has
34467         already ben moved right.
34468         
34469 2004-11-10  Jackson Harper  <jackson@ximian.com>
34470
34471         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
34472         the clip area.
34473         
34474 2004-11-10  Jackson Harper  <jackson@ximian.com>
34475
34476         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
34477         clip area.
34478         
34479 2004-11-09  Jackson Harper  <jackson@ximian.com>
34480
34481         * TabControl.cs (CalcXPos): New helper method so we can determine
34482         the proper place to start drawing vertical tabs.
34483         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
34484         
34485 2004-11-09  Jackson Harper  <jackson@ximian.com>
34486
34487         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
34488         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
34489         and Bottom, left and right are illegal values for this and
34490         multiline is enabled when the alignment is set to left or right.
34491         (DrawTab): Each alignment block should draw the text itself now
34492         because Left requires special love. Also add rendering for Left
34493         aligned tabs.
34494         
34495 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
34496
34497         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
34498         does not destroy the windows, removes debugging messages
34499
34500 2004-11-09  jba  <jba-mono@optusnet.com.au>
34501
34502         * ThemeWin32Classic.cs
34503         (DrawButtonBase): Fix verticle text rect clipping in windows
34504         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
34505         rendering and incorrect text rect clipping
34506         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
34507         rendering and incorrect text rect clipping
34508         
34509 2004-11-08  Jackson Harper  <jackson@ximian.com>
34510
34511         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
34512         bottom when they are bottom aligned so the bottoms of the tabs get
34513         displayed.
34514         * TabControl.cs (DropRow): Move rows up instead of down when the
34515         tab control is bottom aligned.
34516
34517 2004-11-08 13:59  pbartok
34518
34519         * XplatUIX11.cs:
34520           - Added handling for various window styles
34521           - Added handling for popup windows
34522           - Added SetTopmost handling
34523
34524 2004-11-08 13:55  pbartok
34525
34526         * XplatUIWin32.cs:
34527           - Added argument to SetTopmost method
34528           - Fixed broken ClientToScreen function
34529
34530 2004-11-08 13:53  pbartok
34531
34532         * XplatUIStructs.cs:
34533           - Added missing WS_EX styles
34534
34535 2004-11-08 13:53  pbartok
34536
34537         * XplatUI.cs, XplatUIDriver.cs:
34538           - Added argument to SetTopmost
34539
34540 2004-11-08 13:52  pbartok
34541
34542         * X11Structs.cs:
34543           - Added XSetWindowAttributes structure
34544           - Improved XWindowAttributes structure
34545           - Added SetWindowValuemask enum
34546           - Added window creation arguments enum
34547           - Added gravity enum
34548           - Added Motif hints structure
34549           - Added various Motif flags and enums
34550           - Added PropertyMode enum for property functions
34551
34552 2004-11-08 13:50  pbartok
34553
34554         * Form.cs:
34555           - Fixed arguments for updated SetTopmost method
34556
34557 2004-11-08 13:49  pbartok
34558
34559         * ToolTip.cs:
34560           - Fixed arguments for updated SetTopmost function
34561           - Fixed usage of PointToClient
34562
34563 2004-11-08 13:44  pbartok
34564
34565         * MenuAPI.cs:
34566           - Added Clipping of children and siblings
34567
34568 2004-11-08 13:41  pbartok
34569
34570         * MainMenu.cs:
34571           - Removed SetMenuBarWindow call. We do this in Form.cs
34572
34573 2004-11-08 13:40  jackson
34574
34575         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
34576           scrolling jimmi in the correct location with bottom aligned tabs
34577
34578 2004-11-08 13:36  pbartok
34579
34580         * ContainerControl.cs:
34581           - Implemented BindingContext
34582           - Implemented ParentForm
34583
34584 2004-11-08 12:46  jackson
34585
34586         * TabControl.cs: Put bottom rendered tabs in the right location
34587
34588 2004-11-08 07:15  jordi
34589
34590         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
34591           removes dead code
34592
34593 2004-11-05 17:30  jackson
34594
34595         * TabControl.cs: When selected tabs are expanded make sure they
34596           don't go beyond the edges of the tab control
34597
34598 2004-11-05 14:57  jackson
34599
34600         * TabControl.cs: Reset show_slider so if the control is resized to
34601           a size where it is no longer needed it's not displayed anymore
34602
34603 2004-11-05 13:16  jackson
34604
34605         * TabControl.cs: Make tab pages non visible when added to the
34606           control
34607
34608 2004-11-05 12:42  jackson
34609
34610         * TabControl.cs: Implement SizeMode.FillToRight
34611
34612 2004-11-05 12:16  jackson
34613
34614         * Control.cs: Do not call CreateHandle if the handle is already
34615           created
34616
34617 2004-11-05 11:46  jackson
34618
34619         * TabControl.cs: Remove superflous call to CalcTabRows
34620
34621 2004-11-05 09:07  jackson
34622
34623         * XplatUIX11.cs: Update for Mono.Posix changes
34624
34625 2004-11-05 07:00  ravindra
34626
34627         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
34628           scrolling.
34629
34630 2004-11-04 22:47  jba
34631
34632         * ThemeWin32Classic.cs:
34633           - Fix Button rendering for FlatStyle = Flat or Popup
34634           - Fix RadioButton and CheckBox rendering when Appearance = Button
34635             (normal and flatstyle).
34636           - Correct outer rectangle color when drawing focus rectangle
34637           - Adjust button bounds to be 1 px smaller when focused
34638           - Make button not draw sunken 3d border when pushed (windows compat)
34639           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
34640           - Offset the text in RadioButton and Checkbox when being rendered as
34641           a button.
34642           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
34643           radiobuttons
34644           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
34645           - Fixed disabled text rendering for normally rendered radiobuttons
34646
34647 2004-11-04 10:26  jackson
34648
34649         * TabControl.cs: Recalculate tab rows when resizing
34650
34651 2004-11-04 07:47  jordi
34652
34653         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
34654           collection completion, drawing issues, missing features
34655
34656 2004-11-04 05:03  ravindra
34657
34658         * ScrollBar.cs:
34659                 - We need to recalculate the Thumb area when
34660                 LargeChange/maximum/minimum values are changed.
34661           - We set the 'pos' in UpdatePos() method to minimum, if it's less
34662                 than minimum. This is required to handle the case if large_change is
34663                 more than max, and use LargeChange property instead of large_change
34664                 variable.
34665           - We return max+1 when large_change is more than max, like MS does.
34666
34667 2004-11-04 04:29  ravindra
34668
34669         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
34670                 - Changed default value signatures (prefixed all with ListView).
34671                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
34672                 ListView.
34673           - Fixed calculations for ListViewItem and implemented Clone()
34674           method.
34675
34676 2004-11-04 04:26  ravindra
34677
34678         * Theme.cs, ThemeWin32Classic.cs:
34679                 - Changed default ListView values signatures (prefixed all with
34680                 ListView).
34681           - Fixed default size values for VScrollBar and HScrollBar.
34682                 - Fixed DrawListViewItem method.
34683
34684 2004-11-04 04:05  ravindra
34685
34686         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
34687
34688 2004-11-04 04:04  ravindra
34689
34690         * ImageList.cs: Implemented the missing overload for Draw method.
34691
34692 2004-11-03 19:29  jackson
34693
34694         * TabControl.cs: Handle dropping rows on selection properly
34695
34696 2004-11-03 11:59  jackson
34697
34698         * TabControl.cs: remove debug code
34699
34700 2004-11-03 11:52  jackson
34701
34702         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
34703           the scrolly widgerywoo
34704
34705 2004-11-02 13:52  jackson
34706
34707         * TabControl.cs: Resize the tab pages and tabs when the tab control
34708           is resized
34709
34710 2004-11-02 13:40  jackson
34711
34712         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
34713           selected tab to the bottom
34714
34715 2004-11-02 13:39  jackson
34716
34717         * TabPage.cs: Store the tab pages row
34718
34719 2004-11-02 12:33  jordi
34720
34721         * MenuItem.cs: fixes handle creation
34722
34723 2004-11-02 11:42  jackson
34724
34725         * TabControl.cs: signature fix
34726
34727 2004-11-02 08:56  jackson
34728
34729         * TabControl.cs: Calculate whether the tab is on an edge properly.
34730           Remove top secret debugging code
34731
34732 2004-11-01 19:57  jackson
34733
34734         * TabControl.cs: Add click handling, and proper sizing
34735
34736 2004-11-01 19:47  jackson
34737
34738         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
34739           tab controls
34740
34741 2004-11-01 19:39  jackson
34742
34743         * TabPage.cs: add internal property to store the bounds of a tab
34744           page
34745
34746 2004-10-30 04:23  ravindra
34747
34748         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
34749           values.
34750
34751 2004-10-30 04:21  ravindra
34752
34753         * ListView.cs, ListViewItem.cs: Added support for scrolling and
34754           fixed calculations.
34755
34756 2004-10-30 03:06  pbartok
34757
34758         * XplatUIX11.cs:
34759           - Removed extension of DllImported libs
34760
34761 2004-10-29 09:55  jordi
34762
34763         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
34764           navigation, itemcollection completion, menu fixes
34765
34766 2004-10-27 22:58  pbartok
34767
34768         * XplatUIX11.cs:
34769           - Now throws a nice error message when no X display could be opened
34770
34771 2004-10-26 13:51  jordi
34772
34773         * ListView.cs: removes warning
34774
34775 2004-10-26 03:55  ravindra
34776
34777         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
34778           ThemeWin32Classic.cs: Some formatting for my last checkins.
34779
34780 2004-10-26 03:36  ravindra
34781
34782         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
34783           control and default values.
34784
34785 2004-10-26 03:35  ravindra
34786
34787         * Theme.cs: Added some default values for ListView control.
34788
34789 2004-10-26 03:33  ravindra
34790
34791         * ToolBar.cs: ToolBar should use the user specified button size, if
34792           there is any. Added a size_specified flag for the same.
34793
34794 2004-10-26 03:33  ravindra
34795
34796         * ColumnHeader.cs: Added some internal members and calculations for
34797           ColumnHeader.
34798
34799 2004-10-26 03:32  ravindra
34800
34801         * ListViewItem.cs: Calculations for ListViewItem.
34802
34803 2004-10-26 03:31  ravindra
34804
34805         * ListView.cs: Added some internal members and calculations for
34806           ListView.
34807
34808 2004-10-22 13:31  jordi
34809
34810         * MenuAPI.cs: speedup menus drawing
34811
34812 2004-10-22 13:16  jackson
34813
34814         * XplatUIX11.cs: Make sure to update exposed regions when adding an
34815           expose event
34816
34817 2004-10-22 11:49  jackson
34818
34819         * Control.cs: oops
34820
34821 2004-10-22 11:41  jackson
34822
34823         * Control.cs: Check to see if the window should have its background
34824           repainted by X when drawing.
34825
34826 2004-10-22 11:31  jackson
34827
34828         * XplatUIX11.cs: When invalidating areas only use XClearArea if
34829           clear is true, this way we do not get flicker from X repainting the
34830           background
34831
34832 2004-10-22 11:28  jackson
34833
34834         * XEventQueue.cs: Queue properly
34835
34836 2004-10-21 09:38  jackson
34837
34838         * XEventQueue.cs: Fix access modifier
34839
34840 2004-10-21 09:36  jackson
34841
34842         * XEventQueue.cs: Don't loose messages
34843
34844 2004-10-21 09:22  jackson
34845
34846         * XEventQueue.cs: Don't loose messages
34847
34848 2004-10-20 04:15  jordi
34849
34850         * BootMode.cs: enum need it by SystemInfo
34851
34852 2004-10-19 21:58  pbartok
34853
34854         * XplatUIWin32.cs:
34855           - Small sanity check
34856
34857 2004-10-19 21:56  pbartok
34858
34859         * Form.cs:
34860           - Added private FormParentWindow class which acts as the container
34861             for our form and as the non-client area where menus are drawn
34862           - Added/Moved required tie-ins to Jordi's menus
34863           - Fixed/Implemented the FormStartPosition functionality
34864
34865 2004-10-19 21:52  pbartok
34866
34867         * Control.cs:
34868           - Removed unneeded locals
34869           - Added code to all size and location properties to understand and
34870             deal with the parent container of Form
34871
34872 2004-10-19 21:33  pbartok
34873
34874         * Application.cs:
34875           - Fixed to deal with new Form subclasses for menus
34876
34877 2004-10-19 17:48  jackson
34878
34879         * XEventQueue.cs: commit correct version of file
34880
34881 2004-10-19 16:50  jackson
34882
34883         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
34884
34885 2004-10-19 16:15  jordi
34886
34887         * MenuAPI.cs: MenuBarCalcSize returns the height
34888
34889 2004-10-19 08:31  pbartok
34890
34891         * Control.cs:
34892           - Added missing call to PreProcessMessage before calling OnXXXKey
34893           methods
34894
34895 2004-10-19 00:04  ravindra
34896
34897         * ToolTip.cs: Fixed constructor.
34898
34899 2004-10-18 09:31  jordi
34900
34901         * MenuAPI.cs: menuitems in menubars do not have shortcuts
34902
34903 2004-10-18 09:26  jordi
34904
34905         * MenuItem.cs: fixes MenuItem class signature
34906
34907 2004-10-18 08:56  jordi
34908
34909         * MenuAPI.cs: prevents windows from showing in the taskbar
34910
34911 2004-10-18 00:28  ravindra
34912
34913         * ToolTip.cs: Suppressed a warning message.
34914
34915 2004-10-18 00:27  ravindra
34916
34917         * Control.cs: Default value of visible property must be true.
34918
34919 2004-10-17 23:19  pbartok
34920
34921         * ToolTip.cs:
34922           - Complete implementation
34923
34924 2004-10-17 23:19  pbartok
34925
34926         * XplatUIX11.cs:
34927           - Added EnableWindow method
34928           - Added SetModal stub
34929           - Added generation of WM_ACTIVATE message (still needs testing)
34930           - Added SetTopMost stub
34931           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
34932
34933 2004-10-17 23:17  pbartok
34934
34935         * XplatUIWin32.cs:
34936           - Removed VirtualKeys to XplatUIStructs
34937           - Implemented SetTopMost method
34938           - Implemented EnableWindow method
34939           - Bugfix in ScreenToClient()
34940           - Bugfixes in ClientToScreen()
34941
34942 2004-10-17 22:51  pbartok
34943
34944         * XplatUIStructs.cs:
34945           - Added WS_EX styles to WindowStyles enumeration
34946
34947 2004-10-17 22:50  pbartok
34948
34949         * XplatUI.cs, XplatUIDriver.cs:
34950           - Added method for enabling/disabling windows
34951           - Added method for setting window modality
34952           - Added method for setting topmost window
34953
34954 2004-10-17 22:49  pbartok
34955
34956         * ThemeWin32Classic.cs:
34957           - Added ToolTip drawing code
34958
34959 2004-10-17 22:49  pbartok
34960
34961         * Theme.cs:
34962           - Added ToolTip abstracts
34963
34964 2004-10-17 22:47  pbartok
34965
34966         * Form.cs:
34967           - Fixed Form.ControlCollection to handle owner relations
34968           - Added Owner/OwnedForms handling
34969           - Implemented Z-Ordering for owned forms
34970           - Removed unneeded private overload of ShowDialog
34971           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
34972             so I hope)
34973           - Fixed Close(), had wrong default
34974           - Added firing of OnLoad event
34975           - Added some commented out debug code for Ownership handling
34976
34977 2004-10-17 22:16  pbartok
34978
34979         * Control.cs:
34980           - Fixed/implemented flat list of controls
34981
34982 2004-10-17 22:14  pbartok
34983
34984         * Application.cs:
34985           - Added code to simulate modal dialogs on Win32
34986
34987 2004-10-17 16:11  jordi
34988
34989         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
34990           mouse event
34991
34992 2004-10-17 13:39  jordi
34993
34994         * MenuAPI.cs: menu drawing fixes
34995
34996 2004-10-15 09:10  ravindra
34997
34998         * StructFormat.cs: General Enum.
34999
35000 2004-10-15 09:09  ravindra
35001
35002         * SizeGripStyle.cs: Enum for Form.
35003
35004 2004-10-15 09:08  ravindra
35005
35006         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
35007           in Theme for ListView.
35008
35009 2004-10-15 09:06  ravindra
35010
35011         * ColumnHeader.cs: Flushing some formatting changes.
35012
35013 2004-10-15 09:05  ravindra
35014
35015         * ListViewItem.cs: Implemented GetBounds method and fixed coding
35016           style.
35017
35018 2004-10-15 09:03  ravindra
35019
35020         * ListView.cs: Implemented Paint method and fixed coding style.
35021
35022 2004-10-15 07:34  jordi
35023
35024         * MenuAPI.cs: fix for X11
35025
35026 2004-10-15 07:32  ravindra
35027
35028         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
35029                 - Renamed Paint() method to Draw() for clarity. Also, moved
35030                 DrawImage() to OnPaint().
35031
35032 2004-10-15 07:25  ravindra
35033
35034         * CheckBox.cs, RadioButton.cs:
35035                 - Removed Redraw (), we get it from ButtonBase.
35036                 - Implemented Paint (), to do class specific painting.
35037
35038 2004-10-15 07:16  ravindra
35039
35040         * ButtonBase.cs:
35041                 - Redraw () is not virtual now.
35042                 - Added an internal virtual method Paint (), so that
35043                 derived classes can do their painting on their own.
35044                 - Modified OnPaint () to call Paint ().
35045
35046 2004-10-15 06:43  jordi
35047
35048         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
35049           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
35050
35051 2004-10-15 00:30  ravindra
35052
35053         * MessageBox.cs:
35054                 - MessageBox on windows does not have min/max buttons.
35055                 This change in CreateParams fixes this on Windows. We
35056                 still need to implement this windowstyle behavior in
35057                 our X11 driver.
35058
35059 2004-10-14 05:14  ravindra
35060
35061         * ToolBar.cs:
35062                 - Changed Redraw () to do a Refresh () always.
35063                 - Fixed the MouseMove event handling when mouse is pressed,
35064                 ie drag event handling.
35065                 - Replaced the usage of ToolBarButton.Pressed property to
35066                 ToolBarButton.pressed internal variable.
35067
35068 2004-10-14 05:10  ravindra
35069
35070         * ToolBarButton.cs:
35071                 - Added an internal member 'inside' to handle mouse move
35072                 with mouse pressed ie mouse drag event.
35073                 - Changed 'Pressed' property to return true only when
35074                 'inside' and 'pressed' are both true.
35075                 - Some coding style love.
35076
35077 2004-10-14 00:17  ravindra
35078
35079         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
35080           public method.
35081
35082 2004-10-14 00:15  ravindra
35083
35084         * ButtonBase.cs: Redraw () related improvements.
35085
35086 2004-10-14 00:14  ravindra
35087
35088         * MessageBox.cs: Moved InitFormSize () out of Paint method and
35089           removed unnecessary calls to Button.Show () method.
35090
35091 2004-10-13 17:50  pbartok
35092
35093         * XplatUIX11.cs:
35094           - Formatting fix
35095           - Removed destroying of window until we solve the problem of X
35096             destroying the window before us on shutdown
35097
35098 2004-10-13 16:32  pbartok
35099
35100         * ButtonBase.cs:
35101           - Now Redraws on MouseUp for FlatStyle Flat and Popup
35102
35103 2004-10-13 14:18  pbartok
35104
35105         * XplatUIX11.cs:
35106           - Added code to destroy the X window
35107
35108 2004-10-13 14:18  pbartok
35109
35110         * XplatUIWin32.cs:
35111           - Added code to destroy a window
35112
35113 2004-10-13 14:12  pbartok
35114
35115         * ButtonBase.cs:
35116           - Added the Redraw on Resize that got dropped in the last rev
35117
35118 2004-10-13 09:06  pbartok
35119
35120         * ThemeWin32Classic.cs:
35121           - Path from John BouAntoun:
35122             * Fix check rendering (centre correctly for normal style, offset
35123               correctly for FlatStyle).
35124             * Fix border color usage (use backcolor) for FlatStyle.Popup
35125             * Use checkbox.Capture instead of checkbox.is_pressed when
35126               rendering flatstyle states.
35127
35128 2004-10-12 21:48  pbartok
35129
35130         * ThemeWin32Classic.cs:
35131           - Removed all occurences of SystemColors and replaced them with the
35132             matching theme color
35133
35134 2004-10-12 21:41  pbartok
35135
35136         * ThemeWin32Classic.cs:
35137           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
35138             him using the function for flatstyle drawing
35139           - Changed functions to use the new version of CPDrawBorder3D
35140
35141 2004-10-12 21:15  pbartok
35142
35143         * ControlPaint.cs:
35144           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
35145             match MS documentation. They need to return defined colors if the
35146             passed color matches the configured control color. Thanks to John
35147             BouAntoun for pointing this out.
35148
35149 2004-10-12 20:57  pbartok
35150
35151         * Control.cs:
35152           - Fix from John BouAntoun: Raise ForeColorChanged event when text
35153             color is changed
35154
35155 2004-10-12 20:46  pbartok
35156
35157         * CheckBox.cs:
35158           - Fix from John BouAntoun: Now properly sets the Appearance property
35159
35160 2004-10-12 20:45  pbartok
35161
35162         * ThemeWin32Classic.cs:
35163           - Fixes from John BouAntoun: now handles forecolors and backcolors
35164             for flatstyle rendered controls much better; It also fixes normal
35165             checkbox rendering when pushed or disabled.
35166
35167 2004-10-08 02:50  jordi
35168
35169         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
35170           work
35171
35172 2004-10-07 08:56  jordi
35173
35174         * ThemeWin32Classic.cs: Removes deletion of cached brushes
35175
35176 2004-10-06 03:59  jordi
35177
35178         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
35179           XplatUIWin32.cs: removes warnings from compilation
35180
35181 2004-10-05 12:23  jackson
35182
35183         * RadioButton.cs: Fix ctor
35184
35185 2004-10-05 11:10  pbartok
35186
35187         * MessageBox.cs:
35188           - Partial implementation by Benjamin Dasnois
35189
35190 2004-10-05 10:15  jackson
35191
35192         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
35193           by John BouAntoun
35194
35195 2004-10-05 03:07  ravindra
35196
35197         * ToolBar.cs:
35198                 - Removed a private method, Draw ().
35199                 - Fixed the ButtonDropDown event handling.
35200                 - Fixed MouseMove event handling.
35201
35202 2004-10-05 03:04  ravindra
35203
35204         * ThemeWin32Classic.cs:
35205                 - Added DrawListView method and ListViewDefaultSize property.
35206                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
35207                 - Changed DOS style CRLF to Unix format (dos2unix).
35208
35209 2004-10-05 03:03  ravindra
35210
35211         * Theme.cs:
35212                 - Added DrawListView method and ListViewDefaultSize property.
35213
35214 2004-10-05 02:42  ravindra
35215
35216         * ToolBarButton.cs: Added an internal member dd_pressed to handle
35217           clicks on DropDown arrow.
35218
35219 2004-10-04 22:56  jackson
35220
35221         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
35222           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
35223           Control handle the buffers, derived classes should not have to
35224           CreateBuffers themselves.
35225
35226 2004-10-04 21:20  jackson
35227
35228         * StatusBar.cs: The control handles resizing the buffers now.
35229
35230 2004-10-04 21:18  jackson
35231
35232         * Control.cs: When resizing the buffers should be invalidated. This
35233           should be handled in Control not in derived classes.
35234
35235 2004-10-04 14:45  jackson
35236
35237         * TabPage.cs: oops
35238
35239 2004-10-04 02:14  pbartok
35240
35241         * LeftRightAlignment.cs:
35242           - Initial check-in
35243
35244 2004-10-04 01:09  jordi
35245
35246         * ThemeWin32Classic.cs: fixes right button position causing right
35247           button not showing on horizontal scrollbars
35248
35249 2004-10-02 13:12  pbartok
35250
35251         * XplatUIX11.cs:
35252           - Simplified the Invalidate method by using an X call instead of
35253             generating the expose ourselves
35254           - Added an expose when the window background is changed
35255           - Implemented ClientToScreen method
35256
35257 2004-10-02 13:08  pbartok
35258
35259         * XplatUIWin32.cs:
35260           - Added Win32EnableWindow method (test for implementing modal
35261           dialogs)
35262           - Added ClientToScreen method and imports
35263
35264 2004-10-02 13:07  pbartok
35265
35266         * XplatUI.cs, XplatUIDriver.cs:
35267           - Added ClientToScreen coordinate translation method
35268
35269 2004-10-02 13:06  pbartok
35270
35271         * KeyPressEventArgs.cs:
35272           - Fixed access level for constructor
35273
35274 2004-10-02 13:06  pbartok
35275
35276         * NativeWindow.cs:
35277           - Changed access level for the window_collection hash table
35278
35279 2004-10-02 13:05  pbartok
35280
35281         * Form.cs:
35282           - Added KeyPreview property
35283           - Added Menu property (still incomplete, pending Jordi's menu work)
35284           - Implemented ProcessCmdKey
35285           - Implemented ProcessDialogKey
35286           - Implemented ProcessKeyPreview
35287
35288 2004-10-02 13:02  pbartok
35289
35290         * Control.cs:
35291           - Added private method to get the Control object from the window
35292           handle
35293           - Implemented ContextMenu property
35294           - Implemented PointToScreen
35295           - Implemented PreProcessMessage
35296           - Implemented IsInputChar
35297           - Implemented IsInputKey
35298           - Implemented ProcessCmdKey
35299           - Completed ProcessKeyEventArgs
35300           - Fixed message loop to call the proper chain of functions on key
35301           events
35302           - Implemented ProcessDialogChar
35303           - Implemented ProcessDialogKey
35304           - Implemented ProcessKeyMessage
35305           - Implemented ProcessKeyPreview
35306           - Added RaiseDragEvent stub (MS internal method)
35307           - Added RaiseKeyEvent stub (MS internal method)
35308           - Added RaiseMouseEvent stub (MS Internal method)
35309           - Added RaisePaintEvent stub (MS Internal method)
35310           - Added ResetMouseEventArgs stub (MS Internal method)
35311           - Implemented RtlTranslateAlignment
35312           - Implemented RtlTranslateContent
35313           - Implemented RtlTranslateHorizontal
35314           - Implemented RtlTranslateLeftRight
35315           - Added generation of KeyPress event
35316
35317 2004-10-02 05:57  ravindra
35318
35319         * ListViewItem.cs: Added attributes.
35320
35321 2004-10-02 05:32  ravindra
35322
35323         * ListView.cs: Added attributes.
35324
35325 2004-10-01 11:53  jackson
35326
35327         * Form.cs: Implement the Close method so work on MessageBox can
35328           continue.
35329
35330 2004-09-30 14:06  pbartok
35331
35332         * XplatUIX11.cs:
35333           - Bug fixes
35334
35335 2004-09-30 11:34  jackson
35336
35337         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
35338
35339 2004-09-30 07:26  ravindra
35340
35341         * ListViewItemConverter.cs: Converter for ListViewItem.
35342
35343 2004-09-30 07:26  ravindra
35344
35345         * SortOrder.cs: Enum for ListView control.
35346
35347 2004-09-30 07:25  ravindra
35348
35349         * ColumnHeader.cs: Supporting class for ListView control.
35350
35351 2004-09-30 07:24  ravindra
35352
35353         * ListView.cs, ListViewItem.cs: Initial implementation.
35354
35355 2004-09-30 07:20  ravindra
35356
35357         * ItemActivation.cs: Enum for ListView Control.
35358
35359 2004-09-29 20:29  pbartok
35360
35361         * XplatUIX11.cs:
35362           - Added lookup of pixel value for background color; tries to get a
35363             color 'close' to the requested color, it avoids having to create a
35364             colormap.  Depending on the display this could mean the used color
35365             is slightly off the desired color. Might have to change it to a more
35366             resource intensive colormap approach, but it will work as a
35367           workaround to avoid red screens.
35368
35369 2004-09-29 14:27  jackson
35370
35371         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
35372
35373 2004-09-28 12:44  pbartok
35374
35375         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
35376           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
35377           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
35378           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
35379           TrackBar.cs, VScrollBar.cs:
35380           - Streamlined Theme interfaces:
35381             * Each DrawXXX method for a control now is passed the object for
35382               the control to be drawn in order to allow accessing any state the
35383               theme might require
35384
35385             * ControlPaint methods for the theme now have a CP prefix to avoid
35386               name clashes with the Draw methods for controls
35387
35388             * Every control now retrieves it's DefaultSize from the current
35389             theme
35390
35391 2004-09-28 12:17  jackson
35392
35393         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
35394           drawing
35395
35396 2004-09-24 14:57  jackson
35397
35398         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
35399           Gives us a nice little performance boost.
35400
35401 2004-09-24 12:02  jackson
35402
35403         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
35404           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
35405           Control and supporting classes. Initial checkin
35406
35407 2004-09-23 13:08  jackson
35408
35409         * Form.cs: Temp build fixage
35410
35411 2004-09-23 01:39  ravindra
35412
35413         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
35414           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
35415           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
35416           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
35417           EventHandlers needed by ListView Control.
35418
35419 2004-09-22 14:12  pbartok
35420
35421         * ScrollableControl.cs:
35422           - Implemented DockPadding property
35423           - Implemented AutoScroll property
35424           - Implemented AutoScrollMargin property
35425           - Implemented AutoScrollMinSize property
35426           - Implemented AutoScrollPosition property
35427           - Implemented DisplayRectangle property (still incomplete)
35428           - Implemented CreateParams property
35429           - Implemented HScroll property
35430           - Implemented VScroll property
35431           - Implemented OnVisibleChanged property
35432
35433 2004-09-22 14:09  pbartok
35434
35435         * Form.cs:
35436           - Added Form.ControllCollection class
35437           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
35438             RemoveOwnedForm (still incomplete, missing on-top and common
35439             minimize/maximize behaviour)
35440           - Added StartPosition property (still incomplete, does not use when
35441             creating the form)
35442           - Added ShowDialog() methods (still incomplete, missing forcing the
35443             dialog modal)
35444
35445 2004-09-22 14:05  pbartok
35446
35447         * Application.cs:
35448           - Added message loop for modal dialogs
35449
35450 2004-09-22 14:02  pbartok
35451
35452         * GroupBox.cs:
35453           - Fixed wrong types for events
35454
35455 2004-09-22 14:00  pbartok
35456
35457         * Shortcut.cs, FormWindowState.cs:
35458           - Fixed wrong values
35459
35460 2004-09-22 12:01  jackson
35461
35462         * Control.cs: Text is never null
35463
35464 2004-09-20 22:14  pbartok
35465
35466         * XplatUIWin32.cs:
35467           - Fixed accessibility level for Idle handler
35468
35469 2004-09-20 18:54  jackson
35470
35471         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35472           XplatUIX11.cs: New message loop that uses poll so we don't get a
35473           busy loop
35474
35475 2004-09-17 10:43  pbartok
35476
35477         * ScrollBar.cs:
35478           - Fixed behaviour of arrow buttons. Now properly behaves like
35479             Buttons (and like Microsoft's scrollbar arrow buttons)
35480
35481 2004-09-17 10:14  pbartok
35482
35483         * ScrollBar.cs:
35484           - Added missing release of keyboard/mouse capture
35485
35486 2004-09-17 06:18  jordi
35487
35488         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
35489           Theme.cs: Very early menu support
35490
35491 2004-09-16 17:45  pbartok
35492
35493         * XplatUIWin32.cs:
35494           - Fixed sending a window to the front
35495           - Added overload for SetWindowPos to avoid casting
35496
35497 2004-09-16 17:44  pbartok
35498
35499         * Control.cs:
35500           - Added SendToBack and BringToFront methods
35501
35502 2004-09-16 07:00  ravindra
35503
35504         * Copyright: Added Novell URL.
35505
35506 2004-09-16 07:00  ravindra
35507
35508         * ToolBar.cs: Invalidate should be done before redrawing.
35509
35510 2004-09-15 21:19  ravindra
35511
35512         * ColumnHeaderStyle.cs: Enum for ListView Control.
35513
35514 2004-09-15 21:18  ravindra
35515
35516         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
35517           ListView Control.
35518
35519 2004-09-13 18:26  jackson
35520
35521         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
35522           properly
35523
35524 2004-09-13 18:13  jackson
35525
35526         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
35527           a second thread and post messages into the main threads message
35528           queue. This makes timing much more consistent. Both win2K and XP
35529           have a minimum timer value of 15 milliseconds, so we now do this
35530           too.
35531
35532 2004-09-13 15:18  pbartok
35533
35534         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35535           XplatUIX11.cs:
35536           - Added Z-Ordering methods
35537
35538 2004-09-13 10:56  pbartok
35539
35540         * Form.cs:
35541           - Fixed #region names
35542           - Moved properties and methods into their proper #regions
35543
35544 2004-09-13 10:51  pbartok
35545
35546         * Form.cs:
35547           - Added Accept and CancelButton properties
35548           - Added ProcessDialogKey() method
35549
35550 2004-09-13 08:18  pbartok
35551
35552         * IWindowTarget.cs:
35553           - Initial check-in
35554
35555 2004-09-10 21:50  pbartok
35556
35557         * Control.cs:
35558           - Added DoDragDrop() [incomplete]
35559           - Properly implemented 'Visible' handling
35560           - Added SetVisibleCore()
35561           - Implemented FindChildAtPoint()
35562           - Implemented GetContainerControl()
35563           - Implemented Hide()
35564
35565 2004-09-10 19:28  pbartok
35566
35567         * Control.cs:
35568           - Moved methods into their appropriate #regions
35569           - Reordered methods within regions alphabetically
35570
35571 2004-09-10 18:57  pbartok
35572
35573         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
35574           - Added method to retrieve text from window
35575
35576 2004-09-10 18:56  pbartok
35577
35578         * Control.cs:
35579           - Moved some internal functions into the internal region
35580           - Implemented FontHeight
35581           - Implemented RenderRightToLeft
35582           - Implemented ResizeRedraw
35583           - Implemented ShowFocusCues
35584           - Implemented ShowKeyboardCues
35585           - Implemented FromChildHandle
35586           - Implemented FromHandle
35587           - Implemented IsMnemonic
35588           - Implemented ReflectMessage
35589           - All public and protected Static Methods are now complete
35590
35591 2004-09-10 16:54  pbartok
35592
35593         * Control.cs:
35594           - Implemented remaining missing public instance properties
35595           - Alphabetized some out of order properties
35596
35597 2004-09-10 05:51  ravindra
35598
35599         * PictureBox.cs: Added a check for null image.
35600
35601 2004-09-10 00:59  jordi
35602
35603         * GroupBox.cs: remove cvs tag
35604
35605 2004-09-09 05:25  ravindra
35606
35607         * ToolBar.cs: Make redraw accessible from ToolBarButton.
35608
35609 2004-09-09 05:23  ravindra
35610
35611         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
35612           parent redraw.
35613
35614 2004-09-09 02:28  pbartok
35615
35616         * ThemeWin32Classic.cs:
35617           - Improve disabled string look
35618
35619 2004-09-09 01:15  jordi
35620
35621         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
35622           args and handler
35623
35624 2004-09-08 23:56  ravindra
35625
35626         * ItemBoundsPortion.cs: It's enum, not a class!
35627
35628 2004-09-08 23:47  ravindra
35629
35630         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
35631           Enums for Form.
35632
35633 2004-09-08 21:13  ravindra
35634
35635         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
35636           ListView control.
35637
35638 2004-09-08 21:03  ravindra
35639
35640         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
35641           avoid crash.
35642
35643 2004-09-08 21:01  ravindra
35644
35645         * ScrollableControl.cs: Removed unreachable code.
35646
35647 2004-09-08 06:45  jordi
35648
35649         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
35650
35651 2004-09-08 01:00  jackson
35652
35653         * XplatUIX11.cs: Only run the timers when updating the message
35654           queue. This effectively gives X messages a higher priority then
35655           timer messages. Timers still need love though
35656
35657 2004-09-07 14:01  jackson
35658
35659         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
35660           this for us and the handle is no longer valid.
35661
35662 2004-09-07 13:59  jackson
35663
35664         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
35665           loop that manages to not crash. TODO: Add poll and cleanup timers
35666
35667 2004-09-07 11:12  jordi
35668
35669         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
35670
35671 2004-09-07 03:40  jordi
35672
35673         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
35674           fixes, methods, multiple links
35675
35676 2004-09-06 06:55  jordi
35677
35678         * Control.cs: Caches ClientRectangle rectangle value
35679
35680 2004-09-05 02:03  jordi
35681
35682         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
35683           certain situations
35684
35685 2004-09-04 11:10  jordi
35686
35687         * Label.cs: Refresh when font changed
35688
35689 2004-09-02 16:24  pbartok
35690
35691         * Control.cs:
35692           - Added sanity check to creation of double buffer bitmap
35693
35694 2004-09-02 16:24  pbartok
35695
35696         * ButtonBase.cs:
35697           - Fixed selection of text color
35698           - Fixed handling of resize event; now properly recreates double
35699             buffering bitmap
35700           - Added missing assignment of TextAlignment
35701           - Added proper default for TextAlignment
35702
35703 2004-09-02 14:26  pbartok
35704
35705         * RadioButton.cs:
35706           - Added missing RadioButton.RadioButtonAccessibleObject class
35707
35708 2004-09-02 14:26  pbartok
35709
35710         * Control.cs:
35711           - Added missing Control.ControlAccessibleObject class
35712           - Started to implement Select()ion mechanisms, still very incomplete
35713
35714 2004-09-02 14:25  pbartok
35715
35716         * AccessibleObject.cs:
35717           - Added missing methods
35718
35719 2004-09-02 14:23  pbartok
35720
35721         * AccessibleNavigation.cs, AccessibleSelection.cs:
35722           - Initial check-in
35723
35724 2004-09-02 10:32  jordi
35725
35726         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
35727           pool for pens, brushes, and hatchbruses
35728
35729 2004-09-01 15:30  jackson
35730
35731         * StatusBar.cs: Fix typo
35732
35733 2004-09-01 14:44  pbartok
35734
35735         * RadioButton.cs:
35736           - Fixed state
35737
35738 2004-09-01 14:39  pbartok
35739
35740         * Button.cs, RadioButton.cs:
35741           - Functional initial check-in
35742
35743 2004-09-01 14:01  pbartok
35744
35745         * CheckBox.cs:
35746           - Added missing default
35747           - Added missing region mark
35748
35749 2004-09-01 09:10  jordi
35750
35751         * Label.cs: fixes method signatures, new methods, events, fixes
35752           autosize
35753
35754 2004-09-01 07:19  jordi
35755
35756         * Control.cs: Init string variables with an empty object
35757
35758 2004-09-01 04:20  jordi
35759
35760         * Control.cs: fires OnFontChanged event
35761
35762 2004-08-31 20:07  pbartok
35763
35764         * ButtonBase.cs:
35765           - Enabled display of strings
35766
35767 2004-08-31 20:05  pbartok
35768
35769         * Form.cs:
35770           - Added (partial) implementation of DialogResult; rest needs to be
35771             implemented when the modal loop code is done
35772
35773 2004-08-31 19:55  pbartok
35774
35775         * CheckBox.cs:
35776           - Fixed to match the removal of the needs_redraw concept
35777
35778 2004-08-31 19:55  pbartok
35779
35780         * ButtonBase.cs:
35781           - Removed the rather odd split between 'needs redraw' and redrawing
35782           - Now handles the events that require regeneration (ambient
35783             properties and size)
35784
35785 2004-08-31 19:41  pbartok
35786
35787         * Control.cs:
35788           - Added firing of BackColorChanged event
35789           - Added TopLevelControl property
35790           - Fixed handling of WM_ERASEBKGRND message
35791
35792 2004-08-31 12:49  pbartok
35793
35794         * ButtonBase.cs:
35795           - Removed debug
35796           - Minor fixes
35797
35798 2004-08-31 12:48  pbartok
35799
35800         * CheckBox.cs:
35801           - Finished (famous last words)
35802
35803 2004-08-31 04:35  jordi
35804
35805         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
35806           scrolling bugs, adds new methods
35807
35808 2004-08-30 14:42  pbartok
35809
35810         * CheckBox.cs:
35811           - Implemented CheckBox drawing code
35812
35813 2004-08-30 14:42  pbartok
35814
35815         * ButtonBase.cs:
35816           - Made Redraw() and CheckRedraw() virtual
35817           - Improved mouse up/down/move logic to properly track buttons
35818
35819 2004-08-30 09:44  pbartok
35820
35821         * CheckBox.cs:
35822           - Updated to fix broken build. Not complete yet.
35823
35824 2004-08-30 09:28  pbartok
35825
35826         * CheckState.cs:
35827           - Initial checkin
35828
35829 2004-08-30 09:17  pbartok
35830
35831         * Appearance.cs:
35832           - Initial check-in
35833
35834 2004-08-27 16:12  ravindra
35835
35836         * ToolBarButton.cs: Added TypeConverter attribute.
35837
35838 2004-08-27 16:07  ravindra
35839
35840         * ImageIndexConverter.cs: Implemented.
35841
35842 2004-08-27 14:17  pbartok
35843
35844         * Control.cs:
35845           - Removed unneeded stack vars
35846           - First attempt to fix sizing issues when layout is suspended
35847
35848 2004-08-25 15:35  jordi
35849
35850         * ScrollBar.cs: more fixes to scrollbar
35851
35852 2004-08-25 14:04  ravindra
35853
35854         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
35855           Added the missing divider code and grip for ToolBar Control.
35856
35857 2004-08-25 13:20  pbartok
35858
35859         * Control.cs:
35860           - Control now properly passes the ambient background color to child
35861             controls
35862
35863 2004-08-25 13:20  jordi
35864
35865         * ScrollBar.cs: small bug fix regarding bar position
35866
35867 2004-08-25 12:33  pbartok
35868
35869         * Timer.cs:
35870           - Now only calls SetTimer or KillTimer if the enabled state has
35871           changed
35872
35873 2004-08-25 12:33  pbartok
35874
35875         * XplatUIWin32.cs:
35876           - Fixed timer handling, now seems to work
35877           - Improved error message for window creation
35878
35879 2004-08-25 12:32  pbartok
35880
35881         * Control.cs:
35882           - Fixed generation of MouseUp message
35883
35884 2004-08-25 12:29  jordi
35885
35886         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
35887           and fixes for progressbar
35888
35889 2004-08-24 18:43  ravindra
35890
35891         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
35892           in ToolBar control.
35893
35894 2004-08-24 17:15  pbartok
35895
35896         * Panel.cs:
35897           - Added #region
35898           - Added missing events
35899           - Alphabetized
35900
35901 2004-08-24 17:14  pbartok
35902
35903         * StatusBar.cs, PictureBox.cs:
35904           - Now uses Control's CreateParams
35905
35906 2004-08-24 16:36  pbartok
35907
35908         * XplatUIX11.cs:
35909           - Fixed background color handling
35910           - Fixed sending of enter/leave events on a grab
35911
35912 2004-08-24 16:35  pbartok
35913
35914         * X11Structs.cs:
35915           - Refined definitions for CrossingEvent
35916
35917 2004-08-24 12:37  jordi
35918
35919         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
35920           formmating, methods signature, and adds missing events
35921
35922 2004-08-24 12:24  jordi
35923
35924         * Control.cs: fire OnEnabledChanged event
35925
35926 2004-08-24 11:17  pbartok
35927
35928         * XplatUIWin32.cs:
35929           - Implemented SetTimer() and KillTimer()
35930
35931 2004-08-24 11:16  pbartok
35932
35933         * XplatUIX11.cs:
35934           - Now uses Remove instead of Add to kill the timer
35935
35936 2004-08-24 10:16  jackson
35937
35938         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
35939           picture boxes in the theme now. Draw picture box borders and obey
35940           sizing modes
35941
35942 2004-08-24 05:49  jackson
35943
35944         * Timer.cs: Remove top secret debugging code
35945
35946 2004-08-24 05:34  jackson
35947
35948         * PictureBox.cs: Temp hack to make picture boxes draw their full
35949           image
35950
35951 2004-08-24 05:29  jackson
35952
35953         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35954           XplatUIX11.cs: Move timers to the driver level. On X they are
35955           queued by the driver and checked on idle.
35956
35957 2004-08-24 01:07  jackson
35958
35959         * XplatUIX11.cs: Use a queue for async messages instead of passing
35960           them as ClientMessages since that was totally broken. Also simply
35961           check for events and return an idle message if none are found. This
35962           gives us an idle handler, and prevents deadlocking when no messages
35963           are in the queue.
35964
35965 2004-08-23 18:19  ravindra
35966
35967         * XplatUIWin32.cs: Removed the unwanted destructor.
35968
35969 2004-08-23 17:27  pbartok
35970
35971         * ButtonBase.cs:
35972           - Finishing touches. Works now, just needs some optimizations.
35973
35974 2004-08-23 16:53  jordi
35975
35976         * ScrollBar.cs: small fix
35977
35978 2004-08-23 16:45  pbartok
35979
35980         * Application.cs:
35981           - Removed debug output
35982           - Simplifications
35983
35984 2004-08-23 16:43  jordi
35985
35986         * ScrollBar.cs: [no log message]
35987
35988 2004-08-23 16:10  pbartok
35989
35990         * Form.cs:
35991           - Fixed handling of WM_CLOSE message
35992           - Removed debug output
35993
35994 2004-08-23 16:09  pbartok
35995
35996         * Application.cs:
35997           - Added handling of Idle event
35998           - Added handling of form closing
35999           - Fixed reporting of MessageLoop property
36000           - Removed some unneeded code, should provide a bit of a speedup
36001
36002 2004-08-23 15:22  pbartok
36003
36004         * Control.cs:
36005           - Added InitLayout() method
36006           - Added code to properly perform layout when Anchor or Dock property
36007             is changed
36008           - Changed 'interpretation' of ResumeLayout. MS seems to have a
36009             LAMESPEC, tried to do it in a way that makes sense
36010
36011 2004-08-23 14:10  jordi
36012
36013         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
36014           properties and methods
36015
36016 2004-08-23 13:55  pbartok
36017
36018         * Control.cs:
36019           - Properly fixed Jordi's last fix
36020           - Now uses Cursor's Position property instead of calling XplatUI
36021           directly
36022
36023 2004-08-23 13:44  jordi
36024
36025         * PaintEventHandler.cs: Adding missing attribute
36026
36027 2004-08-23 13:39  pbartok
36028
36029         * Cursor.cs:
36030           - Implemented Position property
36031
36032 2004-08-23 13:39  pbartok
36033
36034         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36035           - Added method to move mouse cursor
36036
36037 2004-08-23 13:39  pbartok
36038
36039         * XplatUIX11.cs:
36040           - Fixed setting of background color
36041           - Added method to move mouse cursor
36042
36043 2004-08-23 13:16  jordi
36044
36045         * Control.cs: avoids null exception
36046
36047 2004-08-22 17:46  jackson
36048
36049         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
36050           PictureBox
36051
36052 2004-08-22 17:40  jackson
36053
36054         * XplatUIX11.cs: Add some missing locks
36055
36056 2004-08-22 15:10  pbartok
36057
36058         * Control.cs, Form.cs:
36059           - Removed OverlappedWindow style from Control, instead it's default
36060             now is child
36061           - Made form windows OverlappedWindow by default
36062
36063 2004-08-22 13:34  jackson
36064
36065         * ScrollBar.cs: Update the position through the Value property so
36066           the OnValueChanged event is raised.
36067
36068 2004-08-22 12:04  pbartok
36069
36070         * SWF.csproj:
36071           - Added Cursor.cs and UserControl.cs
36072
36073 2004-08-22 12:03  pbartok
36074
36075         * Cursor.cs:
36076           - Started implementation, not usable yet
36077
36078 2004-08-22 12:00  pbartok
36079
36080         * UserControl.cs:
36081           - Implemented UserControl (complete)
36082
36083 2004-08-21 19:20  ravindra
36084
36085         * ToolBar.cs: Correcting the formatting mess of VS.NET.
36086
36087 2004-08-21 18:49  ravindra
36088
36089         * ToolBar.cs: Probably this completes the missing attributes in
36090           toolbar control.
36091
36092 2004-08-21 18:03  ravindra
36093
36094         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
36095           Fixed toolbar control signatures.
36096
36097 2004-08-21 16:32  pbartok
36098
36099         * LinkLabel.cs:
36100           - Signature Fixes
36101
36102 2004-08-21 16:30  pbartok
36103
36104         * Label.cs:
36105           - Signature fixes
36106
36107 2004-08-21 16:19  pbartok
36108
36109         * Control.cs, Label.cs:
36110           - Signature fixes
36111
36112 2004-08-21 15:57  pbartok
36113
36114         * ButtonBase.cs:
36115           - Added loads of debug output for development
36116           - Fixed typo in method name
36117
36118 2004-08-21 15:52  pbartok
36119
36120         * ToolBarButtonClickEventArgs.cs:
36121           - Added missing base class
36122
36123 2004-08-21 14:53  pbartok
36124
36125         * Control.cs:
36126           - Updated to match new GrabWindow signature
36127
36128 2004-08-21 14:51  pbartok
36129
36130         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36131           - Added method to get default display size
36132
36133 2004-08-21 14:23  pbartok
36134
36135         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36136           - Added method to query current grab state
36137           - Added argument to allow confining a grab to a window
36138
36139 2004-08-21 14:22  pbartok
36140
36141         * Keys.cs:
36142           - Added [Flags] attribute so that modifiers can be used in bitwise
36143           ops
36144
36145 2004-08-21 14:21  pbartok
36146
36147         * TrackBar.cs, ScrollBar.cs:
36148           - Replaced direct XplatUI calls with their Control counterpart
36149
36150 2004-08-21 13:32  pbartok
36151
36152         * Control.cs:
36153           - Implemented Created property
36154
36155 2004-08-21 13:28  pbartok
36156
36157         * Control.cs:
36158           - Implemented ContainsFocus
36159
36160 2004-08-21 13:26  pbartok
36161
36162         * Control.cs:
36163           - Implemented CausesValidation
36164
36165 2004-08-21 13:21  pbartok
36166
36167         * Control.cs:
36168           - Implemented CanFocus
36169           - Implemented CanSelect
36170           - Implemented Capture
36171
36172 2004-08-21 12:35  pbartok
36173
36174         * XplatUIWin32.cs:
36175           - Fixed bug with Async message handling
36176           - Implemented getting the ModifierKeys
36177
36178 2004-08-21 12:32  jackson
36179
36180         * AsyncMethodResult.cs: Make sure we have the mutex before we
36181           release it. Fixes BeginInvoke on windows
36182
36183 2004-08-21 11:31  pbartok
36184
36185         * XplatUIWin32.cs, XplatUIX11.cs:
36186           - Drivers now return proper mouse state
36187
36188 2004-08-21 10:54  jackson
36189
36190         * Control.cs: Implement EndInvoke
36191
36192 2004-08-21 10:48  jackson
36193
36194         * Timer.cs: Remove unneeded finalizer
36195
36196 2004-08-20 19:52  ravindra
36197
36198         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
36199           in mouse event handling in the ToolBar control.
36200
36201 2004-08-20 19:50  ravindra
36202
36203         * ImageList.cs: Changed draw method to use the arguments passed in
36204           to draw the image.
36205
36206 2004-08-20 18:58  pbartok
36207
36208         * XplatUIStructs.cs:
36209           - Added private message for async communication
36210
36211 2004-08-20 17:38  ravindra
36212
36213         * Control.cs: Made RightToLeft property virtual and removed a
36214           Console.WriteLine.
36215
36216 2004-08-20 14:39  jordi
36217
36218         * ThemeGtk.cs: use style_attach
36219
36220 2004-08-20 14:39  pbartok
36221
36222         * XplatUIWin32.cs:
36223           - Added jackson's Async code from X11 to Win32
36224
36225 2004-08-20 14:09  pbartok
36226
36227         * SWF.csproj:
36228           - Added all new files
36229
36230 2004-08-20 14:09  pbartok
36231
36232         * Control.cs:
36233           - Added call to set window background color
36234
36235 2004-08-20 14:03  pbartok
36236
36237         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
36238           - Added method for setting the window background
36239
36240 2004-08-20 14:02  pbartok
36241
36242         * XplatUIWin32.cs:
36243           - Added method for setting the background color
36244           - Added handling for erasing the window background
36245
36246 2004-08-20 13:45  jordi
36247
36248         * TrackBar.cs: fixes timer, new properties and methods
36249
36250 2004-08-20 13:34  jackson
36251
36252         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
36253           correct thread
36254
36255 2004-08-20 13:22  jackson
36256
36257         * Timer.cs: Timer Tick events are now handed through Controls Async
36258           mechanism so the callbacks are executed in the same thread as X
36259
36260 2004-08-20 13:19  jackson
36261
36262         * XplatUIDriver.cs: Expose functionality to send async messages
36263           through the driver
36264
36265 2004-08-20 13:18  jackson
36266
36267         * Control.cs: Implement Begininvoke
36268
36269 2004-08-20 13:14  jackson
36270
36271         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
36272           messages through the driver
36273
36274 2004-08-20 13:12  jackson
36275
36276         * XplatUIX11.cs: Lock before all X operations. Also added Async
36277           method functionality through XSendEvent
36278
36279 2004-08-20 13:11  jackson
36280
36281         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
36282           This will screw up on 64 bit systems)
36283
36284 2004-08-20 13:10  jackson
36285
36286         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
36287           Async messages through X/Win32
36288
36289 2004-08-19 19:39  pbartok
36290
36291         * XplatUIX11.cs:
36292           - Updated code to match new HandleData.DeviceContext type
36293
36294 2004-08-19 19:38  pbartok
36295
36296         * HandleData.cs:
36297           - Made DeviceContext a generic object to allow usage from various
36298           drivers
36299           - Added support for queueing Windows messages
36300
36301 2004-08-19 19:37  pbartok
36302
36303         * XplatUIWin32.cs:
36304           - Added generation of MouseEnter, MouseLeave and MouseHover events
36305           - Added cleanup on EndPaint
36306
36307 2004-08-19 19:17  pbartok
36308
36309         * Control.cs:
36310           - Added handling of WM_MOUSEHOVER
36311           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
36312           code
36313
36314 2004-08-19 18:55  jordi
36315
36316         * ThemeGtk.cs: fixes button order
36317
36318 2004-08-19 18:12  jordi
36319
36320         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
36321
36322 2004-08-19 17:09  pbartok
36323
36324         * Control.cs:
36325           - Added Right property
36326           - Added RightToLeft property
36327
36328 2004-08-19 16:27  jordi
36329
36330         * ThemeGtk.cs: experimental GTK theme support
36331
36332 2004-08-19 16:26  jordi
36333
36334         * ITheme.cs, Theme.cs: move themes from an interface to a class
36335
36336 2004-08-19 16:25  jordi
36337
36338         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
36339           theme enhancaments
36340
36341 2004-08-19 16:04  pbartok
36342
36343         * XplatUIX11.cs:
36344           - Added colormap basics
36345           - Added a way to re-initialize with a different display handle
36346           - Fixed setting of the window background color
36347           - Added various X11 imports related to colors and colormaps
36348
36349 2004-08-19 15:51  pbartok
36350
36351         * X11Structs.cs:
36352           - Removed packing hints (Paolo suggested this a while back)
36353           - fixed colormap type
36354           - Added default Atom types
36355           - Added Screen and color structs and enums
36356
36357 2004-08-19 15:39  pbartok
36358
36359         * ImageList.cs:
36360           - Added missing Draw() method
36361           - Added missing RecreateHandle event
36362
36363 2004-08-19 15:30  pbartok
36364
36365         * Form.cs:
36366           - Added handling of WM_CLOSE
36367
36368 2004-08-18 13:16  jordi
36369
36370         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
36371           a table
36372
36373 2004-08-18 09:56  jordi
36374
36375         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
36376
36377 2004-08-17 15:31  ravindra
36378
36379         * SWF.csproj: Updated project.
36380
36381 2004-08-17 15:25  pbartok
36382
36383         * Control.cs:
36384           - Drawing improvement; don't call UpdateBounds if we are not visible
36385             (or have been minimized)
36386
36387 2004-08-17 15:24  pbartok
36388
36389         * XplatUIWin32.cs:
36390           - Finished IsVisible
36391           - Added Win32GetWindowPlacement
36392
36393 2004-08-17 15:08  jackson
36394
36395         * Panel.cs: Initial checkin of the Panel
36396
36397 2004-08-17 14:25  pbartok
36398
36399         * Control.cs:
36400           - Fixed broken handling of default window sizes
36401
36402 2004-08-17 13:29  jackson
36403
36404         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
36405           has a large startup time.
36406
36407 2004-08-17 10:25  jackson
36408
36409         * HandleData.cs: union areas properly
36410
36411 2004-08-17 10:12  jackson
36412
36413         * HandleData.cs: union areas properly
36414
36415 2004-08-16 20:00  ravindra
36416
36417         * ToolBar.cs, ToolBarButton.cs: Added attributes.
36418
36419 2004-08-16 18:48  ravindra
36420
36421         * ToolBar.cs: Added attributes.
36422
36423 2004-08-16 17:17  ravindra
36424
36425         * SWF.csproj: Updated project.
36426
36427 2004-08-16 17:16  jackson
36428
36429         * XplatUIX11.cs: Check for more expose events before sending a
36430           WM_PAINT so they can all be grouped together. This makes dragging a
36431           window across another window redraw in a sane way.
36432
36433 2004-08-16 15:47  pbartok
36434
36435         * Control.cs:
36436           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
36437             support OnMouseEnter/Leave()
36438           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
36439             exposure handling
36440
36441 2004-08-16 15:46  pbartok
36442
36443         * XplatUIStructs.cs, XplatUIX11.cs:
36444           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
36445           OnMouseEnter/Leave()
36446
36447 2004-08-16 15:34  jackson
36448
36449         * XplatUIX11.cs: Group multiple expose events in HandleData, make
36450           sure messages get the message field set to WM_NULL if they are not
36451           handled.
36452
36453 2004-08-16 15:24  jackson
36454
36455         * HandleData.cs: HandleData is used for storing message information
36456           for window handles
36457
36458 2004-08-15 17:23  ravindra
36459
36460         * ColorDepth.cs: Added attribute.
36461
36462 2004-08-15 17:23  ravindra
36463
36464         * SWF.csproj: Updated project for ToolBar Control.
36465
36466 2004-08-15 17:20  ravindra
36467
36468         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
36469           control and also dos2unix format.
36470
36471 2004-08-15 17:13  ravindra
36472
36473         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
36474           ToolBarButtonClickEventArgs.cs,
36475           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
36476           ToolBarTextAlign.cs: First Implementation of ToolBar control.
36477
36478 2004-08-15 15:31  pbartok
36479
36480         * ButtonBase.cs:
36481           - First (mostly) working version
36482
36483 2004-08-13 16:15  pbartok
36484
36485         * Control.cs:
36486           - Fixed Anchor default
36487
36488 2004-08-13 15:43  pbartok
36489
36490         * Control.cs:
36491           - Changed GetCursorPos signature
36492
36493 2004-08-13 15:42  pbartok
36494
36495         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36496           - Changed signature for GetCursorPos
36497
36498 2004-08-13 15:25  pbartok
36499
36500         * XplatUIX11.cs:
36501           - Cleanup
36502           - Fixed resizing/exposure handling
36503
36504 2004-08-13 15:22  jordi
36505
36506         * ThemeWin32Classic.cs: removes redundant code and fixes issues
36507           with tickposition
36508
36509 2004-08-13 14:55  jordi
36510
36511         * TrackBar.cs: change from wndproc to events
36512
36513 2004-08-13 13:00  jordi
36514
36515         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36516           XplatUIX11.cs: implements PointToClient (ScreenToClient)
36517
36518 2004-08-13 12:53  pbartok
36519
36520         * XplatUIWin32.cs:
36521           - Changed GetWindowPos to also provide client area size
36522           - Fixed broken prototypes for several win32 functions
36523
36524 2004-08-13 12:53  pbartok
36525
36526         * XplatUI.cs, XplatUIDriver.cs:
36527           - Changed GetWindowPos to also provide client area size
36528
36529 2004-08-13 12:52  pbartok
36530
36531         * XplatUIX11.cs:
36532           - Added generation of WM_POSCHANGED
36533           - Changed GetWindowPos to also provide client area size
36534
36535 2004-08-13 12:52  pbartok
36536
36537         * Control.cs:
36538           - Added Dispose() and destructor
36539           - Fixed resizing and bounds calculation
36540           - Fixed Layout
36541           - Added memory savings for invisible windows
36542
36543 2004-08-13 12:46  jordi
36544
36545         * TrackBar.cs: adds timer and grap window
36546
36547 2004-08-13 10:25  jackson
36548
36549         * Timer.cs: SWF Timer
36550
36551 2004-08-12 16:59  pbartok
36552
36553         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36554           - Implemented method to get current mouse position
36555
36556 2004-08-12 14:29  jordi
36557
36558         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
36559           enhancement, fix mouse problems, highli thumb, etc
36560
36561 2004-08-12 13:31  pbartok
36562
36563         * Control.cs:
36564           - Fixed Anchoring bugs
36565
36566 2004-08-12 13:01  jackson
36567
36568         * StatusBar.cs: Don't forget things
36569
36570 2004-08-12 12:54  jackson
36571
36572         * ThemeWin32Classic.cs: Handle owner draw status bars
36573
36574 2004-08-12 12:54  jackson
36575
36576         * StatusBar.cs: Implement missing properties, events, and methods.
36577           Handle mouse clicking
36578
36579 2004-08-12 10:19  jackson
36580
36581         * StatusBarPanelClickEventArgs.cs,
36582           StatusBarPanelClickEventHandler.cs: Classes for handling status
36583           bar panel click events
36584
36585 2004-08-12 10:10  jackson
36586
36587         * Control.cs: Add missing properties
36588
36589 2004-08-12 09:46  pbartok
36590
36591         * BindingsManagerBase.cs:
36592           - Name changed to BindingManagerBase.cs
36593
36594 2004-08-12 09:25  jordi
36595
36596         * ScrollableControl.cs: calls ctrlbase instead of exeception
36597
36598 2004-08-11 16:28  pbartok
36599
36600         * InputLanguageChangingEventArgs.cs:
36601           - Never check in before compiling. Fixes the last check-in
36602
36603 2004-08-11 16:26  pbartok
36604
36605         * InputLanguageChangingEventArgs.cs:
36606           - More signature fixes
36607
36608 2004-08-11 16:20  pbartok
36609
36610         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
36611           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
36612           ImageListStreamer.cs, InputLanguage.cs,
36613           InputLanguageChangedEventArgs.cs,
36614           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
36615           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
36616           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
36617           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36618           - Signature fixes
36619
36620 2004-08-11 16:16  pbartok
36621
36622         * Application.cs:
36623           - Fixed Signature
36624           - Added .Net 1.1 method
36625
36626 2004-08-11 15:25  pbartok
36627
36628         * SWF.csproj:
36629           - Fixed BindingManagerBase.cs filename
36630
36631 2004-08-11 15:22  pbartok
36632
36633         * BindingManagerBase.cs:
36634           - Was checked in with wrong filename
36635
36636 2004-08-11 14:50  pbartok
36637
36638         * SWF.csproj:
36639           - Updated
36640
36641 2004-08-11 13:41  jordi
36642
36643         * XplatUIWin32.cs: Fixes ClientRect
36644
36645 2004-08-11 13:19  pbartok
36646
36647         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36648           XplatUIX11.cs:
36649           - We had SetWindowPos and MoveWindow to set window positions and
36650             size, removed MoveWindow. We have GetWindowPos, so it made sense to
36651             keep SetWindowPos as matching counterpart
36652           - Added some X11 sanity checking
36653
36654 2004-08-11 12:59  pbartok
36655
36656         * Control.cs:
36657           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
36658             (It seems that SetBounds is just a front for SetBoundsCore and
36659              SetBoundsCore updates the underlying window system and
36660              UpdateBounds is responsible for updating the variables associated
36661              with the Control and sending the events)
36662           - Major cleanup of Size handling; we now have two sizes, client_size
36663             and bounds. Bounds defines the window with decorations, client_size
36664             without them.
36665
36666 2004-08-11 12:55  pbartok
36667
36668         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36669           - Added method to calculate difference between decorated window and
36670             raw client area
36671
36672 2004-08-11 12:54  pbartok
36673
36674         * Label.cs:
36675           - Forcing redraw on resize
36676
36677 2004-08-11 11:43  pbartok
36678
36679         * ImageList.cs:
36680           - Removed disposing of the actual images when the list is disposed
36681
36682 2004-08-11 09:13  pbartok
36683
36684         * Control.cs:
36685           - Now properly reparents windows
36686
36687 2004-08-11 08:37  pbartok
36688
36689         * Control.cs:
36690           - Duh!
36691
36692 2004-08-11 07:47  pbartok
36693
36694         * Control.cs:
36695           - Rewrote the collection stuff. Might not be as fast now, not
36696             keeping the number of children around and accessible directly, but
36697             it's more straightforward
36698
36699 2004-08-11 07:44  pbartok
36700
36701         * AccessibleObject.cs:
36702           - Fixed to match ControlCollection rewrite
36703
36704 2004-08-11 07:43  pbartok
36705
36706         * ImageList.cs:
36707           - Added missing creation of the collection list
36708
36709 2004-08-10 20:08  jackson
36710
36711         * StatusBar.cs: Get the paint message from WndProc
36712
36713 2004-08-10 19:31  jackson
36714
36715         * ThemeWin32Classic.cs: Create Brushes as little as possible
36716
36717 2004-08-10 19:20  jackson
36718
36719         * UICues.cs: Add Flags attribute
36720
36721 2004-08-10 19:19  jackson
36722
36723         * StatusBarPanel.cs: Signature cleanup
36724
36725 2004-08-10 19:10  jackson
36726
36727         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
36728           Initial implementation of status bar item drawing
36729
36730 2004-08-10 17:27  jordi
36731
36732         * TrackBar.cs: add missing methods, properties, and restructure to
36733           hide extra ones
36734
36735 2004-08-10 16:24  jackson
36736
36737         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
36738           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
36739           attribute
36740
36741 2004-08-10 13:21  jordi
36742
36743         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
36744           enhancements and standarize on win colors defaults
36745
36746 2004-08-10 12:52  jackson
36747
36748         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
36749           ThemeWin32Classic.cs: Implement DrawItem functionality
36750
36751 2004-08-10 12:47  jordi
36752
36753         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
36754
36755 2004-08-10 12:32  jordi
36756
36757         * Control.cs: throw ontextchange event
36758
36759 2004-08-10 11:43  pbartok
36760
36761         * Control.cs:
36762           - Added more to the still unfinished Dock/Anchor layout code
36763
36764 2004-08-10 11:39  pbartok
36765
36766         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
36767           - Added GetWindowPos method
36768
36769 2004-08-10 11:36  pbartok
36770
36771         * XplatUIWin32.cs:
36772           - Implemented several methods
36773
36774 2004-08-10 09:47  jackson
36775
36776         * TrackBar.cs: Allow control to handle buffering
36777
36778 2004-08-10 09:41  jackson
36779
36780         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
36781
36782 2004-08-10 09:24  jackson
36783
36784         * Label.cs, LinkLabel.cs: Let Control handle buffering.
36785
36786 2004-08-10 09:09  jackson
36787
36788         * StatusBar.cs: Let Control handle all the buffering.
36789
36790 2004-08-10 09:08  jackson
36791
36792         * Control.cs: Control will now handle the buffering code, so each
36793           control does not have to implement this.
36794
36795 2004-08-10 08:34  jackson
36796
36797         * XplatUIDriver.cs: Use default colors from the theme
36798
36799 2004-08-09 17:12  pbartok
36800
36801         * ImageList.cs:
36802           - Fixed several bugs Ravindra pointed out
36803
36804 2004-08-09 16:11  pbartok
36805
36806         * Control.cs:
36807           - Added incomplete dock layout code
36808           - Added support for mouse wheel
36809
36810 2004-08-09 16:09  pbartok
36811
36812         * XplatUIX11.cs:
36813           - Added handling for middle and right mousebutton
36814           - Added handling for mouse wheel
36815           - Added handling for key state and mouse state and position
36816           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
36817           messages
36818
36819 2004-08-09 15:40  jackson
36820
36821         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
36822           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
36823           checkin
36824
36825 2004-08-09 15:37  jackson
36826
36827         * StatusBar.cs: Initial implementation of StatusBar
36828
36829 2004-08-09 15:36  jackson
36830
36831         * ITheme.cs: Add support for drawing status bar and getting status
36832           bar item sizes
36833
36834 2004-08-09 15:35  pbartok
36835
36836         * MouseButtons.cs:
36837           - Fixed values
36838
36839 2004-08-09 15:34  jackson
36840
36841         * ThemeWin32Classic.cs: Add support for drawing status bar and get
36842           status bar item sizes
36843
36844 2004-08-09 15:21  jackson
36845
36846         * ThemeWin32Classic.cs: Use known colors for default control
36847           colours
36848
36849 2004-08-09 15:12  jackson
36850
36851         * ThemeWin32Classic.cs: Make the default font static, it is static
36852           in control so this doesn't change functionality and creating fonts
36853           is sloooooow.
36854
36855 2004-08-09 14:56  pbartok
36856
36857         * X11Structs.cs:
36858           - Added GrabMode enum
36859
36860 2004-08-09 14:55  pbartok
36861
36862         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36863           - Removed Run method, was only required for initial development
36864
36865 2004-08-09 14:51  pbartok
36866
36867         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36868           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
36869           capture
36870
36871 2004-08-09 13:48  pbartok
36872
36873         * XplatUIX11.cs:
36874           - Fixed default sizing for child windows
36875
36876 2004-08-09 12:56  pbartok
36877
36878         * XplatUIX11.cs:
36879           - Added generation of WM_DESTROY message
36880           - Added handling of window manager induced shutdown
36881
36882 2004-08-09 11:31  jackson
36883
36884         * ThemeWin32Classic.cs: New names for control properties
36885
36886 2004-08-09 11:25  jackson
36887
36888         * Control.cs: Use new color names
36889
36890 2004-08-09 11:02  jackson
36891
36892         * XplatUI.cs: Get default window properties from the theme
36893
36894 2004-08-09 11:01  jackson
36895
36896         * ITheme.cs: The theme engine now controls default window
36897           properties
36898
36899 2004-08-09 11:00  jackson
36900
36901         * ThemeWin32Classic.cs: Add default window color properties
36902
36903 2004-08-09 10:17  jackson
36904
36905         * ThemeWin32Classic.cs: Use correct default back color
36906
36907 2004-08-09 10:05  jackson
36908
36909         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
36910           the theme now.
36911
36912 2004-08-09 09:56  jackson
36913
36914         * XplatUI.cs: Remove defaults, these are handled by the theme now.
36915
36916 2004-08-09 09:54  jackson
36917
36918         * Control.cs: Get default properties from the theme.
36919
36920 2004-08-09 09:53  jackson
36921
36922         * ITheme.cs: Themes now handle default control properties
36923
36924 2004-08-09 09:53  jackson
36925
36926         * ThemeWin32Classic.cs: Themes now handle default control
36927           properties so coloring will be consistent
36928
36929 2004-08-08 16:54  jordi
36930
36931         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
36932
36933 2004-08-08 15:08  jordi
36934
36935         * XplatUIX11.cs: fixes keyboard crash
36936
36937 2004-08-08 13:47  jordi
36938
36939         * Label.cs: add cvs header info
36940
36941 2004-08-08 12:09  jackson
36942
36943         * ThemeWin32Classic.cs: Add pen_buttonface
36944
36945 2004-08-08 11:52  jordi
36946
36947         * Label.cs, LinkLabel.cs: [no log message]
36948
36949 2004-08-08 11:34  jordi
36950
36951         * ThemeWin32Classic.cs: Use Windows Standard Colours
36952
36953 2004-08-07 17:32  jordi
36954
36955         * TrackBar.cs: throw exceptions of invalid enums values
36956
36957 2004-08-07 17:31  jordi
36958
36959         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
36960           draw method name
36961
36962 2004-08-07 16:56  jackson
36963
36964         * HorizontalAlignment.cs: Initial checkin
36965
36966 2004-08-07 13:16  jordi
36967
36968         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
36969           methods
36970
36971 2004-08-07 13:05  jordi
36972
36973         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
36974           GetSysColor defines
36975
36976 2004-08-06 18:01  pbartok
36977
36978         * ThemeWin32Classic.cs:
36979           - Fixed some rounding issues with float/int
36980
36981 2004-08-06 18:00  jackson
36982
36983         * DockStyle.cs, AnchorStyles.cs:
36984
36985                   Add flags and serializable attributes.
36986
36987 2004-08-06 17:46  pbartok
36988
36989         * XplatUIX11.cs:
36990           - Implemented GetParent
36991
36992 2004-08-06 17:18  pbartok
36993
36994         * TrackBar.cs:
36995           - Fixed some rounding issues with float/int
36996
36997 2004-08-06 17:17  pbartok
36998
36999         * X11Structs.cs, XplatUIX11.cs:
37000           - Fixed Refresh and Invalidate
37001
37002 2004-08-06 15:30  pbartok
37003
37004         * Control.cs, X11Structs.cs, XplatUIX11.cs:
37005           - Fixed recursive loop when resizing
37006           - Improved/fixed redrawing on expose messages
37007
37008 2004-08-06 09:53  jordi
37009
37010         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
37011           keyboard navigation
37012
37013 2004-08-06 08:02  pbartok
37014
37015         * X11Structs.cs, XplatUIX11.cs:
37016           - Fixed reparenting
37017           - Fixed window border creation
37018
37019 2004-08-05 15:38  pbartok
37020
37021         * XplatUIX11.cs:
37022           - Attempted fix for reparenting problems
37023
37024 2004-08-04 15:14  pbartok
37025
37026         * Control.cs:
37027           - Fixed Invalidation bug (calculated wrong client area)
37028           - Added ClientSize setter
37029
37030 2004-08-04 15:13  pbartok
37031
37032         * Form.cs:
37033           - Added AutoScale properties
37034
37035 2004-08-04 15:13  pbartok
37036
37037         * SWF.csproj:
37038           - Added latest files
37039
37040 2004-08-04 14:11  pbartok
37041
37042         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37043           XplatUIX11.cs:
37044           - Added Invalidate handling
37045
37046 2004-08-03 17:09  jordi
37047
37048         * XplatUIDriver.cs: fixes spelling mistake
37049
37050 2004-07-27 09:53  jordi
37051
37052         * TrackBar.cs: fixes trackbar events, def classname, methods
37053           signature
37054
37055 2004-07-27 09:29  jordi
37056
37057         * ScrollBar.cs: fixes scrollbar events
37058
37059 2004-07-27 04:38  jordi
37060
37061         * Control.cs: changes to be able to run winforms samples
37062
37063 2004-07-26 11:42  jordi
37064
37065         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
37066           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
37067
37068 2004-07-26 05:41  jordi
37069
37070         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
37071           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
37072           implementation
37073
37074 2004-07-22 09:22  jordi
37075
37076         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
37077           check link overlapping, implement events, and fixes
37078
37079 2004-07-21 10:28  jordi
37080
37081         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
37082
37083 2004-07-21 10:19  jordi
37084
37085         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
37086           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
37087           LinkLabelLinkClickedEventArgs.cs,
37088           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
37089           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
37090           implementation
37091
37092 2004-07-19 13:09  jordi
37093
37094         * Control.cs, Label.cs: label control re-written: added missing
37095           functionlity, events, and properties
37096
37097 2004-07-19 10:49  jordi
37098
37099         * Control.cs: fixes SetBounds logic
37100
37101 2004-07-19 01:29  jordi
37102
37103         * Control.cs: Call RefreshWindow only if the window has created
37104
37105 2004-07-15 14:05  pbartok
37106
37107         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
37108           - Implemented ImageList and ImageList.ImageCollection classes
37109           - Added ColorDepth enumeration
37110           - Updated SWF VS.Net project
37111
37112 2004-07-15 11:06  jordi
37113
37114         * XplatUIStructs.cs: added MsgButons enum
37115
37116 2004-07-15 11:03  jordi
37117
37118         * Control.cs: added basic mouse handeling events
37119
37120 2004-07-15 03:38  jordi
37121
37122         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
37123           Vertical TrackBar control implementation
37124
37125 2004-07-13 09:33  jordi
37126
37127         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
37128
37129 2004-07-13 09:31  jordi
37130
37131         * Control.cs, Form.cs: commit: new properties and fixes form size
37132           problems
37133
37134 2004-07-09 14:13  miguel
37135
37136         * ProgressBar.cs: Spelling
37137
37138 2004-07-09 11:25  pbartok
37139
37140         * ProgressBar.cs:
37141           - Removed usage of Rectangle for drawing. Miguel pointed out it's
37142           faster
37143
37144 2004-07-09 11:17  miguel
37145
37146         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
37147
37148                 * ProgressBar.cs: Fixed spelling for `block'
37149
37150                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
37151                 style guidelines.
37152
37153                 Avoid using the += on rect.X, that exposed a bug in the compiler.
37154
37155 2004-07-08 23:21  pbartok
37156
37157         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
37158           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
37159           BaseCollection.cs, Binding.cs, BindingContext.cs,
37160           BindingMemberInfo.cs, BindingsCollection.cs,
37161           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
37162           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
37163           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
37164           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
37165           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
37166           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
37167           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
37168           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
37169           FrameStyle.cs, GiveFeedbackEventArgs.cs,
37170           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
37171           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
37172           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
37173           InputLanguageChangedEventArgs.cs,
37174           InputLanguageChangedEventHandler.cs,
37175           InputLanguageChangingEventArgs.cs,
37176           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
37177           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
37178           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
37179           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
37180           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
37181           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
37182           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
37183           QueryAccessibilityHelpEventArgs.cs,
37184           QueryAccessibilityHelpEventHandler.cs,
37185           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
37186           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
37187           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
37188           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
37189           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
37190           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
37191           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
37192           XplatUIX11.cs, lang.cs:
37193           - Initial check-in
37194
37195