d78bb25052eebfd67f7727b75041e9f68c66c73f
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2
3         * ColorDialog.cs: Actually add the help button to the form, so it can
4         be visible.
5         Fixes #478555.
6
7 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8
9         * PrintPreviewDialog.cs: Don't use Dock.Fill for the
10         PrintPreviewControl, since it will be hidden in the top by our
11         toolbar. Use manual location and anchoring instead.
12         Fixes #474889.
13
14 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
15
16         * FileDialog.cs: When saving the size of the dialog, use the
17         ClientSize instead of Size, so we have always the same size for the
18         form. Patch by Alex Shulgin.
19         Fixes #503064.
20
21 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22
23         * MessageBox.cs: When showing the dialog call XplatUI.AudibleAlert to
24         show a beep, similar to what .net does. 
25         Fixes #473725.
26
27 2009-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
28
29         * ContainerControl.cs:
30         * MenuStrip.cs
31         * ToolStrip.cs: Implicit mnemonic processing should happen for every
32         ToolStrip child, not only for MenuStrip, so we are going to do that in
33         ToolStrip.ProcessMnemonic, where we already had that exactly
34         functionality, but we are only just checking that either this instance
35         is a ToolStripDropDownMenu instance or Alt has been pressed. Finally
36         remove the extra code, since we are not going to use it now.
37         Fixes the remaining bits of #503663.
38
39 2009-05-21  Neville Gao  <nevillegao@gmail.com>
40
41         * ContextMenu.cs: Cleaned up UIA properties.
42
43 2009-05-20  Dick Porter  <dick@acm.org>
44
45         * XplatUICarbon.cs: Add more locking around MessageQueue
46         manipulations.
47
48 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
49
50         * DateTimePicker.cs: Call Focus in HideMonthCalendar to avoid
51         duplication of code, as well as actually getting the focus back in
52         *any* scenario where the drop down is closed.
53
54 2009-05-18 Tom Hindle <tom_hindle@sil.org>
55         * ScrollableControl.cs: Ignore setting properties HScroll and 
56         VScroll when AutoScroll is true.
57         [Fixes bug #500213]
58
59 2009-05-18  Jonathan Pobst  <monkey@jpobst.com>
60
61         * ToolStripRenderer.cs: Apply patch from Thomas Goldstein to make
62         disabled graphics look closer to the ones that .Net produces.
63         [Fixes bug #473660]
64
65 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
66
67         * DateTimePicker.cs: When calculating the max width for the year part,
68         use the current value, since *all* the possible values are exactly a 4
69         digits number. This way we avoid a ArgumentOutOfRangeException trying
70         to check against different values.
71         Fixes #500917.
72
73 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
74
75         * MessageBox.cs: When handling ProcessDialogChar, check that
76         CancelButton is not null before trying to use it, to avoid a null ref
77         exception. We don't need to do that on the ok/yes buttons, since they
78         always exist.
79         Fixes #503935.
80
81 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
82
83         * ListBox.cs: Handle the key down event in WndProc instead of doing it
84         in an event handler, as we need to avoid any operation in case
85         the user has handled it in its own OnKeyDown handler, and this can't
86         be achieved since our handler would be the first one always.
87         * FontDialog.cs: Update the calls since our method handling key down
88         has been renamed.
89         Fixes #503469.
90
91 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
92
93         * Application.cs: We should dismiss the active ToolStrip when we
94         receive a WM_SYSKEYDOWN message, instead of WM_SYSKEYUP, so the next
95         keyboard short cut can be properly processed by another menu item.
96         Fixes part of #503663.
97
98 2009-05-13  Andreia Gaita  <avidigal@novell.com>
99
100         * HtmlDocument.cs: If the objects are strings, wrap them in ""
101
102 2009-05-13  Andreia Gaita  <avidigal@novell.com>
103
104         * HtmlDocument.cs: Fix InvokeScript call (duh).
105
106 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
107
108         * TextBox.cs: Expose IsAutoCompleteAvailable as internal.
109         * ComboBox.cs: If auto complete is being used, it is needed to update
110         the actual value of the combo box, doing it immediately if the user
111         presses Enter, or doing it when our combo box loses focus. Finally,
112         when handling Enter and Escape keys for the combobox, don't try to
113         hide the listbox if it is not visible in the first place. 
114         Fixes part of #489339.
115
116 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
117
118         * ToolStripDropDownMenu.cs: Use the height returned by
119         ToolStripItem.GetPreferredHeight to calculate our own height.
120
121 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
122
123         * TreeNode.cs: When setting Checked, do a double null check, since the
124         current node can still get a null parent handling
125         TreeView.OnAfterCheck.
126         Fixes #502567.
127
128 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
129
130         * Control.cs: When assigning ContextMenu, do a null check before
131         assigning its container field.
132
133 2009-05-08  Brad Taylor  <brad@getcoded.net>
134
135         * DateTimePicker.cs: Add a UIA-specific property to ensure that if
136         is_checkbox_checked is changed, we won't break.
137
138 2009-05-08  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
139
140         * ToolStripItem.cs: Prevent NRE when our holder is a
141         ToolStripDropDownButton and we get Select()ed.
142
143 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
144
145         * ToolStripControlHost.cs: DefaultSize must return the current size of
146         the Control, not the value returned by GetPreferredSize. Also connect
147         a handle to the control Resize event, and use it to fire
148         OnHostedControlReize.
149         Fixes the remaining bits of #483146.
150
151 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
152
153         * ToolStripDropDown.cs: When performing the layout, use
154         ToolStripItem.GetPreferredSize ().Height instead of
155         ToolStripItem.Height, since we are already using it that way in this
156         same method.
157         Fixes part of ##483146.
158
159 2009-05-08  Brad Taylor  <brad@getcoded.net>
160
161         * DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers.  Send
162         OnUIASelectionChanged when ShowCheckbox is true and the checkbox
163         recieves focus.  Part of fix for #502029.
164
165 2009-05-06  Mike Gorse  <mgorse@novell.com>
166
167         * FileDialog.cs: Add UIAFocusedItemChanged to PopupButtonPanel.
168         Add PerformClick and PerformDoubleClick to PopupButton.
169         Fixes #499851.
170
171 2009-05-04  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
172
173         * TabControl.cs: call Focus() to emit GotFocus event at the
174         proper time when SelectionIndex changes. Fixes #499887.
175
176 2009-05-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
177
178         * MonthCalendar.cs: In SetBoundsCore always do the bounds check to
179         have valid values, even if BoundSpecified is not including
180         Size/Height/Width - this is useful when we are in a control using Dock
181         or Anchor.
182         Fixes part of #483146.
183
184 2009-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
185
186         * ComboBox.cs: When losing the focus, if our textbox is not null,
187         close its auto complete list, if any.
188         Fixes part of #489339.
189
190 2009-04-27  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
191
192         * ListView.cs: Make OnColumnClick +internal to be used by a11y.
193
194 2009-04-27  Brad Taylor  <brad@getcoded.net>
195
196         * ToolStripButton.cs: Emit an internal event when CheckOnClick is
197         changed.
198
199 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
200
201         * XplatUIX11.cs: Properly support UTF8 when handling the
202         SelectionRequest event - this is helpful supporting some window
203         managers, such KDE, that explictly request the text in utf8, as
204         opposed to gnome, that supports ascii.
205         Fixes #489393.
206
207 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
208
209         * ToolStripDropDownItem.cs: When assigning a new
210         ToolStripDropDownMenu, let it know we are its OwnerItem. This way the
211         Capture duties performed by Application/ToolStripManager are handled
212         nicely and we don't end up in an inconsisten stat.
213         Fixes #492815.
214
215 2009-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
216
217         * ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close
218         any ToolStripDropDownItem when receiving a mouse down event in an
219         empty area.
220
221 2009-04-24  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
222
223         * ToolBarButton.cs: add UIA events for style and dropdownmenu changes.
224
225 2009-04-24  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
226
227         * ToolBarButton.cs: rename a method to include UIA prefix.
228
229 2009-04-24  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
230
231         * ToolBarButton.cs: change visibility of some UIA methods from
232         protected virtual to private.
233
234 2009-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
235
236         * ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
237         fire OnDropDownOpened/OnDropDownClosed depending on the new
238         visibility. This also ensures that any direct access to this instance
239         will fire the mentioned events for the OwnerItem.
240         * ToolStripDropDownItem.cs: Remove the invocations to
241         OnDropDownOpened/OnDropDownClosed, since they are handled in
242         ToolStripDropDown, as well as updating the
243         OnDropDownHide/OnDropDownShow calls to be in the right order.
244         Fixes #496193.
245
246 2009-04-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
247
248         * Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any 
249         shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the 
250         event is the same as the owner of the menu item. Also set properly 
251         SourceControl for ContextMenuStrip, as well as add an internal field to 
252         contain the control that owns the ContextMenuStrip (we need to know this 
253         even before the public property is assigned).
254         Fixes bits of #393775.
255
256 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
257
258         * StatusStrip.cs: Use the same icon as .net when the mouse is over the
259         size grip.
260         Fixes #492828.
261
262 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
263
264         * ComboBox.cs: When calculating the height of the ComboListBox,
265         specially for the 2.0 profile, use MaxDropDownItems if the
266         DropDownHeight property hasn't been set, and use the later if it has
267         been set. This way we support both properties.
268         Fixes #493308.
269
270 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
271
272         * ThreadExceptionDialog.cs: Draw the error icon, previously missing.
273         Fixes #474253.
274
275 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
276
277         * ContainerControl.cs: Implement support for Control.CausesValidation,
278         by adding a pending list of controls to be validated in the top
279         container control, and postpone validation as needed. 
280         Also remove any control in the validation chain in case it gets removed 
281         from its owner before the pending validation actually happens.
282         Fixes #457170.
283
284 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
285
286         * ListBox.cs: The default instance StringFormat field used to draw our
287         items should use the StringFormatFlags.NoWrap value, so it doesn't try
288         to put in a different line the text that doesn't fit our bounds, but
289         show it partially.
290         Fixes #475581.
291
292 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
293
294         * CheckedListbox.cs: When executing OnItemClick check that the index
295         is different to -1 before trying to retrieve an item using that value.
296         Fixes a ArgumentOutOfRangeException thrown when the horizontal
297         scrollbar was visible but not needed, and then a clicked was received
298         on its area.
299
300 2009-04-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
301
302         * MaskedTextBox.cs: If Insert is pressed, change the internal
303         overwrite mode for our default value.
304         Fixes some bits of #477395.
305
306 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
307
308         * ListView.cs: In EnsureVisible avoid any direct access to items if we
309         are using virtual mode - otherwise use the bounds stored in a specific
310         item in a given index. This is specially important when using groups
311         or when items are re-arranged, since the position in the items
312         collection can be different than that one being displayed.
313         Fixes the rest of ##491978.
314
315 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
316
317         * ThemeWin32Classic.cs: Include the previous check for ListView in a
318         2.0 define as needed.
319
320 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
321
322         * ThemeWin32Classic.cs: Don't draw ListView's gridlines if we are using groups.
323         Fixes part of #491978.
324
325 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
326
327         * ToolTip.cs: New fields to store the title/icon information.
328         * ThemeWin32Classic.cs: Implement support for tooltip's title and
329         icon.
330         Fixes #491978.
331
332 2009-04-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
333
334         * TabControl.cs: When removing a tab that was previously selected, set
335         internally the value of selected_index to -1, to avoid trying to
336         access the previous one when trying to set the new one (and was
337         already removed from the collection). This is what .net seems to do
338         too.
339         Fixes #490937.
340
341 2009-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
342
343         * XplatUIX11.cs, X11Clipboard.cs: Text and Rtf formats must be
344         separated, and we cannot fallback on Text if Rtf is requested but not
345         present.
346         * Clipboard.cs: Actually use the format specified by our user when
347         putting data.
348
349 2009-03-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
350
351         * X11Clipboard.cs: Actually look for the RtfText format when calling
352         GetRftText in our clipboard formats list, instead of using the
353         generical Text format.
354
355 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
356
357         * TextBox.cs: Process auto completion properly when we are using the
358         internal source provided by ComboBox, and also remove some repeated
359         checks.
360         Fixes #489339.
361
362 2009-03-30 Tom Hindle <tom-hindle@sil.org>
363         
364         * DataGridView added Support for Invisible Columns to 
365         AutoFillColumnsInternal method.
366
367 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
368
369         * X11Structs:
370         * X11Clipboard.cs: Move internal ClipboardStruct from X11Structs to
371         its own file, since it is adding some functionality and thus is not a
372         simple struct as before.
373         * XplatUIX11.cs: Add support to store different formats that could
374         have been specified by the user when puting data in the Clipboard -
375         this is important when more than one format is supported (such plain
376         text and rtf text). Update in the needed places, as well as simplify
377         the code.
378         Fixes #489625.
379
380 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
381
382         * XplatUIX11.cs: When handling the SelectionRequest event, use
383         SelectionRequestEvent instead of SelectionEvent, so we get the right
384         data for the app asking for clipboard data. Set the member of
385         SelectioneEvent.property to indicate the place where we are storing
386         the information as well - this is specially important for gnome/kde
387         apps using the TARGETS atom to ask for the supported permission before
388         actually asking for a specific format.
389         Fixes #489393.
390
391 2009-03-28  Ivan N. Zlatev  <contact@i-nz.net>
392
393         * DataGridViewCell.cs: We don't support drawing all types of cell borders, 
394         so fallback and at least draw something instead of nothing.
395
396 2009-03-27  Ivan N. Zlatev  <contact@i-nz.net>
397
398         * DataGridView.cs: If the column header isn't visible allow resizing 
399         using the cell column border. Also be sure to reset the cursor properly.
400         [Fixes bug #489929]
401
402 2009-03-26   Carlos Alberto Cortez <calberto.cortez@gmail.com>
403
404         * ToolStrip.cs: When disposing, iterate over the items in reverse
405         order, since disposing the items modifies the collection.
406         * ToolStripItem.cs: Remove from the owner when disposing.
407         Fixes #485769.
408
409 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
410
411         * DataGridView.cs: Add an implementation for UpdateRowHeightInfo. No 
412         longer throws a NotImplementedException.
413           Based on a patch by Tom Hindle <tom_hindle@sil.org>
414         [Fixes bug #488319]
415
416 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
417
418         * DataGridView.cs: Implement IsCurrentRowDirty. No longer throws 
419         NotImplementedException.
420
421 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
422
423         * DataGridViewColumn.cs, DataGridViewTextBoxColumn.cs: 
424         Fix SortMode clash handling.
425         [Fixes bug #488263]
426
427 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
428
429         * DataGridView.cs: Do not show the vertical scrollbar if there is only 
430         one row or less. For the sake of MSNET compatibility.
431         [Fixes bug #487988]
432
433 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
434
435         * DataGridView.cs: When the current cell is moved out of the editing row 
436         be sure to reset it back to a place holder row.
437
438 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
439
440         * DataGridView.cs: If IsHandleCreated and the very first row is added 
441         to the grid in a non-databound scenario - select the first cell.
442         [Fixes bug #486881]
443
444 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
445
446         * DataGridView.cs: If we are not databound and empty once the first row 
447         gets added select the first cell.
448         [Fixes bug #486881]
449
450 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
451
452         * DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
453         DataGridView. They do not belong to a DataGridView.
454         [Fixes bug #486645]
455
456 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
457
458         * DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs: 
459         Set indices and associate with DataGridView only after the item is 
460         add to the internal list.
461         [Fixes part of bug #486645]
462
463 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
464
465         * DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount. 
466         FullRowTemplate already contains all the cells.
467         [Fixes part of bug #486645]
468
469 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
470
471         * DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal 
472         to perform Pre and Post removal actions to allow the current cell to be 
473         moved and all events fired properly before the column is removed.
474
475 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
476
477         * DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and 
478         Post removal action to allow the current cell to be moved and all events fired 
479         properly before the row is removed.
480
481 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
482
483         * DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
484         [Fixes bug #486640]
485
486 2009-03-18  Jonathan Pobst  <monkey@jpobst.com>
487
488         * XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
489         placement of popup windows on OSX.
490
491 2009-03-18  Matt Guo  <matt@mattguo.com>
492
493         * FontDialog.cs: Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem
494         [Fixes bug #482690]
495
496 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
497
498         * DataGridView.cs: Implement the CellMouseDoubleClick event.
499         [Fixes bug #486262]
500
501 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
502
503         * DataGridView.cs: Fix scrolling to take into account that the 
504         scrollbars are actually inside the client area of the datagridview.
505
506 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
507
508         * DataGridView.cs: Implement mouse wheel scrolling.
509         [Fixes bug #486159]
510
511 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
512
513         * DataGridView.cs: When DataSource changes the rebinding should happen 
514         not if IsHandleCreated but if BindingContext != null.
515         [Fixes bug #486013]
516
517 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
518
519         * DataGridView.cs: Browsable(false) properties should be skipped when 
520         autogenerating the columns.
521         [Fixes bug #486021]
522
523 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
524
525         * DomainUpDown.cs: When ReadOnly is true, all the text entered by the
526         user should use a different handling, trying to use every pressed char
527         as a unique and only one prefix to compare against the items. Also,
528         refactor some input check code to avoid duplication.
529         Fixes #458607.
530
531 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
532
533         * DataGridViewCell.cs: In OwningColumng Handle invalid column index 
534         silently.
535         [Fixes bug #485278]
536
537 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
538
539         * DataGridViewBand.cs: Update our State whenever a property changes.
540         * DataGridView.cs: Don't be so generous in reseting Displayed, because 
541         it will spawn lots and lots of unneeded State changed events.
542         [Fixes bug #484989]
543
544 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
545
546         * DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs: 
547         Add support for invisible rows and columns.
548         [Fixes bug #484951]
549
550 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
551
552         * DataGridViewCell.cs: Escape literal { in ToString.
553         * DataGridViewTextBoxCell.cs: Fix ToString.
554         [Fixes bug #484923]
555
556 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
557
558         * MenuAPI.cs: When navigating items using the keyboard properly handle
559         the case when no item is selected - this way we should try to select
560         the first or the last item depending on the direction, but no the
561         second or third one, etc.
562
563 2209-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
564
565         * Form.cs: When calling ProcessCmdKey, just after checking for any
566         MainMenu, check if there's an active ContextMenu that is *not* owned
567         by the form - this is needed when a non-focusable control owns a
568         ContextMenu but its ProcessCmdKey method can't be called since it
569         can't receive any input.
570         Fixes #477655.
571
572 2009-03-13  Neville Gao  <nevillegao@gmail.com>
573
574         * ToolBar.cs: Sent ButtonClick events when button style is DropDown.
575         * ContextMenu.cs: Add UIA Framework property UIAVisible to detect if
576         ContextMenu is displayed.
577
578 2009-03-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
579
580         * XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
581         WM_HELP message for the associated window, don't call
582         NativeWindow.WndProc *at all*, since this could send a WM_*
583         key-related to Control.WndProc. Also, return the keypress message, in
584         case it needs to be preprocessed for any menu.
585         Fixes #478476.
586
587 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
588
589         * DataGridView.cs: When removing the first displayed row and moving 
590         the current cell up one we must invalidate the first displayed row 
591         index before calculating the row heights, etc.
592         [Fixes bug #483202]
593
594 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
595
596         * DataGridView.cs: Fix three column bugs:
597            - Rows should be cleared (but not removed) if columns become 0.
598            - The current cell should get moved
599            - ColumnCount increase was adding too many columns.
600
601 2009-03-07  Ivan N. Zlatev  <contact@i-nz.net>
602
603         * DataGridView.cs: Fix RowCount decrease which wasn't working well 
604         in both scenarions - with and without editing row.
605
606 2009-03-06  Ivan N. Zlatev  <contact@i-nz.net>
607
608         * DataGridView.cs: Be compatible with MS in that the scroll to 
609         selection has a synchronous effect. The trick here is that in 
610         order to avoid unnecessary calculations each time a row/column 
611         is added/removed we recalculate the whole grid size just before 
612         just before the scroll to selection.
613         [Fixes bug #482478]
614
615 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
616
617         * RichTextBox.cs: LoadFile(string path) should pass by default
618         RichTextBoxStreamType.RichText, without caring about the detection or
619         extension of the file.
620
621 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
622
623         * RichTextBox.cs: When calling LoadFile, remove the extra EOL
624         introduced by StreamReader, since it will convert the EOF to an EOL.
625         Fixes #479646.
626
627 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
628
629         * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
630         preferred size twice.
631
632 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
633
634         * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
635         string if we aren't on a ToolStripDropDownMenu.
636
637 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
638
639         * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
640         code from Item to Button.  Patch from Alex Shulgin.
641
642 2009-03-05  Jonathan Pobst  <monkey@jpobst.com>
643
644         * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
645         * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
646         not a ToolStripDropDown.
647         * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
648
649 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
650
651         * DataGridView.cs: Fix RowCount/ColumnCount decreasing.
652
653           Based on a patch by Tom Hindle <tom_hindle@sil.org>
654           [Fixes bug #482133]
655
656 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
657
658         * DataGridView.cs, DataGridViewElement.cs: 
659            - Always calls OnDataGridViewChanged() if the new DGV is 
660            not the same/null as the current one.
661            - Do not throw NREs when setting TopLeftHeaderCell to null
662            - Unset the DGV for TopLeftHeaderCell when replacing it
663           Based on a patch by Tom Hindle <tom_hindle@sil.org>
664           [Fixes bug #481681]
665
666 2009-03-04  Jonathan Pobst  <monkey@jpobst.com>
667
668         * ToolStripDropDown.cs: When dismissing control due to ESC, don't
669         hit a NRE if we are a ContextMenuStrip and do not have a parent.
670         [Fixes bug #478616]
671
672 2009-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
673
674         * ListView.cs: When removing items from a ListViewItemCollection
675         contained in ListView (not in ListViewGroup), before actually removing
676         the items remove them also from their -if any- associated groups. If
677         the item is present in ListViewGroup.Items but not in ListView.Items,
678         then don't remove it - this is *exactly* what .net seems to do.
679         Fixes the remaining bits of #478689.
680
681 2009-02-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
682
683         * ListView.cs: In our MouseDown handler in ItemControl use the item in
684         the very specific *real* position where the mouse was pressed, using
685         GetItemAtDisplayIndex for that purpose, instead of directly accessing
686         Items - this is specially useful when groups with Details view is
687         used. This is what we do in other places when using groups.
688         Fixes part of #478689.
689
690 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
691
692         * MaskedTextBox.cs: Properly replace selection when a new valid key
693         is pressed - even when IsOverwriteMode is false. This is what .net
694         does.
695
696 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
697
698         * MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
699         true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace, 
700         since Set will keep the previous value in case of error (just what we
701         need), but still call MaskedTextProvider.Clear if
702         RejectOnFirstFailure is false - match .net.
703
704 2009-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
705
706         * MaskedTextBox.cs: When setting Text use the very precise algorithm
707         that .net uses: iterate over every char of the new value, trying to
708         use every char, and use a normal call to MaskedTextProvider.Replace
709         call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected 
710         in case of error in both cases, as well.
711         Fixes #477408.
712
713 2009-02-25  Neville Gao  <nevillegao@gmail.com>
714
715         * ColorDialog.cs: Added UIA Framwork Property:
716         UIASelectedSmallColorControl.
717
718 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
719
720         * MaskedTextBox.cs: Forgot to update the call of the new method
721         introduces in the previous patch.
722
723 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
724
725         * MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
726         key. Also create a new method to avoid code duplication between
727         OnKeyDown and OnKeyPress.
728         Fixes #477388.
729
730 2009-02-24  Ivan N. Zlatev  <contact@i-nz.net>
731
732         * DataGridViewCell.cs: Invalidate the datagrid when the cell is selected 
733         or deselected.
734         [Fixes bug #479124]
735
736 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
737
738         * MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
739         actually inversed, so put it the right way. Also, don't automatically
740         look for the next editable item after adding a new one, but way for
741         the next insertion (this is what .net does) - this is not needed when
742         MaskedTextProvider.InsertAt is called however, since it already looks for the
743         next editable position.
744         Fixes the remaining bits of #477383.
745
746 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
747
748         * MaskedTextBox.cs: In OnKeyPress handle backspace by calling
749         MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
750         property after the text was modified, adjust the testPosition value
751         depending on what method was called.
752         Fixes part of #477383.
753
754 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
755
756         * ListView.cs: For EnsureVisible, adjust the view port bounds based on
757         the existence of the column headers, as well as using this information
758         to adjust the vscrollbar value, so items never get hidden by the
759         column headers.
760         Fixes #478498.
761
762 2009-02-23  Ivan N. Zlatev  <contact@i-nz.net>
763
764         * DataGridView.cs: Make the ScrollBars property work properly.
765
766 2009-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
767
768         * TextBox.cs: Some code lifting for AutoComplete's support. First,
769         when handling non-navigation keys, save the original Text typed by the
770         user, and don't motify it BEFORE. This was a design mistake, since the
771         re-assignation happens only when navigating the append/suggest list,
772         not while creating the matches. Also, process the Delete key just like 
773         the backspace one. Finally, when handling WM_CHAR, ignore both Escape
774         and Enter keys.
775         Fixes some missing bits of #469967.
776
777 2009-02-22  Ivan N. Zlatev  <contact@i-nz.net>
778
779         * DataGridView.cs: Fix row removal in the data-bound scenario.
780
781 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
782
783         * DataGridViewCell.cs: Use strict equality comparison in order to 
784         prevent superfluous CellValueChanged events.
785
786 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
787
788         * DataGridView.cs: Do not reset the columns when the data list changes, 
789         but only the rows. Fixes multiple bugs related to sorting, custom 
790         column styles being reset and more.
791
792 2009-02-19  Jonathan Pobst  <monkey@jpobst.com>
793
794         * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
795         drawing the image.
796
797 2009-02-18  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
798
799         * ToolBarButton.cs: Oops, use the correct event (fix r127298).
800
801 2009-02-17  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
802
803         * ToolBarButton.cs: Event for Enabled property (needed to fix
804           UIA #474197).
805
806 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
807
808         * TextBox.cs: When handling WndProc with autocomplete activated,
809         event if the new text is not causing any change in the look up
810         algorithm, save it as we normally do when numbers and letters.
811         Fixes #469967.
812
813 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
814
815         * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
816         Invalidate the proper bounds in the TreeView, not only resetting the
817         width.
818         Fixes #475542.
819
820 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
821
822         * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
823         BackColor property. This is what .net does in both 1.1 and 2.0.
824         * TreeView.cs: When selected_node is not the same as highlighted_node,
825         we need to handle the back color in a different way, trying to use the
826         node's BackColor if it's not Color.Empty.
827         Fixes #464200.
828
829 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
830
831         * TreeView.cs: When canceling selection in our MouseUp handler,
832         invalidate also the previous selected node bounds.
833         Fixes #464191.
834
835 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
836
837         * DataGridView.cs: End or if end fails then cancel the current edit 
838         operation before clearing the data source.
839
840 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
841
842         * DataGridView.cs: Data-bind only after the handle is created.
843         [Fixes bug #473680]
844
845 2009-02-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
846
847         * TreeView.cs: When handling the MouseMove event, check if
848         focused_node and selected_node fields are null - usually they are non
849         null, since we have always a selected node, but canceling selection by
850         handling BeforeSelect event leaves the two of them as null.
851         Fixes #470451.
852
853 2009-02-06  Neville Gao  <nevillegao@gmail.com>
854
855         * TabControl.cs: Control enabled to support accessibility.
856         [Fixes Bug #472428]
857
858 2009-02-05  Ivan N. Zlatev  <contact@i-nz.net>
859
860         * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation: 
861            - Use ArrayList.Insert instead of the Item property so that the item 
862            is actually inserted and not an existing item replaced.
863            - Call DataGridView.OnRowsAddedInternal and drop internal from 
864            OnRowsAdded for binary compitability. This also fixes several 
865            redrawing issues.
866         [Fixes bug #472968]
867
868 2009-02-05  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
869
870         * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
871           the value.
872
873 2009-02-04  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
874
875         * ToolBarButton.cs: Add another event (OnUIATextChanged).
876
877 2009-02-04  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
878
879         * ToolBarButton: Fix typo in previous commit (r125704).
880
881 2009-02-04  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
882
883         * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
884         when a button gets focus, firing the events from the ToolBar.
885         r: jpobst
886
887 2009-02-04  Mario Carrion  <mcarrion@novell.com>
888
889         * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting 
890         Width.
891         * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
892         ColumnHeader to raise ColumnWidthChanged.
893         [Fixes Bug #467086]
894
895 2009-02-03  Ivan N. Zlatev  <contact@i-nz.net>
896
897         * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion 
898         code in the row collection code, so that the completion happens before 
899         the CollectionChanged event, also better encapsulation.
900         [Fixes bug #471987]
901
902 2009-02-02  Ivan N. Zlatev  <contact@i-nz.net>
903
904         * DataGridView.cs: When editing is finished do not remove the editing 
905         row, because it has already become a real one. Instead add a new one.
906         [Fixes bug #471754]
907
908 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
909
910         * TreeView.cs: When drawing the node's image, check that the index
911         specified by the node is valid for the ImageList.
912         Fixes #471094.
913
914 2009-02-02  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
915
916         * ToolBar.cs: Add new UIAPerformClick method to be called by
917         UIAutomationWinforms when someone calls Invoke() on the
918         ToolBarButtonProvider. r: jpobst
919
920 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
921
922         * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
923         MapNotify/UnmapNotify events - we are already firing those events in
924         the proper places, so we avoid this way to send the same message two
925         times. I'm leaving the handling code in case we could break something
926         in the future, as this change seems dangerous (but needed).
927         Fixes #467546.
928
929 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
930
931         * DataGridView.cs: Complete incomplete rows when they are added to 
932         the grid.
933         [Fixes bug #471068]
934
935 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
936
937         * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the 
938         binding is cleared prior to setting it to null. Fixes a regression 
939         causing exceptions when the DataSource is set to null and then set 
940         again to a data source.
941
942 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
943
944         * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs: 
945            - Make Image/Bitmap cells work.
946            - Handle images with size greater than the cell.
947            - Default to MiddleCenter alignment for image cells.
948         [Fixes bug #471101]
949
950 2009-01-30  Ivan N. Zlatev  <contact@i-nz.net>
951
952         * UpDownBase.cs: Force Height to PreferredHeight.
953
954 2009-01-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
955
956         * XplatUIX11.cs: We should use utf8 handling clipboard transference
957         with other x11 applications, and use utf16 when handling clipboard
958         data in the class library. Update the related points as well.
959         Fixes #468683.
960
961 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
962
963         * DataGridViewCell.cs: Format strings according to the supplied 
964         CellStyle.Format.
965         [Fixes bug #470384]
966
967 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
968
969         * DataGridView.cs: Reset the hover cell if it gets moved due to row(s) 
970         addition or removal. Fixes multiple crashes in OnMouseMove.
971
972 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
973
974         * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
975
976 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
977
978         * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the 
979         current context.
980         [Fixes bug #469239]
981
982 2009-01-26  Andreia Gaita  <avidigal@novell.com>
983
984         * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
985         won't be disabled by default.
986         Fixes #468690
987
988 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
989
990         * DataGridView.cs: Do not clear the rows if we are not databound.
991
992 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
993
994         * DataGridView.cs: Do not be too smart about selecting the first cell 
995         when the first row is added as this is not what MS does. Fixes the 
996         failing unit tests.
997
998 2009-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
999
1000         * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
1001         take into account the fact that OpenTreeNodeEnumerator needs to call
1002         MoveNext/MovePrevious to actually put the passed node as the one
1003         retrieved in Current. This way this property should work as really
1004         expected in .net.
1005         Fixes part of #467225.
1006
1007 2000-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1008
1009         * TreeView.cs: When calculating the scrollbars, don't use
1010         TreeNode.Bounds, since it still can have the values of the previous
1011         -and now invalid- layout -which depends on TreeView.skipped_nodes, and
1012         could not have been updated as well-, and use the actual number of
1013         visible number of nodes to compute the height needed to contain all
1014         the nodes. Also reset the value of vbar to 0 when disabled - this way
1015         we make sure that, when re-enabled, it will update the visible area of
1016         the treeview, even if the previous value before disabling it is the
1017         same as now. Finally don't do anything for the vbar.ValueChanged
1018         handler - for the case wheer we manually set the value but don't the
1019         vbar is disabled already.
1020         Fixes part of #467225.
1021
1022 2009-01-23  Jonathan Pobst  <monkey@jpobst.com>
1023
1024         * ToolStrip.cs: Switch from foreach to for, in case the collection
1025         somehow changes while enumerating it.
1026
1027 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1028
1029         * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no 
1030         editing control.
1031
1032 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1033
1034         * DataGridView.cs: Fix new row adding/editing in the non-databound 
1035         scenario.
1036
1037 2009-01-21  Mike Gorse  <mgorse@novell.com>
1038
1039         * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
1040           use them.
1041           Added UIAValueParamChangedEvent.
1042
1043 2009-01-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1044
1045         * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
1046         of trying to set as top node the highest parent of the previous top
1047         node. Moving to the bottom of the TreeView after a call to CollapseAll
1048         is exactly what .net does. This should avoid some nasty issue when
1049         CollapseAll is called and we don't need the vertical scroll bar.
1050
1051 2009-01-21  Mario Carrion <mcarrion@novell.com>
1052
1053         * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
1054         and UIATopMostChanged.
1055
1056 2009-01-21  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1057
1058         * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
1059         UIAEnabledChanged, and UIATextChanged events.
1060
1061         * Form.cs: Add UIAMenuChanged event.
1062
1063         * Menu.cs:
1064         * MenuAPI.cs: Note which internal APIs are being used by UIA.
1065
1066 2009-01-21  Neville Gao  <nevillegao@gmail.com>
1067
1068         * ToolBar.cs: Control enabled to support accessibility.
1069         [Fixes Bug #455950]
1070
1071 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1072
1073         * TreeView.cs: When handling mouse up event, check whether
1074         highlighted_node is null or not - usually it should be non-null
1075         alwaays, since the mouse down handler sets it, but some externa
1076         operations, such TreeNodeCollection.Clear, could set it to null.
1077         Fixes #438650.
1078
1079 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1080
1081         * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu 
1082         item is disabled.
1083
1084 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1085
1086         * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
1087         [Fixes bug #467285]
1088
1089 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1090
1091         * MonthCalendar.cs: When handling the selection changes using the
1092         mouse, don't set SelectionRange if the selection range didn't actually
1093         change. This matters because, even if we set the range to the same
1094         previous range, an extra DateChanged event is fired. Just to be clear:
1095         SelectionRage property doesn't check whether the new value is
1096         different to the previous one (by ref equals doesn't work here).
1097         Fixes other bits of #364914.
1098
1099 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1100
1101         * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
1102         selection using the keyboard, since we are already firing this event
1103         when setting SelectionRange. Also don't set SelectionRange if the
1104         previous and the new value are the same (the property, just as .net
1105         does, doesn't check whether the previous value and the new one are the
1106         same). This saves us from firing OnDateChanged event if the selection
1107         range didn't change actually.
1108         Fixes the remaining bits of #364914.
1109
1110 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1111
1112         * ListBox.cs: When removing an item and the last item is selected,
1113         remove it from the selection, and if selection mode is One try to
1114         select the new last item.
1115         Fixes #465422.
1116
1117 2009-01-16  Mike Gorse  <mgorse@novell.com>
1118
1119         * Splitter.cs: Make MaxSize internal so that UIA code can use it.
1120
1121 2009-01-16  Mario Carrion <mcarrion@novell.com>
1122
1123         * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged 
1124         when changing Text. 
1125
1126 2009-01-16  Carlos Alberto Cortez <calberto.cortez@ggmail.com>
1127
1128         * X11Structs.cs:
1129         * XplatUIX11.cs: Properly encode/decode the unicode strings we
1130         store/retrieve in the Clipboard. Also, since we try to convert the
1131         data to different formats, separate the source and the result of
1132         it, so we can always fallback to the original and don't mix wrong
1133         conversions.
1134
1135 2009-01-16  Mike Gorse  <mgorse@novell.com>
1136
1137         * TextControl.cs: Add UIASelectionChanged event.
1138
1139 2009-01-16  Ivan N. Zlatev  <contact@i-nz.net>
1140
1141         * DataGridView.cs: Forward the first key events to the editing control.
1142         [Fixes bug #457307]
1143
1144 2009-01-14  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
1145
1146         * Application.cs: Oops, launch the copied handler of PreRun instead of
1147         the global one (gendarme would bark otherwise). (Improving r123375)
1148
1149 2009-01-14  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
1150
1151         * XplatUI.cs:
1152         * Application.cs: Move the PreRun event fire to the end of the XplatUI
1153         static ctor (we don't move the PreRun event to this class because its
1154         usage would cause the call to the static ctor). This way we can get
1155         a11y support for dialogs that run without App.Run.
1156
1157 2009-01-14  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
1158
1159         * ListView.cs: New internal property to know the inner array's length of
1160         the location of items, in order to avoid a try-catch strategy for the
1161         case when this array has not been resized yet (for reference, look at
1162         r123288). r: jpobst
1163
1164 2009-01-13  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
1165
1166         * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
1167         reflection calls. This requires UIAutomationWinforms r123213.
1168
1169 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1170
1171         * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
1172         handlers and fire the DateSelected event until MouseUp is reached,
1173         like .net does, instead of firing it for each mouse event.
1174         Fixes part of #364914.
1175
1176 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1177
1178         * TreeView.cs: When the selection gets canceled using the BeforeSelect
1179         event, invalidate the previous highlighted_node bounds, to show the
1180         user that the item was *not* selected.
1181         Fixes #464191.
1182
1183 2009-01-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1184
1185         * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
1186         well as -in DropDown and Simple modes- writing in the textbox should
1187         try to set the requested item as the top one, but navigating with the
1188         keyboard and handling mouse selection don't need that behaviour. Also,
1189         when resetting selected_index handling key press events, reset
1190         ComboListBox.HighlightIndex. 
1191         Fixes the remaining bits of #464188.
1192
1193 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1194
1195         * DataGridView.cs: Fix crashes when shortcut keys are pressed, but 
1196         there are no cells:
1197            - CurrentCellAddress should be -1, -1 and not 0, 0.
1198            - Be tolerant and fall back to clearing the current cell if either 
1199            column or row is -1 in MoveCurrentCell.
1200            - Misc. more -1 checks.
1201
1202 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1203
1204         * DataGridView.cs: Preserve the column index. Fixes a regression 
1205         introduced by the data binding position tracking code.
1206
1207 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1208
1209         * DataGridView.cs: If the bottom of the row matches the client height 
1210         do not regard the row as partially visible. Fixes the weird scrolling 
1211         when there is no scrollbar.
1212
1213 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1214
1215         * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
1216
1217 2009-01-09  Mario Carrion  <mcarrion@novell.com>
1218
1219         * MessageBox.cs: Fixed internal UIAIconRectangle property.
1220
1221 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1222
1223         * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
1224
1225 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1226
1227         * DataGridView.cs: Track the Position in the CurrencyManager.
1228
1229 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1230
1231         * DataGridView.cs: Implement data-bound new item editing/addition.
1232         * DataGridViewRowCollection.cs: Make it possible for us to internally 
1233         remove the edit row.
1234         [Fixes bugs #457107, #457308, #325240]
1235
1236 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1237
1238         * CurrencyManager.cs: Even if Position is set to a greater value than the 
1239         list count reset it to position of the last item.
1240
1241 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1242
1243         * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList. 
1244         Fix that in order to make CancelNew to work.
1245
1246 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1247
1248         * BindingSource.cs: When adding a new item try to delegate to the internal 
1249         list first before throwing an exception.
1250
1251 2009-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1252
1253         * ComboBox.cs: When setting the text and adjusting the top_item, do it
1254         *only* if the current item is *not* visible already.
1255         Fixes part of #464188.
1256
1257 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1258
1259         * DataGridView.cs: Requesting the CurrencyManager for the first time can 
1260         lead to unexpected OnBindingContextChanged calls and recursive rebinding. 
1261         Fix that.
1262         [Fixes bug #464493]
1263
1264 2009-01-08  Brad Taylor  <brad@getcoded.net>
1265
1266         * ComboBox.cs: Expose a few private fields as internal UIA properties.
1267
1268 2009-01-07  Mario Carrion <mcarrion@novell.com>
1269         
1270         * DataGrid.cs: CWL removed.
1271
1272 2009-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1273
1274         * RadioButton.cs: When setting Checked, we should first update the
1275         check state of the current RadioButton, as well as invalidating it,
1276         and after that actually update the siblings. This is done to match
1277         .net.
1278         Fixes the remaining bits of #463028.
1279
1280 2009-01-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1281
1282         * RadioButton.cs: Setting Checked to false should set TabStop to stop
1283         as well. Also, when we get the focus and no other RadioButton is
1284         selected in the parent control, we should mark ourselves as Checked.
1285         Fixes part of #463028.
1286
1287 2009-01-05  Mario Carrion <mcarrion@novell.com>
1288
1289         * DataGrid.cs: UIA suppport. internal events: 
1290         UIAGridCellChanged, UIAColumnsHeadersVisibleChanged, 
1291         UIASelectionChanged, UIACollectionChanged. Internal properties: 
1292         UIARowHeight, UIACellsArea, UIACaptionArea, 
1293         UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle, 
1294         UIAVScrollBar and UIAHScrollBar.
1295
1296 2009-01-05  Jonathan Pobst  <monkey@jpobst.com>
1297
1298         * ToolStripSplitStackLayout.cs: Enable the overflow button if any
1299         of the buttons are set to Overflow = Always.
1300         [Fixes bug #463013]
1301
1302 2009-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1303
1304         * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
1305         based on whether the binding source is availble or not. Fixes #463008.
1306
1307 2009-01-03  Ivan N. Zlatev  <contact@i-nz.net>
1308
1309         * DataGridViewCell.cs: We should return a value even if we are not bound 
1310         to a DataGridView.
1311
1312 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1313
1314         * CurrencyManager.cs, DataGrid.cs: 
1315            - Rename CanAddRows to AllowNew. The CurrencyManager has no 
1316            concept of "rows".
1317            - Add two more internal properties AllowRemove and AllowEdit.
1318         * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows, 
1319         AllowUserToDeleteRows and cell ReadOnly state to be also checked against the 
1320         CurrencyManager data source.
1321
1322 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1323
1324         * DataGridView.cs: Fix crashes caused by assigning negative values to 
1325         ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than 
1326         the column/row heights/widths.
1327         [Fixes bug #462684]
1328
1329 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1330
1331         * DataGridView.cs: Non-autogenerated columns that have a data property 
1332         set that exists in the current datasource should be set to be data-bound.
1333
1334 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1335
1336         * DataGridView.cs: Fix column sorting for columns containing null 
1337         values. A "null" value is not always "null" (e.g could be String.Empty) 
1338         and thus parsing numeric types throwed an exception for "null" values.
1339
1340 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1341
1342         * DataGridView.cs: Detach the editing control when the edit is 
1343         finished.
1344
1345 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1346
1347         * DataGridView.cs: Multiple fixes to handle last column/row removal 
1348         and cell movement after that instead of throwing exceptions.
1349
1350 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1351
1352         * DataGridViewCellCollection.cs: When cells are removed the column 
1353         indices become invalid if the cell is not the last one and have to 
1354         be refreshed.
1355
1356 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1357
1358         * DataGridView.cs: Return false in CommitEdit if there was an error.
1359
1360 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1361
1362         * DataGridView.cs: Remove a leftover Console.WriteLine.
1363
1364 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1365
1366         * DataGridViewRow.cs: Access the indexer of the data manager directly 
1367         instead of the internal list.
1368
1369 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1370
1371         * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs: 
1372         Rewrite the value getting, setting, parsing, formatting logic:
1373            - If data-bound value get/set should actually get and set from the 
1374              data source.
1375            - Make proper usage of TypeConverters for value parsing/formatting.
1376            - Raise DataError if setting the new value fails.
1377            - Get rid off the internal valueType field and get/set the ValueType 
1378            property instead.
1379         [Fixes bug #462051]
1380
1381 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1382
1383         * DataGridView.cs: Rewrite the DataBinding layer:
1384            - Get rid off all BindingSource/IBindingList/DataSet/DataTable 
1385            specific code.
1386            - Get rid off the per DataSource type column autogeneration code.
1387            - Use the CurrencyManager for everything that is DataBinding related.
1388
1389 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1390
1391         * CurrencyManager.cs: Do not fire duplicate ListChanged events.
1392
1393 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
1394
1395         * DataGridView.cs, DataGridViewRow.cs: Add a new internal property 
1396         DataManager to fetch the CurrencyManager for the DataGridView and to 
1397         spare this logic for the other components to follow.
1398
1399 2008-12-31  Mario Carrion  <mcarrion@novell.com>
1400
1401         * MessageBox.cs: UIA support: new properties: UIAMessage, 
1402         UIAMessageRectangle and UIAIconRectangle.
1403
1404 2008-12-31  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1405
1406         * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
1407         and DirComboBox.DirComboBoxItem.ToString override for UIA support.
1408
1409 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
1410
1411         * DataGridView.cs: Do not autogenerate duplicate column for a 
1412         data member that has already problematically been assigned one.
1413         [Fixes bug #457305]
1414
1415 2008-12-30  Jonathan Pobst  <monkey@jpobst.com>
1416
1417         * ProfessionalColorTable.cs: Better detection of user's theme.
1418         [Fixes bug #462766]
1419
1420 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
1421
1422         * DataGridView.cs: In the case where there are no autogenerated 
1423         columns and the user adds columns problematically we must generate 
1424         the rows after the very first column is added.
1425
1426 2008-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1427
1428         * DateTimePicker.cs: When increasing/decreasing the value of month
1429         with ShowUpDown set to true, moving from december to january, and
1430         moving from january to december should adjust the year to the next and
1431         the previous year, respectively.
1432         Fixes the remaining bits of #459674.
1433
1434 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
1435
1436         * DataGridView.cs: If a new cell is selected edit mode should be 
1437         immediately enabled only if EditOnEnter is set. Whether the mouse 
1438         or not was used to select the cell is irrelevant.
1439
1440 2008-12-29  Ivan N. Zlatev  <contact@i-nz.net>
1441
1442         * DataGridView.cs: Remove a bogus ReBind call, which was causing 
1443         recursive rebinding.
1444
1445 2008-12-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1446
1447         * DateTimePicker.cs: Handle the "MMMM" month format.
1448         Fixes #459674.
1449
1450 2008-12-23  Ivan N. Zlatev  <contact@i-nz.net>
1451
1452         * DataGridView.cs: 
1453            - Make ReBind private and refactor various calls to call ReBind 
1454            instead of ClearBinding/DoBinding
1455            - Rebind when the column collection changes
1456         * DataGridViewColumnCollection.cs: 
1457            - Leave the rebinding on change to be handled by the DataGridView.
1458
1459 2008-12-23  Jonathan Pobst  <monkey@jpobst.com>
1460
1461         * DataGridView.cs: Add a ReBind convenience method.
1462         * DataGridViewColumnCollection.cs: Rebind when a column is added.
1463         [Fixes bug #462019]
1464
1465 2008-12-23  Neville Gao  <nevillegao@gmail.com>
1466
1467         * StatusBar.cs: Modified argument variable.
1468         * SplitContainer.cs: Control enabled to support accessibility.
1469         [Fixes Bug #455950]
1470
1471 2008-12-22  Jonathan Pobst  <monkey@jpobst.com>
1472
1473         * ToolStripMenuItem.cs: Guard against an NRE.
1474         [Fixes bug #457110]
1475
1476 2008-12-22  Mario Carrion  <mcarrion@novell.com>
1477
1478         * Control.cs: AccessibleXXXX properties don't return 
1479         AccessibleObject.XXXX, instead a local referece is returned.
1480
1481 2008-12-22  Neville Gao  <nevillegao@gmail.com>
1482
1483         * PrintPreviewControl.cs: Added internal properties to support
1484         accessibility.
1485         [Fixes Bug #459699]
1486
1487 2008-12-19  Mario Carrion  <mcarrion@novell.com>
1488
1489         * Control.cs: Reverted r121561. 
1490
1491 2008-12-19  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
1492
1493         * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
1494         it has been moved to the bridge.
1495
1496 2008-12-18  Brad Taylor  <brad@getcoded.net>
1497
1498         * DateTimePicker.cs: Add a few UIA specific events, and a couple
1499         internal methods useful for UIA.
1500
1501 2008-12-18  Mario Carrion <mcarrion@novell.com>
1502
1503         * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
1504         [Fixes Bug #455752]
1505
1506 2008-12-17  Mike Gorse  <mgorse@novell.com>
1507
1508         * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
1509           item's Focused property is set.
1510
1511 2008-12-17  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1512
1513         * TreeView.cs:
1514         * TreeNode.cs:
1515         * TreeNodeCollection.cs: Add events for UIA support:
1516         UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
1517         UIACollectionChanged.
1518
1519 2008-12-17  Bill Holmes  <billholmes54@gmail.com>
1520
1521         * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the 
1522           SubItemStyle member field. 
1523
1524         Contributed under MIT/X11 license.
1525
1526 2008-12-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1527
1528         * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
1529         y coord, since it's useless in this case, and we need to rely only on
1530         the number of rows and ItemHeight to compute this value.
1531         Fixes part of #257471.
1532
1533 2008-12-15  Mike Gorse  <mgorse@novell.com>
1534
1535         * StatusBar.cs: Send OnUIACollectionChanged in Remove().
1536
1537 2008-12-15  Mario Carrion  <mcarrion@novell.com>
1538
1539         * Control.cs: Accessibility properties instantiate AccessibilityObject when
1540         needed.
1541         [Fixes Bug #459223]
1542
1543 2008-12-15  Brad Taylor  <brad@getcoded.net>
1544
1545         * ToolStripItem.cs: Add a UIA specific event for listening for when a
1546         ToolStripItem becomes selected or deselected.
1547
1548 2008-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1549
1550         * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
1551         .net does. Use the date in the point of the mouse move coords as the
1552         new range as well, if the left button of the mouse is being pressed.
1553         Fixes #364914.
1554
1555 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1556
1557         * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
1558         MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
1559         effectively repaint the control.
1560         Fixes the remaining bits of #417961.
1561
1562 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1563
1564         * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
1565         range to contain only dates within the new possible range.
1566         Fixes part of #417961.
1567
1568 2008-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1569
1570         * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
1571         length of the text, but the end position, so we need to substract 1 to
1572         have a valid value. Also, in the same InputText method, don't use
1573         SelectionLength as the length of the text, since the selected text
1574         could actually be empty, but we need to set the value anyway.
1575         Fixes #457370.
1576
1577 2008-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1578
1579         * TextBox.cs: Don't do any auto complete task if the custom source is
1580         null or empty. Also avoid duplication of code.
1581         Fixes #457743.
1582
1583 2008-12-09  Ivan N. Zlatev  <contact@i-nz.net>
1584
1585         * DataGridView.cs: Refresh column sizes when new rows are added.
1586         [Fixes bug #457050]
1587
1588 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1589         * RichTextBox.cs: When parsing the contents of a rtf file, don't call
1590         Split to create a line - we are already doing this, by _adding_ a new
1591         one when rtf_cursor_x is 0 (this field gets this value just after we
1592         receive the newline param as true). This avoids having a proportional number
1593         of empty lines in the end of the rich text box.
1594         Fixes #396664.
1595
1596 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1597
1598         * RichTextBox.cs: When saving the contents as a plain text, don't add
1599         a new line for every Line structure, since the data in Document
1600         already contains the new line characters. This avoids duplicated new
1601         lines using the Save methods.
1602         Fixes #445618.
1603
1604 2008-12-09  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1605
1606         * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
1607         framework.  Fixes bug #457678.
1608
1609 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1610
1611         * DataGridViewRow.cs: Prevent an exception on a not yet databound grid, 
1612         where datasource is null.
1613         [Fixes exception reported in bug 441240]
1614
1615 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1616
1617         * DataGridView.cs: EndEdit validation fixes.
1618
1619 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1620
1621         * DataGridView.cs: This is the cool patch that adds support for 
1622         actually updating the data in the databinding backend after editing. 
1623         With bonus firing and handling the DataError event.
1624
1625 2008-12-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1626
1627         * Line.cs: When calculating the text tags's Shift value, store it as
1628         pixels instead of points. This way we can actually handle different
1629         fonts in the same RichTextBox, as well as the right size of the caret.
1630         Fixes part of #351938.
1631
1632 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1633
1634         * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was 
1635         casted to CheckState causing InvalidCastExceptions.
1636
1637 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1638
1639         * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior 
1640         to not depend on the item being clicked.
1641
1642 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1643
1644         * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no 
1645         longer throws a NotImplementedException.
1646
1647 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1648
1649         * DataGridView.cs: Set EditingControlFormattedValue when preparing an 
1650         IDataGridViewEditingControl for editing.
1651
1652 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1653
1654         * DataGridViewComboBoxCell.cs: Implement data binding support.
1655
1656 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1657
1658         * DataGridView.cs: Use the CurrencyManager to update the data source 
1659         binding position instead of casting the data sourcde to BindingSource.
1660         This enables position updating for other type of data sources.
1661
1662 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1663
1664         * ComboBox.cs: Update the SelectedIndex before updating the Text 
1665         in OnDisplayMemberChanged.
1666
1667 2008-12-07  Ivan N. Zlatev  <contact@i-nz.net>
1668
1669         * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
1670         [Fixes bug #457112]
1671
1672 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1673
1674         * DataGridView.cs: Sorting fixes:
1675            - Be strict when sorting is enabled.
1676            - If there is a data source delegate the sorting request.
1677
1678 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1679
1680         * Binding.cs: When converting the data also try with the destination 
1681         type typeconverter. This indirectly adds support for Nullable types 
1682         in our databinding layer.
1683
1684 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1685
1686         * DataGridView.cs: When cell editing is finished focus back the 
1687         DataGridView. Fixes keyboard navigation post-editing.
1688
1689 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1690
1691         * DataGridView.cs: Fix the cell editing by delaying the currentCell 
1692         setting to after EndEdit is called for the old cell.
1693
1694 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1695
1696         * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
1697
1698 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1699
1700         * XplatUIX11.cs: Send WM_HELP only to the focused window.
1701
1702 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1703
1704         * CurrencyManager.cs: Fix exceptions when resetting the data source 
1705         for the same time (e.g. in ComboBox): 
1706            - Do not set the list position if we are still transferring data
1707            - When resetting the list firstly push the data then update the 
1708            binding.
1709         * Binding.cs: Check BindingManager.Position == -1 instead of 
1710         BindingManager.Current == null in order to avoid unexpected 
1711         exceptions.
1712
1713 2008-12-05  Brad Taylor  <brad@getcoded.net>
1714
1715         * MonthCalendar.cs: Add UIA specific events so that we can know when
1716         the selection changes, and when MaxSelectedCount changes.
1717
1718 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1719
1720         * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not 
1721         used for anything.
1722
1723 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1724
1725         * DataGridView.cs: Fix scrolling and selection of cells/rows prior
1726         to the control being drawn for the first time by:
1727            - Implement DisplayedRowsCount to not rely on the control being
1728            already painted. Also added support for the partial row flag.
1729            - Fix scrolling to take into account partial rows and scroll to
1730            them.
1731         [Fixes bug #456527]
1732
1733 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1734
1735         * DataGridView.cs: Do not reset the CurrentCell when the handle is
1736         created if the user has already set it.
1737
1738 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1739
1740         * DataGridView.cs: Fix CurrentCell to actually select the cell.
1741
1742 2008-12-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1743
1744         * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
1745         text and then let the underneath users of IDataObject interpret and
1746         parse by themselves. 
1747         Fixes #439251.
1748
1749 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1750
1751         * DataGridView.cs: Fix my previous commit to actually update what it 
1752         was supposed to.
1753
1754 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1755
1756         * DataGridView.cs: Ensure that when a row is removed the all the 
1757         current row/column/cell get updated. Fixes multiple exceptions.
1758
1759 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1760
1761         * DataGridView.cs: Fix scrolling to the current cell when key navigation 
1762         is used.
1763         [Fixes bug #443560]
1764
1765 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1766
1767         * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
1768         * DataGridViewCell.cs: Set the cell as selected prior to setting the 
1769         new state.
1770         [Fixes issue 1 in bug #443560]
1771
1772 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1773
1774         * DataGridView.cs: Invalidate after the current row/column seletion 
1775         chagnes.
1776         [Fixes bug #438434]
1777
1778 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1779
1780         * DataGridView.cs: Refresh the data if the data list is reset, etc.
1781
1782 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1783
1784         * DataGridView.cs: Handle datasource state changes:
1785            - IBindingList - list changes
1786            - BindingSource - list changed and datasource changes
1787
1788 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1789
1790         * DataGridView.cs: Select the first cell when databound. 
1791         Visually select when CurrentCell is set.
1792
1793 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1794
1795         * DataGridView.cs: Set the current cell before raising CellClick.
1796
1797 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1798
1799         * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter, 
1800         CellLeave events as this is already done in SetCurrentCellAddressCore.
1801
1802 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1803
1804         * DataGridView.cs: Set the minimum size for the columns to be the 
1805         width of their header, so that the columns don't get squashed 
1806         all together.
1807
1808 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1809
1810         * DataGridView.cs: After the data is bound PerformLayout, so that 
1811         the columns get autosized.
1812
1813 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1814
1815         * DataGridView.cs: Move all currentCell setting code into 
1816         one central place - SetCurrentCellAddressCore. That way the 
1817         current cell is properly updated when programatically set.
1818         Fire RowEnter/Leave events.
1819
1820 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1821
1822         * DataGridView.cs: Update the CurrencyManager.Position, so that 
1823         when a BindingSource is used BindingSource.Current will be correct.
1824
1825 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1826
1827         * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
1828            - No caption text is drawn because Color.Empty is used.
1829            - Fix top and height off by 1.
1830
1831 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1832
1833         * DataGridViewRow.cs: Implement DataBoundItem.
1834
1835 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1836
1837         * BindingSource.cs: Return null for Current if there is no data present.
1838
1839 2008-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1840
1841         * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
1842         menus using the arrow keys. Also when handling the left arrow key, don't 
1843         assign the current menu to the parent one, if the parent is null.
1844         Fixes #446392.
1845
1846 2008-11-24  Everaldo Canuto  <ecanuto@novell.com>
1847
1848         * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
1849         #413501.
1850
1851 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1852
1853         * Scrollbar.cs:
1854         * ScrollableControl.cs: Simplify the code to manually set the size of
1855         the thum area, avoiding duplication of code, and also preserving the
1856         right value for different code paths - this can happen when size
1857         changes are made to the scrollbar after setting LargeChange, Maximum
1858         or related properties for the ScrollBar.
1859
1860 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1861
1862         * ScrollableControl.cs: When scrolling, don't invalidate the entire
1863         area, and call to XplatUIX11.ScrollWindow instead. This is exactly
1864         what .Net does: copy the visible area, and only invalidate the part of
1865         the area that wasn't visible before scrolling.
1866         Fixes #441738.
1867
1868 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
1869
1870         * DataGridView.cs: Listen for a DataTable's TableCleared event so we
1871         can clear ourselves when it is raised, we don't have a newrowindex
1872         if we don't have any columns.
1873         * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
1874         re-index after each delete so the NewRow will have the correct index.
1875         [Fixes bug #448005]
1876
1877 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
1878
1879         * Form.cs: Don't change min/max size if it is empty.
1880         [Fixes bug #447873]
1881
1882 2008-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1883
1884         * ScrollBar.cs:
1885         * ScrollableControl.cs: When the manual thumb size is used, the
1886         maximum allowed value should depend on that thumb size, instead of
1887         LargeChange (using the maximum - LargeChange + 1 value). But
1888         LargeChange should be used normally when incrementing/decrementing.
1889         Fixes the remaining part of #441546.
1890
1891 2008-11-23  Andreia Gaita  <avidigal@novell.com>
1892
1893         * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream 
1894         until an about:blank has been loaded (according to spec). Fix 
1895         ScrollbarsEnabled to set when a document is loaded (since we use js 
1896         for it). Fix url so it reflects the current loading document and not 
1897         the previous one. Send StatusChanged events.
1898
1899 2008-11-23  Andreia Gaita  <avidigal@novell.com>
1900
1901         * Application.cs: If a message comes in for an embedded control
1902         (like webbrowser) when we're capturing the keyboard, release the
1903         capture and continue.
1904         [fixes #429462]
1905
1906 2008-11-22  Andreia Gaita  <avidigal@novell.com>
1907
1908         * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
1909
1910 2008-11-21  Andreia Gaita  <avidigal@novell.com>
1911
1912         * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
1913         
1914 2008-11-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1915
1916         * ScrollBar.cs:
1917         * ScrollableControl.cs: Set manually the thumb size for the
1918         ScrollableControl scrollbars, so any further changes to the underneath
1919         scrollbars respect the original size.
1920         Fixes part of #441546.
1921
1922 2008-11-21  Geoff Norton  <gnorton@novell.com>
1923
1924         * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
1925         PlatformID.MacOSX now exists.
1926
1927 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
1928
1929         * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
1930         Having something internal abstract isn't very nice for people who want
1931         to inherit from this class.
1932
1933 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
1934
1935         * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
1936         invalid value.  Just return null for the Image, and use the ImageList's
1937         ImageSize for calculations.
1938
1939 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
1940
1941         * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
1942         through DroppedDown so the proper events get called and state gets reset.
1943         [Fixes bug #446805]
1944
1945 2008-11-18  Jonathan Pobst  <monkey@jpobst.com>
1946
1947         * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
1948         the collection is modified.
1949
1950 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
1951
1952         * DomainUpDown.cs: Remove string cache and reflection optimizations.  They
1953         aren't always correct, and fixing them for every case is not worth the
1954         negligible benefit they provide.
1955         [Fixes bug #445713]
1956
1957 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
1958
1959         * DataGridView.cs: We should never add actual cells to the RowTemplate.
1960         Internally, use RowTemplateFull to give us a new row with cells.
1961         * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
1962         * DataGridViewRowCollection.cs: Use RowTemplateFull.
1963
1964 2008-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1965
1966         * XplatUIX11.cs: Forms without borders should be able to change its
1967         size - specially they should be able to be maximized, adding the
1968         respective MotifFunctions.Resize bit when setting window properties as
1969         well as *not* marking the Hwnd as size fixed.
1970         Fixes #444347.
1971
1972 2008-11-12  Jonathan Pobst  <monkey@jpobst.com>
1973
1974         * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
1975         an alpha value.
1976         [Fixes bug #444348]
1977
1978 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
1979
1980         * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
1981         * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes.  Raise
1982         AutoSizeColumnModeChanged.
1983         [Fixes bug #443609]
1984
1985 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
1986
1987         * DataGridViewRowCollection.cs: Guard against the user deleting the
1988         NewRow.  Add an internal delete so we can still delete it.
1989         * DataGridView.cs: Use the new internal delete when deleting the NewRow.
1990         [Fixes bug #442181]
1991
1992 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
1993
1994         * TextControl.cs: Add some order of operation to our math so
1995         we don't end up with a negative height for our invalidate rect.
1996         [Fixes bug #381889]
1997
1998 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
1999
2000         * Control.cs: When our enabled changes, notify our implicit children
2001         controls as well as our regular controls.
2002         [Fixes bug #441523]
2003
2004 2008-11-08  Andreia Gaita <shana@jitted.com> 
2005
2006         * HtmlElement.cs: Small code cleanup
2007
2008 2008-11-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2009
2010         * BindingNavigator.cs: MoveFirstItem should be enabled only if
2011         position is larger than 0, not only different than 0. Also Position
2012         and Count items should be enabled if the BindingSource is non null and
2013         non empty.
2014         Fixes #439961.
2015
2016 2008-11-05  Jonathan Pobst  <monkey@jpobst.com>
2017
2018         * TabControl.cs: Don't raise SelectedIndexChanged until we have
2019         actually modified the tab collection, so TabCount will be correct.
2020         [Fixes bug #441896]
2021
2022 2008-11-05  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2023
2024         * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
2025         NonSerialized to fix serialization of ListViewItem.
2026
2027 2008-11-04  Mike Gorse  <mgorse@novell.com>
2028
2029         * ListView.cs: Call OnUIAFocusedItemChanged after completing the
2030           focus change, and always call in SetFocusedItem.
2031         * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
2032
2033 2008-11-04  Jonathan Pobst  <monkey@jpobst.com>
2034
2035         * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
2036         mode.  Based on a patch by John Mortlock.
2037         [Fixes bug #436790]
2038
2039 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2040
2041         * ListView.cs: Use the UsingGroups property where needed, instead of
2042         duplicating the check in other places.
2043
2044 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2045
2046         * ListView.cs: When calculating layout, refresh the count of items
2047         belonging to the default item, insteas of doing it only one time. This
2048         was already working fine for icon views, not not for details.
2049         Fixes #438948.
2050
2051 2008-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2052
2053         * ListView.cs:
2054         * ListViewItem.cs:
2055         * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
2056         to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
2057         does.
2058         Fixes #437933.
2059
2060 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2061
2062         * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
2063
2064 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2065
2066         * ListView.cs: Add internal UIAFocusedItemChanged event.  Fixes bug
2067         #441280, patch by Mike Gorse <mgorse@novell.com>.
2068
2069 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2070
2071         * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
2072         if there is no scrollbar.
2073         [Fixes bug #440885]
2074
2075 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2076
2077         * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
2078         patch from Andy Hume that fixes many issues with ProgressBar.
2079         [See bug #440220]
2080
2081 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2082
2083         * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
2084         [Fixes bug #438866]
2085
2086 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2087
2088         * UpDownBase.cs:
2089         * DomainUpDown.cs:
2090         * NumericUpDown.cs: Internal events added to UpDownBase:
2091         UIAUpButtonClick and UIADownButtonClick.  Patch by Neville Gao
2092         <ngao@novell.com>.
2093
2094 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2095
2096         * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
2097
2098 2008-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2099
2100         * ListView.cs:
2101         * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
2102         Application.EnableVisualStyles hasn't been called.
2103         Fixes part of #437933.
2104
2105 2008-10-31  Andreia Gaita  <shana@jitted.com>
2106
2107         * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
2108           if the container is not focused already, we need to specifically set
2109           focus to the first available control, or to the form itself if there
2110           are no controls.
2111
2112 2008-10-31  Andreia Gaita  <shana@jitted.com>
2113
2114         activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
2115         WM_ACTIVATE have been processed before returning, so it is guaranteed that
2116         once it returns and the form is visible, it is actually on the screen on X11
2117
2118         * ContainerControl.cs: Only send focus to the control if the top container
2119           is already focused. This is so that, when a form is first shown, all
2120           the enter/leave events are done first before any focus stuff comes in.
2121           If a control has no top container, there's an extra check on Control.Focus
2122           to make sure it gets focused in this particular case.
2123
2124         * Control.cs: Force focus if the control is active but did not receive
2125           focus after being set as active.
2126
2127         * MdiClient.cs: Dispose the form when closing
2128
2129         * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
2130           doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
2131           if the window is a top Form.
2132           Reset all hwnd properties when the window has been destroyed so that
2133           we don't land in any codepaths that might try to do something with it.
2134           Added a bunch of debugging messages. If TRACE is defined, all X calls
2135           are logged through DebugHelper. Set a few missing EntryPoint attributes.
2136
2137 2008-10-29  Mario Carrion <mcarrion@novell.com>
2138
2139         * ListViewItem.cs: Control enabled to support Accessibility:
2140         - Internal events: UIATextChanged, UIASubItemTextChanged.
2141         - Internal event UIATextChanged in ListViewSubItem that triggers
2142         UIASubItemTextChanged.
2143         * ListView.cs: Control enabled to support Accessibility:
2144         - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged, 
2145         UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
2146         - Internal event UIACollectionChanged in ColumnHeaderCollection.
2147         - Internal event UIACollectionChanged in ListViewItemCollection.
2148         - Internal properties: UIAHeaderControl, UIAColumns, UIARows, 
2149         UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
2150         - Internal methods: UIAGetHeaderBounds.
2151
2152 2008-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2153
2154         * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
2155         the event from the respective scrollbars.
2156         Fixes #436709.
2157
2158 2008-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2159
2160         * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
2161         textbox to know whether any navigation key will be handled or not. If
2162         not, don't pass the message to the textbox, and use it here instead. 
2163         * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
2164         is more precise- than the previous AutoCompleteMatches one.
2165         This should the keyboard navigation in ComboBox when using auto
2166         complete modes.
2167
2168 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
2169
2170         * ComboBox.cs: Fix item height calculation based off Font to match .Net.
2171         [Fixes bug #436730]
2172
2173 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
2174
2175         * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
2176         overridden methods will get called.
2177         * ToolStripItem.cs: Raise Click before MouseUp.
2178         * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
2179         the item's location into account.
2180         [Fixes bug #437683]
2181
2182 2008-10-24  Neville Gao  <nevillegao@gmail.com>
2183
2184         * NumericUpDown.cs: Control enabled to support accessibility.
2185         [Fiexes bug #438135]
2186
2187 2008-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2188
2189         * TextBox.cs: Check that we actually have items no navigate, select
2190         text when pressing enter, as well as handle direction keys only if
2191         mode is different to Suggest or the suggest listbox is visible.
2192
2193 2008-10-23  Andreia Gaita  <shana@jitted.com>
2194
2195         * WebBrowser.cs: Use the new ContentStream property to retrieve
2196           a stream encoded from the document content
2197
2198 2008-10-23  Andreia Gaita  <shana@jitted.com>
2199
2200         * HtmlDocument.cs,
2201           HtmlElement.cs,
2202           HtmlWindow.cs: Fix GetHashcode for null objects
2203
2204 2008-10-22  Andreia Gaita  <shana@jitted.com>
2205
2206         * HtmlDocument.cs,
2207           HtmlElement.cs,
2208           HtmlWindow.cs: Fix equality operators (fixes #428173)
2209
2210 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
2211
2212         * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
2213         mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
2214         [Fixes bug #436772]
2215
2216 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
2217
2218         * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
2219         same item with the mouse as was already selected.
2220         [Fixes bug #436789]
2221
2222 2008-10-21  Brad Taylor  <brad@getcoded.net>
2223         
2224         * TextControl.cs: Break out code to get the visible range into
2225           GetVisibleLineIndexes to be used in UIA code.
2226         
2227         * Line.cs:
2228         * TextControl.cs:
2229         * TextBoxBase.cs: Add comments indicating that the method or property
2230           is used via reflection from UIA code.
2231
2232 2008-10-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2233
2234         * ListViewItem.cs: Match .net serialization.
2235         Fixes remaining part of #417520.
2236
2237 2008-10-20  Jonathan Pobst  <monkey@jpobst.com>
2238
2239         * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
2240
2241 2008-10-20  Mario Carrion <mcarrion@novell.com>
2242
2243         * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property 
2244         added: UIAToolTipRectangle.
2245
2246 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2247
2248         * ListViewItem.cs: When deserializing enumerate over the data, instead
2249         of accessing the data directly. This way we handle much better the
2250         cases were we lack information.
2251         Fixes #417520.
2252
2253 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2254
2255         * ListView.cs: When removing an item from a main ListView.Items
2256         collection (and not a ListViewGroupCollection.Items one), remove it
2257         also from the group, as .net does. Patch by Mario Carrion (mario at
2258         novell dot com).
2259         Fixes #436653.
2260
2261 2008-10-19  Andreia Gaita  <avidigal@novell.com>
2262
2263         * Form.cs: Forms that get closed without a handle being created are
2264         disposed in 2.0. Fixes failing FormTest.FormClose and
2265         FormTest.FormClose2 on windows.
2266
2267 2008-10-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2268
2269         * ListView.cs: If both scrollbars are visible, the vertical one
2270         shouldn't extend too far down.
2271         Fixes #435771.
2272
2273 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
2274
2275         * DataGridView.cs: Add the ability to resize columns and rows with
2276         the mouse.  Also support double-clicking to autoresize.
2277         * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
2278         * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
2279         * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
2280         isn't shown on autoresize.
2281         [Fixes bug #420193]
2282
2283 2008-10-17  Mario Carrion <mcarrion@novell.com>
2284
2285         * ComboBox.cs: Remove UIAListbox.
2286
2287 2008-10-17  Mario Carrion <mcarrion@novell.com>
2288
2289         * ComboBox.cs, ListBox.cs: Using added/removed item in 
2290           OnUIACollectionChangedEvent instead of index.
2291
2292 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
2293
2294         * ComboBox.cs: When we are sorting the items, if the item's type
2295         doesn't support IComparer, use a default one that compares based
2296         off the item's visible text.
2297         [Fixes bug #436328]
2298
2299 2008-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2300
2301         * ColumnHeader.cs: Invalidate ListView.header_control when setting
2302         ImageIndex/ImageKey.
2303         * ThemeWin32Classic.cs: When drawing the column header, draw a image
2304         for the column if available, and make the required adjustments to the
2305         text location.
2306         Fixes #435105.
2307
2308 2008-10-17  Neville Gao  <nevillegao@gmail.com>
2309
2310         * StatusBarPanel.cs: Control enabled to support accessibility.
2311         [Fixes bug #435988]
2312
2313 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2314
2315         * DataGridView.cs: When a user begins an edit in the 'new row',
2316         make that a real row, and add a new 'new row'.  If the user
2317         cancels the edit, remove the new 'new row' and reset everything.
2318         Also, ensure UserAddedRow and UserRemovedRow events are raised.
2319         [Fixes bug #430954]
2320
2321 2008-10-16  Ivan N. Zlatev  <contact@i-nz.net>
2322
2323         * TableLayoutSettings.cs: Fix NREs when deserializing and 
2324         panel is not yet set.
2325         [Fixes bug #436199]
2326
2327 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2328
2329         * DataGridView.cs: Invalidate after deleting a row.
2330
2331 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2332
2333         * DataGridView.cs: Handle Enter and Escape keys.
2334           - Move call to EndEdit to MoveCurrentCell.
2335           - Remove call to EndEdit from navigation key routines.
2336           - Fire CellLeave and CellEnter.
2337
2338 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2339
2340         * DataGridViewCell.cs: Some fixes to the new cell border
2341         painting code.
2342
2343 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2344
2345         * ThemeEngine.cs: Enable visualstyles rendering by default
2346         (on platforms that support it).
2347
2348 2008-10-15  Ivan N. Zlatev  <contact@i-nz.net>
2349
2350         * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before 
2351         MainForm.OnLoad has completed unless DoEvents is forced.
2352         [Fixes bug #412536]
2353
2354 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
2355
2356         * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
2357
2358 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
2359
2360         * Control.cs: Make our implementation of DrawToBitmap better 
2361         match WmPaint.  [Fixes bug #435579]
2362
2363 2008-10-14  Andreia Gaita  <avidigal@novell.com>
2364
2365         * WebBrowser.cs: Use DocumentElement as the document's root for the
2366         whole content. Should fix DocumentText and DocumentStream problems.
2367
2368 2008-10-14  Jonathan Pobst  <monkey@jpobst.com>
2369
2370         * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
2371         these will get called in DGV.OnCollectionChanged.  Make sure 
2372         OnCollectionChanged always gets called.
2373         * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
2374         from every row.  Call this in OnCollectionChanged.
2375         [Fixes bug #433669]
2376
2377 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2378
2379         * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
2380         textbox if auto complete is used, since we need to navigate over it.
2381         And in this case don't pass this messages to the base impl. Also hide
2382         the auto complete list box when displaying the drop down listbox.
2383         * TextBox.cs: new internal members to expose some of the auto complete
2384         functionality to combobox.
2385
2386 2008-10-13  Ivan N. Zlatev  <contact@i-nz.net>
2387
2388         * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before 
2389         MainForm.OnLoad has completed.
2390         [Fixes bug #412536]
2391
2392 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2393
2394         * TextBox.cs: Apply an old-approved patch that adds autocomplete's
2395         Append support to this controls. We need it to apply new patches.
2396
2397 2008-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2398
2399         * Control.cs: When updating z order in child controls, send to back
2400         the implicit controls. Also, do it explicitly, instead of making
2401         GetAllControls return the implicit controls in a specific order, and
2402         thus avoid depending on that, which could change in the future.
2403         Fixes #434304.
2404
2405 2008-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2406
2407         * X11Dnd.cs: Try to call Application.DoEvents before returning in a
2408         call to StartDrag, since we must fire DragDrop/DragLeave *before*
2409         that, as .net does - instead of firing DragDrop/DragLeave *after* the
2410         call to Control.DoDragDrop has completed. This is needed since at the
2411         point of returning, we have sent related dnd ClientMessages, but we
2412         need to wait for them to fire the wmf respective ones.
2413         Fixes #325076.
2414
2415 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
2416
2417         * LinkLabel.cs: Recreate link pieces when change Padding.
2418
2419 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
2420
2421         * LinkLabel.cs: Take Padding into account when recreate link pieces.
2422         [Fixes bug #412530]
2423
2424 2008-10-08  Everaldo Canuto  <ecanuto@novell.com>
2425
2426         * Control.cs: Implement internal property PaddingClientRectangle, it will be
2427         useful for drawing controls that must take care about Padding property.
2428
2429 2008-10-08  Jonathan Pobst  <monkey@jpobst.com>
2430
2431         * BindingSource.cs: Make item_type internal so we can access it in DGV.
2432         * DataGridView.cs: Add support for autogenerating columns from a
2433         BindingSource.
2434
2435 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2436
2437         * DataGridView.cs: Comment out an exception that is getting thrown
2438         too often currently.
2439
2440 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2441
2442         * DataGridView.cs: Always rebind to the datasource, as things may
2443         have changed in it that we aren't capturing yet.
2444
2445 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2446
2447         * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
2448         drawing mode.  If we are top aligned, give ourselves some top padding.
2449
2450 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2451
2452         * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
2453         events on the control under the mouse pointer, instead of firing them
2454         on the window generating the dnd operation. To achieve this re-use the
2455         code used to get the window under the pointer when getting MouseMove
2456         events.
2457         Fixes #381876.
2458
2459 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2460
2461         * X11Dnd.cs: Don't check that that the window sending the dnd events
2462         is the owner of the selection. Although Gtk+ sets it that way, it's
2463         not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
2464         So, just as Gtk+ does, we set our window sending the dnd events as the
2465         owner of the selection, but don't check it when receiving them. This
2466         should fix interoperability with Qt/Kde.
2467         Fixes #324251.
2468
2469 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
2470
2471         * DataGridView.cs: Make sure we take the vertical scrollbar into
2472         account when autosizing columns.
2473
2474 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
2475
2476         * DataGridView.cs: Handle sorting datetimes.
2477
2478 2008-10-04  Ivan N. Zlatev  <contact@i-nz.net>
2479
2480         * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs, 
2481         TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup 
2482         compilation warnings.
2483
2484 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2485
2486         * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs, 
2487         ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs, 
2488         ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs, 
2489         ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup 
2490         compilation warnings.
2491
2492 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2493
2494         * DataGridView.cs, DataGridViewCell.cs, 
2495         DataGridViewCellValidatingEventArgs.cs, 
2496         DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs, 
2497         DataGridViewRow.cs, DataGridViewRowHeaderCell.cs, 
2498         DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
2499
2500 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2501
2502         * HtmlElementEventArgs.cs, HtmlWindowCollection.cs: 
2503         Cleanup compilation warnings.
2504
2505 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2506
2507         * XplatUIWin32.cs: Cleanup compilation warnings.
2508
2509 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2510
2511         * PropertyGrid.cs: Cleanup compilation warnings.
2512
2513 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2514
2515         * DataGridViewRow.cs: Only clear the row background if we
2516         are going to paint a new background.
2517
2518 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2519
2520         * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
2521         DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
2522         use PaintBorder instead.        
2523
2524 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2525
2526         * DataGridView.cs: When CellBorderStyle is set, update the
2527         AdvancedCellBorderStyle to match.
2528
2529 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2530
2531         * DataGridViewCell.cs: Add helper methods to convert Alignment
2532         to TextFormatFlags and align rectangles.
2533         * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
2534         * DataGridViewImageCell.cs: Use Alignment when painting the image.
2535
2536 2008-10-02  Ivan N. Zlatev  <contact@i-nz.net>
2537
2538         * ToolTip.cs: Display tooltips only for controls on the active form.
2539         [Fixes bug #428115]
2540
2541 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2542
2543         * DataGridView.cs: Make OnCellValueNeeded internal.
2544         * DataGridViewCell.cs: Raise the CellValueNeeded event so the
2545         user can supply their own value if they choose.
2546
2547 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2548
2549         * DataGridViewColumnHeaderCell.cs: Create a new style object
2550         so the DefaultCellStyle doesn't get changed.
2551
2552 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2553
2554         * ToolStripItem.cs: Check to make sure the owner is actually
2555         changing in InternalOwner before doing any work.  Fixes some
2556         failing tests.
2557
2558 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2559
2560         * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
2561         * DataGridView.cs: Use a column header's inherited style instead
2562         of just using the default.
2563
2564 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2565
2566         * SplitContainer.cs: Raise SplitterMoved when the splitter is
2567         moved through code.
2568
2569 2008-10-01  Mario Carrion <mcarrion@novell.com>
2570
2571         * ScrollBar.cs: Internal property added: UIAThumbPosition.
2572
2573 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2574
2575         * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
2576
2577 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2578
2579         * ToolStripItem.cs: When the user sets Owner, we need to remove
2580         it from its previous owner and then add it to the new owner's
2581         item collection.  Also, create InternalOwner, so we can set the owner
2582         that doesn't do this new stuff.
2583         * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
2584
2585 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2586
2587         * ToolStripItem.cs: When our parent changes, recalculate our text
2588         size, since we may be getting our Font from our parent.  When our
2589         owner's Font changes, recalculate ourselves as we may be using
2590         that font.
2591
2592 2008-10-01  Everaldo Canuto  <ecanuto@novell.com>
2593
2594         * MenuAPI.cs: Select the first option of a popup when opening the popup via
2595         return key. [Fixes bug #413792].
2596
2597 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2598
2599         * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
2600         ambient properties.  (Get their value from their parents if
2601         values haven't been set.)
2602
2603 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2604
2605         * ToolStripSystemRenderer.cs: Call overridden methods' bases
2606         after our logic, so users can do painting by handling the events.
2607         Currently, we draw over any user painting.
2608
2609 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2610
2611         * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
2612         after our logic, so users can do painting by handling the events.
2613         Currently, we draw over any user painting.
2614
2615 2008-09-30  Everaldo Canuto  <ecanuto@novell.com>
2616
2617         * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
2618
2619 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2620
2621         * TreeNode.cs, TreeView.cs: Move logic that determines the node
2622         image to draw to TreeNode.  Give Index/Keys put on the node
2623         precedence over the global one for the TreeView.
2624
2625 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2626
2627         * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
2628
2629 2008-09-29  Mario Carrion <mcarrion@novell.com>
2630
2631         * ListBox.cs: Index fixed.
2632
2633 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2634
2635         * TabControl.cs: When expanding the tab -because it's selected now-,
2636         using Right alignment, instead of adding some selected delta value to
2637         the X origin, substract it, so it gets a location adjacent to the panel, 
2638         instead of be more separated.
2639         Fixes #409170.
2640
2641 2008-09-29  Jonathan Pobst  <monkey@jpobst.com>
2642
2643         * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
2644         own copies of them.
2645
2646 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2647
2648         * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
2649         as well as the other static fields, to avoid using their previous
2650         values my mistake when handling the dnd events. This should avoid
2651         handling any status event after the drop has been finalized/cancelled.
2652
2653 2008-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2654
2655         * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
2656         operation, instead of waiting until we get any movement - this will
2657         help us to have the data available in case no movement was detected
2658         and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
2659         Finally add a windows.forms-only fallback to fire the mentioned events
2660         if no movement at all was detected, just like .net does.
2661         Fixes #381876.
2662
2663 2008-09-27  Jonathan Pobst  <monkey@jpobst.com>
2664
2665         * ThemeWin32Classic.cs: When drawing a status bar panel, don't
2666         return early if the text is empty because the icon doesn't get
2667         drawn then.  [Fixes bug #428113]
2668
2669 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2670
2671         * FileDialog.cs: Implement basic support for sorting by columns in
2672         Details view. Patch by Eric Petit.
2673         Fixes #428006.
2674
2675 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2676
2677         * ThemeWin32Classis.cs: When drawing gridlines take into account the
2678         case where ListView.ItemSize hasn't been computed, and provide a
2679         fallback as well. This prevents a division by 0.
2680
2681 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2682
2683         * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
2684         correctly draw tooltip backgrounds.
2685
2686 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2687
2688         * ImageList.cs: Change CopyTo implementation to ensure clones are
2689         created of our images.
2690         [Fixes bug #409169]
2691
2692 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2693
2694         * Control.cs: When setting fonts, we need to ensure we change our
2695         reference to the new font object, even if it represents the same
2696         font as before.  If we don't, the original font can get disposed
2697         and we will still try to use it.
2698         [Fixes bug #386450]
2699
2700 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2701
2702         * FileDialog.cs: Take into account Tile view when selecting the view
2703         (2.0 profile).
2704
2705 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2706
2707         * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
2708         the item bounds, since we can't iterate over them in virtual mode.
2709         Also fix wrong calculation of the gridlines when using scrolling.
2710         Fixes #400390.
2711
2712 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2713
2714         * XplatUIX11.cs: When handling EnterNotify events, take into account
2715         both the public and implicit controls when trying to detect the
2716         grab/ungrab process. This should fix ListView selection in Details
2717         view.
2718
2719 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2720
2721         * TreeView.cs: Redraw the whole node area when the selected node changes.
2722         Things like state images were not getting redrawn because the invalid
2723         rectangle was too small.
2724         [Fixes bug #428211]
2725
2726 2008-09-23  Mario Carrion  <mcarrion@novell.com>
2727
2728         * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
2729         [Fixes bug #428993]
2730
2731 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2732
2733         * Form.cs: Do not set the Form's icon in the backend if showicon = false.
2734         [Fixes bug #428114]
2735
2736 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2737
2738         * ThemeWin32Classic.cs: Allow tooltips to be multiline.
2739         [Fixes bug #427884]
2740
2741 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2742
2743         * StatusBar.cs: Add tooltip support.
2744         [Fixes bug #428113]
2745
2746 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2747
2748         * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
2749         alignments of sub items in Details view. Patch by John Mortlock (johnm at 
2750         hlaustralia.com.au).
2751         Fixes #425360.
2752
2753 2008-09-23  Neville Gao  <nevillegao@gmail.com>
2754
2755         * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
2756         [Fixes bug #419079]
2757
2758 2008-09-22  Jonathan Pobst  <monkey@jpobst.com>
2759
2760         * TextBoxBase.cs: Set Text to "" instead of null in Clear().
2761         [Fixes bug #428107]
2762
2763 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2764
2765         * ListView.cs: Don't do anything when EnsureVisible is called inside a
2766         BeginUpdate/EndUpdate block.
2767         Fixes #425049.
2768
2769 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2770
2771         * ListViewItem.cs: The semantics for the public .ctor of
2772         ListViewSubItemCollection need us to already have a Text value for the
2773         item, which in our implementation have as available *after* adding the
2774         first sub item. So create an internal .ctor that satisfies our needs
2775         and let the public .ctor have the same semantics as .net.
2776         Fixes #427561.
2777
2778 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2779
2780         * ListControl.cs: Changes in Formatting related values should call
2781         RefreshItems, as .net does.
2782         * ComboBox.cs:
2783         * ListBox.cs: In the respective overrides of RefreshItems calculate
2784         layout as well as refreshing - again, this is what .net does.
2785         Fixes #426168.
2786
2787 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2788
2789         * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
2790         since we are already doing that when we change the value of the
2791         scrollbar or force the call to ScrollWindow in the same method. This
2792         way we don't cause a Invalidate call for all the listbox bounds for
2793         methods calling UpdateTopItem with an already updated top item. This
2794         was happening specially calling EnsureVisible with already visible
2795         items.
2796
2797 2008-09-18  Mike Gorse <mgorse@novell.com>
2798
2799         * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
2800           XplatUIStructs.cs: Added KeyFilter
2801         [Fixes bug #427039]
2802
2803 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2804
2805         * RelatedPropertyManager.cs: The properties returned by
2806         GetItemProperties should be that ones of the *actual* object returned
2807         by the property, not the property type - this is very special when the
2808         property exposes a type, but the returned object actually is a child
2809         class and implements more functionality and properties.
2810
2811 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2812
2813         * Binding.cs: Don't look for the property in the data source if the
2814         passed string is empty.
2815
2816 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2817
2818         * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to 
2819         fix unused variable warnings.
2820
2821 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2822
2823         * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
2824         [Fixes bug #427073]
2825
2826 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2827
2828         * XplatUIX11.cs: 
2829          - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this 
2830          leads to the window manager overriding our border style and zorder. 
2831          - Allow the activation of non-modal forms, which are children of a 
2832          modal form.
2833         [Fixes bug #423417]
2834
2835 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
2836
2837         * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should 
2838         ask the window manager to do the work instead of changing the property 
2839         directly.
2840         [Fixes bug #423417]
2841
2842 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2843
2844         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
2845         AddNew to fix some navigation for empty datasets. [Fixes #323053]
2846
2847 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2848
2849         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
2850         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
2851         border and fixes some drawing issues when resize form.
2852
2853 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2854
2855         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
2856         
2857         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
2858         AcceptButton.
2859
2860 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
2861
2862         * TextBoxBase.cs: For standard textbox the scrollbars are always 
2863         visible if Multiline is true.
2864         [Fixes bug #426896]
2865
2866 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
2867
2868         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
2869         patch.
2870         
2871 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
2872
2873         [Fixes most od DBNull and HeadersVisible problems]
2874         
2875         * DataGrid.cs:
2876         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
2877         returns the value that we need.
2878         - Fixed FromPixelToColumn method that return zero for first     column and for
2879         row header cell, now it returns -1 for row header cell.
2880         - Fixed HitTest to check row header cell in column header area, it now
2881         returns HitTestType.None. [Fixes #322864]
2882         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
2883         checks for RowHeadersVisible and other things.
2884         - If an exception occurs when setting CurrentCell and user type 'yes' in
2885         message dialog, invalidade current and new cell and set setting_current_cell
2886         to false to prevent future errors. [Partially fixes #323050]
2887
2888         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
2889         value (SetColumnValueAtRow), it must be done by grid to properly show 
2890         messages. [Fixes #323050]
2891
2892         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
2893         better draw column and row header. Also dont draw anything when column
2894         headers is not visible.
2895
2896 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2897
2898         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
2899         logic.
2900
2901 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2902
2903         * TreeView.cs: Don't start editing a node on right click, only
2904         left click.
2905
2906 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2907
2908         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
2909         disabled over a year ago.
2910         * Form.cs: Wrap calling Load in a try/catch because it can happen
2911         before the catch-all one in NativeWindow.
2912         [Fixes bug #425414]
2913
2914 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2915
2916         * ToolStripDropDownMenu.cs: Calculate the connected area better
2917         to take into account when the drop down is not directly under the
2918         owner item.
2919         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
2920
2921 2008-09-16  Mario Carrion <mcarrion@novell.com>
2922
2923         * ScrollBar.cs: New event added: UIAValueChanged, generated when
2924           LargeChange, SmallChange, Maximum or Minimum values are changed.
2925         [Fixes bug #426464]
2926
2927 2008-09-16  Mario Carrion <mcarrion@novell.com>
2928
2929         * ErrorProvider.cs: Component enabled to support accessibility.
2930         * Application.cs: Updated to Initialize UIA in ErrorProvider.
2931         [Fixes bug #426459]
2932
2933 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2934
2935         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
2936         so we don't highlight on first focus.
2937         [Fixes bug #360869]
2938
2939 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2940
2941         * TextControl.cs: Correctly calculate the height of the area we 
2942         need to invalidate when we have started scrolling and viewport_y
2943         is used.  [Fixes bug #387608]
2944
2945 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2946
2947         * TextControl.cs: When getting the SelectedText, don't add in
2948         NewLine characters, as they are already contained in the lines.
2949         [Fixes bug #388115]
2950
2951 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2952
2953         * TextBoxBase.cs: Replace the buggy Lines setter with one that
2954         simply concats the lines and send it to the Text setter.
2955         [Fixes issue #2 and #3 of 388115]
2956
2957 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2958
2959         * Binding.cs: The default value of DataSourceNullValue should be
2960         Convert.DBNull actually. Also, the NullValue should only be used *if*
2961         itself is not null, and use the null/Convert.DBNull value instead.
2962
2963 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
2964
2965         * TextControl.cs: Add a method to convert a string newline to the
2966         newline enum.
2967         * TextBoxBase.cs: When the user hits enter, insert a native newline.
2968         [Fixes part 1 of bug #388115]
2969
2970 2008-09-15  Mario Carrion <mcarrion@novell.com>
2971
2972         * ToolTip.cs: UnPopup event set to internal to match public API.
2973
2974 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
2975
2976         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
2977         have to remove the Ctrl in order for the focus moving code to kick in.
2978         [Fixes bug #426170]
2979
2980 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
2981
2982         * CheckedListBox.cs: Return the real item index from Add.  It may not be
2983         the last item if the list is sorted.  The user can change the NewValue in
2984         the ItemCheck event, we need to use that value if so.
2985         * ListBox.cs: Return the real item index from a sorted Add.
2986         [Fixes bug #426166]
2987
2988 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
2989
2990         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
2991         happen that the icons from the theme is missing or the particular size 
2992         unavailable.
2993         [Fixes bug #424981]
2994
2995 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2996
2997         * Binding.cs: When assigning null or DBNull depending on value/ref type,
2998         use IsValueType instead to get the precise desired value.
2999         Fixes #424276.
3000
3001 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3002
3003         * TreeNodeCollection.cs: When adding a new node to an opened node,
3004         we have to invalidate everything below the parent node because
3005         every node scoots down and we have to repaint them.
3006         [Fixes bug #411386]
3007
3008 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3009
3010         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
3011         property into account when drawing.
3012         [Fixes bug #416064]
3013
3014 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3015
3016         * ListBox.cs: When calling Items.Clear(), call
3017         SelectedIndexCollection.ClearCore instead of normal Clear method, to
3018         not fire any Selected*Changed event - this is done to match .net and
3019         don't have invalid values when changing the DataSourceProperty.
3020         Fixes #424273.
3021
3022 2008-09-12  Mario Carrion  <mcarrion@novell.com>
3023
3024         * HelpProvider.cs: Control enabled to support accessibility.
3025         * Application.cs: Updated to Initialize UIA in HelpProvider.
3026         [Fixes bug #425988]
3027
3028 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3029
3030         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
3031         make the dialog TopMost as well.
3032         [Fixes bug #425984]
3033
3034 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3035
3036         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
3037         clipboard data better.
3038         [Fixes bug #414446]
3039
3040 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3041
3042         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
3043         TextChanged and SelectionChanged events fire in the same order as .Net.
3044         [Fixes bug #425725]
3045
3046 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3047
3048         * DataGridView.cs: When sorting a column, if it only contains numbers,
3049         do a numeric sort instead of a string sort.
3050         [Fixes bug #425849]
3051
3052 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3053
3054         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
3055         against NRE's when the settings have a null panel.
3056         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
3057         the panel gets set.
3058         [Fixes bug #425647]
3059
3060 2008-09-11  Mario Carrion  <mcarrion@novell.com>
3061
3062         * ToolTip.cs: Control enabled to support accessibility.
3063         * Application.cs: Updated to Initialize UIA in ToolTip.
3064         [Fixes bug #425277]
3065
3066 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3067
3068         * Control.cs: Make the custom Enumerator internal to fix build.
3069
3070 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3071
3072         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
3073         already in edit mode, begin edit mode.  Generally edit mode isn't
3074         started until the second click, but CheckBoxes are special.
3075
3076 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3077
3078         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
3079         since that can be set to anything.  Always add them to the Control's
3080         parent.  [Fixes bug #416058]
3081
3082 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3083
3084         * ListView.cs: Use a custom enumerator for ListViewItemCollection
3085         so items can be deleted in a foreach.
3086         [Fixes bug #425342]
3087
3088 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3089
3090         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
3091         Store the user set explicit height so that the row can be AutoSized
3092         and then when AutoSize is turned off, it can get its original size back.
3093         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
3094         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
3095         rows' heights back to their explicit values.
3096         [Fixes bug #415780]
3097
3098 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3099
3100         * DateTimePicker.cs: When getting focus, select the checkbox if we are
3101         already showing it. Also, don't change its value when pressing space
3102         if the checkbox is not visible (ShowCheckBox as false). Finally, the
3103         checkbox should remain selected as long as Checked is false, and the
3104         other parts are disabled.
3105         Fixes #424267.
3106         
3107 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3108
3109         * MessageBox.cs: Handle shortcut keys to dialog buttons.
3110         [Fixes bug #425425]
3111
3112 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3113
3114         * Binding.cs: When the value retrieved from the control property is
3115         null, don't return Convert.DBNull for Nullable instances, since they
3116         can *actually* get a null value.
3117         Fixes #424265.
3118
3119 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
3120
3121         * Control.cs: Add an internal field to force doublebuffering regardless
3122         of what the public mechanisms are set to.  This is because MS's native
3123         controls are doublebuffered even though their .Net bits are set to false.
3124         * ProgressBar.cs: Set force_double_buffer to true.
3125         [Fixes bug #406595]
3126
3127 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
3128
3129         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
3130         the cell template.
3131         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
3132         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
3133         without EditingControls, paint background selection for types without
3134         EditingControls, reset the EditingCellValueChanged flag when the
3135         cell's value is committed.
3136         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
3137         have EditingControls, remove a double call to a cell's OnContentClickInternal,
3138         don't do cell changing logic in OnMouseDown if the cell didn't change.
3139         [Fixes bug #420351]
3140
3141 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3142
3143         * DateTimePicker.cs: Fix the edition of am/pm specifier.
3144
3145 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
3146
3147         * TextControl.cs: Add "&" to the list of valid characters in a URL.
3148
3149 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3150
3151         * DateTimePicker.cs: Before incrementing or decrementing any part in
3152         the textbox, end any current edit. Also when ending the current edit
3153         use the editing_part_index field instead of the current selected
3154         value, since they can be out of synch, and we really need to work on
3155         the *real* current edit part. Finally when PartData.Selected changes,
3156         always try to end any ongoing edit.
3157         This should fix some small errors handling mouse navigation and
3158         increase/decrease operations.
3159
3160 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3161
3162         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
3163         respectively) should handled different, since the 12 hours format
3164         needs the value typed by the user to be adjusted depending on the
3165         a.m/p.m value, so it is preserved, and only changed when the value
3166         reaches the 12 value (when it changes from a.m to p.m).
3167         Fixes part of #416555.
3168
3169 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3170
3171         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
3172         * ToolStripDropDownItem.cs: Don't fire events and such again if
3173         ShowDropDown is called on an already dropped down item.
3174         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
3175         subitems, the user may add some in the DropDownOpening event.
3176         [Fixes bug #417877]
3177
3178 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3179
3180         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
3181         [Fixes bug #424270]
3182
3183 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3184
3185         * MdiClient.cs: When looking for menustrips on a child form to merge,
3186         look inside ToolStripContainers.
3187         [Fixes bug #424264]
3188
3189 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
3190
3191         * ErrorProvider.cs: Unbreak my previous commit.
3192
3193 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
3194
3195         * ErrorProvider.cs: Icon should always be 16x16.
3196         [Fixes bug #424380]
3197
3198 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
3199
3200         * GridEntry.cs: Invalidate the child items cache when the property 
3201         value changes.
3202
3203 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
3204
3205         * GridEntry.cs, PropertyGridView.cs: 
3206            - Update the ReadOnly detection and rendering to finally hopefully 
3207            match the one of MSFT.
3208            - Niceify and move the debug CWLS.
3209         [Fixes bug #409028]
3210
3211 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3212
3213         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
3214         since we are already calling Invalidate for the entire control when
3215         needed - and call Redraw() when size changes, since we need to paint
3216         there by ourselved and not anymore from the mentioned method. 
3217         This should improve the layout process. Also clean some not needed calls 
3218         here and there.
3219
3220 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
3221
3222         * MenuAPI.cs: Add a null check to the Alt-F4 code.
3223         [Fixes bug #420309]
3224
3225 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
3226
3227         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
3228         [Fixes bug #423040]
3229
3230 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
3231
3232         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
3233         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
3234         on item expansion. Improves performance and fixes bug #417955.
3235         [Fixes bug #417955]
3236
3237 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
3238
3239         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
3240         fix the build.
3241
3242 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3243
3244         * TextControl.cs: Add "_" to the list of valid characters in a URL.
3245         [Fixes bug #423408]
3246
3247 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3248
3249         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
3250         region gets set.
3251         [Fixes bug #414166]
3252
3253 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3254
3255         * FontDialog.cs: When storing our font size from the starting font,
3256         use SizeInPoints instead of Size in case Size is a different unit
3257         from Points.
3258         [Fixes bug #416489]
3259
3260 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3261
3262         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
3263         don't use it for anything else, check if a directory is highlighted.
3264         If it is, navigate into it.
3265         [Fixes bug #422087]
3266
3267 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3268
3269         * Binding.cs: When acquiring a BindingManagerBase for the first time,
3270         check that the specified property actually exists in the data source,
3271         and throw an ArgumentException if that's not the case - this is only
3272         done for this scenario, since for later cases (such Position changes)
3273         we throw different exceptions (match .Net).
3274
3275 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
3276
3277         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
3278           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
3279           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
3280           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
3281           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
3282           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
3283           properties.
3284           [Fixes bug #418684]
3285
3286 2008-09-03  Neville Gao  <nevillegao@gmail.com>
3287
3288         * StatusBar.cs: Control enabled to support accessibility.
3289         [Fixes bug #419079]
3290
3291 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3292
3293         * Binding.cs: When connecting the event handler for the "Changed"
3294         event for the property, only do it for PropertyManager, and not for
3295         CurrencyManager - this is exactly what does .Net, totally ignoring any
3296         change in the property of the elements of a list.
3297         Fixes the tests.
3298
3299 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
3300
3301         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
3302         to Windows when creating a window, as we fake MDI stuffs.
3303         [Fixes bug #421858]
3304
3305 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
3306
3307         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
3308         change takes effect.
3309
3310 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
3311
3312         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
3313         [Fixes bug #419001]
3314
3315 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
3316
3317         * DataGridView.cs: Raise CellContentClick event.
3318         [Fixes part of bug #420351]
3319
3320 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3321
3322         * ScrollBar.cs: Control enabled to support accessibility.
3323         [Fixes bug #416759]
3324
3325 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3326
3327         * ComboBox.cs: Control enabled to support accessibility.
3328         [Fixes bug #416663]
3329
3330 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3331
3332         * ListBox.cs: Control enabled to support accessibility.
3333         [Fixes bug #416640]
3334
3335 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
3336
3337         * ComboBox.cs: Don't suppress the TextChanged event when changing
3338         the SelectedIndex.
3339         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
3340         and re-raise it.
3341         [Fixes bug #420673]
3342
3343 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
3344
3345         * ErrorProvider.cs: Fix a regression NRE when setting properties
3346         for a control before it has a parent.
3347         [Fixes bug #420305]
3348
3349 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3350
3351         * Binding.cs: Use the BindingManagerBase.Current value to obtain
3352         connect the property "Changed" event, instead of using the data
3353         sources - this is useful when the property specifies actually a
3354         multiple objects path.
3355         Fixes part of #417973.
3356
3357 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3358
3359         * RelatedPropertyManager.cs: PropertyManager instances associated to a
3360         nested properties should return not the properties of the data source
3361         itself, but the properties of the type of a specific property in the
3362         data source - match .net.
3363
3364 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
3365
3366         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
3367         AddRange overloads into AddItems method, and added missing NULL check.
3368         Added extra argument check to RemoveAt for compatibility with MS. 
3369         Modified IList implementation of Add, Contains, IndexOf and Remove to
3370         throw an ArgumentException if item is not an int. Modified IList.Insert
3371         to throw a NotSupportException instead of an Exception. Implemented
3372         ICollection.
3373         (ObjectCollection): To avoid duplication, use AddItems method from
3374         AddRange overloads. On 1.0 profile, first perform NULL check on items
3375         in AddItems.
3376
3377 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
3378
3379         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
3380          #419087.
3381
3382 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
3383
3384         * X11Keyboard.cs : comment out some Console.WriteLine().
3385
3386 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
3387
3388         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
3389           even if premises are not filled. Also XLookupString() was not
3390           receiving correct input, which blocked precise input handling
3391           on non-XIM mode.
3392
3393 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3394
3395         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
3396         type of delegate, instead of EventHandler - this was causing a type
3397         cast exception in all apps handling this event.
3398         Fixes #417876.
3399
3400 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
3401
3402         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
3403         ShowDropDown to give the user a chance to dynamically add
3404         drop down items.  [Step 1 of fixing bug #417877]
3405
3406 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3407
3408         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
3409         had any mouse motion since the call to StartDrag, to match the dnd
3410         behaviour of .net.
3411         Fixes part of #381876.
3412
3413 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3414
3415         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
3416         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
3417         Also, if we are actually moving into a different window after
3418         grabbing, generate a LeaveNotify event for the previous window, since
3419         we need to fire the leave events until the grab ends, not when
3420         actually moving outside of the control.
3421
3422 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3423
3424         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
3425         events only for client windows was wrong - we need to compare the
3426         client window against the window receiving the EnterNotify event, not
3427         against zero (since client window is never Zero, btw).
3428         This prevents having unnecessary handling of EnterNotify events for
3429         non-client windows when a gran begins.
3430
3431 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3432
3433         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
3434         MouseMove/MotionNotify events at all (which should only happen after
3435         MouseUp/ButtonRelease, as .Net does).
3436         This avoids firing an extra and unnecessary MouseMove event just after
3437         every MouseDown event.
3438
3439 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3440
3441         * LinkLabel.cs: Always clear any previous links when LinkArea
3442         is set.  [Fixes bug #410709]
3443
3444 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3445
3446         * ToolStripProfessionalRenderer.cs: Revert last change.
3447         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
3448         for ToolStripDropDownBackground.
3449
3450 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3451
3452         * ToolStripProfessionalRenderer.cs: Use Window color for the 
3453         background of dropdowns to match .Net when the user is not
3454         using the default white.  [Fixes bug #418108]
3455
3456 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
3457
3458         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
3459           it caused timer registration twice. Fixed bug #418107.
3460
3461 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3462
3463         [Correction: This is the actual change to X11Dnd issue, not the
3464         previous one, which was actually a different issue.]
3465
3466         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
3467         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3468         when the pointer is actually in motion, but only when the pointer
3469         seems to stop (as .net does).
3470         Fixes part of #381876.
3471
3472
3473 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
3474
3475         * ListBox.cs: Fix CopyTo implementation.
3476         [Fixes bug #409169]
3477
3478 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
3479
3480         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
3481         drawing a ComboBox's background.  Fixes bad disabled rendering when
3482         the control is not at 0,0.
3483         [Fixes bug #416063]
3484
3485 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
3486
3487         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
3488         ComponentModel layer, which will properly prioritize the attributes.
3489         Avoids wrong prioritization of duplicate attributes when retrieving 
3490         the converter and editor.
3491         [Fixes bug #417729]
3492
3493 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3494
3495         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
3496         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3497         when the pointer is actually in motion, but only when the pointer
3498         seems to stop (as .net does).
3499         Fixes part of #381876.
3500
3501 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
3502
3503         * GridEntry.cs: Perform stricter check for the ParentEntry's 
3504         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
3505         implementation.
3506         [Fixes bug #417567]
3507
3508 2008-08-14  Geoff Norton  <gnorton@novell.com>
3509
3510         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
3511         Fixes #396983.  Properly fix ActiveWindow trackin and do not
3512         prematurely show POPUP windows.
3513
3514 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3515
3516         * XplatUIX11.cs: Handle the obscured regions while scrolling using
3517         GraphicsExpose event, processing it just after we copy the scrolled
3518         area. This ensures that the next calls to ScrollWindow will copy
3519         regions already updated, and the scrolling will be smooth. Also remove
3520         the code that was trying to detect the obscured regions, since we are
3521         not using it anymore (too slow).
3522
3523 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3524
3525         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
3526         MultiExtended mode, by separating some logic between the ctrl/shift
3527         handling. Also ignore any MouseMove events generated together with
3528         MouseDown events - we are only interested in the real motion event.
3529         Fixes part of #414963.
3530
3531 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
3532
3533         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
3534         is selected.  [Fixes bug #414143]
3535
3536 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
3537
3538         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
3539         and not the parent one (the propertyowner). Fixes the behavior of 
3540         GetConverter/GetEditor.
3541         [Fixes bug #415452]
3542
3543 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
3544
3545         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
3546         [Fixes part of bug #415452]
3547
3548 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
3549
3550         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
3551         GridEntry, not the current.
3552         [Fixes bug #413896]
3553
3554 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
3555
3556         * TextBoxBase.cs: De-internalize max_length field.
3557         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
3558         share the same logic.
3559         [Fixes bug #414454]
3560
3561 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3562
3563         * ListBox.cs: Selection changes made in the MouseDown handler should
3564         use the *Core versions of selection in SelectedIndices collection,
3565         since the SelectedIndexChanged/SelectedValueChanged events are fired
3566         until we get a MouseUp event, and thus we need to separate the logic
3567         from the events, as done in the keyboard navigation. Also, fire those
3568         selection events from keyboard navigation in SelectionMode.None, even
3569         if we don't have a selection, as .Net does.
3570
3571 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
3572
3573         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
3574         last change introduced when an item is clicked but isn't on a toolstrip.
3575
3576 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3577
3578         * ListBindingHelper.cs: When looking for an object's properties, check
3579         if it implements ICustomTypeDescriptor, in which case we should
3580         resolve the propertu based on its GetProperties method, not in its
3581         actual properties. This is what .Net seems to do.
3582         Fixes a UsingWebBrowser problem during initialization.
3583
3584 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3585
3586         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
3587         sitting on a MenuStrip.
3588
3589 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3590
3591         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
3592         no children with the keyboard, we need to release the keyboard capture.
3593         [Fixes bug #413567]
3594
3595 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3596
3597         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
3598         no children with the keyboard, we need to release the keyboard capture.
3599         [Fixes bug #413567]
3600
3601 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3602
3603         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
3604         the GTK+-based implementation of VisualStyles.
3605         * ThemeWin32Classic.cs: Exposed various layout values for use in the
3606         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
3607         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
3608         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
3609         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
3610         TrackBarHorizontalTrackHeight.
3611
3612 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3613
3614         * TabControl.cs: Added hot style handling for the scroll buttons.
3615         right_slider_state, left_slider_state are now of type PushButtonState to
3616         allow for a hot state. Added tracking of the mouse button being held down
3617         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
3618         LeftScrollButtonArea.
3619         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
3620         TabControlGetRightScrollRect.
3621
3622 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3623
3624         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
3625         runtime errors.
3626
3627 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3628
3629         * Form.cs: Ensure that we reset the shown_raised flag after 
3630         the form is closed, so that we raise the show events the next 
3631         time the form is shown.
3632         [Fixes bug #413141]
3633
3634 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3635
3636         * Form.cs: Ensure closing events are raised only once.
3637         [Fixes bug #413143]
3638
3639 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3640
3641         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
3642         so that we can successfully generate the LParam in-place instead of 
3643         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
3644         navigation for menus.
3645
3646 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3647
3648         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
3649         'navigating'. Fixes bug #411356.
3650
3651 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3652
3653         [Fixed remaining issues of #406773 (#1)]
3654         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
3655
3656         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
3657         MainMenu (already done) and ContextMenu creation.
3658
3659         * ContextMenu.cs: Create tracker on construction. 
3660
3661 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3662
3663         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
3664         possible to instantiate MenuTracker without GrabControl.
3665
3666 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3667
3668         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
3669
3670         * MainMenu.cs: Set GrabControl on SetForm using current form.
3671
3672 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3673
3674         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
3675
3676 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3677
3678         * MenuAPI.cs: Check if menu is activated before deactivate it in 
3679         ProcessShortcut.
3680
3681 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3682
3683         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
3684         ColumnStyle.cs: 
3685         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
3686          - One style instance can only participate in a single style collection.
3687          - Styles can request their owner to layout whenever their properties 
3688          change.
3689          [Fixes bugs #412583 and #412582]
3690
3691 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
3692
3693         * X11Keyboard.cs: Implement the generation of the LParam for 
3694         all keyboard messages.
3695         [Fixes bug #378728]
3696
3697 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
3698
3699         * ListBox.cs: Don't let the user set TopIndex so high that it
3700         scrolls up far enough to show empty items.
3701         [Fixes bug #412728]
3702
3703 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3704
3705         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
3706         (I'm an idiot and forgot to commit the actual changes, as well as
3707         specify the right file, which is this one, not ListView.cs).
3708
3709 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3710
3711         * ListView.cs: Don't draw ListViewSubItem instances from
3712         DrawListViewItem - we need to reuse the main item's drawing for the
3713         first sub item in case owner draw is true, but wants the system to
3714         do the default draw for the first sub item, without incurring in a
3715         recursion problem.
3716         Fixes #410880.
3717
3718 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
3719
3720         * ToolStripButton.cs: Update Checked for CheckOnClick before
3721         raising the Click event.  [Fixes bug #412505]
3722
3723 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
3724
3725         * Form.cs: Remove some seems leftover code for non-TopLevel's 
3726         CreateParams, which is breaking ClientSize sizing, because it 
3727         removes the border window styles.
3728
3729 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
3730
3731         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
3732         changes.
3733
3734 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
3735
3736         * WebBrowser.cs: Removed debug output.
3737
3738 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
3739
3740         * FileDialog.cs: Apply patch from Ernesto to clean up some
3741         dialog messages.
3742
3743 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3744
3745         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
3746         that the change has an immediate effect.
3747
3748 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3749
3750         * ScrollableControl.cs: Update PerformLayout calls to include 
3751         provide the name of the property that changed.
3752
3753 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3754
3755         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
3756         location. Fixes drawing of border and cell borders if scrollable.
3757
3758 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3759
3760         * ScrollableControl.cs: Perform layouting after the AutoScroll 
3761         properties have changed, so that the changes have immediate 
3762         effect.
3763         [Fixes bug #409090]
3764
3765 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3766
3767         * XplatUIX11.cs: Non Client area is actually Client such in the 
3768         case of NotifyIcon, so double check WholeWindow == ClientWindow 
3769         when adding an expose.
3770         [Fixes bugs #324237 and #357022]
3771
3772 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3773
3774         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
3775         repaint the cell borders.
3776
3777 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3778
3779         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
3780         disposal to avoid unexpected ObjectDisposedExceptions.
3781
3782 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
3783
3784         * TableLayoutPanel.cs: Layout on Row/Column count change.
3785
3786 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
3787
3788         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
3789         bug #409351.
3790         * PictureBox.cs: When ImageLocation is set to null or an empty string,
3791         only set image to null if it was previously initialized from an url
3792         (or using ImageLocation). In ImageLocation, load specified image
3793         asynchronously if WaitOnLoad is false. Added support for local file
3794         paths to LoadAsync, and added missing argument check.
3795
3796 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3797
3798         * DateTimePicker.cs: 
3799         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
3800         order to set the value as required (which means: when selection
3801         changes for a part being edited, and not before that if not needed).
3802         Also use an enum to describe which part are we using, and use the
3803         selection as a property in PartData, in order to notify the
3804         DateTimePicker owner that we need to end the current edit.
3805         Fixes #383462.
3806
3807 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
3808
3809         * PropertyGridTextBox.cs: Validation should be performed only if we 
3810         are focused. We can lose focus for example if the Return key is used 
3811         to set the entry and there is an error. When the message box is 
3812         displayed we would have validate on click in the message box.
3813
3814 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
3815
3816         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
3817         in order to determine that we are expandable is wrong. There was a bug, 
3818         now fixed, in TypeDescriptor that was causing the wrong converter to be 
3819         returned which caused GetPropertiesSupported == false in most cases.
3820         [Fixes bug #409027]
3821
3822 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
3823
3824         * ImageList.cs: Fix ICollection.CopyTo implementation for
3825         ImageListCollection.  [Fixes bug #409169]
3826
3827 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3828
3829         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
3830         WorkingArea so that menus can appear on the second monitor
3831         when one has dual monitors.
3832
3833 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3834
3835         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
3836         Fixes build.
3837
3838 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3839
3840         * TextBox.cs: Implement navigation support for auto complete in
3841         TextBox, as well as refactor the code to show the auto complete window
3842         when receiving a WM_CHAR message, instead of TextChanged, since
3843         autocomplete itself should be able to set the Text a lot of times and
3844         finally only typing should show it, not changes from code.
3845
3846 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3847
3848         * TabControl.cs: When expanding the selected tab, don't adjust the
3849         width if alignment is Right, since it has a different offset than 0,
3850         as opposed to the other alignments.
3851         Fixes the selected tab not being painted at all with alignment = Right
3852         and using FillToRight size mode.
3853
3854 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3855
3856         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
3857
3858 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3859
3860         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
3861         values from the textbox to the boundary values.  [Fixes bug #409026]
3862
3863 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3864
3865         * TreeNodeCollection.cs: We were copying one too many elements when
3866         doing our array copy.  Fixes a crash when RemoveAt is called.
3867         [Fixes bug #408999]
3868
3869 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3870
3871         * TabControl.cs: When doing the layout and need to call FillRow -using
3872         FillToRight size mode-, use the overload receiving a bool param
3873         indicating whether we need to do a vertical or horizontal calculation.
3874         Fixes part of #399583.
3875
3876 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3877
3878         * TextBox.cs: When painting, use the value returned by
3879         GetLastVisibleItem instead of using the cached last_item field, since
3880         there could be a desynchronization between the layout and the
3881         painting. Fixes a AOOR exception in auto complete mode.
3882
3883 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
3884
3885         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
3886         NonClientAreaEnabled until our VisualStyles is modified to allow it.
3887
3888 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
3889
3890         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
3891
3892 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3893
3894         * TextBox.cs: When focus is lost, if the auto complete listbox is
3895         visible, hide it.
3896
3897 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
3898
3899         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
3900         tracking size for tool windows.
3901         * Theme.cs, ThemeWin32Classic.cs : Extracted
3902         ManagedWindowSpacingAfterLastTitleButton.
3903
3904 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
3905
3906         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
3907         They are bit-rotted and have always been listed as "unsupported".
3908
3909 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
3910
3911         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
3912
3913 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
3914
3915         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
3916
3917 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3918
3919         * ListBox.cs: Make sure last_item_visible gets reset before we try
3920         to do a layout due to scrollbars appearing or disappearing.
3921         [Fixes bug #408139]
3922
3923 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3924
3925         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
3926         for different window themes.  [Fixes bug #339140]
3927
3928 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3929
3930         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
3931         in ManagedWindowBorderWidth.
3932
3933 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3934
3935         * InternalWindowManager.cs: Change MouseMove to take a point, so
3936         we can use the same point later on.
3937         * MdiWindowManager.cs: Store point sent to MouseMove so we can
3938         later reset to it.  On Windows, the Cursor.Position had already
3939         changed by the time we were resetting to it.
3940         [Fixes bug #363239]
3941
3942 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3943
3944         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
3945         are inactive.
3946         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
3947         user requested it.
3948         [Fixes bug #398686]
3949
3950 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3951
3952         * MdiWindowManager.cs: Double-clicking on the title bar should not
3953         maximize a MDI form if MaximizeBox = false.
3954
3955 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3956
3957         * ThemeVisualStyles.cs: Fixed a warning.
3958
3959 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3960
3961         * ThemeVisualStyles.cs: Fixed warnings and formatted.
3962
3963 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3964
3965         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
3966         implementation produces a better result.
3967
3968 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3969
3970         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
3971         windows.
3972
3973 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3974
3975         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
3976         cannot be used from the ThemeEngine constructor.
3977         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
3978         Application.VisualStylesEnabled because it does not work on X11.
3979
3980 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
3981
3982         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
3983         that we did not always check for, as well as fixes to the IList
3984         implementations.  [Fixes bug #402703]
3985
3986 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
3987
3988         * IDeviceContext.cs: Added Dispose.
3989
3990 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
3991
3992         * Control.cs: Added OnSizeInitializedOrChanged.
3993         * Form.cs: OnLoadInternal: Added a call to
3994         Control.OnSizeInitializedOrChanged.
3995         * InternalWindowManager.cs:
3996          * HandleTitleBarMouseMove: No longer invalidates the parent window.
3997          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
3998          * TitleButton: Added Entered.
3999          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
4000         * MdiWindowManager.cs:
4001          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
4002          move over the maximized title buttons causes a change.
4003          * IsActive: Can now be called before the window is added to a MDI parent.
4004         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
4005         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4006         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
4007         * ThemeWin32Classic.cs:
4008          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
4009          * DrawTitleButton takes a new form parameter.
4010          * Added ManagedWindowTitleButtonHasHotElementStyle,
4011          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4012
4013 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4014
4015         * ThemeEngine.cs: ThemeVisualStyles is now selected if
4016         Application.EnableVisualStyles has been called, even if the current system
4017         configuration does not support rendering with Visual Styles.
4018         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
4019         Styles should not be used.
4020
4021 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
4022
4023         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
4024         ComboBox in FormsTest.
4025
4026 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
4027
4028         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
4029         for fixed toolwindows.
4030
4031 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
4032
4033         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
4034
4035 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4036
4037         * Control.cs: CreateControl just returns if the Control is diposed 
4038         and doesn't throw ObjectDisposedException.
4039         [Fixes bug #406566]
4040
4041 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4042
4043         * Control.cs: Do not create the control if the parent isn't created 
4044         yet, e.g in the case of a parented form on which .Show is called.
4045         It will be created when the parent is made visible/created.
4046         Improves #402446.
4047
4048 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4049
4050         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
4051         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
4052         [Fixes bug #406786]
4053
4054 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4055
4056         * Form.cs: When disposed set owner to null. Improves #402446.
4057
4058 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4059
4060         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
4061         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
4062         if not.
4063         * Form.cs: Take the Padding into account for the PreferredSize.
4064         [Fixes bug #402849]
4065
4066 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4067
4068         * TabControl.cs: Since we don't support more than one direction in
4069         TabControl rows alignment (this is, the row becomes the
4070         bottom row when selected), make Direction return always 1. This way
4071         the layout doesn't get confused about a bad calculation.
4072         Fixes #399582.
4073
4074 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4075
4076         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
4077         so that the wparam is properly set.
4078         Fixes form moving in the test case in bug 402446.
4079
4080 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
4081
4082         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
4083         the full tree instead of nothing.  [Improves bug #406584]
4084
4085 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
4086
4087         * ThemeWin32Classic.cs: Adjusted minimized window painting.
4088
4089 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
4090
4091         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
4092         children.
4093
4094 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
4095
4096         * TreeView.cs: Add a null check when using CollapseAll on an
4097         empty tree.  [Fixes bug #406449]
4098
4099 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4100
4101         * Form.cs: Make OnMenuComplete internal so we can call it.
4102         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
4103         [Fixes bug #399321]
4104
4105 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4106
4107         * TabControl.cs: Handle Up and Down keys when TabControl is in
4108         vertical alignment.
4109         [Fixes bug #399585]
4110
4111 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4112
4113         * TabControl.cs: Invalidate when we remove a tab.  Guard against
4114         an AOORE when trying to remove a tabpage that is not owned by the
4115         parent control.
4116         [Fixes bug #399927]
4117
4118 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4119
4120         * ScrollBar.cs: Change the LargeChange calculation to be correct.
4121         Ensure we are using LargeChange instead of large_change so we our
4122         calculations are correct.
4123         [Fixes bug #403122]
4124
4125 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4126
4127         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
4128         we need to ensure the ColumnCount/RowCount gets set.
4129         [Fixes bug #404851]
4130
4131 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4132
4133         * ListBox.cs: When handling item navigation, if selection mode is
4134         None, call EnsureVisible, since scrolling is normally handled by
4135         selection, that we are not calling in this case.
4136         Fixes #398345.
4137
4138 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
4139
4140         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
4141         a null check to our focus walking code.  [Fixes bug #394332]
4142
4143 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
4144
4145         * ComboBox.cs: Case missed in bug 379596 "Support item
4146         navigation by entering text": On _close_ drop-down select
4147         the first item matching the text in the textbox.  [Fixes bug #397265]
4148
4149 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
4150
4151         * DataGridView.cs: Fix a crash when sorting by column headers, 
4152         mentioned in bug #404841.  Remove some dead switch cases.
4153
4154 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4155
4156         * ComboBox.cs:
4157         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
4158         uses the AutoComplete support in the internal TextBox. Also TextBox
4159         can store a reference to ComboBox, in case AutoCompleteSource is set
4160         to ListItems (this is, ComboBox's items, and we don't want to pass an
4161         additional collection).
4162
4163 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4164
4165         * ListViewItem.cs: Restore the initial value of bounds rect to
4166         Rectangle.Empty, and is this value for Layout detection in virtual
4167         mode. Fixes the tests.
4168
4169 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
4170
4171         * XPlatUI.cs: Remove references to "new" X11 backend.
4172
4173 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
4174
4175         * Control.cs: Add an internal virtual OnDragDropEnd method 
4176         to allow controls such as ListBox, which depend on a sequence 
4177         of MouseDown+Move+End events, to handle the lack of a MouseUp 
4178         when a DnD operation is started in MouseDown.
4179         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
4180         get a MouseUp, so reset our state whenever a DnD operation ends.
4181
4182 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
4183
4184         * PropertyGrid.cs: Clear the root griditem first thing when 
4185         new object/s is/are selected. Fixes some rare cases where 
4186         the View will get a paint request and won't know that the 
4187         grid is in the process of repopulating.
4188
4189 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4190
4191         * XplatUIX11.cs, InternalWindowManager.cs: 
4192         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
4193         doesn't automagically update the FormBorderStyle, so we must 
4194         double check the CreateParams explicitly to determine if the 
4195         window is a toolwindow.
4196         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
4197         instead of doing custom checks.
4198
4199         Fixes toolwindows for the test case in bug #402446
4200
4201 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4202
4203         * Control.cs: Visibility of the control should be false 
4204         when the handle is destroyed in WmDestroy and not immediately 
4205         in Dispose(). This is effectively where the disposing process 
4206         ends even though the control is marked as Disposed immediately 
4207         after calling Dispose().
4208         [Fixes bug #402446]
4209
4210 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4211
4212         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
4213         when the textbox gets focus.
4214         [Fixes bug #402704]
4215
4216 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4217
4218         * PropertyGridTextBox.cs, PropertyGridView.cs: 
4219          - Alt + Down should show the drop down editor.
4220          - Focus the editor when showing it
4221         [Fixes bug #402710]
4222
4223 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
4224
4225         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
4226         that are not the first panel.
4227         * StatusBar.cs: Ensure that the X coordinate of panels is always
4228         stored.  Fix IList implementation of StatusBarPanelCollection to
4229         call the regular methods.
4230         [Fixes bug #403599, #402165]
4231
4232 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
4233
4234         * ThemeWin32Classic.cs: Fix position calculation for centered
4235         text on status bar panels.  [Fixes bug #402165]
4236
4237 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
4238
4239         * Splitter.cs: Fix Splitter to:
4240          - Work for arbitrary splitter size
4241          - Handle MinSize and MinExtra properly
4242          - Get rid of absolute positioning during drag and use relative
4243          - Multiple other fixes 
4244          [Fixes bug #338966]
4245
4246 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
4247
4248         * Cursor.cs: Show shouldn't hide the cursor.
4249
4250 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4251
4252         * ListViewItem.cs: When invalidating, add some extra space to bounds,
4253         since focus rectangle and selection can add some space and need to
4254         take into account those small offsets - specially in Details view.
4255         * ListView.cs: Instead of invalidate using item Bounds directly, call
4256         item.Invalidate, to have the code centralized.
4257         Fixes focused/selection garbage when selecting and deselecting items
4258         that are close.
4259
4260 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4261
4262         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
4263         mode we can check whether we have to force a Layout or not, and can
4264         cache based on this, instead of avoiding caching all the the time. Do
4265         this check in GetBounds and TextBounds.
4266         Fixes selection in Details view.
4267
4268 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4269
4270         * ListView.cs: Make HeaderControl internal, thus the theme engine can
4271         get its *real* height instead of trying to infere it.
4272         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
4273         get the position of them, since it's in general a bad idea in general,
4274         and because we can't do that in virtual mode. Instead get the first
4275         visible item as well as item height, and draw them.
4276         Fixes #400390.
4277
4278 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
4279
4280         * ToolStripSplitButton.cs: We can't add in extra width if
4281         the button is not AutoSize.  [Fixes bug #401279]
4282
4283 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
4284
4285         * PaddingConverter.cs: 
4286          - Implement conversion to InstanceDescriptor
4287          - Handle "All" in CreateInstance by using the supplied 
4288          ITypeDescriptorContext.
4289          [Fixes bugs #396076 and #396078]
4290
4291          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
4292          Code contributed under MIT/X11 license.
4293
4294 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
4295
4296         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
4297         ButtonBase.cs:
4298         Add Category attributes.
4299         Code is contributed under the MIT/X11 license.
4300
4301 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
4302
4303         * Form.cs: 
4304          - Fix a NRE when unparenting a form.
4305          - Do not recreate or destroy a parented form when 
4306         unparenting. 
4307
4308 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4309
4310         * TextBox.cs: Implement basic support for AutComplete with custom
4311         sources.
4312
4313 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
4314
4315         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
4316         DropDownButtonBounds should be from the origin of the button, not the
4317         ToolStrip.  [Fixes bug #401279]
4318
4319 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
4320
4321         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
4322           running gtk_init_check.  This prevents GAIL from loading
4323           unnecessarily, which was breaking UIA support.  Initial fix for bug
4324           #375987.
4325         * Application.cs: Add UIA support to Winforms.  New static constructor
4326           uses reflection to initialize UIAutomationWinforms assembly.  Added
4327           PreRun event so UIA can initialize before the mainloop starts, and
4328           FormAdded event so UIA can provide a11y support for new Forms in an
4329           Application.
4330
4331 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
4332
4333         * DataGridView.cs: When binding to a dataset, subscribe to table
4334         and column change events.  Unsubscribe to these when we clear bindings.
4335         [Fixes bug #399601]
4336
4337 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
4338
4339         [DataGrid drawing refactory]
4340
4341         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
4342
4343         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
4344         must be handle by Theme, now it call DataGridPaintColumnHeader.
4345
4346         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
4347         test cases must be also fixed because it checks for wrong size.
4348
4349         * ThemeWin32Classic.cs: 
4350                 - Draw the bottom line of grid caption.
4351                 - Prevent to draw caption text when it is empty.
4352                 - Use CPDrawBorder3D for 3D efects to simplify code.
4353                 - Uses 3D (when not flat) to paint corner shared between row and column
4354                 header.
4355                 - Fix header drawing issues on win32, now borders are drawing.
4356                 - Fix column header paint issues to mimic win32.
4357                 - Adjust header drawing for last column, like first one it must be draw
4358                 different.
4359                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
4360                 not an character.
4361                 - DataGridPaintColumnHeader created to draw column headers, it also
4362                 paint stuff right on Win32.
4363                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
4364                 class.
4365
4366         * Theme.cs: 
4367                 - DataGridPaintRowHeaderStar method added.
4368                 - DataGridPaintColumnHeader method added.
4369
4370 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
4371
4372         * Control.cs: Don't reset to Dock style layout if DockStyle is
4373         set to none.  [Fixes bug #399316]
4374
4375 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
4376
4377         * Win32DnD.cs: Fix the check for control not equal null.
4378         Fixes bug #341420 and #381886. 
4379
4380 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
4381
4382         * DataGridViewRowCollection.cs: Update the indexes of rows after
4383         one has been removed.
4384         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
4385         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
4386         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
4387         rows for the Rows collection, or deleting rows from the bound DataSet.
4388
4389 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
4390
4391         * DataGridView.cs: Listen to a DataSet's changed event even
4392         when autogeneratecolumns is false.  Refactor the changed event's
4393         add row code to use the same as the existing add row code.
4394         [Fixes bug #399601]
4395
4396 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4397
4398         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
4399         much any time the caret moves and there is text, not just when
4400         the selection changes as one would think.
4401         * RichTextBox.cs: Override RaiseSelectionChanged and fire
4402         SelectionChanged.
4403         [Fixes bug #397271]
4404
4405 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4406
4407         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
4408         instead of trying to duplicate the code.
4409         * ListBox.cs: Make method internal so we can send keyboard events.
4410         [Fixes bug #398344]
4411         
4412 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4413
4414         * TextBoxBase.cs: When pasting and checking the max length,
4415         subtract the selected text length (the text we will be replacing) from
4416         the document length.
4417         * TextControl.cs: Ensure every character insertion is reflected in
4418         charcount, so max length will work properly.
4419         [Fixes bug #398605]
4420
4421 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4422
4423         * ListBox.cs: Ensure scrollbars are updated when a single
4424         column listbox with an already set top-index is created.
4425         [Fixes bug #398342]
4426
4427 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4428
4429         * FontDialog.cs: Typing in the font/style textboxes should search
4430         the list boxes case-insensitively.  [Fixes bug #398343]
4431
4432 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
4433
4434         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
4435         widths of icon and buttons instead of hard coded values.
4436
4437 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4438
4439         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
4440         as well as generating a SelectedIndexChanged event, just like .Net does
4441         -surprise-.
4442         Fixes #398345.
4443
4444 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4445
4446         * ListBox.cs: When navigating items visually, use FocusedItem as the
4447         reference point instead of SelectedIndex, since even in
4448         SelectionMode.None we need to support navigation, and in that case we
4449         just can't use SelectedIndex.
4450         Fixes part of #398345.
4451
4452 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
4453
4454         * Control.cs: Make a SetBoundsInternal that avoids the new
4455         SetBounds code.
4456         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
4457         SetBoundsInternal instead of SetBoundsCoreInternal.
4458
4459 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
4460
4461         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
4462         SetBounds for the scrollbars.
4463
4464 2008-06-10  Andreia Gaita <avidigal@novell.com> 
4465
4466         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
4467           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
4468           OnMouseMove, OnMouseOver, OnMouseUp
4469         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
4470           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
4471         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
4472           to the WebControl object to pass to new collection objects
4473         * HtmlHistory.cs: Implement support for individual window histories.
4474         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
4475           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
4476           GotFocus, LostFocus, OnLoad, OnUnload
4477         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
4478           ContextMenu
4479         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
4480           security level changes and context menu event support.
4481
4482 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4483
4484         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
4485         as happens with Esc, patch my Andy Hume.
4486         Fixes #396294.
4487
4488 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4489
4490         * MdiWindowManager.cs: DrawMaximizedButtons now uses
4491         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
4492         * Theme.cs: Made MenuButtonSize platform dependent. Added
4493         ManagedWindowButtonSize.
4494         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
4495         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
4496
4497 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4498
4499         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
4500         Added support for rendering with VisualStyles.
4501
4502 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4503
4504         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4505         support for rendering the border with VisualStyles.
4506
4507 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4508
4509         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
4510         the icon is not shown.
4511         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
4512         its own logic.
4513
4514 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4515
4516         * InternalWindowManager.cs: Draw minimized windows even if they don't have
4517         borders.
4518
4519 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
4520
4521         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
4522
4523 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
4524
4525         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
4526         [Fixes bug #397943]
4527
4528 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4529
4530         * ComboBox.cs: When snaping height -because of IntegralHeight set to
4531         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
4532         if the requested height leaves the listbox area with *less* than the
4533         required are to see one item. We were setting it to PreferredHeight
4534         even for values matching the height for a single item.
4535         Fixes #396297.
4536
4537 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
4538
4539         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
4540
4541 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
4542
4543         * DataGridViewCell.cs: Use property instead of field.
4544
4545 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4546
4547         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
4548         null checks.
4549
4550 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4551
4552         * Theme.cs: Added #region around the managed window code. Made the managed
4553         window methods abstract.
4554         * ThemeWin32Classic.cs: Added #region around the managed window code.
4555
4556 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4557
4558         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
4559         if it has borders.
4560         * ThemeWin32Classic.cs: Removed HasBorders checks in
4561         DrawManagedWindowDecorations.
4562
4563 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4564
4565         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4566         Extracted ManagedWindowGetTitleBarIconArea.
4567
4568 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4569
4570         * DataGridViewCellStyle.cs: Don't clone the font.
4571
4572 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4573
4574         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
4575
4576 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4577
4578         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
4579         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
4580         in 64 bit machines.
4581
4582 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4583
4584         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
4585         Use Format/FormatProvider before trying converters.
4586         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
4587         are 'set'.  Change constructor to not use ApplyStyle since it wants
4588         everything applied.  Clone the Font.
4589         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
4590         ApplyStyle the rest.
4591
4592 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4593
4594         * ListView.cs: We need to calculate the scrollbars even if the handle
4595         hasn't been created - this is needed when methods using scrollbars
4596         info, such EnsureVisible, are called before control has been created.
4597         Fixes #397272.
4598
4599 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
4600
4601         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
4602         only if the elements are defined. 
4603
4604 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4605
4606         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
4607         section. Also, when setting bounds, snap height as well as save the
4608         requested height if Dock has any value affecting the height: Left,
4609         Right and Bottom - important if using IntegralHeight as true.
4610
4611 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4612
4613         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
4614         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
4615         instead of doing that only in our SetBoundsCore override, since the 
4616         bounds cached can be the same as saved one and we could not get the
4617         new height applied.
4618         Fixes #396297.
4619
4620 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4621
4622         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
4623         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
4624         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
4625         ToolWindowCaptionButtonSize.
4626         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
4627
4628 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4629
4630         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
4631         hard coded values.
4632         * Theme.cs: Made DoubleClickTime plaform dependent.
4633
4634 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4635
4636         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
4637         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4638         ToolWindowCaptionHeight.
4639
4640 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4641
4642         * InternalWindowManager.cs: The adjustment to ensure positive client area
4643         sizes is now platform dependent (disabled on Windows).
4644         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4645         RequiresPositiveClientAreaSize.
4646
4647 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4648
4649         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
4650
4651 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4652
4653         * InternalWindowManager.cs: Changed IconicSize to use
4654         SystemInformation.MinimizedWindowSize.
4655         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
4656         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
4657
4658 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4659
4660         * ComboBox.cs: If the combobox is anchored both on top and bottom,
4661         adjust height if IntegralHeight is true when calling SetBoundsCore (as
4662         likely the height was modified even if Height wasn't specified in
4663         BoundsSpecified parameter).
4664         Fixes part of #396297.
4665
4666 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
4667
4668         * InternalWindowsManager.cs: Changed minimum window size while resizing to
4669         SystemInformation.MinWindowTrackSize.
4670         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
4671         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
4672
4673 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4674
4675         * MenuItem.cs: Fixed Dispose.
4676
4677 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4678
4679         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
4680         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
4681         EnteredHeaderCell, PressedHeaderCell: Added.
4682         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
4683         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
4684         theme a chance to override default painting.
4685         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
4686         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
4687         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
4688         ListView and DataGridView header rendering.
4689         
4690 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4691
4692         * RichTextBox.cs: GetPositionFromCharIndex should return the 
4693         visual position of the character relative to the viewport.
4694         [Fixes part of bug #396664]
4695
4696 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4697
4698         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
4699         and not just for the existance of an UITypeEditor. In some cases 
4700         there is an editor associated just to do PaintValue, but which 
4701         doesn't actually support editing.
4702         [Fixes bug #396632]
4703
4704 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4705
4706         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
4707         if needed, instead of 0 - this should help us in the corner case where
4708         we have more than one item but we are only partially showing 1 item.
4709         Fixes part of #374713.
4710
4711 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4712
4713         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
4714         control, return immediately if the any parent control's handle hasn't
4715         been created or isn't visible, as well as avoiding creating the parent
4716         Form if the handle hasn't been previously created.
4717         Fixes tests.
4718
4719 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
4720
4721         * TableLayoutPanel.cs: Use border sizes when calculating the
4722         panel's preferred size.  [Fixes part of bug #396433]
4723
4724 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
4725
4726         * SplitContainer.cs:
4727          - Fix SplitterDistance to update only if needed. 
4728          - Make it force min and max validation.
4729          - Handle properly mouse moves outside the resizeable area.
4730          [Fixes bug #396232]
4731
4732 2008-06-02  Andreia Gaita <avidigal@novell.com> 
4733
4734         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
4735           (which also suppresses all popup dialogs). Throw NotSupported
4736           exceptions for activex getters/setters.
4737         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
4738           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
4739           StatusText, Version, GoSearch
4740         * HtmlDocument.cs: Add DocType support
4741
4742 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
4743
4744         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
4745         [Fixes bug 396124]
4746
4747 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
4748
4749         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
4750
4751 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
4752
4753         * TableLayoutPanel.cs: When calculating preferred size, use the
4754         actual number of columns and rows, not what the user set them to.
4755         [Fixes bug #396141]
4756
4757 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
4758
4759         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
4760         394311.
4761
4762 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4763
4764         * XplatUIX11.cs: When detecting areas obscured in a control by other
4765         toplevel windows while scrolling, return if the control hasn't a 
4766         container form.
4767         Fixes some tests.
4768
4769 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4770
4771         * XplatUIX11.cs: Properly detect the visible area of a control being
4772         scrolled (obscured by other winforms controls and any X toplevel
4773         windows), to mark as invalid the requested area to be scrolled that
4774         isn't visible and thus can't be copied.
4775         Fixes #324513.
4776
4777 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4778
4779         * ListBox.cs: Compute the precise amount to vertically scroll when
4780         using DrawMode.OwnerDrawVariable.
4781         Patch by jkeymer (j.keymer@gmx.net).
4782
4783 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4784
4785         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
4786         to avoid setting an invalid value for the verticall scrollbar 
4787         when navigating items. And, duh, also remove my silly debug messages
4788         from previous commits.
4789         Fixes #374713.
4790
4791 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
4792
4793         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
4794         make it MS compatible.
4795
4796 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
4797
4798         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
4799          - Allow the editing of entries even if their parent is read-only.
4800          - Do not render expandable properties read-only.
4801          - Refactor expansion checks form PropertyGrid into PropertyGrid.
4802
4803 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
4804
4805         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4806         support for the hover style.
4807
4808 2008-05-29  Andreia Gaita <avidigal@novell.com> 
4809
4810         * ContainerControl.cs: Check for null dead-end when traversing the tree
4811           of parent controls.
4812         
4813           [Fixes #394332, patch by Ernesto Carrea]
4814
4815 2008-05-29  Geoff Norton  <gnorton@novell.com>
4816
4817         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
4818         constant that it is.  Fixes #393981
4819
4820 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
4821
4822         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
4823         that the user probably doesn't want to set this.
4824
4825 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
4826
4827         * ThemeWin32Classic.cs: Don't let the text size be bigger than
4828         the control size for CheckBox/RadioBox.
4829         [Fixes part of bug #394645]
4830
4831 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4832
4833         * PropertyGrid.cs: Update the state of the sorting buttons in 
4834         the toolbar if PropertySort is set programatically.
4835
4836 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4837
4838         * GridItemCollection.cs: Add multiple items with conflicting names 
4839         support and also preserve name ordering.
4840         [Fixes #395345]
4841
4842 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4843
4844         * GridItemCollection.cs: Revert my multiple items with same 
4845         name patch.
4846
4847 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4848
4849         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
4850         or middle ones.
4851         Fixes part of #393908.
4852
4853 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
4854
4855         * ToolStripDrowDown.cs: When using the Show () methods that have a
4856         Control parameter, set the menu owner to that Control.
4857         [Fixes bug #394345]
4858
4859 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
4860
4861         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
4862         [Fixes bug #362756]
4863
4864 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4865
4866         * GridItemCollection.cs: Refactor to support multiple items with the 
4867         same name.
4868         [Fixes bug #394314]
4869
4870 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
4871
4872         * Control.cs: The 2.0 check for illegal cross thread calls in 
4873         Control.Handle were throwing an exception when we were getting
4874         the Handle in order to invoke correctly.  Created a private
4875         version that does not contain this check.
4876         [Fixes bug #394531]
4877
4878 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4879
4880         * PropertyGrid.cs: Respect DefaultTabType.
4881
4882 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4883
4884         * ListView.cs: SPACE selects an item.
4885         [Fixes bug #393023]
4886
4887 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4888
4889         * ListView.cs: Reset the search string whenever the items are 
4890         modified.
4891         [Fixes bug #393020]
4892
4893 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4894
4895         * ListControl.cs: For the first added item PositionChanged is fired
4896         _before_ ItemChanged, which leave us in a temporary invalid state - so
4897         we need to set the selected index from ItemChanged handler *if* we
4898         know that the first item has just been added *and* the items have been
4899         actually added to the ListControl.
4900         Fixes #369048.
4901
4902 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4903
4904         * TabControl.cs: Only clicks with the left button should be
4905         handled.
4906         Fixes #393908.
4907
4908 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4909
4910         * ComboBox.cs: 
4911         * FIleDialog.cs:
4912         * TextBox.cs: Expose an internal method in TextBox to restore the
4913         original context menu, and call it from ComboBox to re-use it in the
4914         combobox containing the file name in FileDialog.cs.
4915         Fixes part of #393775.
4916
4917 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
4918
4919         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
4920         style.
4921
4922 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
4923
4924         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
4925         down button style.
4926
4927 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4928
4929         * ComboBox.cs: Minor correction to previous patch: PageDown should
4930         also *try* to move by one item if the computed offset is negative,
4931         just like the PageUp case.
4932
4933 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4934
4935         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
4936         should be done for at least 1 item, and not stay at the same item.
4937         Fixes part of #374713.
4938
4939 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
4940
4941         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
4942         directories.  [Fixes bug #393931]
4943
4944 2008-05-22  Andreia Gaita <avidigal@novell.com> 
4945
4946         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
4947           Don't fire events until the initial about:blank page has finished
4948           loading. Clean up events.
4949
4950 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
4951
4952         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
4953           FocusIn() too. This should fix the issue on switching
4954           scim keyboards.
4955
4956 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
4957
4958         * X11Keyboard.cs : set XIM font size to somewhat reasonable
4959           number (ideally the input textbox size, but that could be
4960           too messy).
4961
4962 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
4963
4964         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
4965         the ToolStripItem's TextChanged.  [Fixes bug #393597]
4966
4967 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4968
4969         * TabControl.cs: When invalidating in SelectedIndex and we need to
4970         inflate to take into account the border of the tabs, make sure that
4971         the invalidated rect doesn't overflow the control bounds, since that
4972         would avoid updating at all.
4973
4974 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4975
4976         * TabControl.cs: Don't substract scroller width from the row width,
4977         since we need to take into account the total width of the control when
4978         calculating the position of the tabs. This avoids showing scroller
4979         when it is actually not needed.
4980         Fixes part of #322325.
4981
4982 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4983
4984         * ThemeVisualStyles.cs: Added support for TextBoxBase.
4985
4986 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4987
4988         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4989         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
4990
4991 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
4992
4993         * DataGridView.cs: Only paint the top left header cell if there
4994         are columns.
4995
4996 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
4997
4998         * DataGridView.cs: When binding to a BindingSource, get the underlying
4999         list to bind to.  [Fixes bug #345483]
5000
5001 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5002
5003         * DataGridView.cs: Do not bind to collection properties.
5004         [Fixes bug #337470]
5005
5006 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5007
5008         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
5009
5010 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5011
5012         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
5013         thumb style.
5014
5015 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5016
5017         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
5018
5019 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5020
5021         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
5022         background.
5023
5024 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5025
5026         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
5027
5028 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5029
5030         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
5031         checked styles.
5032
5033 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5034
5035         * TabControl.cs: Extended to handle the hot style.
5036
5037 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5038
5039         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
5040         Extended UpDownBase code to handle hot and disabled styles.
5041
5042 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5043
5044         * DataGridView.cs: Handle databinding to generic list type things.
5045         [Fixes bug #325239]
5046
5047 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5048
5049         * DataGridViewCellCollection.cs: Add a method to find the cell
5050         with the given DataPropertyName.
5051         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
5052         * DataGridViewColumnCollection.cs: Add a method to clear all
5053         autogenerated columns.
5054         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
5055         columns.
5056         [Fixes bug #348082]
5057
5058 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5059
5060         * DataGridView.cs: Don't try to update the RowTemplate with
5061         a null CellTemplate.
5062
5063 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5064
5065         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
5066         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
5067         * DataGridView.cs: Lots of fixes/enhancements to databinding to
5068         a DataSet.
5069
5070 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5071
5072         * Control.cs: Remove invalidating implicit child controls when
5073         control is invalidated.  It was causing too many redraws on
5074         controls with implicit scrollbars.
5075         * ListView.cs: Listen to the Invalidated event and invalidate
5076         child controls.
5077
5078 2008-05-20  Andreia Gaita <avidigal@novell.com> 
5079
5080         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
5081         * HtmlDocument.cs: Check for nulls
5082
5083 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5084
5085         * Control.cs: In ControlCollection.RemoveInternal, remove the
5086         internal control before calling PerformLayout and OnControlRemoved,
5087         which was leaving us in an invalid state and causing a X error (bad
5088         match). Observe that Remove () call has the same order.
5089         Fixes an X error changing ComboBoxStyle.DropDownStyle.
5090
5091 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5092
5093         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
5094         being fired if ControlStyles.UserPaint style is activated.
5095         Fixes #371905.
5096
5097 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5098
5099         * GridEntry.cs: Don't be so strict when setting the value - 
5100         do not check if what we set is what we get.
5101         [Fixes bug #389245]
5102
5103 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5104
5105         * XplatUIX11.cs: If there are no timers timeout should be 0
5106         [Fixes bug #363522]
5107
5108 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
5109
5110         * Control.cs: As a followup to invalidating implicit children when
5111         a control is invalidated, only invalidate them if they are in the
5112         clip rectangle.
5113
5114 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5115
5116         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
5117
5118 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5119
5120         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
5121
5122 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5123
5124         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
5125         * XplatUIWin32.cs: Made Win32DeleteObject public.
5126
5127 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5128
5129         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
5130         PropertyDescriptor.ShouldSerializeValue.
5131         [Fixes bug #391924]
5132
5133 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5134
5135         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
5136         in the classic theme.
5137
5138 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5139
5140         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
5141         ThumbPressed.
5142         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
5143         ScrollBarHasPressedThumbStyle.
5144
5145 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5146
5147         * TextRenderer.cs: Included some methods in the 1.1 profile.
5148
5149 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
5150
5151         * Control.cs: When we make a control visible, it may have been
5152         previously visible and while it wasn't visible, the z-order of
5153         things may have been shuffled, so the control needs to have its
5154         z-order updated just in case.  [Fixes bug #391518]
5155
5156 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5157
5158         * ThemeVisualStyles.cs: Added support for GroupBox.
5159
5160 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5161
5162         * GroupBoxRenderer.cs: Included in the 1.1 profile.
5163
5164 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
5165
5166         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
5167           bug #389996; XSelectInput() behaved as mouse handler robber,
5168           so remove extra call to it.
5169
5170 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5171
5172         * Control.cs: Simplify ControlCollection.Contains method.
5173
5174 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5175
5176         * DataGridViewRow.cs: Implement GetPreferredSize.
5177
5178 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5179
5180         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
5181
5182 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5183
5184         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
5185         painting and edit control fixes.
5186
5187 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5188
5189         * DataGridView.cs, DataGridViewCell.cs: Work around some external
5190         checks to make sure we are in an actual row/col for top left header cell.
5191         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
5192
5193 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5194
5195         * Control.cs: Use long instead of int when handling WParam from
5196         mousewheel scrolling.  Int was overflowing on Win64.
5197
5198 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5199
5200         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
5201         flow panel without scrolling first, and then calculate the 
5202         scrolling based on the new layout.  [Fixes bug #390149]
5203
5204 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5205
5206         * ListBox.cs: Invalidate after scrolling up when selected index
5207         changes.  [Fixes bug #390151]
5208
5209 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5210
5211         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
5212         set, default height to 150. I tried first with DefaultSize, but this
5213         is not generating a SetBoundsCore call before handle creation time, so
5214         we can take it into account. This is just what .net does.
5215
5216 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
5217
5218         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
5219         as it broke some stuff.  Calberto is filing a bug for eno to
5220         work with.
5221
5222 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5223
5224         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
5225         to 0 is the current value is -1, and if style is not Simple, just
5226         return, like .net does.
5227         Fixes part of #374713.
5228
5229 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
5230
5231         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
5232         progress bar stuffs, use doubles instead of ints to prevent
5233         overflow.  [Fixes bug #389798]
5234
5235 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
5236
5237         * XplatUIX11.cs, X11Keyboard.cs :
5238           Significant refactoring on XIM support. Now IM engine UI
5239           should show up, at mostly-correct preedit position.
5240           - Eliminated use of FocusWindow, as it is never mapped
5241             and hence blocks correct preedit position. XIC is now
5242             created per window, and it must be destroyed too when
5243             the window is destroyed.
5244           - WM_QUIT messages should not be filtered even when hwnd
5245             is zombie. Filtering it could cause endless loop.
5246           - Preedit position must move only when the window is alive.
5247           - Make it IDisposable and make sure to release XIM/XICs.
5248
5249 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
5250
5251         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
5252           XplatUIX11.cs, XplatUIWin32.cs :
5253           fix for bug #325033 and #387693;
5254           - WM_QUIT should not be sent when no running application
5255             exists.
5256           - SetTimer/KillTimer (especially on win32) should be
5257             invoked for the window that the timer is/will_be attached.
5258           - There could be unattached timers to a window when it's
5259             started. For those timers, hold pending timers and when
5260             a window is mapped, attach them to it.
5261           - WaitForHwndMessage() could run into loop when
5262             WM_SHOWWINDOW is handled before this method is called.
5263             So, strictly check wm_showwindow state.
5264           - Tick handler should not be invoked while one Tick handler
5265             call is still running (introduced Busy state).
5266
5267 2008-05-13  Andreia Gaita <avidigal@novell.com> 
5268
5269         * WebBrowserBase.cs: Override Internal alternative methods for
5270           SetBoundsCore and OnResize instead of the protected ones.
5271         * Control.cs: Move SetBoundsCore and OnResize implementations to
5272           SetBoundsCoreInternal and OnResizeInternal, so they can be
5273           overriden internally (WebBrowserBase needs to catch them but can't
5274           override the protected methods without api compat problems)
5275
5276 2008-05-13  Andreia Gaita <avidigal@novell.com> 
5277
5278         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
5279
5280 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5281
5282         * Binding.cs:
5283         * ListView.cs: Remove debug messages.
5284
5285 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5286
5287         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
5288         area is empty. Also calculate scrollbars in Simple mode based in area
5289         height and total number of items, not in MaxDropDownItems.
5290         Fixes part of #371991.
5291
5292 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5293
5294         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
5295
5296 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5297
5298         * BindingSource.cs: GetListSortDescription is not public.
5299
5300 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5301
5302         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
5303
5304 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5305
5306         * HtmlElement.cs: Fix parameter names to match MS.
5307         * HtmlWindowCollection.cs: Should not be sealed.
5308
5309 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5310
5311         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
5312         button, because the thumb button will not get drawn if the scrollbar
5313         is disabled.  [Fixes bug #389262]
5314
5315 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5316
5317         * ListBox.cs: Handle End key for multi-column listboxen.
5318         [Fixes bug #389266]
5319
5320 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5321
5322         * ListBox.cs: Fix algorithm to determine which column our item is in.
5323         [Fixes bug #389265]
5324
5325 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5326
5327         * ListBox.cs: Invalidate when the listbox is resized.
5328         [Fixes bug #389256]
5329
5330 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5331
5332         * ListBox.cs: There is always at least one row in the ListBox (if
5333         we are doing these calculations.)  [Fixes bug #389253]
5334
5335 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5336
5337         * ListBox.cs: There is always at least one column in the ListBox.
5338         [Fixes bug #389250]
5339
5340 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5341
5342         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
5343         ensure in Simple mode that the height is exactly the requested one.
5344         Also add the ComboBoxListControl to the controls collection in Simple
5345         mode even if handle hasn't been created.
5346         Fixes part of #371991.
5347
5348 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5349
5350         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
5351         our ComboBox owner instead of giving it back to the previous control (
5352         as done in other controls). Also remove the empty override of Select
5353         method, since we want to be selected *and* give focus to our owner.
5354         This should let the user do keys-navigation in Simple mode. 
5355
5356 2008-05-10  Geoff Norton  <gnorton@novell.com>
5357
5358         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
5359         problems with rapid scrolling of treeviews. Fixes #381084
5360
5361 2008-05-10  Geoff Norton  <gnorton@novell.com>
5362
5363         * XplatUICarbon.cs: Deactivate the active window before
5364         activating the desired window.  Completes fixing #386504
5365
5366 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5367
5368         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
5369         SmallChange to the item size width plus the padding, to match .net.
5370
5371 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5372
5373         * FileDialog.cs: Apply the custom filter typed by the user in the file
5374         name combobox as much as possible while navigating in the file dialog.
5375         Fixes #385261.
5376
5377 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5378
5379         * Binding.cs: Actually use NullValue if the retrieved value of
5380         data source is null or DBNull. Makes a test pass.
5381
5382 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
5383
5384         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
5385         * MimeIcon.cs: Provide a way to get icons from resources.
5386
5387 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5388
5389         * Binding.cs: When the value retrieved from the control to be assigned
5390         to the data source is null, actually use the 2.0 DataSourceNullValue
5391         value. Make pass a data binding test.
5392
5393 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5394
5395         * Control.cs: We need to invalidate implicit children even when
5396         invalidate is called with invalidatechildren = false.  (Implicit
5397         children are really part of the parent.)
5398         * ListView.cs: Double-buffer internal child controls for less
5399         flicker.
5400         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
5401         owner ListView subitems for greatly increased performance.
5402         [Fixes bug #388477]
5403
5404 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
5405
5406         * FileDialog.cs: When the user types a wildcard character in the
5407         filename combobox, update the contents of the folder using the text as
5408         a filter.
5409         Fixes part of #385261.
5410
5411 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5412
5413         * ListBox.cs: Various fixes for MultiColumn listboxen.
5414         [Fixes bug #388114]
5415
5416 2008-05-08  Andreia Gaita <avidigal@novell.com> 
5417
5418         * HtmlElement.cs: Implement Style property
5419
5420 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5421
5422         * ListBox.cs: Respect checkboxes when measuring item size.
5423         * ThemeWin32Classis.cs: When drawing list items, don't draw
5424         text outside of the item's bounds to prevent overlapping.
5425         (.Net actually overlaps, but that's just silly.)
5426         [Fixes bug #388117]
5427
5428 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
5429
5430         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
5431         Gert Driesen. Fixes bug #324830. 
5432
5433 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
5434
5435         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
5436         method implemented.
5437
5438 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5439
5440         * BindingSource.cs: When calling IsSynchronized, return the value of
5441         the related IList list.
5442
5443 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5444
5445         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
5446         make a test pass.
5447
5448 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
5449
5450         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
5451         navigation to scroll the grid if the current cell is not visible.
5452
5453 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5454
5455         * HtmlElement.cs: Implement TabIndex
5456
5457 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
5458
5459         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
5460         properties, even when there are no items.
5461         [Fixes bug #387611]
5462
5463 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
5464
5465         * NativeWindow.cs: Add support for multiple handles per window.
5466         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
5467         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
5468         directly - use FromHandle instead.
5469         [Fixes bug #374660]
5470
5471 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5472
5473         * HtmlElement.cs: Implement InnerHTML setter
5474
5475 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5476
5477         * HtmlDocument.cs: Implement Focused
5478
5479 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5480
5481         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
5482         methods, as well as add messages to the exceptions.
5483
5484 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5485
5486         * BindingSource.cs: Setting DataSource should only reset DataMember if
5487         the previous value was null (make pass a not working test).
5488
5489 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5490
5491         * BindingSource.cs: When EndInit call is postponed and is called until
5492         DataSource.EndInit is called, remove the handler for data source.
5493
5494 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5495
5496         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
5497
5498 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5499
5500         * ToolStripManager.cs: Store references to toolstrips as
5501         weak references so they do not prevent forms from getting collected.
5502         [Fixes bug #386483]
5503
5504 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5505
5506         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
5507         on .Net.  So do the same thing in WndProc.
5508
5509 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5510
5511         * TrackBar.cs: Commit patch from Andy Hume that corrects
5512         the clickable areas to better match .Net.
5513         [Fixes bug #387074]
5514
5515 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5516
5517         * TrackBar.cs: Commit patch from Andy Hume that adds the
5518         ResizeRedraw control flag so the track bar repaints itself
5519         when it is resized.  [Fixes bug #387072]
5520
5521 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5522
5523         * TrackBar.cs: Commit patch from Andy Hume that adds better
5524         support for keyboard navigation when the TrackBar is vertical.
5525         [Fixes bug #387071]
5526
5527 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5528
5529         * BindingSource.cs: Implement ISupportInitializeNotification support.
5530
5531 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
5532
5533         * ThemeVisualStyles.cs: Added support for ToolBar.
5534
5535 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
5536
5537         * ToolBar.cs: Made the Vertical property internal.
5538
5539 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5540
5541         * ThemeVisualStyles.cs: Added support for TrackBar.
5542
5543 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5544
5545         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
5546         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
5547         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
5548         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
5549         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
5550         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
5551
5552 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5553
5554         * ThemeVisualStyles.cs: Added support for UpDownBase.
5555
5556 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5557
5558         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
5559         Extracted Theme.UpDownBaseDrawButton.
5560
5561 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
5562
5563         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
5564         removed from the static toolstrips collection in ToolStripManager
5565         when they are disposed.  Provides a workaround for bug #386483.
5566
5567 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
5568
5569         * GridEntry.cs: Read-only properties with Editor with 
5570         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
5571         [Fixes bug #384184]
5572
5573 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
5574
5575         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
5576         the menu key and there are no items on the menu.
5577         [Fixes bug #386644]
5578
5579 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
5580
5581         * Control.cs: Avoid calling ToString on a string.
5582         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
5583         * GroupBox.cs: In FlatStyle property throw, not just create, the 
5584         exception. Avoid calling ToString on a string.
5585         * ProgressBar.cs: Avoid calling ToString on a string. 
5586         * ScrollBar.cs: Avoid calling ToString on a string. 
5587         [All issues were found using Gendarme]
5588
5589 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5590
5591         * NotifyIcon.cs: Prevent click events to be trigger after double click 
5592         events. Fixes remaining issues of bug #324832.
5593
5594 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5595
5596         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
5597         to mimic win32 behavior. Partially fixes bug #324832.
5598
5599 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5600
5601         * BindingSource.cs: Implement Find methods.
5602
5603 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5604
5605         * BindingSource.cs: Implement Sort, ApplySort overloads, and
5606         RemoveSort methods.
5607
5608 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5609
5610         * ListBindingHelper.cs: When calling GetListItemProperties and the
5611         passed object is ITypedList, return the result of
5612         ITypedList.GetItemProperties instead.
5613
5614 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5615
5616         * LinkLabel.cs: Set default value of name on constructor of Link class
5617         only for 2.0 profile.
5618
5619 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5620
5621         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
5622         Fixes remaining issues of bug #346154.
5623
5624 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5625
5626         * LinkLabel.cs: Set a default value for name on internal contructor of
5627         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
5628
5629 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5630
5631         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
5632         and refer all instances to owner.links. Partially fixes #346154.
5633
5634 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5635
5636         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
5637         length equal zero. Also called CreateLinkPieces in constructor. It fixes
5638         the LinkLabel test 'TestLinkArea'.
5639
5640 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5641
5642         * Form.cs: Remove menu before close form to prevent form to be not gaced.
5643         [Fixes #386460]
5644
5645 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5646
5647         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
5648         [Fixes #386463]
5649
5650 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5651
5652         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
5653         [Fixed bug #357004]
5654
5655 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5656
5657         * MenuAPI.cs: Remove unused ProcessCmdKey method.
5658
5659 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5660
5661         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
5662         [Fixes bug #375398]
5663
5664 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5665
5666         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
5667         of bug #367492.
5668
5669 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5670
5671         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
5672         sometimes we open a conext menu on mouse down of some controls and the mouse
5673         up is dispatched to menu and dont need to. It fix remaining issues of 
5674         #363711 and other problems related to menu mouse click events.
5675
5676 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5677
5678         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
5679         some var names to better fit changes, now we have month_menu and today_menu
5680         vars. Fixes bug #363711.
5681
5682 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5683
5684         * MonthCalendar.cs: Handle every right mouse click to open context menu,
5685         right now the default month menu but it will be change to have "Go to today"
5686         menu.
5687
5688 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5689
5690         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
5691
5692 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5693
5694         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
5695
5696 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5697
5698         * ThemeVisualStyles.cs: Added support for TreeView.
5699
5700 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5701
5702         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
5703         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
5704
5705 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5706
5707         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
5708
5709 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5710
5711         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
5712         Implement 2.0 SP1 stuffs.
5713
5714 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5715
5716         * FileDialog.cs: Implement 2.0 SP1 stuffs.
5717
5718 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5719
5720         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
5721         Implement CanEnableIme property. (2.0 SP1)
5722
5723 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5724
5725         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
5726         from the 2.0 API.
5727
5728 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5729
5730         * Control.cs: Provide an internal way for a control to override
5731         the setting of Height.
5732         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
5733         set height using new method.
5734
5735 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5736
5737         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
5738
5739 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5740
5741         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5742         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
5743
5744 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5745
5746         * ThemeVisualStyles.cs: Added support for StatusBar.
5747
5748 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5749
5750         * DataObject.cs: Add the other IDataObject interface.
5751
5752 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5753
5754         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
5755         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
5756
5757 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5758
5759         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
5760         * ListView.cs: Hide non-public API.
5761         * MaskedTextBox.cs: Remove extra attribute.
5762
5763 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5764
5765         * DataGridViewImageCell.cs: Use formatted value instead of value
5766         to calculate preferred size.
5767
5768 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5769
5770         * ListBox.cs: Move some initialization around so that selected_indices
5771         is not accessed before it is created.
5772
5773 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5774
5775         * InputLanguageCollection.cs: Implement the collection better.
5776         [Fixes bug #385506]
5777
5778 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5779
5780         * ToolStripDropDownItem.cs: Get the correct event object for
5781         DropDownItemClicked.
5782         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
5783         [Fixes bug #385475]
5784
5785 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5786
5787         * DataGridViewRowCollection.cs: We don't currently support shared 
5788         rows.  Should fix test failures caused by previous commit.
5789
5790 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5791
5792         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
5793         datagridview gets set.  Only paint cells in visible columns.
5794         * DataGridViewCell.cs: Draw border after cell content.
5795         * DataGridView.cs: Invalidate after setting some properties.  Only
5796         use visible columns.  Fit hit test bug with areas in the col/row header
5797         area but not in a row or col.  Implement UpdateCell/Row methods.
5798
5799 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5800
5801         * DataGridViewElement.cs: Don't throw NIEX.
5802         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
5803         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
5804         * DataGridViewCheckBoxColumn.cs: Implement ToString.
5805         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
5806         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
5807         if the user filled in the formatting Value, use it.
5808
5809 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5810
5811         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
5812         to a string.
5813
5814 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5815
5816         * BindingSource.cs: Some corrections to Filter property, as well as
5817         setting it for our list when resetting it.
5818
5819 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
5820
5821         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
5822         than the maximum.  Fixes reopened bug #384182.
5823
5824 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5825
5826         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
5827         Fixes remaining issues of #367490.
5828
5829 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5830
5831         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
5832         SystemInformation.WorkingArea to get max_screen value.
5833
5834 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5835
5836         * BindingSource.cs: Implement Filter and RemoveFilter.
5837
5838 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5839
5840         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
5841
5842 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5843
5844         * X11Dnd.cs: When trying to convert data and we know we started the
5845         dnd loop, don't try to use the cached data if the loop is not running,
5846         which means that the data has been resetted.
5847         Fixes #378191.
5848
5849 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5850
5851         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
5852         win32 behavior.
5853
5854 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5855
5856         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
5857         it to drawn off screen edge. Fixes bug #367490.
5858
5859 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5860
5861         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
5862         menu position to have only one assignment of Location var.
5863
5864 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5865
5866         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
5867         for this patch. Fixes bug #384115.
5868
5869 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
5870
5871         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
5872         the same.  If LargeChange is zero, set a minimum size for the scroll
5873         thumb grip.  [Fixes bug #384182]
5874
5875 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
5876
5877         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
5878         [Fixes bug #384181]
5879
5880 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
5881
5882         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
5883
5884 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5885
5886         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
5887         patch from Ernesto).
5888
5889 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5890
5891         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
5892
5893 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5894
5895         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
5896
5897 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5898
5899         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
5900
5901 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5902
5903         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
5904
5905 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
5906
5907         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
5908
5909 2008-04-27  Andreia Gaita <avidigal@novell.com> 
5910
5911         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
5912           supposed to return a reference to an mshtml interface, which we
5913           don't support).
5914         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
5915           reference to an mshtml interface, which we don't support). Code
5916           formatting cleanup.
5917         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
5918           DomDocument getter (it's supposed to return a reference to an
5919           mshtml interface, which we don't support). Code formatting cleanup.
5920
5921 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5922
5923         * ListView.cs: Ouch, forgot to commit.
5924
5925 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5926
5927         * ListView.cs: 
5928         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
5929
5930 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5931
5932         * ListView.cs: When calculating box selection for virtual mode, don't
5933         look for intersection with item's text, but item bounds, since that
5934         would mean read ListViewItem's text for _every_ item, and that's
5935         something we just can't do in virtual mode (items are only requested
5936         when drawn).
5937
5938 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
5939
5940         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
5941         partial support for managed windows (based on the patch from Ernesto).
5942
5943 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5944
5945         * ListView.cs: When doing a key search use FindItemWithText method
5946         instead of doing the search by ourselves, this way we avoid
5947         duplicating the code and also we handle the special case for virtual
5948         mode. To achieve that make our private overload of FindItemWithText
5949         internal and also have a 'roundtrip' parameter.
5950
5951 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5952
5953         * ListView.cs: When doing the layout don't request the
5954         ListViewItem instance if we are in virtual mode (since we can't request it
5955         until the item is actully drawn).
5956
5957 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5958
5959         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
5960         from Ernesto).
5961
5962 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5963
5964         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
5965         the patch from Ernesto).
5966
5967 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5968
5969         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
5970         * ThemeVisualStyles.cs: Added.
5971
5972 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5973
5974         * IDeviceContext.cs: Added a missing using.
5975
5976 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5977
5978         * ButtonBase.cs: Made IsDefault protected internal.
5979         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
5980
5981 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5982
5983         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
5984         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
5985         RadioButtonRenderer.cs: Included in the 1.1 profile.
5986         * IDeviceContext.cs: Added.
5987         * TextRenderer.cs: Included a member in the 1.1 profile.
5988
5989 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5990
5991         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
5992
5993 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
5994
5995         * ErrorProvider.cs: Make the error icons come after the control
5996         they refer to.  It isn't the way the MS does it, but its better
5997         than what we were doing.  See bug #368587.
5998
5999 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6000
6001         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
6002         from Eric Albright that lazy loads the input language as ensures
6003         everything gets properly initialized.  Fixes bug #373871.
6004
6005 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6006
6007         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
6008         implicit mnemonics.  [Fixes bug #383000]
6009
6010 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6011
6012         * X11Dnd.cs: When canceling the operation, automatically restore the
6013         default cursor - normally the default cursor is restored when the
6014         mouse buttons are released, but we should be able to restore it even
6015         if the buttons are still pressed (for example, when pressing ESC to
6016         cancel).
6017         Fixes #381894.
6018
6019 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6020
6021         * X11Dnd.cs: When starting a new drad and drop operation, set control
6022         field to null, just as the other fields, to avoid calling any
6023         operation on a previous control. Also, when calling DndLeave on a
6024         control, set it to null, thus we don't fire that event multiple times
6025         for that control.
6026         Fixes #209264.
6027
6028 2008-04-23  Geoff Norton  <gnorton@novell.com>
6029
6030         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
6031         the whole_window object.  Fixes #377084.
6032
6033 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6034
6035         * HtmlElement.cs: Implement RaiseEvent (event injection into the
6036           embedded browser)
6037
6038 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
6039
6040         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
6041
6042 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6043
6044         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
6045           invocation
6046
6047 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6048
6049         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
6050           attaching/detaching
6051
6052 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6053
6054         * X11Dnd.cs: When the drop was cancelled, or could just not be
6055         performed, return DragDropEffect.None always (match .net).
6056
6057 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6058
6059         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
6060
6061 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6062
6063         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
6064
6065 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6066
6067         * DataGridView.cs: Add support for error icon tool tips.
6068         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
6069         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
6070
6071 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
6072
6073         * X11Structs.cs: Add mouse button masks enum.
6074         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
6075         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
6076         form resize/move operation instead of for each step of it.
6077         [Fixes bug #346529 for the x11 backend]
6078
6079 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6080
6081         * DataGridView*: Implement support for drawing error icons.
6082
6083 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6084
6085         * TreeView.cs: Make vbar and hbar internal.
6086         * TreeNode.cs: If collapsing the node removes one of the TreeView's
6087         scrollbars, invalidate the whole thing.
6088         [Fixes bug #382001]
6089
6090 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6091
6092         * TreeView.cs: Calling Sort() sets Sorted = true.
6093         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
6094         if the nodes need to be sorted.
6095         [Fixes bug #382028]
6096
6097 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
6098
6099         * Form.cs: Fire SizeChanged for both when the form is minimized and 
6100         restored.
6101         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
6102         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
6103
6104 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6105
6106         * ComboBox.cs: If the combobox is disabled, draw a disabled
6107         background before painting anything else.
6108         [Fixes bug #381729]
6109
6110 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6111
6112         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
6113         forget to send a Leave event to the target window - just as .net does
6114         when cancelling dnd operations.
6115
6116 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6117
6118         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
6119         soon as possible - this happens when we send the drop message to the
6120         target window. This way we avoid firing any DragOver _after_ drop finished.
6121         Fixes #378179.
6122
6123 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6124
6125         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
6126         * Form.cs: Handle form minimization as a special state, where size doesn't 
6127         change, but we have to fire SizeChanged.
6128         [Fixes bug #325122 for the win32 and x11 backends]
6129
6130 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6131
6132         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
6133         if the handle is disabled.
6134         [Fixes bug #371751]
6135
6136 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6137
6138         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
6139         for forms with FormBorderStyle.None.
6140         [Fixes bug #349571]
6141
6142 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6143
6144         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
6145         WM_EXITSIZEMOVE.
6146         [Fixes bug #346529 for the X11 backend]
6147
6148 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6149
6150         * XplatUIX11.cs: 
6151           - Send a mouse Enter message after say dragging the mouse with a 
6152           button down and then release it in another client.
6153           - Reset the cursor to prevent X11 from remembering it and setting it 
6154           before the control gets WM_SETCURSOR.
6155           - Qeueue a mouse move after a mouse enter like win32.
6156           [Fixes bug #323234]
6157
6158 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6159
6160         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
6161         It's sent when the form gets moved, resized, closed.
6162         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
6163         [Fixes bug #359193 for X11]
6164
6165 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6166
6167         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
6168         the build.
6169
6170 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6171
6172         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
6173         group. Fixes the 1.1 build.
6174
6175 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6176
6177         * ListView.cs: Use display indexes for selection in Details view, as
6178         well as do the proper layout based on display indexes for that view
6179         too.
6180
6181 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6182
6183         * ListView.cs: Focused item information is now stored as a display
6184         index, and display indexes are used all over the place for selection,
6185         instead of ListViewItem.Index values, which doesn't give us enough
6186         information to modify the selection in groups mode, and was broken.
6187
6188 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
6189
6190         * Control.cs: Do not fire MouseDown if validation of the control has 
6191         failed.
6192         * Form.cs: Validate the form before closing.
6193         [Fixes bugs #330501 and #353310]
6194
6195 2008-04-18  Andreia Gaita <avidigal@novell.com> 
6196
6197         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
6198           CreateWebBrowserSiteBase implementations
6199         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
6200           Style and TabIndex setters
6201
6202 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6203
6204         * ListViewGroup.cs: When returning the actual item count, return the
6205         proper count for default group.
6206         Fix the tests.
6207
6208 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6209
6210         * ListView.cs:
6211         * ListViewGroup.cs: When calculating groups layout, get the actual
6212         number of items per group, since groups added to the group BUT not
6213         added to the ListView are just ignored, and can cause some nasty
6214         exceptions because of the lack of synchronization. Also for
6215         ListViewGroup don't use lazy initialization for items, since we 
6216         the common scenario is to use it always - and it helps us to  refactor
6217         and clean the .ctor overloads.
6218
6219 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6220
6221         * ListView.cs: When adding an item to a ListViewItemCollection
6222         belonging to a group (ListViewGroup.Items), don't generate a redraw if
6223         the added item hasn't beeen previously added to the ListView instance
6224         refered by the group, since it will be ignored. This should avoid some 
6225         really nasty flickering.
6226
6227 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6228
6229         * ListView.cs: When accessing an item in a specific display
6230         position, use the helper method GetItemAtDisplayIndex, instead of
6231         direct access to the reordered_items_indices array. When doing layout
6232         for groups set the correct Items index for the display position (since
6233         in groups mode items don't have the same position as in Items
6234         collection).
6235         * ListViewGroup.cs: Add a field to store the starting item number,
6236         which is later used when calculating the layout.
6237
6238         Fixes #360805.
6239
6240 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
6241
6242         * Application.cs: Fixed ProductVersion to fallback to the assembly
6243         version. Fixes regression for bug #325413.
6244
6245 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6246
6247         * ListView.cs: New helper method to retrieve an item in a _specific
6248         display_ position (the items can be displayed in a different order
6249         than one of Items collection).
6250         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
6251         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
6252         specific display position (again remember that items can be sorted
6253         different than Items).
6254
6255 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6256
6257         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
6258         list and update it when the collection changes.  We were recreating
6259         this several times per row paint and for every pixel the mouse moved
6260         across the grid.
6261         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
6262         changes.
6263
6264 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6265
6266         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
6267         list to use generics.
6268         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
6269         and remove unneccessay casts.
6270
6271 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6272
6273         * DataGridViewBand.cs: Add internal way to set displayed variable.
6274         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
6275         * DataGridView.cs: Make sure we always keep track of Displayed
6276         rows and columns, and only draw things that are displayed.
6277
6278 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
6279
6280         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
6281           whether the key events are filtered or not. Introduced
6282           PreFilter() process for this purpose. This fixes atokx3/iiimx
6283           shift state issue.
6284
6285 2008-04-16  Andreia Gaita <avidigal@novell.com> 
6286
6287         * HtmlHistory.cs: Implement Length property
6288
6289 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
6290
6291         * DataGridView.cs: Call EndEdit when a sort is performed so we take
6292         away the edit textbox.  Refactor to reuse column sort code.
6293
6294 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
6295
6296         * MenuAPI.cs: Remove the code that save and restore capture status of 
6297         grab_control, this fixes some Menu and Context menu bugs but maybe it can
6298         cause some others, I cant figure the possible problems of this patch but
6299         right now remove the code looks to be better than keep it. This patch fixes
6300         bugs #357638, #378721 and #379570.
6301
6302 2008-04-12  Andreia Gaita <avidigal@novell.com> 
6303
6304         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
6305         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
6306         add missing properties and event handlers.
6307         
6308 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
6309
6310         * ListBox.cs: Make sure the LargeChange we are setting is at least
6311         zero, to prevent an IOORE.  [Fixes bug #379531]
6312
6313 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
6314
6315         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
6316         in DropDownList mode, for each key-press select the next item 
6317         starting with that letter.
6318         For other modes, when no item selected, on arrow-up/-down and open 
6319         drop-down select the first item matching the text in the textbox.
6320
6321 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
6322
6323         * X11Keyboard.cs : Control.FromHandle() could return null
6324           in MoveCurrentCaretPos().
6325
6326 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6327
6328         * ListView.cs: When changing the size in VirtualMode, also Reset the
6329         selection.
6330         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
6331         changing selection info for VirtualMode.
6332         Fixes #372618.
6333
6334 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6335
6336         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
6337         view, don't use LineLimit for the first item - use NoWrap *always*
6338         instead, since ListView.LabelWrap is not used for this view.
6339         Fixes #378054.
6340
6341 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6342
6343         * Binding.cs: Call UpdateIsBinding when setting control - probably
6344         Binding is already usable and we don't need to wait to check the
6345         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
6346         Created, just like 2.0 does.
6347         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
6348
6349 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6350
6351         * Binding.cs: Just realized we don't need to have a handler for
6352         BindingContextChanged, since this info should be now consumed directly
6353         in the BindingManagerBase. And also, the manager.IsBindingSuspended
6354         state info is checked directly, instead of caching it.
6355
6356         * CurrencyManager.cs: IsSuspended should return always false if Count
6357         == 0.
6358
6359 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6360
6361         * Binding.cs: When calling PushData, return if manager.Count == 0,
6362         since we just don't have data to be read. Also, when setting the
6363         Control for binding, hook up some events to refresh the IsBinding
6364         state when BindingContext change or control gets created; use
6365         Control.IsHandleCreated instead of Control.Created check to set
6366         IsBinding state - we *actually* need to modify IsBinding when control
6367         is created, but we don't have any Created event, only HandleCreated.
6368         Fixes part of #349364.
6369
6370 2008-04-11  Geoff Norton  <gnorton@novell.com>
6371
6372         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
6373         warping a null Caret.
6374
6375 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6376
6377         * DataGridView.cs: Implement row/column autosizing methods. Implement
6378         autosorting.
6379         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
6380         * DataGridViewRowCollection.cs: Add an internal sorting method.
6381
6382 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6383
6384         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
6385         value in ListView drawing code.
6386
6387 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6388
6389         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
6390         is clicked.  Respect the user setting Cancel in FileOk.
6391
6392 2008-04-11  Geoff Norton  <gnorton@novell.com>
6393
6394         * ListView.cs: Avoid setting and resetting control Width/Heights and
6395         calculate the final value and set it once.  Prevents a feedback loop
6396         on the mac.
6397
6398 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6399
6400         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
6401         [Fixes bug #378869]
6402
6403 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
6404
6405         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
6406           Add some on-the-spot code, but it seems we don't need it.
6407
6408 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6409
6410         * Form.cs: Add method for DataGridView to trigger focus cues
6411         even when it handles the tab keypress.
6412
6413 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6414
6415         * DataGridView.cs: More keyboard handling, tab, esc.
6416         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
6417         when at the beginning or end of the text in the text box.
6418
6419 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6420
6421         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
6422
6423 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6424
6425         * DataGridView.cs: Some fixups for showing and adding the edit control.
6426         * DataGridViewButtonColumn.cs: Implement ToString.
6427         * DataGridViewCell.cs: Size and position the control simultaneously.
6428         * DataGridViewTextBoxCell.cs: Use base to position control.
6429
6430 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6431
6432         * DataGridViewCell.cs: Fix up some formatting and painting code.
6433         * DataGridViewImageCell.cs: Implement some NIEX methods.
6434
6435 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6436
6437         * ToolStripItemCollection.cs: What moving an item from one owner
6438         to another, remove from source owner before adding to destination.
6439         [Fixes bug #378109]
6440
6441 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6442
6443         * PictureBox.cs: Call Load when ImageLocation is set.
6444         [Fixes bug #378308]
6445
6446 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
6447
6448         * X11Keyboard.cs, XplatUIX11.cs :
6449           Implement over-the-spot mode (with some odd offsets).
6450           - set preedit position when caret is set.
6451           - Wrap XMoveResizeWindow() to move preedit position.
6452
6453 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6454
6455         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
6456         array lenght.
6457
6458 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6459
6460         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
6461         and ScanTableIndex public, it fix compilations errors when compiling
6462         WinForms to generate keyboard layout resources.
6463
6464 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6465
6466         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
6467         different element count than scan table. It prevents some errors in non
6468         standard keyboards.
6469
6470 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
6471
6472         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
6473
6474 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
6475
6476         * DataGridView.cs: Call OnContentClick.
6477         * DataGridViewCell.cs: Do a null check on ValueType instead
6478         of valueType.
6479         * DataGridViewCheckBoxCell.cs: Implement.
6480
6481 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6482
6483         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
6484
6485 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6486
6487         * X11Keyboard.cs : Check XGetIMValues() return value in
6488           case it does not return input styles in some environment.
6489
6490 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6491
6492         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
6493
6494 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6495
6496         * BindingContext.cs: Stub UpdateBinding method.
6497
6498 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
6499
6500         * X11Structs.cs : added couple of structs for XIM support.
6501         * X11Keyboard.cs :
6502           Release XIM in case it failed to create XIC. 
6503           Use consts for XNblah string.
6504           Add support for IM style customization and XIC creation
6505           for preedit-position and preedit-callback.
6506           Right now use MONO_WINFORMS_XIM_STYLE environment variable
6507           (list of: over-the-spot | on-the-spot | root). Only root
6508           mode works so far.
6509
6510           (redoing r99172 with fix.)
6511
6512 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6513
6514         * TreeView.cs: Center the checkbox a little better.
6515
6516 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6517
6518         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
6519         Apply very nice patch from Ernesto Carrea that simplifies our
6520         scrollbar drawing.  [From bug #376146]
6521
6522 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6523
6524         * TreeView.cs: Correct the location of the root node checkbox when
6525         ShowRootLines = false.  Don't draw the root lines for the root node
6526         when ShowRootLines = false.  [Fixes bug #377535]
6527
6528 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
6529
6530         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
6531         Fixed line endings.
6532         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
6533         line endings.
6534         * MaskedTextBox.cs: Added missing attribute. Code formatting.
6535         * PageSetupDialog.cs: Added missing attribute. Code formatting.
6536         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
6537         * ImeMode.cs: Added missing field.
6538         * HtmlWindow.cs: Code formatting. Fixed line endings.
6539         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
6540         warnings.
6541         * HtmlHistory.cs: Code formatting. Fixed line endings.
6542         * HtmlDocument.cs: Code formatting. Fixed line endings.
6543         * ToolStripPanel.cs: Added missing IList implementation.
6544         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
6545
6546 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
6547
6548         * BindingContext.cs: Changed argument names to fix corcompare errors.
6549         * DataGridView.cs: Removed extra explicit interface implementation
6550         of IDropTarget. Code formatting.
6551         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
6552         * ComboBox.cs: Changed argument names to fix corcompare errors.
6553         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
6554         errors.
6555         * GridColumnStylesCollection.cs: Changed argument names to fix
6556         corcompare errors. Removed extra tabs.
6557         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
6558         errors.
6559         * Control.cs: Changed argument names to fix corcompare errors. Code
6560         formatting. Removed extra explicit IList implementation.
6561         * TextBox.cs: Changed argument names to fix corcompare errors. Code
6562         formatting. Use string.Empty instead of "".
6563         * GridItemCollection.cs: Changed argument names to fix corcompare
6564         errors. Code formatting.
6565         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
6566         corcompare errors. Code formatting.
6567         * ImageList.cs: Changed argument names to fix corcompare errors.
6568         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
6569         * DataGridViewRowCollection.cs: Changed argument names to fix
6570         corcompare errors. Code formatting.
6571         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
6572         * DataGridViewSelectedCellCollection.cs: Changed argument names to
6573         fix corcompare errors. Code formatting.
6574         * DataGridViewComboBoxCell.cs: Changed argument names to fix
6575         corcompare errors. Code formatting.
6576         * LinkLabel.cs: Changed argument names to fix corcompare errors.
6577         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
6578         formatting.
6579         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
6580         Code formatting.
6581         * BindingSource.cs: Changed argument names to fix corcompare errors.
6582         Removed extra explicit interface implementations.
6583         * DataGridViewSelectedRowCollection.cs: Changed argument names to
6584         fix corcompare errors. Code formatting.
6585         * ToolStripItemCollection.cs: Removed extra explicit interface
6586         implementation of IList.ReadOnly.
6587         * DataGridViewColumnCollection.cs: Changed argument names to fix
6588         corcompare errors. Code formatting.
6589         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
6590         * ListView.cs:  Changed argument names to fix corcompare errors.
6591         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
6592         errors.
6593         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
6594         errors.
6595         * ListBindingHelper.cs: Changed argument names to fix corcompare
6596         errors.
6597         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
6598         fix corcompare errors. Code formatting.
6599         * ToolStripPanel.cs: Removed extra explicit implementation of
6600         IDropTarget interface.
6601         * ListBox.cs: Changed argument names to fix corcompare errors. Code
6602         formatting. Removed extra tabs and spaces.
6603         * DataGridViewCellCollection.cs: Changed argument names to fix
6604         corcompare errors.
6605         * Help.cs: Changed argument names to fix corcompare errors. Code
6606         formatting.
6607         * TabControl.cs: Changed argument names to fix corcompare errors.
6608         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
6609         errors.
6610         * TableLayoutSettings.cs: Changed argument names to fix corcompare
6611         errors.
6612
6613 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6614
6615         * ListBindingHelper.cs: When returning properties, only return those
6616         that are browsable. Also, don't do a linear search of the properties,
6617         but use the indexer of the PropertyDescriptorCollection class.
6618
6619 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6620
6621         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
6622         Dictionary containing the related (child) currency managers. Also,
6623         when setting DataSource, add datasource to our List if it is not a list.
6624
6625 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6626
6627         * PropertyGridTextBox.cs: Fix background color of the buttons.
6628         * PropertyGridView.cs: Make the entry less jumpy.
6629
6630 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6631
6632         * PropertyGrid.cs: Fix unused variable warnings.
6633
6634 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6635
6636         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
6637         double-click. It expanded it once in the mouse down and then 
6638         again in the double-click handler.
6639
6640 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6641         
6642         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
6643         TypeConverter and UITypeEditors.
6644
6645 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6646
6647         * Control.cs: Visibility should be set synchronously, 
6648         so we must also redraw once it is and not rely on layouting or 
6649         other code to repaint.
6650         [Fixes bug #339898]
6651
6652 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
6653
6654         * DataGridViewCell.cs: Respect DataGridView.GridColor.
6655
6656 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6657
6658         * Control.cs: Invalidate when the alpha channel is less than 255,
6659         not only when control is transparent.
6660
6661 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6662
6663         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
6664         Implement some painting convenience methods that threw NIEX.
6665
6666 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6667
6668         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
6669         * DataGridViewLinkCell.cs: Implement.
6670
6671 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6672
6673         * GridEntry.cs: Report the conversion exception error description.
6674         [Fixes bug #375792]
6675
6676 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6677
6678         * PropertyGridView.cs: Do not scroll to item on resize.
6679         [Fixes bug #375789]
6680
6681 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6682
6683         * BindingContext.cs: When retrieving a BindingManagerBase, if the
6684         dataSource parameter is ICurrencyManagerProvider, then return
6685         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
6686         instead of creating a new one.
6687
6688 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6689
6690         * BindingSource.cs: Implement support for Type instances as
6691         DataSource.
6692
6693 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6694
6695         * DataGridView.cs: Minor cleanups and call CellMouseUp.
6696         * DataGridViewCell.cs: Make some painting routines internally virtual.
6697         * DataGridViewButtonCell.cs: Implement.
6698
6699 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6700
6701         * Control.cs: We always need to invalidate our children with
6702         transparent backgrounds when we are invalidated.
6703         [Fixes bug #376081]
6704
6705 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6706
6707         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
6708         and CancelCurrentEdit on CurrencyManager respectively. Implement
6709         support for ICancelAddNew too.
6710
6711 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6712
6713         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
6714         call EndNew/CancelNew if list is ICancelAddNew.
6715
6716 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
6717
6718         * DataGridView.cs: Guard against an exception while painting
6719         if there are no rows.
6720
6721 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
6722
6723         * DataGridView.cs: Implement a bunch of keyboard commands.
6724
6725 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
6726
6727         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
6728         isn't set, don't call OnPaint.  [Fixes bug #375300]
6729
6730 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6731
6732         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
6733         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
6734         hookup the remaining events related to CurrencyManager, and fire
6735         OnListChanged also for the Clear () method.
6736
6737 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6738
6739         * BindingSource.cs: Use Current and Position implementations in
6740         CurrencyManager instead of using our own routines, since we need 
6741         to be in synch with it. Count should NEVER return a -1 value, and 
6742         also report ListChanged events for both simple IList data 
6743         sources (manually) as well for IBindingList ones (by hooking up an
6744         event handler for it).
6745
6746 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6747
6748         * BindingSource.cs: Make one .ctor call the another, to avoid
6749         duplicate code. Add the CurrencyManager property, and also for AddNew
6750         throw the proper exceptions and show better error messages.
6751
6752 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6753
6754         * ComboBox.cs: Only adjust selectedindex if Handle has been
6755         created.  Fixes failing test.
6756
6757 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6758
6759         * ComboBox.cs: Adjust selectedindex if we insert a new item
6760         above the current selectedindex in a sorted ComboBox.
6761         [Fixes bug #374654]
6762
6763 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6764
6765         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
6766         [Fixes bug #374712]
6767
6768 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6769
6770         * DataGridViewTextBoxCell.cs: Implement stuffs.
6771
6772 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6773
6774         * TreeView.cs: Create the scrollbars even earlier to be
6775         double dog certain they are created before they are accessed.
6776
6777 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6778
6779         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
6780
6781 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6782
6783         * ScrollBar.cs: Create an internal safe Value setter so we
6784         won't crash if we try to set a value outside the min and max.
6785         * TextBoxBase.cs: Use safe value setter to guard against a
6786         potential NRE that is being reported by Reflector.
6787
6788 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6789
6790         * TreeView.cs: Create the scrollbars earlier in the constructor
6791         to attempt to guard against an NRE in SetTop in Reflector.
6792
6793 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6794
6795         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
6796         DataGridViewRowCollection.cs: Do not scroll column and row headers,
6797         show messagebox on data format error, use column display index
6798         correctly, make sure HitTest supports new layout stuff,
6799         make sure scrollbars support new layout stuff.
6800
6801 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
6802
6803         * XplatUIX11.cs : Patch by Doug Rintoul.
6804           For some IM engines, keypress events need to delay call
6805           to XPending() and XNextEvent() in the loop so that it
6806           does not mess the orders in XIM commit callback.
6807           Some KeyRelease events such as shift keys need to be
6808           processed both in the IM engine and winforms driver
6809           itself since winforms holds its own state check.
6810
6811           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
6812
6813 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
6814
6815         * X11Keyboard.cs, XplatUIX11.cs :
6816           add primitive support for XIM input support (preedit-
6817           nothing and status-nothing). It requires precise event
6818           capturing (XSelectInput/"filterEvents") and different
6819           call to XFilterEvent against root window.
6820           Get composed string and send dummy WM_IME_COMPOSITION.
6821           Free XIM and XIC instances in finalizer.
6822
6823           (This first patch does not include suggested changes
6824            by Doug Rintoul. It will follow.)
6825
6826 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6827
6828         * DataGridView.cs: When binding to a property, if the property
6829         doesn't have a setter, set the column to readonly.
6830         [Fixes bug #343965]
6831
6832 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6833
6834         * ComboBox.cs: Guard against NRE if an arrow key is hit while
6835         we aren't dropped down.  Support Home/End in DropDownList mode.
6836         [Fixes bug #371990]
6837
6838 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6839
6840         * TreeNodeCollection.cs: Don't increment count until we've
6841         saved our index to return.
6842         [Fixes bug #373603]
6843
6844 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6845
6846         * Label.cs: Add padding to the label's AutoSize calculation.
6847         [Fixes bug #373792]
6848
6849 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6850
6851         * ListBindingHelper.cs: Actually implement GetListName method.
6852
6853 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6854
6855         * BindingSource.cs: Throw the propert expceptions for some methods, as
6856         well as detect the list item type for Add method if DataSource is null.
6857
6858 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6859
6860         * DataGridViewCell.cs: I don't know why I commented this out,
6861         putting it back for now.
6862
6863 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6864
6865         * DataGridViewCell.cs: Remove storage for owning column, just
6866         use column index.
6867         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
6868         * DataGridViewColumnHeaderCell.cs: If the header text has been
6869         explicitly set, return it.
6870         [Fixes bug #325979]
6871
6872 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6873
6874         * DataGridViewRowCollection.cs: Disable row sharing when
6875         using data binding.  Its a great feature, but lets work on
6876         getting DGV usable first before we worry about optimizations.
6877
6878 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6879
6880         * BindingSource.cs: When resetting our internal list, compute list
6881         item type information to be used for indirect list access. Also
6882         implement/tune some properties and methods related to the list access
6883         too.
6884         * ListBindingHelper.cs: Add a stub for GetListName method, used from
6885         BindingSource.
6886
6887 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6888
6889         * DataGridView.cs: If RowCount is increased while ColumnCount
6890         is zero, add a column.  [Fixes bug #331649]
6891
6892 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6893
6894         * DataGridViewRowCollection.cs: When adding new rows for
6895         databinding, make sure they are place before the add row.
6896         [Fixes bug #343961]
6897
6898 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6899
6900         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
6901         instead of Index order.
6902
6903 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6904
6905         * DataGridView.cs: If columns are added by increasing ColumnCount,
6906         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
6907         [Fixes bug #325588]
6908
6909 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6910
6911         * DataGridView.cs: Turn off and on the "new row" when 
6912         AllowUserToAddRows is toggled.  When the handle is created,
6913         set current cell and selected cell/row/col.
6914
6915 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6916
6917         * ComboBox.cs: When navigating the drop down by keyboard, we
6918         need to scroll the list box if our selection moves out of the
6919         currently shown items.  [Fixes bug #371990]
6920
6921 2008-03-24  Luke Page <luke.a.page@gmail.com>
6922
6923         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
6924         on the control. Also now handles unicode compatibility characters and
6925         stores the unicode compatibility length on the stack. Fixes Bugs
6926         #355198 and #366436.
6927
6928 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6929
6930         * BindingSource..cs: Take into account DataMember when re-creating the
6931         List property, and also create a specific kind of list as needed.
6932
6933 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6934
6935         * ListBindingHelper.cs: Add a new case for GetList () method - when we
6936         get an empty IEnumerable, try to detect whether the datamember is
6937         valid or not for that type, if true, return null, and throw exception
6938         otherwise.
6939
6940 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
6941
6942         * ComboBox.cs: Alt-Down should drop down the list, Esc should
6943         retract it.  [Fixes bug #371989]
6944
6945 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
6946
6947         * PropertyGrid.cs: Initialize the sorting button as pushed.
6948
6949 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
6950
6951         * PropertyGrid.cs: 
6952          - Visually select the PropertyTab.
6953          - Filter Properties by Attributes properly.
6954
6955 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6956
6957         * MenuItem.cs: Remove menu item from parent when disposed.
6958         [Fixes bug #372845]
6959
6960 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6961
6962         * ToolBar.cs: Don't reset layout_type if Dock = None.
6963
6964 2008-03-21  Andreia Gaita <avidigal@novell.com> 
6965
6966         * UserControl.cs: Select the first available control when we get focus.
6967           Fixes #372616
6968
6969 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6970
6971         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
6972         the content if we are in edit mode.  [Fixes bug #343964]
6973
6974 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6975
6976         * DataGridViewCell.cs: Fix border painting for column headers.
6977
6978 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6979
6980         * BindingSource.cs: When setting or resetting data source,
6981         use ListBindingHelper.GetList () method, since it will get the list in
6982         case datasource is IListSource.
6983
6984 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
6985
6986         * DataGridViewCell.cs: Implement lots more stuffs.
6987
6988 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
6989
6990         * PropertyGridView.cs, GridEntry.cs: Implement support for 
6991         UITypeEditor.IsDropDownResizable.
6992
6993 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
6994
6995         * DataGridViewCell.cs: Remove unused variables, improve how
6996         several of the property getters work.
6997         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
6998         get its size from the parent row/col.
6999
7000 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7001
7002         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
7003         user alters manually the PropertyTabs collection via the 
7004         PropertyTabs property.
7005
7006 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7007
7008         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
7009         new tests for them to be sure to be compatible with .net.
7010
7011 2008-03-20  Andreia Gaita <avidigal@novell.com> 
7012
7013         * WebBrowserBase.cs: Fix attributes, add events
7014         * WebBrowser.cs: Fix Padding signature
7015
7016 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7017
7018         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
7019
7020 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
7021
7022         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
7023         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
7024         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
7025         passes the new suite of tests for it.
7026
7027 2008-03-18  Andreia Gaita <avidigal@novell.com> 
7028
7029         * WebBrowser.cs: Add missing attributes, missing Padding and
7030           DefaultSize properties, remove extraneous getters
7031
7032 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7033
7034         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
7035         method overloads.
7036
7037 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7038
7039         * ComboBox.cs: Move resetting the selected index to keypress
7040         instead of textchanged.  Changing the text programmatically
7041         should not trigger resetting the selected index.  Fixes test.
7042
7043 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7044
7045         * ComboBox.cs: When the user types into the textbox, reset
7046         the selected index to -1.  [Fixes bug #371672]
7047
7048 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7049
7050         * FileDialog.cs: Support Control-A for selecting everything
7051         in an OpenFileDialog.  [Fixes bug #371564]
7052
7053 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
7054
7055         * DataGridView.cs: When row/column visible/height properties
7056         change, invalidate.  Take the NIEX out of InvalidateRow/Column
7057         etc.  We don't support them yet, but we can just invalidate
7058         everything until we do support them.  (Added MonoTODO).  Set
7059         proper control styles.
7060         * DataGridViewRow.cs: Don't call PaintHeader if row headers
7061         are turned off. 
7062
7063 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7064
7065         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
7066
7067 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7068
7069         * DataGridViewRow.cs: Only paint the white background in
7070         cell bounds, the row bounds extends past the cells if the 
7071         grid width isn't as wide as the DGV.
7072
7073 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7074
7075         * DataGridView*: Completely revamp the drawing to match the
7076         public API.  Our grids now look better, and call all the
7077         appropriate methods and event to allow users to override
7078         the painting and do their own.
7079
7080 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7081
7082         * ListBindingHelper.cs: Implement 2.0 GetList methods.
7083
7084 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7085
7086         * DataGridView.cs: Implement BorderStyle.
7087
7088 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7089
7090         * FileDialog.cs: Apply patch from Andy Hume: Any time we
7091         are comparing attributes, make sure we only look at the
7092         one we are interested.  These calls were failing if there
7093         were more than one attribute.
7094         [Fixes bug #370385]
7095
7096 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7097
7098         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
7099
7100 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7101
7102         * PageSetupDialog.cs: Stub EnableMetric.
7103         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
7104         * PrintPreviewDialog.cs: Add ProcessDialogKey,
7105         ProcessTabKey.
7106
7107 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7108
7109         * MonthCalendar.cs: Remove unused variable.
7110
7111 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7112
7113         * DataGridView*.cs: corcompare stuffs.
7114
7115 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7116
7117         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
7118         The savings aren't worth the extra code to fix the optimization.
7119         [Fixes bug #368585]
7120
7121 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7122
7123         * ToolBar.cs: Always call base.Dock in the Dock override so that
7124         Control's layout_type gets reset correctly.
7125         [Fixes bug #368882]
7126
7127 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
7128
7129         * X11Dnd.cs: End DnD operation also for the middle mouse button.
7130
7131 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7132
7133         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
7134         at the same time we do explicit ones, because we have to give all
7135         other controls on the container a chance to handle explicit ones
7136         first.  If no one has an explicit mnemonic, then we can let the
7137         MenuStrip have a shot at implicit mnemonics.
7138         * MenuStrip.cs: Create an implicit mnemonic function.
7139         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
7140         mnemonics for MenuStrips.
7141         [Fixes bug #368493]
7142
7143 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7144
7145         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
7146         DataGridColumnStyle.cs: corcompare stuffs.
7147
7148 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7149
7150         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
7151         Details - This is needed after we added the bits to use any available
7152         column also for List and SmallIcon view. 
7153
7154 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7155
7156         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
7157         at the proper place, not only when changing SelectedIndex and changing
7158         the selection using keys/mouse, as .net does.
7159
7160 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7161
7162         * ControlBindingsCollection.cs: Implement last 2.0
7163         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
7164         in the new 2.0 Add methods.
7165
7166 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7167
7168         * ListBox.cs: When calling SelectedIndexCollection.Clear,
7169         return if no items are previously selected - this is done to avoid 
7170         firing OnSelectedIndexChanged without need to do so. Also,
7171         when creating handle ensure that the focused item is visible (as
7172         .net does).
7173
7174 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7175
7176         * ListBox.cs: Rewrote/refactored most of selection code. We require
7177         the following things in selection: a) keep selection sorted (both
7178         indices and items), b) SelectedIndices automatically detect the
7179         selection mode, c) SelectedIndex should be the first selected item
7180         index, d) Need to Focus/adjust scroll bar when selecting a new item,
7181         not only for SelectedIndex, which is specially important in Multi*
7182         selection modes. To achieve this we are moving the selection core to
7183         SelectedIndexCollection and make depend all selection modifications on
7184         it.
7185         Fixes #366438.
7186
7187 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7188
7189         * ToolStrip.cs: Enable implicit mnemonics for drop down
7190         menu strips.  [Fixes part of bug #367692]
7191
7192 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7193
7194         corcompare - fix parameter names [stragglers].
7195         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
7196         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
7197         TabControl.cs.
7198
7199 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7200
7201         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
7202         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
7203         mnemonic, let the ToolStripManager have it even if it doesn't
7204         have a matching mnemonic.
7205         [Fixes bug #367499]
7206
7207 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7208
7209         corcompare - fix warning about implicit implementation
7210         * ToolStrip.cs: Add IToolStripData interface.
7211         * IToolStripData.cs: Add.
7212
7213 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7214
7215         corcompare - fix warning about implicit implementation
7216         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
7217         * IBounds.cs: Add.
7218
7219 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7220
7221         corcompare - fix parameter names [N-Z].
7222         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
7223         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
7224         PropertyManager.cs, RichTextBox.cs,
7225         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
7226         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
7227         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
7228         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
7229         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
7230         ToolStripContentPanel.cs, ToolStripDropDown.cs,
7231         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
7232         ToolStripPanel.cs, ToolStripSeparator.cs,
7233         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
7234         UICuesEventHandler.cs, UpDownBase.cs.
7235
7236 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7237
7238         corcompare - fix parameter names [G-M].
7239         GridColumnStylesCollection.cs, GridItemCollection.cs,
7240         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
7241         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
7242         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
7243         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
7244         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
7245
7246 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7247
7248         corcompare - fix parameter names [A-F].
7249         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
7250         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
7251         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
7252         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
7253         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
7254         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
7255         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
7256
7257 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
7258
7259         * GridEntry.cs: Do not convert not only if the types match, 
7260         but also if the property type is assigneable from the value's
7261         type.
7262         [Fixes bug #366566]
7263
7264 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
7265
7266         * PropertyGridView.cs: 
7267          - Subscribe to the listbox only once and not everytime.
7268          - Update the textbox even if SetValue fails.
7269          - Close the listbox before calling TrySetValue just in case.
7270          [Fixes bug #366569]
7271
7272 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
7273
7274         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
7275
7276 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7277
7278         * ListView.cs: Implement support for custom column width based on
7279         Columns collection (we were previously using this collection only
7280         with Details view).
7281         Fixes #364484.
7282
7283 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7284
7285         * ListViewItem.cs: For Tile view, always set bounds for the first
7286         subitem (which is the main one), and also don't let Width be larger
7287         than ListView.TileSize.Width. Improve code readibility also.
7288         * ThemeWin32Classic.cs: When painting the ListViewItem instances
7289         in Tile view, _always_ use the NoWrap flag.
7290         Fixes #360798.
7291
7292 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
7293
7294         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
7295         in case.
7296         * GridEntry.cs: For MS compitability make all child properties 
7297         readonly if the parent is readonly. Ugh.
7298         [Fixes bug #365945 and #365944]
7299
7300 2008-02-29  Andreia Gaita <avidigal@novell.com> 
7301
7302         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
7303           relative to the history
7304
7305 2008-02-29  Andreia Gaita <avidigal@novell.com>
7306
7307         * HtmlElement.cs: More handlers for mouse and key events
7308
7309 2008-02-28  Andreia Gaita <avidigal@novell.com>
7310
7311         * WebBrowserBase.cs: MouseClick sig changed.
7312         * HtmlHistory.cs: Implement history navigation
7313         * HtmlElement.cs: Add event handlers, and connect them.
7314
7315 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
7316
7317         * GridEntry.cs: 
7318          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
7319            so that DisplayNameAttribute doesn't get ignored.
7320          - Check for ParenthesizeNameAttribute and parenthesize the Label.
7321          - Add support for PasswordPropertyTextAttribute
7322         * PropertyGridView.cs: Check if an entry is a password.
7323         [Fixes bugs #365589, #365586, #365588]
7324
7325 2008-02-28  Andreia Gaita <avidigal@novell.com>
7326
7327         * PropertyGridView.cs: Revert the message filtering change, as we
7328         need it to block after all. Remove block parameter, unnecessary.
7329
7330 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
7331
7332         * UserControl.cs: Better implementation of GetPreferredSize.
7333         First step to fixing bug #361441.
7334
7335 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7336
7337         * Binding.cs: Actually implement data binding support for 
7338         classes implementing IBindableComponent.
7339         * ControlBindingsCollection.cs: Likewise.
7340
7341 2008-02-26  Andreia Gaita  <avidigal@novell.com>
7342
7343         * PropertyGridView.cs: Use a message filter to check when to 
7344         close the dropdown
7345
7346 2008-02-26  Andreia Gaita  <avidigal@novell.com>
7347
7348         * Application.cs: Change the message_filters loop so a filter 
7349         can be removed while looping.
7350
7351 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
7352
7353         * GridEntry.cs: Optimization in ToggleValue so that it caches
7354         the current value.
7355         * PropertyGridView.cs: An optimization so that the property isn't 
7356         re-read twice for each StandardValue added to the drop-down menu.
7357         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
7358         license.
7359         [Fixes bug #362755]
7360
7361 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
7362
7363         * Application.cs: Apply patch from Justin Cherniak to match
7364         MS better for ProductName, ProductVersion, and CompanyName.
7365         [Fixes bug #361709]
7366
7367 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7368
7369         * Binding.cs: Actually implement 2.0 NullValue property. Also
7370         when changing the formatting related properties, only update the state
7371         if formatting_enabled is true (we don't mind otherwise).
7372
7373 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
7374
7375         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
7376         [Fixes bug #364486]
7377
7378 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
7379
7380         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
7381         of GetType on the current value as it uses reflection to 
7382         determine the type. This fixes the case where the new value is 
7383         null. 
7384
7385 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
7386
7387         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
7388         past the view.
7389
7390 2008-02-24  Luke Page  <luke.a.page@gmail.com>
7391
7392         * Line.cs, TextControl.cs: Implement offset x and y so that a
7393         document doesn't have to begin  at (0,0) on the viewpoint.
7394         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
7395         bars and switches the text alignment (and therefore is now
7396         implemented for textbox). Fixes #321383.
7397
7398 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7399
7400         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
7401         properties. Also when changing FormattingEnabled update the control
7402         property -as .Net does-.
7403
7404 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
7405
7406         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
7407         * Binding.cs: Add stubs for the overloads of the Add method in
7408         CBCollection.
7409
7410 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7411
7412         * Binding.cs: PullData () returns a false value if we got an exception.
7413         Also when validating the control and we get an error, instead of
7414         setting the value of the previous one, cancel the event (tested in 1.1
7415         and 2.0).
7416
7417 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
7418
7419         * TreeView.cs: Make selected_node and highlighted_node internal.
7420         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
7421         to null when Nodes.Clear is called.
7422         [Fixes bug #363884]
7423
7424 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7425
7426         * FontDialog.cs: Ensure that when the Font is set in code,
7427         all the gui pieces are updated accordingly.
7428         [Fixes bug #361020]
7429
7430 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7431
7432         * TextRenderer.cs: Respect proposed size for MeasureString.
7433         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
7434         autosize, use a proposed width to force wrapping for long text.
7435         [Fixes bug #360981]
7436
7437 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7438
7439         * TreeView.cs: Factor in checkboxes = false and state images in
7440         to HitTest.  [Fixes bug #363360]
7441
7442 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7443
7444         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
7445         when drawing the selected range.
7446         [Fixes bug #363648]
7447
7448 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7449
7450         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
7451         ResizeRedraw control styles.
7452         [Fixes bug #363555]
7453
7454 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7455
7456         * TreeView.cs: StateImages are basically custom checkboxes, so
7457         factor their size the same as real checkboxes when determining
7458         what got clicked.
7459         [Fixes bug #363367]
7460
7461 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7462
7463         * MessageBox.cs: Make the message box wider if the form caption
7464         is longer than the text in the form.
7465         [Fixes bug #361137]
7466
7467 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
7468
7469         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
7470
7471 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7472
7473         * TreeNode.cs: Guard against an NRE when the parent's
7474         StateImageList hasn't been set.
7475         [Fixes bug #363353]
7476
7477 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7478
7479         * SplitContainer.cs: Add SupportsTransparentBackColor and
7480         OptimizedDoubleBuffering control styles.
7481         [Fixes bug #363303]
7482
7483 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7484
7485         * Application.cs: For the app data paths and the registry key paths,
7486         ensure they are created before returning them to the user.
7487         [Fixes bug #361709]
7488
7489 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7490
7491         * Application.cs: Guard against an NRE in CompanyName and
7492         ProductName.
7493
7494 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7495
7496         * Application.cs: For CompanyName, ProductName, and ProductVersion,
7497         make sure we handle all three cases correctly: attribute is present,
7498         attribute is present but is an empty string, and attribute is not
7499         present.
7500
7501 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
7502
7503         * PropertyGridView.cs: 
7504          - Fix a NRE that caused a test failure
7505          - Another performance improvement - cache the standard values
7506          listbox.
7507
7508 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7509
7510         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
7511         code paths.
7512
7513 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
7514
7515         * PropertyGridView.cs: Fix a big performance bug.
7516
7517 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7518
7519         * SelectionRange.cs: Apply patch from Andy Hume to make
7520         constructor behavior more accurate.  [Fixes bug #362117]
7521
7522 2008-02-19  Andreia Gaita <avidigal@novell.com> 
7523
7524         * Control.cs: Added a new flag is_disposing to track if the
7525         window is currently in the process of being disposed of.
7526         This is used so that, when firing visibility changes triggered
7527         by unparenting controls during Dispose, the control doesn't
7528         get created again.      
7529
7530 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7531
7532         * ComboBox.cs: Set height to preferred height when the handle
7533         is created.  [Fixes bug #360862]
7534
7535 2008-02-18  Andreia Gaita <avidigal@novell.com>
7536
7537         * XplatUIX11.cs: Create FosterParent with border width at 0.
7538         With the previous value of 4, everytime a control got reparented
7539         from parent = null, it's location would be shifted right and 
7540         down by 4, since these coordinates would be offset by the 
7541         FosterParent's border width.
7542
7543 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
7544
7545         * Control.cs: During diposing firstly remove ourselfes from
7546         the parent and *then* destroy our handle, because removing
7547         ourselfes from the parent controls collection causes 
7548         VisibilityChange, etc events, which require a handle and end
7549         up recreating the control.
7550
7551 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
7552
7553         * GridEntry.cs: Set expanded state before notifying that the
7554         expansion has taken place.
7555         * PropertyGridView.cs:
7556          - Set the propertygridtextbox text to the selected 
7557          StandardValue before proceeding to setting it.
7558          - Scrolling bugfixes.
7559
7560 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7561
7562         * GridEntry.cs:
7563          - Fix ValueText to not return null.
7564          - Fix conversion error reporting to actually happen.
7565         * PropertyGridView.cs: Set entry only if the text has changed.
7566         [Fixes bug #362116]
7567
7568 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7569
7570         * GridEntry.cs: 
7571          - Fix handling of a null current value.
7572          - Swallow editor exceptions.
7573         [Fixes bug #362114]
7574
7575 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7576
7577         * PropertyGrid.cs: Clear current items first thing before 
7578         repopulating subitems.
7579         * GridEntry.cs: 
7580          - Handle null StandardValuesCollection.
7581          - Mark as not editable if there is no PropertyDescriptor and
7582          if the Converter cannot convert from string.
7583         [Part of fix for bugs #360666 and #358332]
7584
7585 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7586         * MaskedTextBox.cs: Now skips non editable characters after a
7587         character has been entered and we are progressing to the next
7588         position in the MaskedTextBox.
7589
7590 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7591         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
7592         that it changes the selection rather than just repositioning the
7593         cursor. Fixes Bug #360873.
7594
7595 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7596         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
7597         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
7598         correctly. See #359330
7599
7600 2008-02-15  Andreia Gaita <avidigal@novell.com>
7601
7602         * XplatUIX11.cs: If the handle is null when posting a message, use the
7603         current thread queue to post instead. Fixes #332409
7604
7605         * SendKeys.cs: Slight optimization
7606
7607 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
7608
7609         * PropertyGrid.cs, PropertyGridView.cs:
7610         Fix multiple scrolling and sizing issues.
7611         [Fixes bug #359199]
7612
7613 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7614
7615         * PropertyGridView.cs: Ensure that drop down editors are shown
7616         in the WorkingArea of the screen.
7617         [Fixes bug #359807]
7618
7619 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7620
7621         * GridEntry.cs: Fail silently when UITypeEditor is missing.
7622         [Fixes bug #360666]
7623
7624 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7625
7626         * Binding.cs: Implement 2.0 DataSourceNullValue property.
7627
7628 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7629
7630         * PropertyGridView.cs:
7631          - Clear the controls in the drop down form after it is hidden.
7632          - Fix Width sizing of the dropdown editors to match MSFT.
7633
7634 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7635
7636         * PropertyGridView.cs: 
7637          - Fix height for drawing the grid entry
7638          text value, so that it clips multiline text properly.
7639          - Fix unfocusing to match MSFT.
7640
7641 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7642
7643         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
7644         Fixes a bug where on repopulation after value changed items become
7645         expandable.
7646
7647 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7648
7649         * Binding.cs: For the 2.0 profile, look for a 
7650         'PropertyChanged' event in the target control, and add checks for
7651         DataSourceUpdateMode property to change -or not- the data source
7652         from validation/control property change.
7653
7654 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
7655
7656         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
7657           not compare struct with null in 2.0).
7658
7659 2008-02-10  Luke Page <luke.a.page@gmail.com>
7660
7661         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
7662         updates the provider and if not using a provider, uses the internal document
7663         class implementation of password char. Also when showing text, uses display string
7664         from the provider, instead of the actual text.
7665
7666 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7667
7668         * Binding.cs: Ooooops, forgot to take into account the data_source
7669         and binding_member_info null case (it was breaking the Binding tests).
7670
7671 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7672
7673         * Binding.cs: Implement support for data source changes exposed by
7674         'PropertyNameChanged' events, and update the control property as
7675         needed.
7676
7677 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7678
7679         * Binding.cs: Implement 2.0 WriteValue method.
7680
7681 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7682
7683         Commit patch from James Purcell for better AutoScale implementation:
7684
7685         * ScaleControl should call GetScaledBounds with the control's total size rather
7686         than client size.  GetScaledBounds should handle ignoring the borders in its
7687         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
7688         (for the most part they just call the base code now since that is fixed).
7689         * Added ScaleChildrenInternal to allow controls to disable scaling of children
7690         without having to override ScaleChildren (since none of .NET's controls do). 
7691         This is required for most controls in Mono that have scrollbars to prevent the
7692         scrollbars from being moved/resized.
7693         * Nested ContainerControls can have a different scale mode than their parent. 
7694         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
7695         designer produce different results both of which look incorrect).
7696         * Default AutoScaleMode for ContainerControl should be Inherit.
7697         * Simplified workaround for ComboBox scaling issue.
7698         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
7699         1.0 style auto scaling should scale the whole control's size instead of
7700         ignoring the borders (except for Form) and the rounding is done differently to
7701         preserve control alignment.
7702         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
7703         GetAutoScaleSize.
7704         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
7705         * CurrentAutoScaleDimensions should round the estimated character width instead
7706         of truncating.
7707         * ListBox's GetScaledBounds should always use the height it was set to instead
7708         of the height that was passed in.  This prevents rounding errors from
7709         accumulating quickly with IntegralHeight.
7710         [Bug #359098]
7711
7712 2008-02-08  Andreia Gaita <avidigal@novell.com>
7713
7714         * Form.cs: Add a null check (darn it). 
7715
7716 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7717
7718         * MdiClient.cs: Make sure the requesting form actually owns the
7719         control menu items before removing them.  Also, use
7720         Suspend/ResumeLayout when adding or removing items so we only
7721         layout once.
7722         [Fixes bug #359887]
7723
7724 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7725
7726         * Control.cs: Guard against an NRE in ShowFocusCues.
7727         [Fixes bug #359830]
7728
7729 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7730
7731         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
7732         property, as well as stubbing DataSourceUpdateMode.
7733
7734 2008-02-08  Andreia Gaita <avidigal@novell.com>
7735
7736         * Form.cs: When closing forms, get focus back to the active control of the
7737         active form. [Fixes #341314, corner case]
7738         
7739 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7740
7741         * MdiClient.cs: After we move the scrollbars, invalidate the NC
7742         area, so any old scrollbar artifacts are cleaned up.
7743         [Fixes bug #336305]
7744
7745 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7746
7747         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
7748         for our menus, display that control box menu instead of the 1.1
7749         menu one.
7750
7751 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7752
7753         * MdiControlStrip.cs: Add property to access the mdi form tied to
7754         each toolstripitem.
7755         * MdiClient.cs: Be smarter about removing and adding toolstripitems
7756         to the implicitly merged menu.  Every time we clicked the form, items
7757         were getting removed and the re-added, causing the form to jump around
7758         as the menu resized.
7759
7760 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7761
7762         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
7763         was being reset by the implicit menu merge for menustrips.
7764         [Fixes bug #336296]
7765
7766 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7767
7768         * Form.cs: Don't do the previous change when WindowState = Normal,
7769         or it messes up where the window is placed.  Fixes test failure.
7770
7771 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7772
7773         * Form.cs: When becoming visible, if we are an MDI child, call
7774         SetWindowState with a dummy old_state so that changes will actually
7775         be made.
7776         [Fixes the 2nd part of bug #325473]
7777
7778 2008-02-07  Andreia Gaita <avidigal@novell.com>
7779
7780         * Control.cs: Reset properties to their pre parent-change values in case
7781         the new parent == null (in which case we're basically removing the control, 
7782         and don't want any events fired due to fake property changes)
7783         [Fixes #355850]
7784
7785 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
7786
7787         * PropertyGridView.cs: 
7788          - Refactor SetValue to allow setting the value
7789         when a custom editor is used, but the entry is not editable.
7790          - Remove the custom editor control on CloseDropDown.
7791         [Fixes #359196]
7792
7793 2008-02-06  Andreia Gaita <avidigal@novell.com>
7794
7795         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
7796         reflection only on 1.1, this property is public on system.drawing on 2.0.
7797         Fixed #359247
7798
7799 2008-02-06  Andreia Gaita  <avidigal@novell.com>
7800         
7801         * WebBrowser.cs: Do a normal page refresh by default.
7802
7803 2008-02-05  Andreia Gaita  <avidigal@novell.com>
7804
7805         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
7806         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
7807         platforms. Fixes #359036
7808         
7809         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
7810         platform-specific flags.
7811
7812 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7813
7814         * Binding.cs: Add 2.0 BindableComponent property - just return control
7815         by now.
7816
7817 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
7818
7819         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
7820         Jonathan for this patch. Fixes #358442.
7821
7822 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
7823
7824         * Form.cs: If we change the active MDI child form, let the others
7825         know they need to repaint their title bar so it will appear inactive.
7826         [Fixes part 1 of bug #325473]
7827
7828 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
7829
7830          * PropertyGridView.cs: Do not trucate custom editors' width
7831          and align them to the left.
7832          [Fixes #358353 and #358349]
7833
7834 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7835
7836         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
7837         Also fix the arguments passed to CollectionChangeEventArgs in the
7838         related methods.
7839
7840 2008-02-04  Geoff Norton  <gnorton@novell.com>
7841
7842         * Hwnd.cs: The conversion to Quartz coordinates happens in
7843         System.Drawing.  Removing this translation from here.
7844
7845 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
7846
7847          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
7848          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
7849          GridItemCollection.cs:
7850          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
7851
7852 2008-02-04  Geoff Norton  <gnorton@novell.com>
7853
7854         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
7855         SYSKEYUP if any other key has been pressed in the mean time.
7856         Fixes #324404
7857
7858 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7859
7860         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
7861         when the item in current position is different than 0. Also, save the
7862         item index in the beginning of the operation, instead of getting the
7863         index of the item when the event is actually performed. Lastly clean
7864         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
7865         triggered.
7866         [Fixes #357873]
7867
7868 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7869
7870         * Form.cs: Alt-Minus for MDI children system menu should work
7871         with both the minus keys on the keyboard.
7872         [Fixes bug #336295]
7873
7874 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7875
7876         * Control.cs: Don't invalidate on region change.  The WM should
7877         take care of this automagically.  Keeps us out of an infinite
7878         paint loop if someone changes the Region in the OnPaint.
7879         [Fixes bug #358327]
7880
7881 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
7882
7883          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
7884
7885 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7886
7887         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
7888         down the MonthCalendar only on F4, not Alt+F4.
7889         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
7890         [Fixes bug #358340]
7891
7892 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7893
7894         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
7895         if its part of a DateTimePicker, else, use the back color.
7896         [Fixes bug #358339]
7897
7898 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7899
7900         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
7901         [Fixes bug #358342]
7902
7903 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7904
7905         * CurrencyManager.cs: When we get a ListChanged event from our source,
7906         always fire our own ListChanged event, as .Net does.
7907
7908 2008-02-03  Luke Page  <luke.a.page@gmail.com>
7909
7910         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
7911         #358379.
7912
7913 2008-02-03  Luke Page  <luke.a.page@gmail.com>
7914
7915         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
7916         property. Removed if for richtext property that was always true.
7917         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
7918
7919 2008-02-03  Luke Page  <luke.a.page@gmail.com>
7920
7921         * TextBoxBase.cs - commited patch from James Purcell that
7922         correctly sets the FixedHeight control style when the MultiLine
7923         property is changed on a TextBox control. Fixes bug 358229.
7924
7925 2008-02-02  Luke Page  <luke.a.page@gmail.com>
7926
7927         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
7928         Fixes bug 351938 - caret is positioned correctly when drawn
7929         and when calculating textual position of caret, no longer
7930         has a NRE in certain situations.
7931         
7932 2008-02-01  Geoff Norton  <gnorton@novell.com>
7933
7934         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
7935         get that region removed from the paint event.
7936         * XplatUICarbon.cs: Remove the window mapping after disposing of 
7937         window.  Prevents a crash with handle reuse.  Optimize exposes
7938         only onto visible windows (rare; but possible).
7939
7940 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7941
7942         * UpDownBase.cs: Make sure the internal textbox calls the base's
7943         OnMouseDown and OnMouseUp so the textbox will function correctly.
7944         There were notes saying it doesn't chain up, but its an internal
7945         class, so our implementation may differ.
7946         [Fixes bug #357482]
7947
7948 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7949
7950         * ListBox.cs: Fix a logic error and don't process MouseDown
7951         for mouse buttons other than Left.
7952
7953 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7954
7955         * Control.cs: Remove HeightInternal.
7956         * ListBox.cs: Commit patch from James Purcell that correctly
7957         calculates heights for ListBoxen.
7958         [Fixes bug #357152]
7959
7960 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7961
7962         * Label.cs: Apply patch from James Purcell that corrects the 
7963         signature of the AutoSize property.
7964         [Fixes bug #357605]
7965
7966 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7967
7968         * ListBox.cs: Don't throw [Mouse]Click events for buttons
7969         other than the left mouse button.
7970
7971 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
7972
7973         * Control.cs: Remove my awesome optimization as it caused some
7974         regressions with control ordering.  :(
7975         [Fixes bug #357467]
7976
7977 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
7978
7979          * PropertyGridView.cs: Fix a NRE on double click when there is no
7980          selected object.
7981
7982 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7983
7984         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
7985
7986 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
7987
7988         * ListBox.cs: Call MouseClick and MouseDoubleClick.
7989         [Fixes bug #357146]
7990
7991 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7992
7993         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
7994         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
7995         instead of Hwnd.bmp_g.
7996
7997 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7998
7999         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
8000         Use the Hwnd one instead.
8001
8002 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8003
8004         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
8005
8006 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8007
8008         * Form.cs: corcompare for RestoreBounds.
8009
8010 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8011
8012         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
8013
8014 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8015
8016         * Form.cs: Handle Alt-Minus for MDI children forms.
8017         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
8018         Add mnemonics to the control menu.
8019         [Fixes bug #336295]
8020
8021 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8022
8023         * Binding.cs: Initial implementation bits of FormattingEnabled
8024         property and BindingComplete event (2.0). 
8025         * BindingCompleteEventArgs.cs: Internal methods for setting error text
8026         and exception.
8027
8028 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8029
8030         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
8031         table.Location.  [Fixes bug #354672]
8032
8033 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8034
8035         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
8036         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
8037
8038 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8039
8040         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
8041         of doing all the re-bound work, just invalidate and call SetControlText 
8042         to set the updated text of selected item to our textbox.
8043         Fixes #333750.
8044
8045 2008-01-28  Andreia Gaita <avidigal@novell.com>
8046
8047         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
8048         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
8049         missing properties and methods. Add Load, Unload, Error, GotFocus, 
8050         LostFocus, Resize, Scroll events (only load and unload are connected)
8051
8052 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
8053
8054         * AccessibleObject.cs: Modified argument names to match MS.
8055         * Button.cs: Modified argument names to match MS.
8056         * BindingContext.cs: Modified argument names to match MS.
8057         * BindingMemberInfo.cs: Modified argument names to match MS.
8058         * ButtonBase.cs: Modified argument names to match MS.
8059         * ComboBox.cs: Modified argument names to match MS.
8060         * Control.cs: Modified argument names to match MS.
8061         * CheckedListBox.cs: Modified argument names to match MS.
8062         * CommonDialog.cs: Modified argument names to match MS.
8063         * DataGrid.cs: Modified argument names to match MS.
8064         * CursorConverter.cs: Modified argument names to match MS.
8065         * ControlPaint.cs: Modified argument names to match MS.
8066         * CheckBox.cs: Modified argument names to match MS.
8067         * ControlBindingsCollection.cs: Modified argument names to match MS.
8068         * BindingSource.cs: Modified argument names to match MS.
8069         * DataFormats.cs: Modified argument names to match MS.
8070         * ContainerControl.cs: Modified argument names to match MS.
8071         * CurrencyManager.cs: Modified argument names to match MS.
8072         * Application.cs: Modified argument names to match MS.
8073         * ContextMenuStrip.cs: Modified argument names to match MS.
8074         * ContextMenu.cs: Modified argument names to match MS.
8075         * BindingManagerBase.cs: Modified argument names to match MS.
8076         * WindowsFormsSection.cs: Fixed line ending.    
8077
8078 2008-01-27  Andreia Gaita <avidigal@novell.com>
8079
8080         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
8081         detecting that the dropdown toolwindow is hidden. EndLoop outside the
8082         while.
8083
8084 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
8085
8086         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
8087         MS. Code formatting.
8088
8089 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8090
8091         * Binding.cs: Don't avoid the Format event if the control 
8092         property type is object. Also, if the value retrieved by 
8093         the data source is null _and_ the control proeprty type 
8094         is object, return Convert.DBNull (match .Net).
8095         Fixes part of #324286.
8096
8097 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8098
8099         * ListControl.cs: Since we are getting two BinginContextChanged events
8100         for the same binding context instance (when the control is added to
8101         form, and when the form is actually shown), take it into account only the
8102         first time for a given binding context instance.
8103         Fixes part of #324286.
8104
8105 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
8106
8107          * PropertryGridView.cs: Ops.
8108
8109 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
8110
8111          * PropertyGridView.cs: Close dropdown form if the owner form is
8112          moved or minimized.
8113          [Fixes bug #322446]
8114
8115 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
8116
8117          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
8118          RootGridEntry.cs, CategoryGridEntry.cs:
8119          PropertyGrid rewrite.
8120          - Rewrite all of the control logic in PropertyGrid.
8121          - Rewrite all of the ComponentModel logic in GridEntry.
8122          - Rewrite all UI work in PropertyGridView.
8123          - Many bugfixes, etc.
8124
8125 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
8126
8127         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
8128         when all contained controls are autosize or dock-fill.  Also take into
8129         account when the total percentage of column/row sizes is not 100%.
8130         [Fixes bug #354672]
8131
8132 2008-01-24  Andreia Gaita <avidigal@novell.com>
8133
8134         * HtmlDocument.cs:
8135         - Save a reference to the IDocument in the instance and
8136           use that one instead of going to WebHost.Document; the document that the 
8137           WebHost returns might not be the right one (in case of frames).
8138         - Use the hashcode returned from the IDocument interface.
8139         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
8140           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
8141           LinkColor, Url, VisitedColor, Window
8142
8143         * HtmlElement.cs: 
8144         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
8145           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
8146           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
8147           SetAttribute, Equals, equality operators.
8148         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
8149           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
8150         
8151         * HtmlElementCollection.cs: Change implementation to use a generic
8152         collection. Implemented Enumerator and CopyTo
8153
8154         * HtmlHistory.cs: Add constructor, no implementation yet.
8155
8156         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
8157         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
8158         Equals, equality operators.
8159
8160         * HtmlWindowCollection.cs: Implemented. 
8161
8162         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
8163         has been deprecated).
8164
8165         * WebBrowserBase.cs: Use Completed event to track document loading
8166         (Navigated has been deprecated)
8167
8168 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
8169
8170         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
8171         level MenuItems do not respect tabs.
8172         [Fixes bug #355196]
8173
8174 2008-01-23  Geoff Norton  <gnorton@novell.com>
8175
8176         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
8177         FormWindowState.  Finished fixing Fullscreen windows on Carbon
8178
8179 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8180
8181         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
8182         be used as grab_control. Also save status of capture before show ContextMenu
8183         and restore it after close.
8184
8185 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8186
8187         * Control.cs: Internal FindRootParent method added to return high control
8188         in parent tree.
8189
8190 2008-01-23  Geoff Norton  <gnorton@novell.com>
8191
8192         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
8193         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
8194         it work again.  Handle HITTEST events.
8195
8196 2008-01-23  Geoff Norton  <gnorton@novell.com>
8197
8198         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
8199         a crash in certain cases.  Support for fullscreen windows in certain cases.
8200
8201 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
8202
8203         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
8204         [Fixes bug #355703]
8205
8206 2008-01-23  Geoff Norton  <gnorton@novell.com>
8207         
8208         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
8209
8210 2008-01-23  Geoff Norton  <gnorton@novell.com>
8211
8212         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
8213
8214 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8215
8216         * SplitContainer.cs: Remove unused declarations.
8217         * Binding.cs: Remove unused declarations.
8218
8219 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8220
8221         * Form.cs: Remove unused declaration of 'active' in Activate method.
8222         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
8223         prevent compilation warnings.
8224         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
8225         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
8226         * Bindings.cs: Remove unused formatting_enabled declaration.
8227         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
8228         warnings.
8229         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
8230         warnings.
8231         * PropertyGridView.cs: Remove usused 'ex' declaration.
8232         * DataGridView.cs: Remove unused declarations.
8233
8234 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8235
8236         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
8237         
8238         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
8239         to Control class, it makes possible to grab menu to controls that can't 
8240         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
8241         WmMouseMove removed since it was used only to track menu events.
8242
8243         * Control.cs:
8244         - Moved all active_tracker stuff from Form.
8245         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
8246         can call this method instead of reimplement all necessary code handle for
8247         menu tracker.
8248         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
8249         and WmMouseMove).
8250         
8251         * MenuAPI.cs: 
8252         - Remove special handle to ToolStripOverflow, now we can grab menu to 
8253         controls that can't reach Form using parent tree.
8254         - Change type of grab_control from Form to Control.
8255
8256 2008-01-22  Geoff Norton  <gnorton@novell.com>
8257
8258         * TextBoxBase.cs: Split up the sizing of controls and placing of 
8259         controls.  Fixes a bug where scrollbars in Reflector could be sized
8260         wrong and have non-working thumbers.
8261
8262 2008-01-23  Geoff Norton  <gnorton@novell.com>
8263
8264         * XplatUI.cs: Refactor environment variables to default support to the
8265         Carbon driver on the Mac.
8266
8267 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8268
8269         * Label.cs: Uses new LabelPainter for drawing operations.
8270         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
8271         * Theme.cs: DrawLabel and LabelDefaultSize removed.
8272
8273 2008-01-22  Geoff Norton  <gnorton@novell.com>
8274
8275         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
8276
8277 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8278
8279         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
8280         through the normal flat button code and don't draw the checkbox glyph.
8281         * Theme.cs: Button->ButtonBase signature change.
8282         [Fixes bug #324755]
8283
8284 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
8285
8286         * LinkLabel.cs: Uses new class LinkLabelPainter.
8287
8288 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
8289
8290         * MessageBox.cs: Adjust right border space, we don't need to add 
8291         "space_border*2" two times.
8292
8293 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8294
8295         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
8296         becomes a wrapper around Padding.
8297         [Fixes a part of bug #354676]
8298
8299 2008-01-22 Geoff Norton  <gnorton@novell.com>
8300
8301         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
8302         acquired.  Also ensure the buffer is large enough to grab the header
8303         we need on linux boxes.
8304
8305 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8306
8307         * Control.cs: Implement a custom enumerator so people can delete
8308         from the Controls collection while in a foreach.
8309         [Fixes bug #355074]
8310
8311 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8312
8313          * PropertyGridView.cs: Fix focusing behavior:
8314          - Tab should focus the grid text box.
8315          - Clicking on the labels shouldn't focus the grid text box.
8316
8317 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8318
8319          * PropertyGridView.cs: IsValueTypeGridItem should return true 
8320          for Arrays as well.
8321
8322 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8323
8324          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
8325           - Renamed GridEntry.SelectedObjects to TargetObjects to better
8326           reflect the property name role.
8327           - PropertyGrid.GetTarget is not required as the target is known
8328           (TargetObjects).
8329           - Setting values will handle value types as a special case now and
8330           populate them up in the chain.
8331           [Fixes #354990]
8332
8333 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
8334
8335         * Hwnd.cs: Create a public property for the Graphics we keep around.
8336
8337 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
8338
8339          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
8340          when the current object selection changes. 
8341          Fixes failing test SelectedObject_Null2.B5.
8342
8343 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
8344
8345          * PropertyGrid.cs: Process Browsable properties with 
8346          DesignerSerializationVisibilityAttribute.Content as being expandable.
8347          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
8348          will not be expandable. We should be nested components-friendly now.
8349
8350 2008-01-21  Andreia Gaita <avidigal@novell.com>
8351
8352         * WebBrowserBase.cs: Check if control was loaded properly, 
8353         don't bind if it wasn't.
8354
8355         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
8356         GetElementFromPoint, equality operators, OpenNew, Write.
8357         Remove extra set_Body
8358
8359 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
8360
8361         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
8362         that makes our AutoScale* stuff more tolerant to different orders
8363         of being set.  [Fixes bug #354669]
8364
8365 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
8366
8367          * PropertyGridView.cs, PropertyGridTextBox.cs: 
8368          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
8369          [Fixes #339005 and #348209]
8370
8371 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
8372
8373          * PropertyGridView.cs: Hide the grid text box before adjusting it
8374          for the newly selected GridItem.
8375          [Fixes #338999]
8376
8377 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
8378
8379         * Form.cs: Give MDI children the opportunity to cancel the parent form
8380         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
8381         properly for both the parent and child.
8382         * Application.cs: Signature of internal method changed, pass the previous
8383         default of false.
8384         [Fixes bug #354286]
8385
8386 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
8387
8388         * PropertyGridView.cs: Set the property value only if it has changed.
8389         [Fixes bug #338997]
8390
8391 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
8392
8393         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
8394         If the mouse hasn't actually moved, ignore these messages so the currently
8395         highlighted menuitem isn't reset to the one under the mouse.
8396         [Fixes bug #333668]
8397
8398 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
8399
8400         * PropertyGridView.cs: When the property changes Invalidate the GridItem
8401         in order for the properties with UITypeEditor.GetPaintValueSupported == true
8402         to reflect the change visually.
8403         [Fixes bug #338998]
8404
8405 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
8406
8407         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
8408         to 2.0 button drawing.
8409         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
8410         the button text is tall enough for one line.  LineLimit says it will
8411         always draw at least one line, but it is a lie.
8412         [Fixes bug #324941]
8413
8414 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
8415
8416         * XplatUIStructs.cs, X11Keyboard.cs :
8417           added some more VK_* keys to be handled.
8418
8419 2008-01-16  Andreia Gaita <avidigal@novell.com>
8420
8421         * Control.cs: Check if there is a container before setting or getting
8422         the validation flag.
8423
8424 2008-01-16  Andreia Gaita <avidigal@novell.com>
8425
8426         * ContainerControl.cs: Add flag to track if a control cancels validation, 
8427         so we don't fire click events.
8428
8429         * Control.cs: 
8430         - (HandleClick) Check if validation was cancelled before  firing the click
8431         events (doubleclicks are fired, but not clicks)
8432         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
8433         ContainerControl.set_ActiveControl, but in the case of non-selectable
8434         controls, like a Label, activecontrol is not set. 
8435
8436         * ButtonBase.cs: Only fire clicks if validation passes.
8437         
8438         Fixes #353310
8439
8440 2008-01-16  Geoff Norton  <gnorton@novell.com>
8441
8442         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
8443         trunk
8444
8445 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
8446
8447         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
8448         SelectedPath, just display the default dialog instead of crashing.
8449         [Fixes bug #348989]
8450
8451 2008-01-16  Geoff Norton  <gnorton@novell.com>
8452
8453         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
8454         AddExpose instead of trusting apples compositing manager which doesn't
8455         work for our use case.  Remove some dead code causing warnings and 
8456         redecorate some other code to prevent warnings.
8457
8458 2008-01-16  Geoff Norton  <gnorton@novell.com>
8459
8460         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
8461         carbon signals us to redraw.  Fixes another portion of the flickering bug
8462
8463 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8464
8465         * Form.cs: Prevent the MdiParent property to be set when value is the same
8466         as value already set. Fixes bug #328019.
8467
8468 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8469
8470         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
8471         it prevents NRE when closing mdi child windows. Fixes bug #325211.
8472
8473 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8474
8475         * InternalWindowManager.cs: Invalidade close button after mouse up when 
8476         mdi form is prevented to close.
8477
8478 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8479
8480         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
8481         thanks to Andy Hume. Fixes bug #325433.
8482
8483 2008-01-16  Andreia Gaita <avidigal@novell.com>
8484
8485         * LinkLabel.cs: Reset focused_index when resellecting the control.
8486         Fixes #323190
8487
8488 2008-01-15  Geoff Norton  <gnorton@novell.com>
8489
8490         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
8491         messages.
8492
8493 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
8494
8495         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
8496         of truncate.
8497
8498 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
8499
8500         * ContainerControl.cs: Setting AutoScaleMode to anything should set
8501         Form.AutoScale to false.
8502         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
8503         AutoScaleBaseSize should be changed on Font change unless it has been
8504         explicitly set.
8505         [Fixes bug #353827]
8506
8507 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
8508
8509         * MenuAPI.cs: On instance of MenuTracker check if source control is
8510         ToolStripOverflow and use properly method to find form.
8511         [Fixes bug #338511]
8512
8513 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
8514
8515         [Fixes bug #323241 Transparent toolbar support]
8516
8517         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
8518         is flat.
8519
8520         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
8521         defined in control style to mimic win32 behavior.
8522
8523         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
8524         it will be transparent.
8525
8526 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
8527
8528         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
8529         CreateParams for ToolBar controls.
8530
8531 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8532
8533         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
8534         FixedToolWindow, SizeableToolWindow, or None for border styles have
8535         different minimum sizes than regular forms.  Implemented to fix
8536         regression in PDN with toolbox being too wide.
8537
8538 2008-01-14  Andreia Gaita <avidigal@novell.com>
8539
8540         * HtmlElementCollection.cs: Implemented
8541
8542         * HtmlElement.cs: Implemented:
8543           - All
8544           - InnerHtml
8545           - InnerText
8546           - Id
8547           - Name
8548           - FirstChild
8549
8550         * HtmlDocument.cs: Implemented GetElementsByTagName.
8551
8552 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8553
8554         * Screen.cs: Stub BitsPerPixel to always return 32.
8555
8556 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8557
8558         * Form.cs: Implement RestoreBounds.
8559
8560 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8561
8562         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
8563         Sebastien and his fabulous magical problem-finding machine:
8564         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
8565         respect the value set.
8566
8567 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
8568
8569         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
8570         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
8571
8572 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8573
8574         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
8575         messages (to match .Net), we need to remove the capture ourselves.
8576
8577 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
8578
8579         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
8580         will process the message and close our window.
8581         [Fixes bug #324328]
8582
8583 2008-01-10  Geoff Norton  <gnorton@novell.com>
8584
8585         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
8586         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
8587         window manager.
8588
8589 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8590
8591         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
8592         failing test.
8593
8594 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8595
8596         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
8597         Linux doesn't care, having a minimum matches MS and keeps the window
8598         from becoming too small to use window decorations.
8599         [Fixes bug #338996]
8600
8601 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8602
8603         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
8604         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
8605         control.  [Fixes bug #325419]
8606
8607 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8608
8609         * ComboBox.cs: Guard against an NRE if the user open a new form from a
8610         SelectedIndexChanged event.  This closes the combobox dropdown, and we
8611         were trying to dispose it.  [Fixes bug #352830]
8612
8613 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8614
8615         * Control.cs, Form.cs: Implement the necessary semantics for
8616         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
8617         to determine if a focus rectangle should be drawn.
8618         * PropertyGrid.cs: Fix property visibility to match override.
8619         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
8620
8621 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8622
8623         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
8624         [Fixes bug #323552]
8625
8626 2008-01-09  Geoff Norton  <gnorton@novell.com>
8627         
8628         * XplatUICarbon.cs: Scroll windows in the correct direction.
8629
8630 2008-01-09  Geoff Norton  <gnorton@novell.com>
8631
8632         * XplatUICarbon.cs: Track all created utility windows so we can hide them
8633         when the app is deactivated or spaces is enabled.
8634
8635 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8636
8637         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
8638         extra separation pixel for the label rect origin if SmallImageList is
8639         null, and thus we don't need that separation between icon and label
8640         rects.
8641         Patch by Ernesto Carrea.
8642         Fixes # 340195.
8643
8644 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
8645
8646         * StatusStrip.cs: Invalidate after completing a layout.  The base
8647         OnLayout does this, but we don't call the base.
8648         * ToolStripItem.cs: Revert the previous change to invalidate after
8649         the item moves.
8650         [Fixes bug #351341 better.]
8651
8652 2008-01-07  Geoff Norton  <gnorton@novell.com>
8653
8654         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
8655         not a notification to exit the application.  Listen for WM_QUIT
8656         instead.
8657
8658 2008-01-07  Andreia Gaita <avidigal@novell.com>
8659
8660         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
8661
8662 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
8663
8664         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
8665         so it can repaint at the correct location.
8666         [Fixes bug #351341]
8667
8668 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8669
8670         * ListControl.cs: SelectedValue should return a null value if
8671         SelectedIndex is -1. Also, when setting it, it should throw an
8672         ArgumentNullException if the value is null, as well as taking
8673         into account the String.Empty value, instead of ignoring it (we have
8674         tests for that now).
8675         Fixes part of #324286.
8676
8677 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
8678
8679         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
8680         SelectionStart is updated after pressing enter.  Fixes bug #351918.
8681
8682 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8683
8684         * TextControl.cs: Revert a piece r92316 that prevented the fix
8685         from working when there were multiple tags in the text box.
8686         Fixes bug #351881.
8687
8688 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8689
8690         * TextControl.cs: Apply patch from Luke Page that prevents an
8691         NRE when determining the beginning of a paragraph.
8692         Fixes bug #351886.
8693
8694 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8695
8696         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
8697         caret gets moved with clicking away from a selected block of
8698         text.  Fixes bug #351885.
8699
8700 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8701
8702         * TextControl.cs: Apply patch from Luke Page that takes line
8703         alignment into account for mouse selection, so that center and
8704         right aligned text can be selected.
8705         Fixes bug #351881.
8706
8707 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8708
8709         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
8710         issues after loading an RTF file by using the correct line feeds.
8711         Fixes bug #351841.
8712
8713 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8714
8715         * TextControl.cs: When deleting multiple line selections, we need
8716         to invalidate every line beginning at the first line of the selection.
8717         Patch from Luke Page fixes bug #351791.
8718
8719 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8720
8721         * ListControl.cs: When getting a CurrencyManager.PositionChanged
8722         event, don't set SelectedIndex if the number of items is 1. This is
8723         because, for the first item, PositionChanged is fired _before_
8724         ItemChanged (the place where we actually populate the items), and
8725         leave us in a temporary invalid state (since items collection is
8726         empty).
8727         Fixes #349655.
8728
8729 2008-01-04  Geoff Norton  <gnorton@novell.com>
8730
8731         * XplatUICarbon.cs:  Create native toolwindows instead of
8732         the managed drawing ones.
8733
8734 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8735
8736         * LineTag.cs: If the line doesn't have any characters, return
8737         0 for GetCharIndex.  Fixes an AOORE exception after certain
8738         caret movements.  Fixes bug #351683.  Patch by Luke Page.
8739
8740 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8741
8742         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
8743         is hit when there is selected text, only the selected text gets
8744         deleted, not the character in front of the selection as well.
8745         Fixes bug #351578.
8746
8747 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8748
8749         * ComboBox.cs: When the values are displayed, calculate the
8750         ComboListBox scrollbar's LargeChange based on the visible area's
8751         height and  the actuall ItemHeight, instead of calculating it
8752         based on MaxDropItems value, since it's not used by our _current_ 
8753         2.0 profile.
8754         Fixes #332366.
8755
8756 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8757
8758         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8759         Patch from Luke Page that fixes issues with font colors and styles
8760         not showing up in a readonly RichTextBox.  Fixes bug #324354.
8761
8762 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8763
8764         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
8765         from Luke Page.  This one fixes bug #349926.
8766
8767 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8768
8769         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
8770         an item in the IBindingList source changes with
8771         ListChangedType.ItemAdded. Ignore for now firing the event for other
8772         changes, since we want to have tests for those cases as well.
8773
8774 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8775
8776         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
8777         created.
8778
8779 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8780
8781         * TextBoxTextRenderer.cs: Implement a cache for measuring each
8782         character.  This is effective because the typical usage of a
8783         TextBox is with a limited amount of fonts and characters, and
8784         the current implementation of TextBox measures everything one
8785         character at a time.  Another second or two speedup for bug #347238.
8786
8787 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8788
8789         * Control.cs: Rewrite the Font getter to only query the parent's
8790         Font property once instead of twice.  Since this operation is
8791         recursive, the queries were growing exponentially as the control
8792         tree got deeper.  Another second or two speedup for bug #347238.
8793
8794 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8795
8796         * Control.cs: Avoid setting a parent (and more importantly, updating
8797         the zorder of all its children) if the parent is already correct in
8798         WmShowWindow.  Decreases the startup time of the test case on bug
8799         #347238 from 35 seconds to 11 seconds.
8800
8801 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8802
8803         * X11Dnd.cs: When the dnd operation has started and we are 
8804         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
8805         This is done to match .Net, which doesn't send those messages after
8806         dnd operation was completed/cancelled.
8807         Fixes #349922.
8808
8809 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
8810
8811         * ToolStrip.cs: Previous change should be != null, not == null.
8812         Thanks Gert!
8813
8814 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
8815
8816         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
8817         user may have moved the mouse off the current item during the event.
8818
8819 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8820
8821         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
8822         calling GetItemAt for every MouseMove event by also taking into
8823         account whether any mouse button is pressed (probably dragging); 
8824         if so, we can call GetItemAt, and if not, try to not call it 
8825         (GetItemAt can be quite expensive when used with a large number of items).
8826
8827 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8828
8829         * ListView.cs: Implement -finally- support for dnd, by calling
8830         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
8831         authors list ;-).
8832         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
8833         simple calculation of distances for all the items in the owner
8834         listview.
8835
8836 2007-12-21  Geoff Norton  <gnorton@novell.com>
8837
8838         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
8839         for windows that are originally created as invisible.  Fixes missing
8840         main window in paint-mono.
8841
8842 2007-12-21  Geoff Norton  <gnorton@novell.com>
8843
8844         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
8845         subclass handler for com.novell.mwfview subclassing HIView.  Implement
8846         Pasteboard and Dnd methods.
8847
8848 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8849
8850         * ListBox.cs: When we got focus, give focus to first item if there
8851         wasn't any pervious focused item. Also update navigation to depend on
8852         SelectedIndex rather than FocusedItem, just as .Net does.
8853         Fixes #349174.
8854
8855 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8856
8857         * ListBox.cs: Both FindString and FindStringExact methods must do an
8858         case insensitive search, should allow the last valid index to be
8859         passed in the overload taking an initial index, and should also
8860         continue searching from the top back to the specified index when it
8861         reaches the bottom.
8862
8863 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8864
8865         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
8866         redraw issue, and allows RichTextBox to draw colored text even while
8867         disabled or readonly.
8868
8869 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8870
8871         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
8872         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
8873         and doesn't grey text in a disabled RichTextBox.
8874
8875 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8876
8877         * RichTextBox.cs: Apply patch from Luke Page that adds better support
8878         for many RTF commands: quad alignment, separate formatting for blocks
8879         inside groups, and ParDef support.  Makes the test case from bug #324589
8880         look much better.
8881
8882 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8883
8884         * LineTag.cs: Fix an error in the new Draw method that caused
8885         a crash when rendering the document on bug #324589.
8886
8887 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8888
8889         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
8890         TextControl.cs: Apply patch from Luke Page that adds support
8891         for URL links in RichTextBox.
8892         [Fixes enhancement #342516]
8893
8894 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
8895
8896         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
8897         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
8898
8899 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8900
8901         * ListBox.cs: When a key gets pressed, try to find a string
8902         if the key is a character or a digit.
8903         Fixes #343971.
8904
8905 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
8906
8907         * TableLayoutPanel.cs: Remove some unused variables.
8908
8909 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
8910
8911         * DateTimePicker.cs: Commit patch from Luke Page that ensures
8912         we don't end up at an invalid date when we click the up/down
8913         spinner to change the month or year.  Fixes bug #348682.
8914
8915 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
8916
8917         * Application.cs: Calling Exit in 2.0 should chain to the
8918         Exit (CancelEventArgs) version so it can be cancelled.
8919         * Form.cs: Create a flag to allow raising the Closing
8920         events to be skipped.  We raise them once in Application.Exit
8921         and don't want to raise them again when the Form is actually
8922         closed.  [Fixes bug #349073]
8923
8924 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
8925
8926         * ToolStripDropDown.cs: Guard against an NRE when there
8927         hasn't been a mainform set in the application context.
8928         [Fixes bug #349108]
8929
8930 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8931
8932         * ListBox.cs: When SetBoundsCore gets called, besides
8933         calling UpdateScrollBars, update the value of
8934         last_visible_index, since we could need to show more items
8935         than before, and we need to let the paint routines know that.
8936         Fixes #344445.
8937
8938 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8939
8940         * ListView.cs: Add DesignerSerializationVisibility attribute to
8941         InsertionMark property.
8942         * ListViewItem.cs: Add same attribute to Position property.
8943
8944 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8945
8946         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
8947         is 2.0 only.
8948
8949 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
8950
8951         * ThemeWin32Classic.cs: Don't draw the background on a
8952         flat button if there is a background image.
8953         [Fixes bug #348649]
8954
8955 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8956
8957         * ListBox.cs: If we remove the item currently selected,
8958         remove it not only from SelectedItems, but also
8959         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
8960         the items count decreased and focused_item has bigger value than that.
8961
8962 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
8963
8964         * Control.cs: Perform our layout after we resize ourselves
8965         if we had to adjust our AutoSize.  Missed commit for bug
8966         #346246.
8967
8968 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
8969
8970         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
8971         we can provide an implementation of AutoSize.
8972         [Fixes bug #346246]
8973
8974 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8975
8976         * ListBox.cs: Add the internal overload Sort (bool paint),
8977         to indicate whether we actually need a paint or we will
8978         call Refresh ourselves. This way we don't request a paint
8979         _before_ having an updated and valid layout.
8980         Fixes #347233.
8981
8982 2007-12-12  Andreia Gaita <avidigal@novell.com>
8983
8984         * XPlatUIX11.cs: Send paint messages when updating a systray icon
8985         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
8986         properly invalidated. 
8987         Fixes #324237
8988
8989 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8990
8991         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
8992         don't simply assign it to our internal group field, but instead 
8993         use our Group property, which should do all the neccessary work
8994         required to support groups. Fixes an issue reported to me (mail) by a 
8995         guy using this new feature.
8996
8997 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
8998
8999         * Control.cs: Use Scale instead of ScaleControl to ensure the
9000         whole hierarchy gets scaled.
9001         [Fixes bug #347282]
9002
9003 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9004
9005         * DateTimePicker.cs: Don't set the internal MonthCalendar's
9006         Parent property.  Doing this causes the control to be hosted by
9007         the Form instead of being a popup window.
9008         [Fixes bug #347665]
9009
9010 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9011
9012         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
9013         at an index higher than Count, just use Add instead of Insert.
9014         [Fixes bug #347669]
9015
9016 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9017
9018         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
9019         DrawPictureBox, this is handled by Control.PaintBackground.
9020         [Fixes bug #347276]
9021
9022 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
9023
9024         * MenuAPI.cs: When process menu keys return true by default only if menu is
9025         active. Fixes bug #342892.
9026
9027 2007-12-09  Andreia Gaita <avidigal@novell.com>
9028
9029         * Control.cs: check if windows are actually mapped before
9030         trying to zorder. Fixes #342509, #346955
9031
9032 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9033
9034         * ListView.cs:
9035         * ListViewInsertionMark.cs:
9036         * ThemeWin32Classic.cs: Implement the drawing side of the
9037         new 2.0 ListView.InsertionMark property.
9038
9039 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
9040
9041         * CurrencyManager.cs: Silence some debug spew.
9042
9043 2007-12-07  Geoff Norton  <gnorton@novell.com>
9044         
9045         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
9046         masks for our children as well as siblings to avoid having to query
9047         Quartz for this information.
9048         * XplatUICarbon.cs: Implement a delegate based system to pass
9049         information to System.Drawing.  Implement Async methods.  Remove
9050         the hack for the resize thumb and imlpement a transparent Grow Box.
9051         Rework the messaging system to proplery create window's and messages,
9052         fixes TabControl.
9053
9054 2007-12-06  Andreia Gaita <avidigal@novell.com>
9055
9056         * X11Keyboard.cs: Use Xutf8LookupString to support international 
9057         characters under alternate codepages. Patch from #340878
9058
9059 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9060
9061         * ListView.cs: When doing layout computations, set position in the
9062         ListView instances (we cache the position just as .Net does).
9063         * ListViewItem.cs: New internal setter method for Position. Also set
9064         position field as also available in 1.1, since we are going to use it
9065         now in the common case.
9066
9067 2007-12-06  Andreia Gaita <avidigal@novell.com>
9068
9069         * Control.cs: When removing controls, get the actual container
9070         to notify about active control changes. Fixes 341314.
9071
9072 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9073
9074         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
9075
9076 2007-12-05  Andreia Gaita <avidigal@novell.com>
9077
9078         * Control.cs: When updating the zorder, ignore windows that are not
9079         mapped. Fixes #342509
9080
9081 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9082
9083         * ListViewItem.cs: Actually implement serialization on this class.
9084
9085 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
9086
9087         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
9088         LinkCollection. Spaces to tabs, and removed extra tabs.
9089
9090 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9091
9092         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
9093           tests to fail (hopefully).
9094
9095 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9096
9097         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
9098         the image margin so custom renderers can correctly place it.
9099
9100 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9101
9102         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
9103         so custom renderers can correctly place it.
9104
9105 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9106
9107         * Application.cs: Let WM_CHAR messages flow through to controls
9108         hosted in Strips.  [Fixes bug #343972]
9109
9110 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
9111
9112         * ToolStripManager.cs: Guard against an NRE I ran into.
9113
9114 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
9115
9116         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
9117         a Link is manually added to the Links collection, we need to set
9118         its owner, so it can invalidate properly.
9119         [Fixes bug #344012]
9120
9121 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9122
9123         * ListView.cs: When changing ListViewItem.Position (which calls
9124         ListView.ChangeItemLocation), invalidate not only the area
9125         corresponding to the main item, but also to the area occupied
9126         by the items being moved.
9127
9128 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9129
9130         * ListView.cs: When changing the position of a given item,
9131         don't use item bounds, but item areas (which includes the item spacing
9132         between them). Also, use first/last position if the requested
9133         position is outside bounds (as .Net does). Invalidate the previous and
9134         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
9135         in a specific position, instead of directly accessing Items collection
9136         (this is done to get the right item - remember an Item can have a
9137         different position in the grid than in the Items collection).
9138
9139 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9140
9141         * MessageBox.cs: Calculate text area instead of just top left, this rect 
9142         area will be used in DrawString. Fixes bug #343364.
9143
9144 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9145
9146         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
9147         screen width. Partially fixes bug #343364.
9148
9149 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9150
9151         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
9152         code inside recalculate, it makes code more simple.
9153
9154 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
9155
9156         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
9157         between update or add icon. Fixes bug #324344.
9158
9159 2007-11-21  Andreia Gaita <avidigal@novell.com>
9160
9161         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
9162         window manager, since that stretches the drawing area to include
9163         the window decorations, and they get hidden. Reverts r84444 and fixes
9164         #335849 and #342790 (mdi and pdn3 regression)
9165
9166 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9167
9168         * ListView.cs: When setting focused item, try to give focus to the
9169         previous one _only_ if the previous one remains valid. 
9170         Fixes #342504.
9171
9172 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
9173
9174         * Application.cs: Revert r89650, as it broke a common case to fix
9175         an obscure case.  Fixes bug #342606.
9176
9177 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
9178
9179         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
9180
9181 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
9182
9183         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
9184         alignment. [Fixes #324228]
9185
9186 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
9187
9188         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
9189         [Fixes bug #342123]
9190
9191 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
9192
9193         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
9194         it prevent problems when empty captions. [Fixes #342141]
9195
9196 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
9197
9198         * Label.cs: Use Size instead of None.  Fixes bug #342077.
9199
9200 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9201
9202         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
9203
9204 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
9205
9206         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
9207         but there isn't a MdiContainer.
9208         [Fixes bug #342358]
9209
9210 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
9211
9212         * TextControl.cs: Don't recalculate document if the recalc_start and
9213         recalc_end hasn't changed.
9214         [Fixes bug #342505]
9215
9216 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
9217
9218         * DataGridViewTextBoxCell.cs: Removed CWL.
9219
9220 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9221
9222         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
9223
9224 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
9225
9226         * TextControl.cs: Missed some code for bug 341534 to trigger a
9227         recalculation when the font changes.
9228
9229 2007-11-16  Andreia Gaita <avidigal@novell.com>
9230
9231         * Control.cs: When updating the zorder, check if the child to update is
9232         the same control that is set to always be on top (i.e., scrollbars), and 
9233         just put it on top directly. Fixes BadMatch error on pdn3
9234
9235 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9236
9237         * ListView.cs: Throw the needed exceptions for FindNearestItem.
9238
9239 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
9240
9241         * Control.cs: Don't perform a new layout when a label changes its text,
9242         cause label handles its own autosizing.
9243         [Fixes bug #342077]
9244
9245 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9246
9247         * ListView.cs: Implement 2.0 FindNearestItem methods.
9248
9249 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
9250
9251         * ToolStripPanel.cs: Make Join at least add the control to the panel,
9252         even if the rest of what Join does isn't supported.  Add some more
9253         support for vertical toolbars.
9254         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
9255         [Fixes the application breaking parts of bug #341998]
9256
9257 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
9258
9259         * ToolStripItem.cs: When determining if we have a check/image margin,
9260         we need to look at ShowCheckMargin as well as ShowImageMargin.
9261
9262 2007-11-15  Geoff Norton  <gnorton@novell.com>
9263
9264         * XplatUIOSX.cs: Rename to...
9265         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
9266         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
9267
9268 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
9269
9270         * KeysConverter.cs: The default values should be an array of Keys, not
9271         strings.  Also, the array has more values for 2.0.
9272         [Fixes bug #341851]
9273
9274 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9275
9276         * Application.cs: Change ExecutablePath to use 
9277         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
9278         [Fixes bug #323552]
9279
9280 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9281
9282         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
9283         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
9284         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
9285         be ignored.  Create a new GetLineEnding that can specify which types of
9286         line endings to look for.  On Insert, only create new lines for \n and \r\n.
9287         [Fixes bug #324274]
9288
9289 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9290
9291         * TextBoxBase.cs: As we loop through each line changing the font, tell
9292         the document that the line needs to be recalculated.  Fixes bug #341534.
9293
9294 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
9295         [Another round of refactoring]
9296         * Line.cs: Add DeleteCharacters.
9297         * LineTag.cs: Add Delete.
9298         * TextBoxBase.cs: Update to use new methods.
9299         * TextControl.cs: Refactor the Delete* methods.
9300
9301 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
9302
9303         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
9304         the patch. [Fixes #324856]
9305
9306 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9307
9308         * ListView.cs:
9309         * ListViewItem.cs: Add an initial implementation of
9310         2.0 ListViewItem.Position getter.
9311
9312 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9313
9314         * ListView.cs: Add a reordered_items_indices array, to allow us
9315         to have a different sorting than that of Items (the sorting in Items
9316         could not match the actual sorting in screen). This is needed to
9317         implement a pair of 2.0 features.
9318         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
9319         actual position in the ListView grid, since it could have a position
9320         different than its Index (position in ListViewItemCollection). 
9321
9322 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
9323
9324         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
9325         not draw partial lines.
9326         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
9327         LineLimit flag from the base is preserved.
9328         Fixes the windows part of bug #338965.
9329
9330 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
9331
9332         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
9333         so that it can be canceled in KeyPress.
9334         Fixes bug #340078.
9335
9336 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9337
9338         * ListView.cs: In ItemControl, reset mouse-handling related
9339         fields even if we dont' have items (we still should reset them when
9340         we had items but then called Items.Clear). Partially based in a patch
9341         by George Giolfan.
9342         Fixes #338399.
9343
9344 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
9345
9346         * Application.cs: In ProductVersion first try AssemblyFileVersion
9347         before falling back to assembly version. Fixes bug #339787.
9348
9349 2007-11-08  Andreia Gaita <avidigal@novell.com>
9350
9351         * HtmlElement.cs: Implement InnerText setter.
9352         * WebBrowserBase.cs: Implement Navigated event support.
9353         Add flag to track when the browser "document" is ready to be retrieved.
9354         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
9355         Make sure browser document is ready before retrieving it.
9356         Clean up cached objects (document) when moving to a new page through
9357         any of the navigation methods.
9358         Use the new Mono.WebBrowser.INavigation interface to control navigation.
9359         Implement OnNavigated event.
9360
9361 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
9362
9363         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
9364         DrawLinkLabel, this is handled by OnPaintBackground.
9365         Fixes bug #339565, part II.
9366
9367 2007-11-07  Andreia Gaita <avidigal@novell.com>
9368
9369         * Control.cs: Revert r88915. Selecting text on a textbox depends on
9370         getting a Select call on click, so this call needs to be here for now.
9371         Unfixes #325809
9372
9373 2007-11-07  Geoff Norton  <gnorton@novell.com>
9374
9375         * OSXStructs.cs: Add the kEventClassApplication constants.
9376         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
9377         application is deactivated otherwise Menu overlays linger on top of
9378         other application windows.
9379
9380 2007-11-07  Geoff Norton  <gnorton@novell.com>
9381
9382         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
9383         dont support cursors yet anyways.  This allows Reflector to run.
9384
9385 2007-11-07  Geoff Norton  <gnorton@novell.com>
9386
9387         * XplatUIOSX.cs: Implement DragSize.
9388
9389 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9390
9391         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
9392         ItemControl, request the focus, as .Net does. This is needed after 
9393         Control does not request focus anymore when it receives a
9394         WM_LBUTTONDOWN.
9395
9396 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
9397
9398         * Label.cs: Make DrawImage internal so it can be called from Theme code.
9399         Remove the DrawImage call from OnPaint.
9400         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
9401         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
9402         but before we draw the text for DrawLabel and DrawLinkLabel.
9403         Fixes bug #339565.
9404
9405 2007-11-05  Andreia Gaita <avidigal@novell.com>
9406
9407         * Control.cs: Remove select call on click. Fixes #325809
9408
9409 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9410
9411         * ListViewItem.cs: Add 2.0 Position property getter.
9412
9413 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9414
9415         * ListView.cs: Add 2.0 BackgroundImageTiled property.
9416         Also, to make it work properly, change item's BackColor and
9417         BackgroundImageLayout as needed.
9418         * ThemeWin32Classic.cs: Don't fill any background rectangle 
9419         in ListView.ItemControl when drawing items; just let the Control
9420         base implementation fill it.
9421
9422 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9423
9424         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
9425         as well as adding a custom 'dummy' Converter, as .net does.
9426
9427 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9428
9429         * PropertyGridView.cs: When clicking drop-down button,
9430         select an index in the listbox only if our standard values collection 
9431         has one or more items.
9432
9433 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9434
9435         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
9436         property.
9437
9438 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9439
9440         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
9441         the value is not changed. This ensure a pushed button remains in that
9442         state when clicked again. When switching the value of PropertySort
9443         between Categorized and CategorizedAlphabetical, do not update the
9444         grid items and do not fire a PropertyChangedEvent. When clicking the
9445         sorting buttons, do not modify the PropertySort value when switching
9446         between Categorized and CategorizedAlphabetical but only update the
9447         button state.
9448
9449 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9450
9451         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
9452         formatting.
9453         * PropertyGrid.cs: Also put Categorized button in pushed state when
9454         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
9455         for help description label.
9456
9457 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9458
9459         * ListView.cs: When calculating the biggest item for a given column,
9460         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
9461         the item's width.
9462
9463 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
9464
9465         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
9466         value for PropertySort on 1.0 profile. PropertySortChanged event
9467         should only be fired on 2.0 profile. Fixed NullReferenceException
9468         in UpdateSortLayout when PropertyGrid contains no items.
9469
9470 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
9471
9472         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
9473         [Fixes bug #338554]
9474
9475 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9476
9477         * ListViewItem.cs: Implement 2.0 IndentCount property.
9478
9479 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9480
9481         * X11Dnd.cs: When sending status in a dnd operation, compare current
9482         effect with the 'allowed' field instead of 'drag_data.Allowed', since
9483         the later is only created when a Winforms application is both the
9484         source and the target, but not when we are the target only.
9485         Fixes part of #324251.
9486
9487 2007-11-01  Geoff Norton  <gnorton@novell.com>
9488
9489         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
9490         order of Z-Order.
9491         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
9492         children out of the drawing view on mac.
9493         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
9494         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
9495         
9496 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
9497
9498         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
9499         on the non-hosted-control part of it shouldn't do anything.
9500         Fixes part of bug #327498.
9501
9502 2007-11-01  Andreia Gaita <avidigal@novell.com>
9503
9504         * WebBrowserBase.cs: revert previous change, resize can be called anytime
9505
9506 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
9507
9508         * Application.cs: When a toolstrip has the keyboard input loop, let messages
9509         it does not use flow through to controls that are hosted in menus.
9510         Same with mouse clicks.
9511         * Form.cs: Don't close all menus on click if the click is on a
9512         control hosted in a menu.
9513         Fixes part of bug #327498, and part of bug #325969.
9514
9515 2007-10-31  Andreia Gaita <avidigal@novell.com>
9516
9517         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
9518
9519 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
9520
9521         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
9522         Addresses an issue raised in bug #336218.
9523
9524 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
9525
9526         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
9527         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
9528
9529 2007-10-30  Andreia Gaita <avidigal@novell.com>
9530
9531         * ContainerControl.cs: Check if the active control is a
9532         child of a removed control and update active_control accordingly.
9533         Fixes #329718
9534
9535 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9536
9537         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
9538         or the MaxDate.  Fixed bug #337693.
9539
9540 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9541
9542         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
9543         after calling SetWindowLong for a form, to force an immediate NC refresh.
9544         Fixes first part of bug #325150.
9545
9546 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9547
9548         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
9549         simple.  Fixes the last part of bug #322668.
9550
9551 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9552
9553         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
9554         needs to be TopMost as well, or else the MessageBox is under the form.
9555         Patch by George fixes bug #325300.
9556
9557 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9558
9559         * X11Dnd.cs: When starting a new drag operation, reset the static
9560         'dropped' field to false (previously the implementation didn't reset
9561         it and got confused after the first drag).
9562         Fixes #325071.
9563
9564 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9565
9566         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
9567         items instead of re-creating them all. For this purpose we now cache
9568         both CategoryGridEntry items and the GridEntries for the main object's
9569         properties.
9570         * GridItem.cs: Make SetParent method abstract.
9571         * GridEntry.cs: Override the SetParent method (already there, but now
9572         we override it).
9573         Fixes #324866.
9574
9575 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9576
9577         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
9578         depending on its depth (as .Net does). Update the needed values in
9579         MouseDown handler. Also draw the plus/minus rect after the label,
9580         so we don't draw on top of it.
9581
9582 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
9583
9584         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
9585         processed by forms or controls when menu is active. [Fixes #333548]
9586
9587 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9588
9589         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
9590         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
9591         focus on mouse over.
9592
9593 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9594
9595         * TextControl.cs: Code cleaning, simplifying.
9596
9597 2007-10-24  Geoff Norton  <gnorton@novell.com>
9598
9599         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
9600         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
9601
9602 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9603
9604         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
9605         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
9606
9607 2007-10-24  Andreia Gaita <avidigal@novell.com>
9608
9609         * SendKeys.cs: apply jpobst's patch to bug #332409
9610
9611 2007-10-23  Andreia Gaita <avidigal@novell.com>
9612
9613         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
9614         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
9615         for some reason
9616
9617 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9618
9619         * PropertyGridView.cs: If a property has an UIEditor available,
9620         make the drop-down/editor button available only if the property
9621         is _not_ read only.
9622
9623 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9624
9625         * PropertyGridView.cs: Don't make the grid item textbox 
9626         editable when a drop-down control is available, but 
9627         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
9628         true. The same bur the color of the grid item value's label.
9629
9630 2007-10-22  Geoff Norton  <gnorton@novell.com>
9631
9632         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
9633         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
9634         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
9635         driver.  Padd the bottom of all real windows so the resize thumb doesn't
9636         obscure scroll/status bars.
9637
9638 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
9639
9640         * WindowsFormsSection.cs: Implement.
9641
9642 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9643
9644         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
9645         closed see #325434 patch.
9646
9647 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9648
9649         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
9650         see #325434 patch.
9651
9652 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9653
9654         * PropertyGridView.cs: When showing the textbox for a grid item,
9655         have two local variables to store the read-only and non-editable
9656         status of a grid item (we were previously using just one variable
9657         to do this, when actually they are slightly different).
9658         Fixes part of #325023.
9659
9660 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9661
9662         * PropertyGridView.cs: When showing a drop-down list, try to get the
9663         values using TypeConverter.ConvertTo (to convert to a string). Fixes
9664         part of #325023.
9665
9666 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9667
9668         * PropertyGrid.cs: When updating a property and populating sub grid
9669         items, remove the previous ones, and invalidate the specific area.
9670         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
9671         area behind a grid item.
9672         * GridItemCollection.cs: Add an internal Clear method, to allow us to
9673         clean the items if needed (specially for controls implementing 
9674         ICustomTypeDescriptor and returning a variable number of properties).
9675         Fixes #324865.
9676
9677 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
9678
9679         * TextControl.cs: Clean up and document the Insert function.
9680
9681 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9682
9683         * TextControl.cs: Make sure we know our start point for updating the view
9684         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
9685         update the view.
9686
9687 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9688
9689         * ListView: Couple of corcompare fixes.
9690
9691 2007-10-17  Geoff Norton  <gnorton@novell.com>
9692
9693         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
9694         the title caption of real window.
9695
9696 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9697
9698         * ErrorProvider.cs: Add the error provider's internal window to a 
9699         containercontrol when the parent changes.  [Fixes bug #329714]
9700
9701 2007-10-17  Geoff Norton  <gnorton@novell.com>
9702
9703         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
9704         When we make a new window; restore the old active window - fixes dialogs.
9705
9706 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9707
9708         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
9709         when modifying a property, and if found then invalidate as
9710         requested.
9711         Fixes part of #324865.
9712
9713 2007-10-17  Geoff Norton  <gnorton@novell.com>
9714
9715         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
9716         highly experimental.  Fixed coordinate translation.  Fixed window locations.
9717         Initial support for clipping. Implemented NC areas and menus.  Support for
9718         launching from command line from Will Johansson (wjohansson@atacomm.com).
9719         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
9720         wjohansson@atacomm.com)
9721         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
9722         Hwnds now track the existence of all of their children for Mac clipping.
9723     * XplatUI.cs: Re-enabled the native driver on the Mac.
9724
9725 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9726
9727         * Line.cs: Move the InsertString function to here.
9728         * TextControl.cs: Cleanup some duplicate code, move some InsertString
9729         functionality to Line.
9730
9731 2007-10-17  Geoff Norton  <gnorton@novell.com>
9732
9733         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
9734
9735 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
9736
9737         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
9738         always setting value to true.
9739         * Form.cs: When changing AcceptButton, notify new and original button.
9740
9741 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
9742
9743         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
9744         a custom control that implements IButtonControl instead of an actual
9745         button.  [Fixes bug #334244]
9746
9747 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
9748
9749         * Form.cs: Change SelectActiveControl to internal, we need to call it in
9750         MdiWindowManager.
9751         
9752         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
9753         active control when activate a new mdi window.
9754         
9755         [Fixes bug #330495]
9756
9757 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
9758
9759         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
9760         is already added.
9761         [Fixes bug #333617]
9762
9763 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9764
9765         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
9766         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
9767         so we always recalculate the whole document instead of just the new part.
9768         [Fixes bug #325082]
9769
9770 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9771
9772         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
9773         when the mouse was to the left of the first character in the line.
9774
9775 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9776
9777         * TextBox.cs, TextBoxBase.cs: When setting the document's password
9778         character, use the property instead of the variable so that the
9779         UseSystemPasswordChar property is taken into account.
9780         [Fixes bug #333748]
9781
9782 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9783
9784         * FolderBrowserDialog.cs: When a node is right clicked and the "New
9785         folder" contex menu appears, actually add the new folder to it, even
9786         if the node is not currently selected. Still use SelectedNode in case 
9787         there wasn't found a node under the pointer.
9788         Fixes #325452.
9789
9790 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9791
9792         * ListViewItem.cs: When retrieving the focused state, the index check
9793         should be done only when ListView is in virtualmode, as it is an
9794         expensive check for normal mode.
9795
9796 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9797
9798         * ListViewItem.cs: Make the focus state information be stored
9799         in the ListView, not in the items. This is done to match the MS
9800         behaviour for items that are not yet part of a ListView control;
9801         besides that, since just one item can be focused at the same time,
9802         we save a little space in our items.
9803         Fixes part of #331643.
9804
9805 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9806
9807         * ComboBox.cs: When focus is lost, deselect the text. When setting
9808         text of control, select all text. Do not hide selection when control
9809         does not have focus. Fixes bug #333663.
9810
9811 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9812
9813         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
9814         instead of ArgumentException when SelectionLength is set to negative
9815         value. Added same check to SelectionStart. Code formatting.
9816
9817 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9818
9819         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
9820         or SelectionStart. Code formatting.
9821
9822 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9823
9824         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
9825         indicating that there was not a previous drag-and-drop operation going
9826         on.
9827         Fixes part of #325071.
9828
9829 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9830
9831         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
9832         AllowedEffect, don't let the drop operation happen. 
9833         Fixes #32580.
9834
9835 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9836
9837         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
9838
9839 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9840
9841         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
9842         is called.
9843
9844 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9845
9846         * Line.cs: Add a method that finds the tag that contains an x-coord.
9847         * LineTag.cs: Add a method that finds the character at an x-coord using
9848         a binary search, the old way was a linear search.
9849         * TextControl.cs: Change FindCursor to use the above new methods.
9850
9851 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9852
9853         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
9854         value different than AllowedEffect). This should be possible to
9855         indicate that dragging is not possible in some control/area.
9856
9857 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
9858
9859         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
9860         descent internally when font changes instead of outside code being responsible
9861         for setting it.
9862         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
9863         instead of accessing internal variables.
9864
9865 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
9866
9867         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
9868         remove special treatment for ArrangeIcons since it is already arranged.
9869
9870 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9871
9872         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
9873         the Win32 backend uses Color.
9874         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
9875         Refactor to store a Color instead of a Brush for Color.
9876
9877 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9878
9879         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
9880         away.  I didn't realize I needed this when I refactored these earlier.
9881
9882 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9883
9884         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
9885         store a Color structure and use the ResPool for back color instead of
9886         holding onto brushes.
9887
9888 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9889
9890         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
9891         [Fixes bug #325592]
9892
9893 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9894
9895         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
9896         to recalculate its size.  Fixes a part of bug #331052.
9897
9898 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9899
9900         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
9901         button.  Fixes a part of bug #331052.
9902
9903 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9904
9905         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
9906         the CreateParams.
9907         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
9908         decorations.
9909         [Fixes bug #330986]
9910
9911 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9912
9913         * TextBoxTextRenderer.cs: Don't make this a static class, as static
9914         doesn't exist in 1.1.  (Thanks jb!)
9915
9916 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9917
9918         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
9919         class to allow us to use different backends on different platforms.
9920         Linux uses the current [Draw|Measure]String backend.  Windows uses
9921         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
9922         of GDI+.  This leads to better looking text and more accurate measurements
9923         on Windows, fixing many of the reported issues.
9924         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
9925
9926 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9927
9928         * FolderBrowserDialog.cs: When running on Windows,
9929         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
9930         since we must match both "C:" and "C:\" forms. A little hackish, but
9931         works.
9932         Fixes #325247.
9933
9934 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9935
9936         * ListView.cs: When calling EndEdit (after editing an item),
9937         create a new instance of LabelEditEventArgs to keep clean the fields
9938         in case we get a new call to BeginEdit; also do Application.DoEvents
9939         to have focus in synch. This is a fix similar to TreeView's #325244.
9940
9941 2007-10-07  Andreia Gaita <avidigal@novell.com>
9942
9943         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
9944         * WebBrowserBase.cs: Added dialog support, calling the
9945           WebBrowserDialogs classes for each specific dialog type.
9946
9947 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9948
9949         * ListView.cs: When the last item is focused and is removed,
9950         move the focus to the previous item (in Items order). This is what MS
9951         does.
9952         Fixes #330415.
9953
9954 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9955
9956         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
9957         instead of the opposite (RemoveAt call Remove). This is a better
9958         approach since we don't need to to a pair of traversals when using
9959         RemoveAt.
9960
9961 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9962
9963         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
9964         check that the node actually has nodes, and if not, move to the
9965         parent node instead. 
9966         Fixes #325265.
9967
9968 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9969
9970         * TreeView.cs: Move the previous change to the general case (to
9971         call Application.DoEvents in cases where the method was called by
9972         different places).
9973
9974 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9975
9976         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
9977         call Application.DoEvents. This is neccessary when we get a call to
9978         BeginEdit from an AfterLabelEdit handler, because the focus always
9979         goes to the TreeView, even if we try to give it to our
9980         LabelEditTextBox. The call do Application.DoEvents seems to
9981         synchronize the focus, basically.
9982         Fixes #325244.
9983
9984 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9985
9986         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
9987         should be false. This also removes some nasty recursive paths. Fixes
9988         part of #325244.
9989
9990 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
9991
9992         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
9993         state to normal. Also resize window when cascading. Fixes #325433. 
9994
9995 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
9996
9997         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
9998         DefaultForeColor, as drawing empty colored lines isn't very useful.
9999         [Fixes the not drawn lines part of bug #324358]
10000
10001 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
10002
10003         * TextControl.cs: Move Line and LineTag classes into separate files to
10004         make things easier to find.
10005         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
10006         * RichTextBox.cs: Capitalize LineTag.Length property access.
10007         - This is purely an organizational/formatting change, no logic changed. -
10008
10009 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10010
10011         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
10012         text is empty.
10013
10014 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10015
10016         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
10017         text is empty.
10018
10019 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10020
10021         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
10022         prevent calling of OnBackColorChanged. Fixes #325321.
10023
10024 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10025
10026         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
10027         because control can be disabled because owner is disabled.
10028
10029 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10030
10031         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
10032         string.Empty, test failed from previous change.
10033
10034 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10035
10036         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
10037         is null, not String.Empty.  See bug #323038.
10038
10039 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
10040
10041         * TextControl.cs: Change the margins to match MS a little better.
10042         Still not perfect for X11 due to some DrawString differences, but
10043         is still an improvement over the old stuff.
10044         Partially fixes #324467.
10045
10046 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10047
10048         * FolderBrowserDialog.cs: When using MyComputer as 
10049         RootFolder, let absolute paths be considered as valid ones. Also, use
10050         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
10051         for Windows compatibility.
10052         Partially fixes #325247.
10053
10054 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10055
10056         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
10057         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
10058         method, since it causes the dialog to not select folders directly
10059         under the root path (when setting SelectedPath property).
10060
10061 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10062
10063         * TreeNode.cs: When calling Expand/Collapse and need to call 
10064         ExpandBelow/CollapseBelow respectively, take into account
10065         partially visible nodes (previously Expanding/Collapsing
10066         a partially visible node in the bottom was not updating its +- sign).
10067
10068 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10069
10070         * TreeView.cs: When calling Expand on a TreeNode, and we need to
10071         expand nodes below (ExpandBelow), scroll the entire Viewport
10072         area if the node is above it and not visible (instead of scrolling
10073         the area from node's Bottom, which applies only when the node is
10074         visible).
10075         Fixes #325266.
10076
10077 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10078
10079         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
10080         node in the bottom area (as .Net does). This is done to preserve the
10081         scroll position when ExpandAll is called before handle is created for
10082         the 1.1 profile (bottom area, as opposed to top area in 2.0).
10083         Fixes #324103.
10084
10085 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10086
10087         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
10088         bottom area if we are in fact not using the vertical scroll bar.
10089         Fixes #324824.
10090
10091 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
10092
10093         * Control.cs: Comment out a double buffering optimization that doesn't
10094         take into account invalidates created in OnPaint, causing the control
10095         to never be redrawn.  It would take quite a bit of work to work around
10096         this, but I left it commented with an explanation for later possible
10097         optimization.
10098         [Fixes bug #328681]
10099
10100 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
10101
10102         * Control.cs: Ask parent to perform a layout if control is AutoSize and
10103         the text changes.
10104         * RadioButton.cs: Implement GetPreferredSizeCore.
10105         [Fixes bug #328672]
10106
10107 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
10108
10109         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
10110         corcompare stuffs.
10111
10112 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
10113
10114         * Application.cs: Move the sync context stuff to Run instead of RunLoop
10115         so that it doesn't get uninstalled on modal forms.
10116         * Control.cs: Install a sync context when a control is created.
10117         * WindowsFormsSyncronizationContext.cs: Create a private static control
10118         to invoke on.  This is easier than trying to find a created control we
10119         can use.
10120         [Fixes bug #327608]
10121
10122 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
10123
10124         * Application.cs: Install a WindowsFormsSynchronizationContext in the
10125         run loop, and uninstall it when done.
10126         * WindowsFormsSynchronizationContext.cs: Implement.
10127         [Fixes the common case in bug #327608]
10128
10129 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
10130
10131         * DataGridViewCellCollection.cs: Added argument checks for indexers.
10132         Use case-insensitive lookup of column name in indexer. Code
10133         formatting.
10134
10135 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10136
10137         * TreeNode.cs: When collapsing or expanding a node, check whether its
10138         change will affect the visible area (we were previously doing a
10139         IsVisible check, but that check is not enough since children nodes
10140         could be still visible). Fixes part of #325266.
10141
10142 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
10143
10144         * TreeView.cs: Always select the first node when the TreeView gets
10145         focus if there is no currently selected node.
10146         [Fixes bug #324279]
10147
10148 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
10149
10150         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
10151         node being selected is null.
10152         [Patch from Yves Bastide fixes bug #326858]
10153
10154 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10155
10156         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
10157         whether all the parent nodes are expanded.
10158         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
10159         call RecalculateVisibleOrder if all previous nodes are expanded.
10160         Before that we were doing a IsVisible check, but sometimes the node
10161         is not in the visible area, but _should_already be ready, because of
10162         all previous nodes are expanded. Fixes #325259.
10163
10164 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10165
10166         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
10167         portion of the item is clicked.
10168
10169 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10170
10171         * TextControl.cs: Do not tell the system to move the cursor if the
10172         textbox isn't focused.  Fixes part of bug #322668.
10173
10174 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10175
10176         * ComboBox.cs: When there are no items, do not show the dropdown if
10177         the down arrow is clicked.  Fixes part of bug #322668.
10178
10179 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10180
10181         * ToolStripComboBox.cs: Manually set the size of this control in the
10182         constructor, as it doesn't seem to be the same as DefaultSize.
10183         Fixes a failing monobuild test.
10184
10185 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
10186
10187         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
10188         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
10189
10190 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
10191
10192         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
10193         Desktop.  This lets it work for people who have moved their desktops
10194         from the default location on windows.  For people who have not, both
10195         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
10196
10197 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10198
10199         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
10200         but when the base constructor sets this, the control is null.  Set it
10201         again in the constructor.  Fixes a failing monobuild test.
10202
10203 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10204
10205         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
10206         get called.
10207         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
10208         called.
10209
10210 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10211
10212         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
10213         will handle it themselves.
10214         * ToolStripItem.cs: When deciding what the text of a tooltip should
10215         be, use the Text property instead of the text field.
10216         * ToolStripTextBox.cs: Handle tooltips.
10217         [Fixes bugs #325417 and #325973]
10218
10219 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10220
10221         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
10222         left click.  Fixes the easy part of bug #325969.
10223
10224 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10225
10226         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
10227         bug #325406, but set a minimum for StatusStrip to 22 to keep
10228         bug #325390 fixed.  I think this minimum would have been figured
10229         up automatically if the grip was actually a ToolStripItem, but it
10230         currently is not.
10231
10232 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10233
10234         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
10235         as this is apparently the actual value used by .Net. Also apply
10236         ItemPadding in Details view only, and decrease the general width padding,
10237         to have only the needed. This should fix #324340 in Windows too.
10238
10239 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10240
10241         * ListViewItem.cs: Don't Invalidate item if parent is inside
10242         a BeginUpdate/EndUpdate block. This prevents to have differences
10243         between the ListView and items state, as well as avoid some exceptions
10244         there.
10245         * ListView.cs: Make 'updating' field internal.
10246
10247 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10248
10249         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
10250         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
10251         size if appropriate.
10252         Fixes reopened bug #325414.
10253
10254 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10255
10256         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
10257         * ToolStripItem.cs: Invalidate before and after our new autosize when
10258         text changes.
10259         Fixes reopened bug #325390.
10260
10261 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10262
10263         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
10264         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
10265         #325044.
10266
10267 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10268
10269         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
10270
10271 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10272
10273         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
10274         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
10275         #82734.
10276
10277 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
10278
10279         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
10280         item to select when the ToolStrip is selected.
10281         * ToolStripControlHost: Realign the control when the bounds or visibility
10282         change.
10283         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
10284         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
10285         preferred height.
10286         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
10287         base.OnPaint.  Was causing text not to be drawn.
10288
10289 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
10290
10291         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
10292
10293 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10294
10295         * TreeView.cs: When creating the label edit text box,
10296         set is initially to Visible = false. This is done to
10297         prevent a confusion in the layout which makes it to lose
10298         focus when shown the first time. Fixes part of #82592.
10299
10300 2007-09-13 Andreia Gaita <avidigal@novell.com>
10301
10302         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
10303
10304 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10305
10306         * ToolStrip.cs: Take Margin into account when calculating preferred
10307         size.  Also, allow preferred size to get smaller than the explicit
10308         size.
10309         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
10310         First step towards fixing bug #82747.
10311
10312 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10313
10314         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
10315         full row select background over the plus/minus glyph.  Also, turn
10316         off the focus rectangle for full row select since MS doesn't seem
10317         to ever paint it.  [Fixes bug #81839]
10318
10319 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10320
10321         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
10322         This was causing keyboard opened dropdowns to lose focus.
10323         [Fixes bug #82803]
10324
10325 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10326
10327         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
10328         ClientRectangle instead.  [Fixes bug #82838]
10329
10330 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10331
10332         * SplitContainer.cs: We can't reset Visible on every layout because
10333         someone may have set Visible = false explicitly on a SplitterPanel.
10334         Make sure when we switch orientation the SplitterDistance does not
10335         change.  Fixes two failing tests.
10336
10337 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10338
10339         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
10340         TextRenderer, since the latter is only available in 2.0.
10341
10342 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
10343
10344         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
10345         * SplitContainer.cs: Implement FixedPanel layouting.
10346
10347 2007-09-12  Andreia Gaita  <avidigal@novell.com>
10348
10349         * WebBrowserBase.cs: setup shutdown routine
10350
10351 2007-09-12  Andreia Gaita  <avidigal@novell.com>
10352
10353         * Application.cs: Let keyboard events that are targetted 
10354                 to non-mwf windows hosted inside mwf (as in, webbrowser),
10355                 propagate properly. Fixes keyboard handling on the webbrowser.
10356
10357 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10358
10359         * ListView.cs: When handling MouseUp event and we are 
10360         highligting a node with the mouse right button, don't trigger
10361         Before/AfterSelecting event, since we are not actually selecting
10362         the node.
10363
10364 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10365
10366         * TreeView.cs: When editing a node, modify the edit text box
10367         depending on the text length (as you are typing), like MS does.
10368
10369 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
10370
10371         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
10372         Override GetPreferredSizeCore to perform calculations.  Remove custom
10373         autosize logic.  [Fixes bug #82739]
10374
10375 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
10376
10377         * TextBoxBase.cs: Modified should default to false.
10378
10379 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10380
10381         * Control.cs: Update the anchoring distances even when layout is supspended.
10382         Patch provided by George fixes bug #82805.
10383
10384 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10385
10386         * Control.cs: Provide a setter for ExplicitHeight.
10387         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
10388         remove the hacks in here for requested_height.
10389         [Fixes bug #82749]
10390
10391 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10392
10393         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
10394         Maximum to lower that its current Value caused an ArgumentException by setting
10395         the Value to the new Maximum.
10396
10397 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10398
10399         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
10400         handle moves to the closest tick when it is being dragged.
10401         [Fixes bug #82751]
10402
10403 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10404
10405         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
10406         can't let them count as real items when calculating where to merge in the
10407         user's items.  [Fixed bug #82786]
10408
10409 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10410
10411         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
10412         who want to add a menu item directly onto a toolstrip.
10413         [Fixes bug #82775, part II]
10414
10415 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10416
10417         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
10418         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
10419         don't set it to available.
10420         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
10421         [Fixes bug #82727, part II]
10422
10423 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10424
10425         * StatusStrip.cs: Change item placement to None if not visible.
10426         * ToolStripItem.cs: Invalidate when InternalVisible changes.
10427         These should have been committed to fix 82723, but I missed them.
10428
10429 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10430
10431         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
10432         Click, and that it is only called once.
10433         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
10434         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
10435         dropped down.
10436         [Fixes bug #82775]
10437
10438 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10439
10440         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
10441         to match .Net.
10442         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
10443         instead of 8, just like above. Partially fixes #82734.
10444
10445 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10446
10447         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
10448         fixes #82734.
10449
10450         * ListView.cs: Remove extra space between rows in Details view (match
10451         .Net). 
10452         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
10453         the DefaultFont.
10454
10455 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
10456
10457         * Application.cs: Modified ProductVersion to return value of
10458         AssemblyInformationVersion if available, and fallback to assembly
10459         version. Fixes bug #82746. Code formatting.
10460         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
10461         instead.
10462
10463 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10464
10465         * Control.cs: When updating ZOrder for a child control,
10466         take into account the implicit ones (we need it in our controls
10467         using them). Fixes #82642.
10468
10469 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
10470
10471         * ToolStripItem.cs: Add support for animated images.
10472         [Fixes bug #82726]
10473
10474 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
10475
10476         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
10477         visible.  [Fixes bug #82727]
10478
10479 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10480
10481         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
10482         so we repaint using the new size.  [Fixes bug #82723]
10483
10484 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10485
10486         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
10487         option.  [Fixes bug #81779]
10488
10489 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10490
10491         * TreeView.cs: Override HandleClick because the StandardClick style is
10492         set to false.  According to MSDN (and testing), the click events should
10493         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
10494
10495 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10496
10497         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
10498         the border will disappear.  Fixes reopened #82653.
10499
10500 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10501
10502         * Control.cs: If the control is autosize, and its preferred size changes
10503         when it lays out its children, tell its parent so it can be re-layed out.
10504         Fixing some of the fallout from r85433.
10505
10506 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10507
10508         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
10509         and CheckBox share some code.
10510
10511 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10512
10513         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
10514         the TrackBar, not every mouse move.  [Fixed bug #82718]
10515
10516 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10517
10518         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
10519         under 2.0 rendering.  [Fixes bug #82657]
10520
10521 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10522
10523         * TreeView.cs: If we found a TreeNode to display a context menu, but
10524         it doesn't have one to show, let the TreeView display its menu
10525         instead.  [Fixes bug #82680]
10526
10527 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10528
10529         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
10530         OnPaintInternal instead.  Give the internal TextBox a Border property
10531         so it can draw itself more correctly.  [Fixes bug #82653]
10532
10533 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
10534
10535         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
10536
10537 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10538
10539         * ComboBox.cs: Adjust combobox button state to reflect current state when
10540         back to enabled = true. Fixes first issue of #82654.
10541
10542 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10543
10544         * Control.cs: Fix last patch regression, prevent forms to update zorder when
10545         setting visible property.
10546
10547 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10548
10549         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
10550         fix zorder for controls initially created as non visible. Fixes #82667.
10551
10552 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
10553
10554         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
10555         mimic win32 look. Fixes #82656.
10556
10557 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
10558
10559         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
10560         Stubs for new net 3.5 classes.
10561
10562 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10563
10564         * ListViewItem.cs: In ListViewItemCollection operations calculate
10565         Layout for owner as well as invalidate it. Fixes part of #82642.
10566
10567 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
10568
10569         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
10570         when returning Enabled.  [Fixes bug #82651]
10571
10572 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
10573
10574         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
10575
10576 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10577
10578         * ListView.cs: Put item padding info in a single place
10579         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
10580         columns again.
10581         * ThemeWin32Classic.cs:
10582         * Theme.cs: Likewise.
10583
10584 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10585
10586         * ListView.cs: When a ListViewSubItem instance is invalidated,
10587         invoke Invalidate on parent ListViewItem, not parent ListView.
10588         Fixes #81570.
10589
10590 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10591
10592         * ListView.cs, ListViewItem.cs: corcompare stuffs.
10593
10594 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10595
10596         * BindingMemberInfo.cs: Implement == and != operators.
10597
10598 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10599
10600         * HtmlElementEventArgs.cs: Implement properties.
10601
10602 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10603
10604         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
10605
10606 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10607
10608         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
10609         Add (string,string,string) to implement the imagekey.  It turns out, we
10610         use the requested imagekey whereas .Net does not.  So I broke ours to match
10611         theirs.  :(
10612
10613 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10614
10615         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
10616
10617 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10618
10619         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
10620
10621 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
10622
10623         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
10624         up-to-date. Fixes bug #82618.
10625
10626 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
10627
10628         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
10629         reflect document changes. Fixes #82367.
10630
10631 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10632
10633         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
10634         as well as add new ones. This should make work the BackgroundImage
10635         property for ListView again.
10636
10637 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10638
10639         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
10640         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
10641         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
10642
10643 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10644
10645         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
10646         IsKeyLocked.
10647
10648 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10649
10650         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
10651         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
10652
10653 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10654
10655         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
10656         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
10657
10658 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10659
10660         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
10661
10662 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10663
10664         * GridEntry.cs: Implement GetService.
10665
10666 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
10667
10668         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
10669         for label editting, make sure we focus back on the TreeView.
10670         [Fixes bug #82590]
10671
10672 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10673
10674         * ListView.cs: Add some 2.0 overrides.
10675
10676 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10677
10678         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
10679         because getter dont returns right value before handle creation. Thanks 
10680         to George. Fixes #82569.  
10681
10682 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10683
10684         * Theme.cs: Revert last patch, it causes error under win32. 
10685
10686 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10687
10688         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
10689         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
10690         logical Desktop rather than the physical file system location. Fixes #82603. 
10691
10692 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
10693
10694         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
10695         for the patch. Fixes #82568.
10696
10697 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10698
10699         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
10700         methods.
10701
10702 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10703
10704         * ListViewInsertionMark.cs: New stubbed class.
10705
10706 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10707
10708         * FolderBrowserDialog.cs: When adding folder, immediately create the
10709         directory with temporary name and rename the directory when editing
10710         finishes. This matches MS. Ensure the node for the new folder is 
10711         selected and LabelEdit is disabled, when editing is either finished
10712         or cancelled.
10713
10714 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10715
10716         * TreeView.cs: When editing label of node, ensure node is visible.
10717
10718 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
10719
10720         * PropertyGridView.cs: Set the value only if it has changed.
10721
10722 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10723
10724         * ListView.cs: Some more code refactoring to add support sorting
10725         with groups (now for Details view). Remove unused code also.
10726
10727 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10728
10729         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
10730         Not a big fan of reacting immediately to a field in an EventArg, but that's
10731         the way it's done.  (This is part of the previous commit that got left out.)
10732
10733 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10734
10735         * FolderBrowserDialog.cs: Removed need for separate description field.
10736         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
10737         has focus when dialog box is displayed again, regardless of what
10738         button was pressed the previous time. Set RootFolder and SelectedPath
10739         each time dialog box is displayed. This ensures the treeview is
10740         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
10741         when it does not have focus. Added support for more special folders.
10742
10743 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10744
10745         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
10746         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
10747         it resets the edit_args.
10748         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
10749         [Fixes bug #82577]
10750
10751 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
10752
10753         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
10754         button to match MS. Provide more meaningful exception message for
10755         invalid RootFolder value. Use zero-length string when SelectedPath
10756         is set to null. Allow non-rooted paths in SelectedPath, but ignore
10757         them in FolderBrowserTreeView. Allow folders to be created in
10758         RootFolder. Fixes bug #82576.
10759
10760 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10761
10762         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
10763         since we need to take into account the group headers and the margin
10764         between them.
10765         * ListViewGroup.cs: Add a rows field to store the number of rows per
10766         group.
10767
10768 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10769
10770         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
10771           Anyways, let's just follow the lead.
10772
10773 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10774
10775         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
10776         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
10777         controls in GetPreferredSizeCore.
10778         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
10779         [Fixes bug #82488]
10780
10781 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10782
10783         * PrintDialog.cs: Need to instantiate the form variable here too.
10784
10785 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10786
10787         * ListView.cs: Do some reorganization to support sorting in groups,
10788         by doing the layout sequentially in ListView.Items. Also add support
10789         for the Default Group, which should be available for items with no
10790         group assigned.
10791         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
10792         for storing layout info also.
10793         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
10794         collection, as well as providing internal members to do a traversal
10795         including the default group (needed when doing layout/drawing).
10796         * ThemeWin32Classic.cs: When drawing group headers use internal
10797         ListViewGroupCollection members to take into account the default
10798         group.
10799
10800 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
10801
10802         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
10803
10804 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10805
10806         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
10807         been created.  If handle is created, we want arror keys.  If we are editing
10808         a node, we want things like enter, esc, home, end, page up, page down.
10809         Allows Esc to work for FolderBrowserDialog.
10810
10811 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10812
10813         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
10814         they close when ESC is pressed.  Thanks Andy!
10815
10816 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10817
10818         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
10819         This way we can tell if this is a CommonDialog provided with mono, or one
10820         that is being implemented outside by a developer.  If it is an external one,
10821         the developer is responsible for showing their own form.  We were showing
10822         our blank form after the developer showed his.
10823         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
10824         PageSetupDialog.cs: Instantiate form variable in our constructor.
10825         [Fixes bug #82531]
10826
10827 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10828
10829         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
10830         and always return true.  [Fixes bug #81616]
10831
10832 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10833
10834         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
10835         TextBox.  [Fixes bug #82549]
10836
10837 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
10838
10839         * FileDialog.cs: When Save/Open is clicked and no filename is selected
10840         or entered then do not close the dialog. Fixes bug #82539. Removed
10841         CWLs.
10842
10843 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
10844
10845         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
10846         code to this method. It is calling every time filter changes. This method
10847         will help to fix the bug #80887.
10848
10849 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
10850
10851         * CheckBox.cs: Implement AutoSize calculation.
10852
10853 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
10854
10855         * CheckBox.cs: Use new 2.0 rendering for 2.0.
10856         * Theme.cs: Method declarations for 2.0 rendering path.
10857         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
10858
10859 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10860
10861         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
10862
10863 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10864
10865         * ListViewGroupCollection.cs: Implement AddRange the right way, to
10866         only call Redraw on the parent one time.
10867
10868 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10869
10870         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
10871           GetClipboardContent.
10872         * DataGridViewCell.cs: Implemented GetClipboardContent,
10873           GetEditedFormattedValue, GetFormattedValue.
10874         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
10875
10876 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
10877
10878         * TableLayoutStyleCollection.cs: corcompare fix.
10879
10880 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10881
10882         * DataObject.cs: Implemented retrieval of convertible / not convertible
10883           objects.
10884
10885 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
10886
10887         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
10888         ourselves.  This ensures the entire old bounds are repainted, in case our new
10889         size is smaller.  [Fixes bug #82518]
10890
10891 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
10892
10893         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
10894         flag to make fast handle of mouse events, without this the mouse move is
10895         handled in some manner, whether it is a mouse move or not. Fixes #81588.
10896
10897 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10898
10899         * ListView.cs: When doing layout calculations don't use a ref
10900         param to keep the current item; instead use its Index value (this 
10901         is specially important when doing the layout with Groups
10902         and Items being sparse). Also don't take into account items added to
10903         the Group but not yet added to the main ListView.Items collection.
10904
10905 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10906
10907         * ListViewGroupCollection.cs: Forgot to mimic an issue
10908         in the indexer (don't assign the ListView owner for new values).
10909
10910 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10911
10912         * ListViewGroupCollection.cs: Make the string indexer use
10913         the int based indexer to re-use code, instead of duplicate the code.
10914         Also Redraw as needed and take into account null values.
10915
10916 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
10917
10918         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
10919         [Fixes bug #82481]
10920
10921 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
10922
10923         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
10924         when other buttons are clicked or navigated to.
10925
10926 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10927
10928         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
10929           it's XplatUIX11 that attaches them.
10930
10931 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10932
10933         * DataGridView.cs: If a column has been added, recreate the editing row.
10934           Fixes #82226.
10935
10936 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10937
10938         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
10939           of the tag to draw. Makes disappearing text show up again.
10940
10941 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10942
10943         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
10944           Contents. Fixes #82487.
10945
10946 2007-08-19  Andreia Gaita  <avidigal@novell.com>
10947
10948         * Added HtmlElement.cs, HtmlElementCollection.cs, 
10949           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
10950           
10951 2007-08-19  Andreia Gaita  <avidigal@novell.com>
10952
10953         * BindingSource.cs: Implement this, dispose and getenumerator.
10954         * DataGridViewRowCollection.cs: Move the InvalidOperationException
10955         out of AddInternal, throw it only on public Add calls. The 
10956         UsingWebBrowser sample was blowing up with this when setting the
10957         DataSource after adding DataBindings, so it's likely that .net
10958         only throws this exception when Add is called directly. 
10959         
10960         * ToolStripControlHost.cs: Return the hosted control's text
10961         property, and not the ToolStripItem one (it would always return
10962         the initial value).
10963         
10964         * HtmlDocument.cs: Implement GetElementById and All
10965         * WebBrowser.cs: Remove exception on set_DocumentStream.        
10966
10967 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10968
10969         * Form.cs: Fix the max and min value for opacity (0~1).
10970
10971 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10972
10973         [Fixes #80118]
10974         * DataGridTableStyle.cs: Default header font is now null, on getter it 
10975         returns datagrid font when is null. On setter permits null.
10976
10977         * DataGrid.cs:
10978         - When ResetHeaderFont set header font to null.
10979         - On EndInit set grid_style.DataGrid.
10980
10981 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10982
10983         * TabControl.cs: Fix regression in default padding x.
10984
10985 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10986
10987         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
10988
10989 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10990
10991         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
10992         not 2. Fixes #82229.
10993
10994 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10995
10996         * TabControl.cs: Fix tab size when image height is less than text height.
10997         Partially fixes #81837.
10998
10999 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11000
11001         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
11002         "alt + tab". It works only for Win32, for X11 theres no way to remove window
11003         from taskbar and keep it on "alt_tab". Fixes #81722.
11004
11005 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11006
11007         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
11008         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
11009         Fixes #80877 and #79418.
11010
11011 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11012
11013         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
11014         between position and one of the screen borders. Fixes #82349.
11015
11016 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11017
11018         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
11019         the MessageBox in the taskbar. Fixes #82457.
11020
11021 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11022
11023         * MessageBox.cs: Fix form size when icon is set and text height is bigger
11024         than icon. Fixes #82468.
11025
11026 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11027
11028         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
11029         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
11030           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
11031           Refactored HandleNCCalcSize somewhat to avoid code duplication.
11032         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
11033           FormBorderStyle to decide if we're calculating a new size from the
11034           client size or not. CreateParams: Don't fake tool windows, only the X11
11035           backend manages toolwindows manually.
11036
11037 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11038
11039         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
11040         ObjectDisposedException.
11041
11042 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11043
11044         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
11045         in OnLoad should not have any effect.  [Fixes bug #82470]
11046
11047 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11048
11049         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
11050         paint for controls that create their own ToolTipWindow instead of
11051         going through ToolTip.
11052
11053 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11054
11055         * ToolTip.cs: Make Hide internal instead of public to match MS API.
11056
11057 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11058
11059         * ListViewGroupCollection.cs: Use generic List instead of an
11060         ArrayList, since this collection is 2.0 only.
11061
11062 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
11063
11064         * ToolTip.cs (Hide): Made public to make the build work (should
11065         this not be public?).
11066
11067 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11068
11069         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
11070         ToolTipWindow.
11071         * ToolTip.cs: Add an internal Visible property to facilitate transition.
11072
11073 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11074
11075         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
11076         PopupEventHandler.cs: Make these internal for 1.1.
11077         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
11078         use ToolTipWindow internals.
11079         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
11080         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
11081
11082 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11083
11084         * X11Dnd.cs: Add a null check.
11085
11086 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11087
11088         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
11089           nothing else succeeds. Fixes #82453.
11090
11091 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11092
11093         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
11094           rectangle if we're painting to another window than the one the paint
11095           message was generated on. Simplify the code somewhat, which makes
11096           PaintEventEnd also simpler.
11097
11098 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11099
11100         * Control.cs: When changing parent of a form, let the form decide whether
11101           XplatUI.SetParent should be called or not.
11102         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
11103           recreating the handle. If the new parent's handle isn't created, don't
11104           recreate our handle, just destroy it. CreateParams: Check if the
11105           parent's handle is created before fetching it.
11106
11107 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11108
11109         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
11110           Update calls to PaintEventStart/End to take a Message argument.
11111         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
11112           take a Message argument.
11113         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
11114           Message argument, and handle the case where we don't paint to the window
11115           for which the paint message was generated.
11116
11117 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11118
11119         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
11120           Marshal.GetLastWin32Error. Plug nasty memory leak in
11121           PaintEventStart/End, we were creating a DC we weren't releasing.
11122
11123 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11124
11125         * ListView.cs: Add Groups support in Details view. Also have a small
11126         method to do the layout of the group header. Don't use a separate
11127         method to do the groups calculation in Icons view, since our methods
11128         are now a little simpler.
11129         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
11130         `Bounds'.
11131         * ThemeWin32Classic.cs: Likewise.
11132
11133 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
11134
11135         * Application.cs: Add FilterMessage method and rework our message loop
11136         logic to use it.
11137
11138 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
11139
11140         * Application.cs: Add some methods and stub a few methods that are
11141         pretty much never used.
11142
11143 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
11144
11145         * TreeNode.cs: Add some serialization methods.
11146
11147 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11148
11149         * ListView.cs: In ListViewItemCollection have a 
11150         'is_main_collection' field to not modify ListViewItem.ListView
11151         when using it as ListViewGroup.Items (and not ListView.Items)
11152         and also don't modify selection state (.Net behaviour). 
11153         Instead, set group for items contained in a ListViewGroup.Items collection.
11154         * ListViewItem.cs: Simplify some code in Group setter.
11155         * ListViewGroup.cs: use the new .ctor to pass the current instance
11156         to the ItemsCollection.
11157         * ListViewGroup.cs: Set the ListView property for ListViewGroup
11158         instances when adding/removing. Also make Remove use RemoveAt, which
11159         should perform better.
11160
11161 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11162
11163         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
11164         that crept into the 1.1 profile.
11165
11166 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11167
11168         * ToolBarButton.cs: Implement ImageKey.
11169
11170 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11171
11172         * ToolBar.cs: Implement ScaleControl/ScaleCore.
11173
11174 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11175
11176         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
11177           created, it might have gotten destroyed since we last checked. Fixes
11178           #82405.
11179
11180 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
11181
11182         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
11183         tooltip will hide when mouse is moved off the control.
11184         [Fixes bug #82407]
11185
11186 2007-08-11 Andreia Gaita <avidigal@novell.com>
11187
11188         * WebBrowserBase.cs, WebBrowser.cs: add implementation
11189         using Mono.Mozilla for loading and navigating webcontrol
11190         with xulrunner.
11191         The initial implementation was done on 
11192         /trunk/mozembed/tests/browser , and copied here.
11193
11194 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
11195
11196         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
11197         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
11198
11199 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11200
11201         * DataGridView.cs: Add support for an editing row. Fixes #82226.
11202           RowTemplateFull: throw an exception if a column doesn't have a template.
11203         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
11204           add the row just before it.
11205         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
11206           selected.
11207         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
11208           DataGridView field to be able to reach the grid's editing row.
11209
11210 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11211
11212         * ToolTip.cs: If the control's handle hasn't been created when it has a
11213         tooltip set on it, don't check to see if we need to show the tooltip.  This
11214         check was causing the control's handle to be created.
11215         [Fixes bug #82399]
11216
11217 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11218
11219         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
11220                                         1.1             2.0
11221         Handle Not Created      -1              0
11222         Handle Created          0               0
11223         [Fixes bug #82371]
11224
11225 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11226
11227         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
11228         [Fixes bug #82348]
11229
11230 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
11231
11232         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
11233         * ToolTip.cs: Implement some properties and owner draw.
11234
11235 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11236
11237         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
11238           show them again, since setting visibility causes a paint, causing an
11239           endless loop (instead use a temporary and set it all when it's known if
11240           they should be shown or not). Fixes #79265.
11241
11242 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11243
11244         * DataGridView.cs: Only do a full column/row selection if a header was
11245           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
11246           isn't pressed, deselect everything before selecting something.
11247
11248 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11249
11250         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
11251           behaviour according to bug #81075 - they are returned in the order they
11252           are selected. Fix HitTest to check if the point is within any of the
11253           headers. Allow for row/column selection when in ColumnHeader or
11254           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
11255           the row and column to call when their selected state changes, and
11256           updated selected_[rows|columns] whenever SetSelected* is called.
11257         * DataGridViewBand.cs: Initialize isRow correctly. Call
11258           SetSelected[Row|Column]CoreInternal when the selected state changes, and
11259           add a SelectedInternal to avoid StackOverflows.
11260         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
11261           ReadOnly no matter what.
11262         * DataGridViewSelectedColumnCollection.cs,
11263           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
11264           the items in reverse order (just as MS does...)
11265
11266 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
11267
11268         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
11269         itself, not part of a mnemonic.  [Fixes bug #82378]
11270
11271 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11272
11273         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
11274         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
11275           the DGV, the column, the row, or the cell itself is readonly.
11276
11277 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
11278
11279         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
11280         OSVersion.Platform.
11281         * FileDialog.cs: Same.
11282         * TextRendered.cs: Same.
11283         * FolderBrowserDialog.cs: Same.
11284         * TextBoxBase.cs: Same.
11285         * Application.cs: Same.
11286         * Cursors.cs: Same.
11287         * ThemeClearLooks.cs: Same.
11288
11289 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
11290
11291         * XplatUI.cs: Added RunningOnUnix property to be used by controls
11292         instead of duplicating these checks everywhere.
11293         * FileDialog.cs: Use case-insensitive comparison for populating the
11294         DirComboBox when not running on unix. Fixes bug #82385.
11295         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
11296         "Look in".
11297
11298 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11299
11300         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
11301           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
11302           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
11303           cell and column selection with ctrl and shift pressed. Call the correct
11304           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
11305           the corresponding virtual method (PaintBackground to paint background,
11306           etc).
11307         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
11308           either the column, row or the cell itself is selected.
11309         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
11310           OnRowsAdded.
11311         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
11312           here. When the row is selected, don't select all cells. Each cell now
11313           queries the row to see if the row is selected.
11314
11315 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11316
11317         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
11318           SelectionMode.
11319
11320 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11321
11322         * ListView.cs: In ListViewItemsCollection check that owner is
11323         not null before trying to access it (this happens quite often
11324         using Groups). Also don't duplicate calls by calling CollectionChanged
11325         method.
11326
11327 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11328
11329         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
11330         when we are dismissed to clear keyboard mnemonics.
11331         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
11332         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
11333         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
11334         was activated by keyboard or the OS tells us to always draw them.
11335         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
11336         [Fixes bugs #82376, #82377]
11337
11338 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11339
11340         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
11341         shot at having it because Alt was pressed.
11342         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
11343         the first real menu item.
11344         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
11345         a mnemonic if Text is null.
11346         [Fixes bug #82374]
11347
11348 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11349
11350         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
11351         search do check whether the item is already contained in the
11352         collection or not; instead check if the owner of the item is the same
11353         as ours. Also, remove a redundant check in the same method. 
11354
11355 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11356
11357         * Control.cs: Allow the clip region to be set back to null.
11358         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
11359         [Fixes button still showing up in bug #82370 when Show Through is turned off]
11360
11361 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11362
11363         * GridEntry.cs: Add a null check.
11364         * PropertyGrid.cs: When checking for existing grid entries, ignore category
11365           entries. Fixes #82297.
11366
11367 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
11368
11369         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
11370         for 2.0.
11371
11372 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
11373
11374         * ListBox.cs: Implement ScaleControl.
11375
11376 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11377
11378         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
11379           have a menu strip.
11380         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
11381           parent has a menu strip. Fixes #81689.
11382
11383 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11384
11385         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
11386           moments, so apply some fuzzy logic to determine if the mouse is still
11387           inside a control or not. Fixes #82288 (for the third time).
11388
11389 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11390
11391         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
11392           Don't create the child if it has been disposed already (may happen if
11393           the user closes the form the Load event).
11394
11395 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11396
11397         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
11398           #82288.
11399
11400 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11401
11402         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
11403           might call us after we've been destroyed, in which case our own private
11404           parent field is null. Fixes #82326.
11405
11406 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
11407
11408         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
11409         check for setting the dropdown's owner.
11410
11411 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
11412
11413         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
11414         before removing system menu items.
11415
11416 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
11417
11418         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
11419         folding.
11420         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
11421         folding.
11422         * ToolStrip.cs: Add a null check to mnemonics.
11423         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
11424         no ConnectedArea.
11425         [Fixes most of bug #81689]
11426
11427 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11428
11429         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
11430
11431 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11432
11433         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
11434
11435 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11436
11437         * DataGridViewCell.cs: EditType: returns
11438           DataGridViewTextBoxEditingControl always.
11439
11440 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
11441
11442         * TextRenderer.cs: Remove the LineLimit string format flag from the
11443         DrawString fallback method so that things like buttons that aren't
11444         tall enough to draw a full line will still draw part of the text.
11445         [Fixes part of bug #82272]
11446
11447 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11448
11449         * DataGridView.cs: Implemented AutoResizeColumn(s).
11450         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
11451           according to the Alignment.
11452         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
11453           Implement alignment and padding when painting.
11454         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
11455           exists.
11456         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
11457           way.
11458         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
11459           a column is added.
11460
11461 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11462
11463         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
11464         which is internal.
11465
11466 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11467
11468         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
11469         hide GetPreferredSize from public API.
11470         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
11471         * ToolStripItem.cs: Stub out drag and drop methods and events.
11472         * ToolStripManager.cs: Stub out Save/LoadSettings.
11473         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
11474         * ToolStripPanel.cs: Fix corcompare error.
11475         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
11476         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
11477         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
11478
11479 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11480
11481         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
11482         bounds height instead of PreferredHeight.  Puts things back the way 
11483         they were for height while still fixing the width.  Fixes broken unit
11484         tests.
11485
11486 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11487
11488         * Binding.cs: Implement 2.0 constructors and add a null check.
11489
11490 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11491
11492         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
11493           and fix row index (off by one).
11494
11495 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11496
11497         * PropertyGridView.cs: Remove debug output.
11498
11499 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11500
11501         * Control.cs: We need to reset the is_created flags when the handle is
11502           destroyed. Fixes #82187.
11503         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
11504           client coordinates if the window doesn't have a parent.
11505           Win32GetParent returns the parent or the owner, and for top-level
11506           windows with no parent (but with an owner) we were calculating the
11507           location from the location of the owner.
11508         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
11509           form has been disposed.
11510         * MdiClient.cs: Add a null-check.
11511
11512 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
11513
11514         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
11515         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
11516         so we can provide an implementation that returns the current width
11517         and preferred height.  Allows anchor = right to work with TextBox 2.0.
11518         [Fixes bug #82233]
11519
11520 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11521
11522         * ListView.cs: Add support for navigating items in Groups mode, by
11523         creating a big matrix containing all rows and cols of all groups. When
11524         are in other mode than Details, pressing Up should have a similar
11525         behaviour as that one of Down (moving to the next available column if
11526         current one doesn't have an item in the requested row). Also, don't
11527         proceed to use groups if ShowGroups is false.
11528         * ListViewGroup.cs: Add an internal int field to store the starting
11529         row of the group (used by the big matrix used for navigating the
11530         ListView).
11531         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
11532         false.
11533
11534 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
11535
11536         * ToolStripDropDown.cs: When we do Show, start with the 
11537         DefaultDropDownDirection, but if our popup menu is going to off-screen,
11538         modify the direction to keep it on screen.  [Fixes bug #82210]
11539
11540 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
11541
11542         * FileDialog.cs: Accept any FilterIndex value, and store it
11543         unmodified. When FilterIndex is less than 1, or greater than number
11544         of filters, then default to first filter. Only add filter extension to
11545         file if user did not specifiy an extension. When type of dialog is
11546         OpenFileDialog and DefaultExt is set, then only use filter extension
11547         if: CheckFileExists is true and no file wih the default extension
11548         exists, or CheckFileExists is false, and user specified file does not
11549         exist. When CheckFileExists is true, then add first extension of 
11550         selected filter that matches existing file. Perform checks for
11551         existing file, overwrite and create after extension has been added to
11552         file name. When CheckFileExists is true and type is SaveFileDialog,
11553         then only consider first filter extension if DefaultExt is set.
11554         When CheckFileExists is true, then ignore DefaultExt if file with that
11555         extension does not exist. Also perform check for existing file when
11556         type is SaveFileDialog. Changed some field to constants.
11557
11558 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11559
11560         * ListView.cs: Take into account the region used by header
11561         control when doing the vertical scroll (this way we invalidate
11562         the precise area, and don't get any dirty one).
11563
11564 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
11565
11566         * FileDialog.cs: Check for valid filterIndex on button open/save. 
11567         Fixes #82184.
11568
11569 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11570
11571         * ListView.cs: Update some layout calculations in details view
11572         and clean the code in a pair of assignations.
11573
11574 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11575
11576         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
11577         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
11578         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
11579         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
11580
11581 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11582
11583         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
11584         performance of thread-safe Graphic methods.  (Thanks rolf!)
11585
11586 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11587
11588         * ListView.cs: When doing the layout calculations, don't calculate
11589         scroll bars before handle is created. This is unnecessary and also
11590         calculating them before handle creation item causes a number of random
11591         bugs (which begin to appear after Chris' big patch for handle creation
11592         fixes). 
11593
11594 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11595
11596         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
11597         for things that don't have a Graphics object.  Currently, things just use
11598         the static Hwnd.bmp_g which is not thread safe.
11599
11600 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11601
11602         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
11603           dialog. Fixes #82187.
11604
11605 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11606
11607         * DataGridViewElement.cs: Initialize state.
11608         * DataGridView.cs: Forward a few Mouse events to cells. Add
11609           GetRowInternal and GetCellInternal that doesn't unshare rows.
11610           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
11611           don't use the index, but look it up. Add
11612           DataGridViewControlCollection.RemoveInternal to remove controls
11613           that Remove won't remove (scrollbars, edit control).
11614         * DataGridViewColumn.cs: Initialize State correctly.
11615         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
11616           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
11617           implementing this.
11618         * DataGridViewRowCollection.cs: Implemented shared rows.
11619         * DataGridViewRow.cs: Throw exceptions as MS do.
11620         * DataGridViewCell.cs: A few properties are implemented by a
11621           Get<Property> method, so move implementation there and remove the
11622           NIEX in the method. Add a bunch of OnXInternal that DataGridView
11623           calls when necessary.
11624         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
11625           complicates matters.
11626         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
11627           unshare any rows.
11628
11629 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11630
11631         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
11632         the children controls.  Instead, we will just set up the proper docking for the
11633         children controls so we don't have to worry about it.  [Fixes bug #82188]
11634
11635 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11636
11637         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
11638         canceling and correct Before/AfterLabelEdit properties as layed out in bug
11639         81847.  [Fixes bug #81847]
11640
11641 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11642
11643         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
11644         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
11645         an explicit size based on the design-time size of the text.  Since our fonts
11646         may not match this explicit size, we tend to cut off the ends of people's labels.
11647
11648 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
11649
11650         * Menu.cs: Add some missing methods to MenuItemCollection.
11651
11652 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11653
11654         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
11655         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
11656         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
11657         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
11658         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
11659         * DataGridViewElement.cs: State defaults to Visible.
11660         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
11661         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
11662
11663 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11664
11665         * Control.cs: Minor 1.1 corcompare fix.
11666
11667 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11668
11669         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
11670         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
11671
11672 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11673
11674         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
11675           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
11676           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
11677           DataGridViewSelectedColumnCollection.cs,
11678           DataGridViewSelectedRowCollection.cs: Corcompare work.
11679
11680 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11681
11682         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
11683         it is autoset by VS2005 designer and the effect is barely noticeable.
11684
11685 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11686
11687         * TreeView.cs: Implement HitTest.
11688
11689 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11690
11691         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
11692           manually adding and removing the control from the Controls
11693           collecftion.
11694         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
11695           EditingControlInternal property that tracks the editing control.
11696           Always keeping the scrollbars in the Controls collection, as MS
11697           testing confirms is the right behaviour.
11698
11699 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11700
11701         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
11702           according to MSDN and new test.
11703
11704 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11705
11706         * TreeNode.cs: Implement ToolTipText.
11707         * TreeView.cs: Implement tooltips, NodeMouse* events.
11708
11709 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11710
11711         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
11712
11713 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11714
11715         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
11716         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
11717
11718 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
11719
11720         * Control.cs, Form.cs, ContainerControl.cs,
11721         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
11722         for misc properties.
11723
11724 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11725
11726         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
11727         * TreeView.cs: Implement StateImageList.
11728
11729 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11730
11731         * Form.cs: Don't check if the current form is the active form before
11732           activating it. Fixes #81904.
11733
11734 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11735
11736         * Form.cs: Don't check if the current form is the active form before
11737           activating it. Fixes #81904.
11738
11739 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11740
11741         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
11742
11743 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11744
11745         * Form.cs: Don't try to position the form after loading if the form was
11746           disposed. Fixes #81969.
11747
11748 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11749
11750         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
11751           properties. Had to change ToolBar into ToolStrip, which required a
11752           few #ifs.
11753
11754 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11755
11756         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
11757           resized, fixes part of #79829 (vertical lines in toolbar).
11758           PropertyGrid: Refactored Populate* to something that's easier to
11759           follow at least for me, as well as splitting it up into several new
11760           methods, required to update only subitems when something has
11761           changed by a popup editor or listbox. Don't use events to check
11762           when any values are changed, since the events are unreliable (we're
11763           changing the objects the events are registered with, and if the
11764           event handling requires the objects to be immutable (objects stored
11765           in hashtables for instance), the events will never be raised).
11766         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
11767           everytime we change a value, since events are unreliable.
11768           DropDownButtonClicked: For the same reason don't compare objects to
11769           check if it has changed or not, it would require all objects to
11770           derive Equals. Fix dialog location on windows, MS is doing weird
11771           things when creating parented forms.
11772         * GridEntry.cs: Add a SelectedObject setter.
11773
11774 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
11775
11776         * TreeNode.cs: Add some corcompare attributes.
11777         * TreeNodeCollection.cs: Implement 2.0 stuffs.
11778         * TreeView.cs: Implement some 2.0 stuffs.
11779
11780 2007-07-18  Andreia Gaita  <avidigal@novell.com>
11781
11782         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
11783         for moma.
11784
11785 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
11786
11787         * ListBox.cs: Implement custom tab offsets.
11788
11789 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11790
11791         * ToolStripContentPanel.cs: Support System renderer.
11792         * ToolStripControlHost.cs: Set RightToLeft to default to No.
11793
11794 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11795
11796         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
11797
11798 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11799
11800         * CheckBox.cs: Chain TextAlign to base implementation instead of
11801         maintaining another one.
11802
11803 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11804
11805         * ButtonBase.cs: Fix an incorrect string constant.
11806
11807 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11808
11809         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
11810         of creating one for measuring strings.
11811
11812 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11813
11814         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
11815         Implement MaxItemSize.
11816
11817 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
11818
11819         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
11820         for DeviceContext.  Instead, use the static one available in Hwnd.
11821         Informal tests show this saves about 500k on formtest.exe.
11822
11823 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
11824
11825         * ContainerControl.cs: Implement 2.0 AutoScaling.
11826
11827 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11828
11829         * ComboBox.cs: Work around bug #82120 (bug in mcs).
11830
11831 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
11832
11833         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
11834         Darken the focus color.
11835
11836 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
11837
11838         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
11839         for the checkbox.
11840         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
11841         X, Y instead of a rect for drawing text.
11842         - For ControlPaint.DrawCheckBox, center the check a little better when the
11843         checkbox is odd width.  When drawing a flat checkbox, use a white background
11844         when state != inactive.
11845         [Fixes bugs #82097, 82100]
11846
11847 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
11848
11849         * ListControl.cs: When changing CurrencyManager, disconnect event
11850         handlers from previous one. Fixes bug #81771. Code formatting.
11851
11852 2007-07-15  Andreia Gaita <avidigal@novell.com>
11853
11854         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
11855         full preview invalidation from layout invalidation, and only invalidate
11856         the layout when setting zoom or other properties. Invalidation should
11857         always be done even when resetting properties with the same values as
11858         what is there. Fixes #81744 and #79830.
11859
11860 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11861
11862         * ListView.cs: Implement initial support for Groups. Split some of the
11863         LayoutIcons code to render a partial list of the items (needed by
11864         items contained in ListViewGroup instances). Let the
11865         ListViewItemsCollection.ListView property be modifiable (needed when
11866         using Groups, too).
11867         * ListViewGroup.cs: Use a Bounds property rather than a Location
11868         one. Also invalidate the bounds when they get changed.
11869         * ThemeWin32Classic.cs: When drawing items, also draw the group header
11870         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
11871         method as well.
11872
11873 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11874
11875         * ListView.cs: When space gets pressed and CheckBoxes is true, 
11876         don't invoke the Begin and EndUpdate methods. We are generating 
11877         a redraw of the entire control without need to do so.
11878
11879 2007-07-13  William Holmes <billholmes54@gmail.com> 
11880
11881         * Control.cs: Changing logic in FindFlatForward and 
11882           FindFlatBackward to handle multiple Controls with 
11883           the same TabIndex.  
11884           This fixes bug 81687.
11885
11886 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
11887
11888         * OSFeature.cs: Enable IsPresent.
11889
11890 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11891
11892         * Control.cs: Don't do anything in WmShowWindow if the control has been
11893           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
11894           control is created, put on a form, the control is disposed (the
11895           form is never shown), and then we get a MapNotify, triggering a
11896           WM_SHOWWINDOW.
11897         * Form.cs: Exclude the current form when sending Deactivate to all
11898           MdiChildren.
11899         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
11900           there was a race condition because assigning the handle raises
11901           events, we can get more messages, therefore trying to assign the
11902           handle again, which would fail if any of those event handlers
11903           closed/disposed the control.
11904
11905 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11906
11907         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
11908
11909 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
11910
11911         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
11912         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
11913
11914 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11915
11916         * DateTimePicker.cs: If there's no part format specifier, return an
11917           empty string.
11918
11919 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
11920
11921         * FlatButtonAppearance.cs: Throw NotSupportedException for a
11922         Transparent BorderColor.
11923
11924 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11925
11926         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
11927           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
11928           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
11929           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
11930           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
11931           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
11932           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
11933           Remove warnings.
11934         * X11Structs.cs: Remove warnings, add ToString implementations.
11935
11936 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11937
11938         * XplatUIX11.cs: Translate min/max size according to the actual min/max
11939           size, and not the current size. Fixes #81798.
11940
11941 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11942
11943         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
11944           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
11945           to the control yet).
11946
11947 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11948
11949         * PropertyGridTextBox.cs: Add a method that sends any forwarded
11950           mousedowns to the contained textbox.
11951         * X11Structs.cs: More ToString implementation.
11952         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
11953           #81791.
11954
11955 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11956
11957         * PropertyGridView.cs: Add a null-check, fixes a few tests.
11958
11959 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
11960
11961         * TableLayoutPanelCellPosition.cs: TypeConverter.
11962
11963 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11964
11965         [ Fixes #79761]
11966         
11967         * PropertyGridTextBox.cs: Propagate any color changes to all contained
11968           controls.
11969         * PropertyGridView.cs: A few color fixes.
11970
11971 2007-07-10  Jackson Harper  <jackson@ximian.com>
11972
11973         * TextControl.cs: Remove some old unused text formatting stuff.
11974
11975 2007-07-10  Jackson Harper  <jackson@ximian.com>
11976
11977         * TreeView.cs: Update full row select invalidation to match the
11978         newer DrawSelection... method.
11979         - Make sure to invalidate the entire width when selecting a new
11980         node, if we have full row selection enabled.
11981
11982 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11983
11984         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
11985           display of properties again.
11986
11987 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
11988
11989         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
11990         to existing collections.
11991
11992 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11993
11994         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
11995         that changed between 1.1 and 2.0.
11996
11997 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11998
11999         * PowerStatus.cs: Added.  This is just a data class, it is filled
12000         in by SystemInformation.
12001
12002 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12003
12004         * Message.cs: Add op_Equality and op_Inequality.
12005
12006 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12007
12008         * MenuStrip.cs: Finish corcompare work.
12009
12010 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12011
12012         * LinkArea.cs: Add op_Equality and op_Inequality.
12013
12014 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12015
12016         * Application.cs: Add MessageLoopCallback delegate.
12017
12018 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12019
12020         * ListBox.cs: First set of 2.0 stuffs.
12021
12022 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12023
12024         * Control.cs: Make an internal Height property we can override
12025         without messing up the public API.
12026         * ListBox.cs: Override HeightInternal to always return the size
12027         the user set.  [Fixes bug #80466]
12028
12029 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
12030
12031         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
12032         paint cell borders if we haven't calculated where they go yet.
12033         [Fixes bugs #82040 and #82041]
12034
12035 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12036
12037         * ListView.cs: In Details view, set the location of item_control
12038         in the (0,0) position (and the header_control is thus on the
12039         item_control). This way the Bounds of the Items are relative to the
12040         ListView control (before this, they had a Bounds value without the
12041         header_control offset, which wasn't matching .Net). Fixes #82004.
12042
12043 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12044
12045         * ListControl.cs: When DataSource is set to null, pass an empty
12046         array of object to SetItemsCore. This is done to clean the items
12047         in the ListContol children. Fixes #81788.
12048
12049 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12050
12051         * ListControl.cs: Add 2.0 stuffs.
12052
12053 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12054
12055         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
12056         Refresh is overkill for just about every repaint request.
12057
12058 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12059
12060         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
12061         so remove my custom Get method and fix the property getter.
12062
12063 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12064
12065         * Label.cs: DefaultMargin for 2.0.
12066
12067 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12068
12069         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
12070         reported issue where other controls with mnemonics would steal strokes
12071         from a selected ComboBox.
12072
12073 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12074
12075         * ScrollOrientation.cs: Make internal for 1.1.
12076         * ScrollEventArgs.cs: Add 2.0 stuffs.
12077
12078 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
12079
12080         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12081         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
12082         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
12083
12084 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12085
12086         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
12087
12088 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12089
12090         * ListView.cs: Implement the so-incredibly broken 2.0 
12091         VirtualItemsSelectionRangeChanged event.
12092
12093 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12094
12095         * ListView.cs: When enter is pressed and selection is non empty,
12096         an OnItemActivate event must be fired.
12097
12098 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12099
12100         * ListView.cs: Store the FocusedItem information as an
12101         int instead of a ListViewItem (needed by VirtualMode).
12102         Update the calls to SetFocusedItem to pass an index instead of
12103         an item.
12104         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
12105         the Focused state from the owner ListView. 
12106
12107 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12108
12109         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
12110         property. Also, invalidate previous focused item in the mentioned
12111         property (match .Net).
12112
12113 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12114
12115         * ListView.cs: Implement 2.0 FocusedItem property setter.
12116
12117 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12118
12119         * ListView.cs: Implement 2.0 TopItem property setter.
12120
12121 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
12122
12123         * StatusStrip.cs: The default renderer is System.
12124         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
12125         if the user specifies it.
12126         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
12127         if we are ManagerRenderMode.
12128         * ToolStripMenuItem.cs: Calculate our text color better.
12129         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
12130         from Professional to the base class based off working with the System renderer.
12131         * ToolStripSystemRenderer.cs: Added.
12132
12133 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12134
12135         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
12136
12137 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
12138
12139         * ToolTip.cs: Implement 2.0 Tag property.
12140
12141 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12142
12143         * ListView.cs: Implement 2.0 HitTest methods.
12144
12145 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12146
12147         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
12148         item is under the pointer or not (sugar). Also remove the TODO
12149         regarding to the cursor changes in OneClick activation.
12150         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
12151         the subitems use the parent's HotFont if UseItemStyleForSubItems is
12152         true; otherwise don't show the underline style.
12153
12154 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12155
12156         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
12157         the code to retrieve the item at position only one time. Also
12158         change cursor when Activation is ItemActivation.OneClick as well
12159         as invalidate the item if HotTracking is true (to show/hide the
12160         underline style). Add an internal HotItemIndex property to retrieve
12161         the current hot item's index.
12162         * ListViewItem.cs: Add an internal HotFont property to cache the
12163         font used when HotTracking is true and the pointer moves within the
12164         item's borders.
12165         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
12166         HotFont depending on the hot state of the item.
12167
12168 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12169
12170         * ListView.cs: Implement 2.0 HotTracking property.
12171
12172 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12173
12174         * ToolStripControlHost.cs: If our hosted control never got created,
12175         don't try to dispose it.  [Fixes bug #81909]
12176
12177 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12178
12179         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
12180
12181 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12182
12183         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
12184
12185 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12186
12187         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
12188         Details view.
12189         * DrawListViewColumnHeaderEventArgs.cs:
12190         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
12191         using the DrawText () methods.
12192
12193 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
12194
12195         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
12196         background which got erased in my changes yesterday.
12197
12198 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12199
12200         * ListViewItem.cs: Actually set bounds for subitems in Details view
12201         (2.0 feature).
12202         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
12203         can invoke from the owner draw routines if we need it. Also, add
12204         support for Owner draw in Details view.
12205
12206 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12207
12208         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
12209         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
12210         ShowImageMargin setting, properly align text in a ToolStripLabel
12211         hosted on a ToolStripDropDown.
12212
12213 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12214
12215         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
12216         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
12217
12218 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12219
12220         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
12221
12222 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12223
12224         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
12225         location to match ToolStripMenuItems.
12226
12227 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12228
12229         * DrawListViewColumnHeaderEventArgs.cs:
12230         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
12231         column headers in ListView. 
12232
12233 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
12234
12235         * UserControl.cs: Implement AutoSize.
12236
12237 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12238
12239         * DrawListViewItemEventArgs.cs:
12240         * ListView.cs:
12241         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
12242         ListView.
12243
12244 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
12245
12246         * ToolStripDropDownItemAccessibleObject.cs: Added.
12247         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
12248         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
12249         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
12250         ToolStripTextBox.cs: corcompare work.
12251
12252 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
12253
12254         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
12255         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
12256         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
12257                 corcompare.
12258
12259 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
12260
12261         * OSFeature.cs: Add IsPresent.
12262         * PrintPreviewControl.cs: Add RightToLeft.
12263         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
12264         * SplitterPanel.cs: Add AutoSizeMode.
12265
12266 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12267
12268         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
12269         * MdiClient.cs: Add 2.0 ScaleControl.
12270         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
12271         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
12272
12273 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12274
12275         * Form.cs: Implement some scaling methods, stub some RTL methods,
12276         corcompare work.
12277
12278 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12279
12280         * Control.cs: corcompare work.
12281         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
12282
12283 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12284
12285         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
12286         ControlPaint 2.0 stuffs.
12287
12288 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12289
12290         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
12291
12292 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12293
12294         * UpDownBase.cs: Add 2.0 stuffs.
12295
12296 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12297
12298         * NumericUpDown.cs: Add 2.0 stuffs.
12299
12300 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12301
12302         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
12303
12304 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12305
12306         * ErrorProvider.cs: Implement 2.0 stuffs.
12307
12308 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12309
12310         * DomainUpDown.cs: Implement 2.0 stuffs.
12311
12312 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12313
12314         * CheckedListBox.cs: Fix RefreshItems signature.
12315
12316 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12317
12318         * PictureBox.cs: Implement 2.0 stuffs.
12319
12320 2007-06-12  Andreia Gaita  <avidigal@novell.com>
12321         
12322         * TabControl.cs: Check if there are tabpages before checking
12323         the selected index - fix #81802 (font changes raise a ResizeTabs
12324         call on controls.add, which blew up nicely with no tabpages)
12325
12326 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12327
12328         * ListView.cs:
12329         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
12330
12331 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12332
12333         * ListView.cs:
12334         * ListViewItem.cs: In VirtualMode the selection information
12335         resides in the ListView, rather than in the Items. Also, throw
12336         InvalidOperationExceptions when VirtualMode is being used and
12337         CheckedItemCollection is accessed.
12338
12339 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12340
12341         * ComboBox.cs: Add ScaleControl.
12342
12343 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12344
12345         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
12346
12347 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12348
12349         * GroupBox.cs: Add 2.0 stuffs.
12350
12351 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12352
12353         * Panel.cs: Add autosize properties/event.
12354
12355 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
12356
12357         * Control.cs:
12358         - When we remove a control, remove it from the collection before performing the layout.
12359         - Setup an internal property for explicit_bounds.
12360         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
12361         - Perform a layout when we set a new AutoSizeMode.
12362
12363 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
12364
12365         * ScrollableControl.cs: Add 2.0 stuffs.
12366
12367 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12368
12369         * ScrollBar.cs: Add 2.0 stuffs.
12370
12371 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12372
12373         * Splitter.cs: Add 2.0 stuffs.
12374
12375 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12376
12377         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
12378         to have BindingContext simply use base implementation.
12379
12380 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12381
12382         * ColumnHeader.cs: corcompare fix.
12383
12384 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12385
12386         * Button.cs: corcompare fixes.
12387         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
12388
12389 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12390
12391         * Button.cs: Override GetPreferredSizeCore.
12392         * ButtonBase.cs: PerformLayout after changing properties that can affect
12393         AutoSize.  Simplify some mouse/keyboard code.
12394         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
12395         * MouseEventArgs.cs: Make Location internal for 1.1.
12396         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
12397         * Theme.cs: Add CalculateButtonAutoSize.
12398         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
12399
12400 2007-06-05  Miguel de Icaza  <miguel@novell.com>
12401
12402         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
12403
12404 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12405
12406         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
12407         since we can get different item instances every time we retrieve it.
12408
12409 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12410
12411         * ListView.cs: Work around for #81602, since an unkown an pretty
12412         infrequent condition appears only in some systems (old linux boxes, it
12413         seems).
12414
12415 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12416
12417         * Button.cs: Completely reformat and a little refactor to bring
12418         this closer to Mono circa 2007.
12419
12420 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12421
12422         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
12423         to be ButtonBase.Invalidate.
12424
12425 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12426
12427         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
12428
12429 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12430
12431         * ButtonBase.cs: Completely reformat and a little refactor to bring
12432         this closer to Mono circa 2007.
12433
12434 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
12435
12436         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
12437         values for autosize. Fixes #80137.
12438
12439 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12440
12441         * Control.cs: Don't perform layout when AutoSize changes.
12442         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
12443         directly when autosizing, use SetBounds with BoundsSpecified.None.
12444         Fixes unit tests my last commit broke.
12445
12446 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12447
12448         * Control.cs: Perform layout when AutoSize changes.
12449         * Form.cs: Implement AutoSizing.
12450
12451 2007-06-01  Chris Toshok  <toshok@ximian.com>
12452
12453         * DataGrid.cs: remove the XXX'ed check at the top of
12454         ProcessGridKey.  fixes #80464.
12455
12456 2007-06-01  Chris Toshok  <toshok@ximian.com>
12457
12458         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
12459         adding idempotent (add/remove in Edit()), and also make sure we
12460         don't add it until after we set the text, so it's not tripped in
12461         Edit().  Fixes unit test regression.
12462
12463 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12464
12465         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
12466         change is user explicit, not when the layout engine moves stuff.  Fixes
12467         anchoring to bottom and right.  [Fixes bug #81790]
12468
12469 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12470
12471         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
12472
12473 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12474
12475         * ContainerControl.cs: 
12476         Fire enter event for common ancestor if it is not a ContainerControl.
12477         Send focus to the active_control and not the 'value', the active 
12478         control might have been changed in one of the events fired.     
12479         Definitely fixes #80159.
12480
12481 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12482
12483         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
12484
12485 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12486
12487         * PropertyGrid.cs: Anchor the help description to the bottom of the
12488           help panel and refactor SelectGridItem into a
12489           SelectGridItemInternal that can be set to null (and update it to
12490           clear the help texts when it is set to null). Set root item to null
12491           when there's no SelectedObject. Fixes #80438.
12492         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
12493           when we're recalculating after a resize (only).
12494
12495 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12496
12497         * ListView.cs: Implement 2.0 RedrawItems method.
12498
12499 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12500
12501         * ListControl.cs: Disconnect PositionChanged and ItemChanged
12502         handlers from previous data manager when DataSource is set to
12503         null. Fixes #81771.
12504
12505 2007-05-31  Jackson Harper  <jackson@ximian.com>
12506
12507         * TextBoxBase.cs: These seem to be the correct values.
12508
12509 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
12510
12511         * FileDialog.cs: When close dialog with ok set filterindex using combobox
12512         value. Fixes #81784.
12513
12514 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
12515
12516         * Control.cs: Implement 2.0 scaling methods.
12517
12518 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12519
12520         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
12521           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
12522           corcompare issues.
12523
12524 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12525
12526         * ProgressBar.cs: Implemented missing 2.0 members.
12527
12528 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12529
12530         * Control.cs: Corcompare issues.
12531         * MessageBox.cs: Implemented missing 2.0 functions.
12532
12533 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12534
12535         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
12536           Implemented more 2.0 members.
12537
12538 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12539
12540         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
12541           null (strange, but it seems to happen when running unit tests).
12542
12543 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12544
12545         * ContainerControl.cs: Set active_control even earlier, before 
12546         firing any events, and undo it if validation returns false.
12547
12548 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12549
12550         * ContainerControl.cs: Raise Validation and Enter/Leave events
12551         even if there is no Form and set active_control earlier, just
12552         before firing Enter events (toshok's patches). Fixes #80647.
12553
12554 2007-05-30  Jackson Harper  <jackson@ximian.com>
12555
12556         * TextControl.cs: Redid the pageup/pagedown a little to simplify
12557         things and fix bug #81311.
12558
12559 2007-05-30  Jackson Harper  <jackson@ximian.com>
12560
12561         * X11Dnd.cs: Now that we have our own event loop, we need to
12562         cancel when we get a mouseup but it won't be accepted.
12563
12564 2007-05-30  Chris Toshok  <toshok@ximian.com>
12565
12566         * DataGrid.cs (set_CurrentCell): guard against negative
12567         column/row.
12568
12569         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
12570         array index syntax instead of looping over the property names.
12571
12572         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
12573         and set IsInEditOrNavigateMode to false there.
12574
12575 2007-05-30  Jackson Harper  <jackson@ximian.com>
12576
12577         * TreeView.cs: Make sure we don't get a bad visible order when
12578         setting to the top node.  Fixes some misc crashing in
12579         ControlInspector.
12580
12581 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12582
12583         * UserControl.cs: Add 2.0 AutoSizeMode
12584
12585 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12586
12587         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
12588
12589 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12590
12591         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
12592         lines. Fixes #80285. 
12593
12594 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12595
12596         * DataGridColumnStyle.cs: Add char trimming column header text format. 
12597
12598 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12599
12600         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
12601         Fixes #80147.
12602
12603 2007-05-29  Jackson Harper  <jackson@ximian.com>
12604
12605         * TreeNode.cs: Fix off by one on calculating whether or not a node
12606         is visible.
12607
12608 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
12609
12610         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
12611         * ScrollableControl.cs: Force an UpdateDistances when we move the
12612         scrollbars.
12613         [Fixes bug #80605]
12614
12615 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12616
12617         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
12618         update the page setup screen.
12619
12620 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12621
12622         * PageSetupDialog.cs: Fix landscape mode.
12623
12624 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12625
12626         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
12627         IconSizeHorizontalSpacing.
12628
12629 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12630
12631         * ListView.cs: The declaration of prev_tooltip_item should be inside
12632         a NET_2_0 conditional (avoid a warning).
12633
12634 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12635
12636         * PageSetupDialog.cs: Implement PrintPreview control to display
12637         the preview thumbnail. Change unit conversion to use 
12638         PrinterUnitConvert methods.
12639         
12640         Note: there is a huge bug in ms.net where the default margins are 
12641         interpreted as centimeters (?), when in fact they are set in inches. When 
12642         loading the page setup dialog initially (ms.net), the default margins 
12643         are set to 1 inch, and the dialog shows them with value 10, when in fact 
12644         it should be 25 (properly converted). Our dialog doesn't have this bug.
12645         
12646         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
12647         RectangleF.
12648         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
12649
12650 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12651
12652         * ListView.cs:
12653         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
12654         items.
12655
12656 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12657
12658         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
12659         an IntPtr on csc (it builds fine on mcs, could it be a compiler
12660         bug?), convert the ptr to Int32 first.
12661
12662 2007-05-28  Jackson Harper  <jackson@ximian.com>
12663
12664         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
12665         recieved, we will exit the dnd tracking loop.
12666
12667 2007-05-28  Jackson Harper  <jackson@ximian.com>
12668
12669         * X11Dnd.cs: Keep tracking until the xdnd finished event is
12670         recieved. TODO: I should probably stick a timer on the dropped
12671         event, and finish the drag if the XDND Finished event never shows
12672         (because some apps don't seem to send it).
12673
12674 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
12675
12676         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
12677         #81733.
12678
12679 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12680
12681         * MonthCalendar.cs: Only mark the keypresses we actually handle as
12682           handled.
12683
12684 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12685
12686         * MonthCalendar.cs: Set the size after initializing all the relevant
12687           variables. Fixes #81742.
12688
12689 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12690
12691         * KeyEventArgs.cs: Fix typo.
12692
12693 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
12694
12695         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
12696         to match MS. Fixed MinDate to only accept value less than or equal
12697         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
12698         Removed TODO's that are now verified by unit tests.
12699
12700 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
12701
12702         * TreeNodeCollection.cs: Minor corrections to exceptions to match
12703         MS.
12704
12705 2007-05-25  Jackson Harper  <jackson@ximian.com>
12706
12707         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
12708         it's own message loop.
12709         * XplatUIX11.cs: Remove some of the dnd hooks
12710
12711 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
12712
12713         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
12714         instead of MinimizedWindowSize.
12715
12716 2007-05-25  Jackson Harper  <jackson@ximian.com>
12717
12718         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
12719
12720 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12721
12722         * KeyEventArgs.cs: Added SuppressKeyPress.
12723         * Control.cs: Added support for SuppressKeyPress.
12724
12725 2007-05-24  Andreia Gaita  <avidigal@novell.com>
12726
12727         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
12728         problems with PieChart. suppress_validation should not be a counter,
12729         if there are several BeginInit calls, the first EndInit will 
12730         activate validation. Fix exceptions thrown by set_Value.
12731         * UpDownBase.cs: ValidateText only if it's the user editing it.
12732
12733 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12734
12735         * ListControl.cs: FilterItemOnProperty should return the filtered
12736         item proeprty even if DataSource is null. The same applies for
12737         GetItemText. Fixes #80427.
12738
12739 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12740
12741         * Control.cs: If a control doesn't have a parent when it's Dock is
12742         set, but it has children, it needs to do a layout.  Fixes some nested
12743         controls issues.  [Fixes bug #81199]
12744
12745 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12746
12747         * ComboBox.cs: If there are few items in the drop down list, make it
12748           the exact size the items need, no bigger. Fixes #81612.
12749
12750 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12751
12752         * Application.cs: When we have captured the keyboard for a menu,
12753         check for mouse down events in case we need to close the menu.
12754         * Control.cs, Form.cs: Remove mouse down checks for menus.
12755
12756 2007-05-24  Jackson Harper  <jackson@ximian.com>
12757
12758         * TextControl.cs: Handle tabs in non multiline mode a little
12759         differently.
12760
12761 2007-05-24  Jackson Harper  <jackson@ximian.com>
12762
12763         * TextControl.cs: We need to manually break apart tabbed text and
12764         move the tabs, since the system.drawing tabbing mechanism relies
12765         on tab stops.
12766         * TextBoxBase.cs: Move the caret properly when the user enters a
12767         tab.
12768
12769 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12770
12771         * ContainerControl.cs: Don't check CanSelect before calling
12772         ProcessMnemonic.
12773         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
12774         release a KeyboardActive on click if it's not ours.
12775
12776 2007-05-23  Andreia Gaita  <avidigal@novell.com>
12777
12778         * ColumnHeader.cs: Add TypeConverter
12779
12780 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12781
12782         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
12783
12784 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12785
12786         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
12787
12788 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12789
12790         * LinkLabel.cs: Implement public Padding property.
12791
12792 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12793
12794         * LinkLabel.cs: Implement public FlatStyle.
12795
12796 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
12797
12798         * Control.cs: Apply patch from George to call parent.PerformLayout
12799         when Visible is changed.  [Fixes bugs #81118, 81718]
12800
12801 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12802
12803         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
12804
12805 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12806
12807         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
12808
12809 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12810
12811         * ContextMenu.cs: Implement Collapse.
12812
12813 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
12814
12815         * ToolBarButton.cs: Implement Name.
12816
12817 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
12818
12819         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
12820         use current_item, it prevents some NRE. Fixes #81675.  
12821
12822 2007-05-22  Andreia Gaita  <avidigal@novell.com>
12823
12824         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
12825         without updating the text.
12826
12827 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
12828
12829         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
12830         without calling DeleteObject.  [Should fix bug #81709]
12831
12832 2007-05-22  Jackson Harper  <jackson@ximian.com>
12833
12834         * RichTextBox.cs: Set the line endings correctly, when flushing
12835         RTF text.
12836
12837 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
12838
12839         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
12840          {Width=0,Height=0}.
12841
12842 2007-05-22  Jackson Harper  <jackson@ximian.com>
12843
12844         * TreeView.cs: Setting top with a null node should set to the very
12845         top.
12846
12847 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12848
12849         * Form.cs: ShowDialog: destroy the handle when message loop is
12850           finished, matches MS behaviour. Refactor parts of WmClose into
12851           RaiseCloseEvents, that only raises events if they haven't already
12852           been raised. Fixes #81688 and #81521.
12853         * Application.cs: Don't call close on the form when exiting a modal
12854           loop, it will raise all the (Form)Closed/Closing events again if
12855           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
12856           which doesn'r raise any events it they have been raised before.
12857
12858 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
12859
12860         * Control.cs: Add OnPrint.
12861         * ToolStrip.cs: Add GetChildAtPoint.
12862         * ToolStripContainer.cs: Add OnRightToLeftChanged.
12863         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
12864
12865 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
12866
12867         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
12868
12869 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12870
12871         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
12872           isn't visible anymore. Fixes #81651.
12873
12874 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12875
12876         * Control.cs: WmShowWindow: Update children's z-order after setting
12877           their parent. SetParent may show the window, thereby corrupting
12878           z-order, since the window will be shown on top.
12879         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
12880           multiple (and redundant) WM_SHOWWINDOW messages.
12881         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
12882           event has already been raised.
12883         * Form.cs: Change is_changing_visible_state to a counter, since
12884           SetVisibleCore can be called recursively. CreateHandle: when
12885           creating mdi children, send (De)Activated events.
12886         * MdiClient.cs: Update use of is_changing_visible_state.
12887         * Application.cs: OnThreadException: Surround exception handling with
12888           try/finally to ensure we always reset the error-handling state
12889           before leaving.
12890
12891 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12892
12893         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
12894           (#81704).
12895
12896 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12897
12898         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
12899         SmallIcon views, now that we have a standarized horizontal spacing.
12900
12901         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
12902         4, just like the other views (Match .Net).
12903
12904 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
12905
12906         * Control.cs: Delay calculating anchor distances until we actually layout.
12907         Always query the WM for the actual size and location it put us at instead of
12908         only when we send negative values.
12909         [Fixes bugs #81694, 81695]
12910
12911 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12912
12913         * Application.cs: Avoid a possible stack overflow when trying to exit
12914           the application.
12915
12916 2007-05-19  Marek Safar  <marek.safar@gmail.com>
12917
12918         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
12919         enum value.
12920
12921 2007-05-19  Andreia Gaita  <avidigal@novell.com>
12922
12923         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
12924         * NumericUpDownAcceleration.cs, 
12925           NumericUpDownAccelerationCollection.cs: Added 2.0
12926           implementation.
12927
12928 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
12929
12930         * RichTextBox.cs: Recalculate the document after the ScrollBars
12931         property is changed. Fixes bug #81681.
12932
12933 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
12934
12935         * DataObject.cs: Implement 2.0 methods.
12936
12937 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12938
12939         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
12940         in the center of the checkbox, not in the left-top corner. 
12941         Fixes #80037.
12942
12943 2007-05-18  Jackson Harper  <jackson@ximian.com>
12944
12945         * RichTextBox.cs: Recalculate the document after the scrollbars
12946         property is changed.
12947         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
12948         81486.
12949
12950 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12951
12952         * CreateParams.cs: Make HasWindowManager marginally faster.
12953         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
12954           into Hwnd so that other drivers can use it as well.
12955         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
12956           the default location from Hwnd. Fixes MDI client windows always
12957           showing up at (0,0) in Windows (Win32 won't set the default
12958           location since the window styles aren't correct).
12959
12960 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
12961
12962         * TreeView.cs: Modified DoubleBuffered to just use the base
12963         implementation.
12964
12965 2007-05-18  Jackson Harper  <jackson@ximian.com>
12966
12967         * TreeView.cs: Set the top node to the last child node when
12968         expanding all
12969         - When we get focus, if there is no selected node, use the top
12970         node.
12971
12972 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
12973
12974         * KeysConverter.cs: Add CanConvertTo.
12975         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
12976         * LinkConverter.cs: Added.
12977
12978 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12979
12980         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
12981         it prevents error when file dont have write access. Fixes #81669 and #81667.  
12982
12983 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12984
12985         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
12986         button text. Fixes #79640.  
12987
12988 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12989
12990         * Control.cs: According to MSDN controls created in the designer theres 
12991         keyboard accelerators visible by default. So included check for design
12992         in ShowKeyboardCuesInternal.  
12993
12994 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12995
12996         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
12997         text. Fixes #81621.  
12998
12999 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13000
13001         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
13002         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
13003
13004 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13005
13006         * Control.cs: Finish implementation of UI State using WmChangeUIState
13007         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
13008         in some controls to check for show_keyboard_cues to draw accell keys "_".  
13009
13010 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13011
13012         * ListBox.cs: When calculating the horizontal scrollbar
13013         in single column mode, don't use values less than 0 for
13014         Maximum. Fixes #81474.
13015
13016 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13017
13018         * ListBox.cs: Throw the some missing exceptions in
13019         ListBox.ObjectCollection methods.
13020
13021 2007-05-17  Jackson Harper  <jackson@ximian.com>
13022
13023         * TextBoxBase.cs: Recalculate the document when the word wrap
13024         value has changed. This fixes 81488.
13025
13026 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13027
13028         * Clipboard.cs: Implement missing GetText overload.
13029
13030 2007-05-17  Chris Toshok  <toshok@ximian.com>
13031
13032         * Control.cs (CheckDataBindings): remove the binding_context arg
13033         to binding.Check.
13034
13035         * CurrencyManager.cs (OnItemChanged): fix this now that
13036         BindingManagerBase is fixed. also remove the comment telling where
13037         the fix should go.  We set transfering_data to true/false around
13038         the call to PushData to keep UpdateIsBinding from being called.
13039         (ListChangedHandler): remove the extra OnMetaDataChanged call for
13040         PropertyDescriptorAdded in the 1.1 case.  The extra call is
13041         actually generated by System.Data generating 2 metadata changed
13042         events of its own per column add.  The fix should go there.  Add a
13043         comment to that affect in our test's Assert.Ignore.
13044
13045         * BindingManagerBase.cs: Rework PullData and PushData slightly.
13046         we keep a boolean flag (transfering_data) that keeps us from
13047         calling UpdateIsBinding multiple times if we re-enter either of
13048         them.
13049
13050         * ControlBindingsCollection.cs (AddCore): remove the
13051         binding_context arg to binding.Check.
13052
13053         * Binding.cs (IsBinding): don't check if we're binding here, just
13054         return our cached value.  we update it in UpdateIsBinding.
13055         (Check): don't take the binding_context arg, we'll just use our
13056         control's.  Also, for some reason MS doesn't use the data member
13057         field when getting the bindingmanager for this binding.  it just
13058         uses the datasource.  Make this method callable multiple times,
13059         and only do the is_null_desc stuff if manager.Position != -1 (so
13060         we don't get an exception accessing manager.Current).
13061         (UpdateIsBinding): move the code from IsBinding here.
13062         (PositionChangedHandler): call Check here to we can initialize
13063         things that require a non- -1 position.
13064
13065 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13066
13067         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
13068         control.
13069
13070 2007-05-17  Andreia Gaita  <avidigal@novell.com>
13071
13072         * TabControl.cs: Add 2.0 methods and events, including
13073         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
13074         * TabPage.cs: Add 2.0 methods
13075
13076 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13077
13078         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
13079         keyboard_cues is properly handled by message method.  
13080
13081 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13082
13083         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
13084
13085 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13086
13087         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
13088
13089 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
13090
13091         * Control.cs: 
13092         - WmUpdateUIState added to handle state changes, it make call to
13093         OnChangeUICues event.
13094         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
13095         SystemInformation.
13096
13097 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
13098
13099         * ImageKeyConverter.cs: Added.
13100         * TreeViewImageKeyConverter.cs: Added.
13101
13102 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13103         
13104         * ToolTips.cs: Update Text if SetToolTip is called for a control
13105         already showing the tooltip, as well as restarting its timer; show
13106         tooltip if we are inside the control bounds by the time of calling
13107         SetToolTip. Inside ShowTooltip remove the check to not show the 
13108         tooltip again for the active control (it is allowed by .Net to 
13109         show the tooltip on the same control multiple times).
13110
13111 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13112
13113         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13114
13115 2007-05-16  Andreia Gaita <avidigal@novell.com> 
13116
13117         * ContainerControl.cs: only process tab key if there are no 
13118         modifier keys present, otherwise the control does the 
13119         tab processing, if it needs to. Fixes #81622
13120         * TabControl.cs: Fixes calculation for which tab to select on
13121         shift+ctrl+tab.
13122
13123 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13124
13125         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13126
13127 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
13128
13129         * Control.cs: Make IsInputCharInternal to allow controls to
13130         override it and still match MS API.
13131         * TextBoxBase.cs: Override IsInputCharInternal and always
13132         return true.
13133         [Fixes bug #81616]
13134
13135 2007-05-15  Jackson Harper  <jackson@ximian.com>
13136
13137         * TextBox.cs: Disable some of the menu options when using a
13138         readonly textbox.
13139
13140 2007-05-15  Jackson Harper  <jackson@ximian.com>
13141
13142         * TextBox.cs:
13143         * TextBoxBase.cs:
13144         * RichTextBox.cs: Some new 2.0 methods
13145
13146 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
13147
13148         * FileDialog.cs: On 1.0 profile, do not support multidotted 
13149         extensions.
13150
13151 2007-05-14  Jackson Harper  <jackson@ximian.com>
13152
13153         * TextBoxBase.cs: Implement some of the new 2.0 methods.
13154         * RichTextBox.cs: We need to override these methods on 2.0.
13155         * MaskedTextBox.cs: These are implemented now
13156         * TextControl.cs: This was off by one.
13157
13158 2007-05-14  Jackson Harper  <jackson@ximian.com>
13159
13160         * TextControl.cs: Because the line endings are including in the
13161         text, we don't need to add them in anymore.
13162
13163 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13164
13165         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
13166         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
13167
13168 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13169
13170         * ToolBar.cs: Adjust size to default size when button theres no text and
13171         image, it fixes remaining issues from #81524.
13172
13173 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13174
13175         * ToolBar.cs: 
13176         - When not flat call redraw to recalculate sizes on creare handle to match
13177         win32 behavior.
13178         - Revert 77220 because it causes some regressions in toobar
13179         button.
13180
13181 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13182
13183         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
13184           now actually enters a usable state.
13185
13186 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13187
13188         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
13189         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
13190         3 buttons.
13191
13192 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13193
13194         * ToolBar.cs: Save default_size on create handle to use later for buttons
13195         without text, needed to mimic win32 behavior.
13196
13197 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13198
13199         * ToolBar.cs: Fix button layour to best fit width or height according to
13200         vertical or not. Fixes #81524.
13201
13202 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
13203
13204         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
13205         toolbar size info because different styles theres different sizes.
13206         Fixes #81522.
13207
13208 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13209
13210         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
13211         if we are using checkboxes, checked is true, and we have less
13212         than two images in StateImageList; for the 1.1 in the same scenario
13213         draw the first image if we have at least one image in StateImageList.
13214         Fixes part of #81191.
13215
13216 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13217
13218         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
13219         the owner's Items collection on merge.
13220
13221 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13222
13223         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
13224         * ToolStripItemCollection.cs: Lots of fixes to when events get called
13225         and parent/owner gets changed based on gert's unit tests.
13226
13227 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13228
13229         * MaskedTextBox.cs: Started implementing parts of it.
13230
13231 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13232
13233         * ListView.cs: When clicking the checkbox on the items
13234         take into account the double clicks even if we have only
13235         one image in StateImageList (only for 1.0/1.1). Also 
13236         generate an extra change of checked state when we receive
13237         the second click on checkbox (match .Net behaviour). 
13238         Fixes part of #81191.
13239
13240 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
13241
13242         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
13243
13244 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13245
13246         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
13247         even if OnLoad is overriden and base.OnLoad is not called.
13248         [Fixes bug #81582]
13249
13250 2007-05-10  Andreia Gaita  <avidigal@novell.com>
13251
13252         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
13253         shame. (I blame my ever-persisting and annoying cold)
13254
13255 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13256
13257         * ListView.cs: Don't eat navigation keys.  Let them flow through to
13258         KeyDown/KeyPress routines.  [Fixes bug #81569]
13259
13260 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13261
13262         * ListView.cs: When handling keys for selecting the item based off
13263         keyboard input, do not consider keys pressed with Alt or Control.  Also,
13264         correctly handle keys when the Shift key is down. [Fixes bug #81578]
13265
13266 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13267
13268         * Control.cs: When using UseWaitCursor, we have to store the requested
13269         Cursor to use when UseWaitCursor is turned off.
13270
13271 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13272
13273         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
13274         to false.
13275         * Application.cs: Use PreProcessControlMessage instead of
13276         PreProcessMessage.
13277         * PreProcessControlMessage.cs: Make internal for 1.1.
13278
13279 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13280
13281         * Control.cs: Add InternalContains focus property, which hast the same
13282         functionality of ContainsFocus, but also including implicit controls.
13283         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
13284         since we need to know if the focus is contained in our implicit
13285         ItemControl when calculating Layout. Fixes part of #80888.
13286
13287 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
13288
13289         * ToolTip.cs: Remove center form string alignment as it must be align to
13290         left.
13291
13292 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
13293
13294         * ToolStripItemCollection.cs: Set the new item's parent and owner
13295         in Insert like we do in Add.  [Fixes bug #81568]
13296
13297 2007-05-08  Jackson Harper  <jackson@ximian.com>
13298
13299         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
13300         - Off by one error in SetTop
13301         - Disable DoubeBuffering
13302         
13303 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13304
13305         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
13306           control as much as necessary in order to make it entirely visible,
13307           instead of centering the control in the container (matches MS
13308           behaviour). CalculateCanvasSize: we need to take the current scroll
13309           position into account when calculating the maximum canvas,
13310           otherwise the following scenario will fail: resize so that the
13311           scrollbars appear, use the scrollbars to scroll, resize again
13312           smaller, and now the canvas size is too small. Recalculate: when
13313           showing scrollbars make sure they start off at 0, and try to scroll
13314           the active control into view. Fixes #79540. HandleScrollBar: don't
13315           scroll anywhere if the scrollbar isn't visible.
13316
13317 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13318
13319         * ListView.cs: When focus changed, call Layout/Invalidate
13320         in the focused item to update the selected state (should show
13321         entire label when ListView is focused, and a part of it if is not).
13322         * ListViewItem.cs: When doing layout for LargeIcon, take into account
13323         for displaying the entire label not only the Focused state of the
13324         item, but also the Focused state of the ListView (match .Net
13325         behaviour).
13326
13327 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13328
13329         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
13330         Implement UseWaitCursor. 
13331
13332 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13333         Applying contributed patch from Sergey Volk.
13334
13335         * Clipboard.cs: Implement SetDataObject retry logic and new overload
13336         of SetDataObject.
13337         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
13338
13339 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13340
13341         * Control.cs: Implement DrawToBitmap.
13342
13343 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13344         Applying contributed patch from Stefan Noack.
13345         
13346         * Control.cs: Add [Get|Set]AutoSizeMode.
13347
13348 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13349
13350         * MdiClient.cs: Unmerge menus when the last child is closed.
13351
13352 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13353
13354         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
13355         * ToolStripManager.cs: Call Merge on DropDowns.
13356         [Fixes bug #81477]
13357
13358 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13359
13360         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
13361           uints.
13362         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
13363           visibility. We can't create forms visible, since we have to set the
13364           owner before making the form visible (otherwise Win32 will do
13365           strange things with task bar icons). The problem is that we set the
13366           internal is_visible to true before creating the control, so
13367           is_changing_visible_state is the only way of determining if we're
13368           in the process of creating the form due to setting Visible=true -
13369           this works because SetVisibleCore explicitly makes the form
13370           visibile afterwards anyways. Fixes #80775.
13371
13372 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13373
13374         * ThemeWin32Classic.cs: When drawing ListViewItems,
13375         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
13376         or LargeIcon _and_ item is not focused (match .Net behaviour).
13377
13378 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
13379
13380         * Control.cs, Form.cs: Fix some obsolete method warnings.
13381
13382 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
13383
13384         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
13385         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
13386
13387 2007-05-04  Andreia Gaita  <avidigal@novell.com>
13388
13389         * ContainerControl.cs: Fix active_control attribution when going
13390         up the parent chain so that the first parent container gets the control
13391         and the rest of the parent containers get the child containers (skips
13392         non-containers). Fixes #80729
13393
13394 2007-05-04  Randolph Chung  <tausq@debian.org>
13395
13396         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
13397         [Fixes bug #81499]
13398
13399 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13400
13401         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
13402           takes a size parameter, since the CreateParam's size isn't true for
13403           minimized forms. Fixes #81518,
13404
13405 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13406
13407         * Form.cs: Add OnDeactivateInternal.
13408         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
13409
13410 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13411
13412         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
13413           accessing the parent. Fixes #81508.
13414
13415 2007-05-03  Chris Toshok  <toshok@ximian.com>
13416
13417         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
13418         2.0 block, pass listposition + 1 to ChangeRecordState when a row
13419         was added before the current listposition.  Fixes the
13420         TestInsertRowBeforeCurrent unit test.
13421
13422 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
13423
13424         * Application.cs: Add RaiseIdle.
13425         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13426         XplatUIX11.cs: Implement RaiseIdle.
13427
13428 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
13429         corcompare work: N - Z
13430         * NotifyIcon.cs
13431         * ProgressBar.cs
13432         * RadionButton.cs
13433         * ScrollableControl.cs
13434         * SplitContainer.cs
13435         * SplitterPanel.cs
13436         * StatusBar.cs
13437         * SystemInformation.cs
13438         * TabControl.cs
13439         * TableLayoutControlCollection.cs
13440         * TableLayoutPanel.cs
13441         * TabPage.cs
13442         * ToolBar.cs
13443         * ToolBarButton.cs
13444         * ToolStrip.cs
13445         * ToolStripComboBox.cs
13446         * ToolStripContainer.cs
13447         * ToolStripContentPanel.cs
13448         * ToolStripDropDown.cs
13449         * ToolStripDropDownItem.cs
13450         * ToolStripDropDownMenu.cs
13451         * ToolStripItem.cs
13452         * ToolStripItemCollection.cs
13453         * ToolStripMenuItem.cs
13454         * ToolStripPanel.cs
13455         * ToolStripSplitButton.cs
13456         * ToolTip.cs
13457         * TreeNode.cs
13458         * TreeNodeCollection.cs
13459         * TreeNodeMouseHoverEventArgs.cs
13460         * TreeView.cs
13461
13462 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
13463
13464         * ContextMenu.cs: Add public method Show with alignment property to 2.0
13465         stuff. Thanks aatdark for the patch. 
13466
13467 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13468
13469         * GridItem.cs: Implement 2.0 Tag property.
13470
13471 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
13472
13473         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
13474         count instead of Nodes.Length.  [Fixes bug #81448]
13475
13476 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13477
13478         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
13479         [Fixes bug #81506]
13480
13481 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13482         corcompare work: A - M
13483         * BindingNavigator.cs
13484         * Button.cs
13485         * ButtonBase.cs
13486         * CheckBox.cs
13487         * Control.cs
13488         * FlowLayoutPanel.cs
13489         * Form.cs
13490         * Label.cs
13491         * LinkLabel.cs
13492         * ListView.cs
13493
13494 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13495
13496         * Application.cs: Give toolstrips a chance to process mnemonics.
13497         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
13498         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
13499         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
13500
13501 2007-05-01  Jackson Harper  <jackson@ximian.com>
13502
13503         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
13504         wider area too.
13505         - Don't set the BoundsSpecified
13506
13507 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13508
13509         * Application.cs: When using the toolstrip shortcut mechanism, allow the
13510         message to pass through to a regular control if it hosted by a toolstrip.
13511         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13512         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
13513
13514 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13515
13516         * TextRenderer.cs: Use the flags argument when using the MeasureString
13517         fallback algorithm.
13518
13519 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13520
13521         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
13522         the MDI menu item.  [Fixes bug #81483]
13523
13524 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
13525
13526         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
13527         string. When setting Name to null, use zero-length string instead.
13528
13529 2007-04-29  Andreia Gaita  <avidigal@novell.com>
13530
13531         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
13532         DeselectTab). Implement missing 2.0 TabPageCollection methods
13533         (Add, ContainsKey, RemoveByKey, IndexOfKey)
13534
13535 2007-04-29  Pedro MartĂ­nez JuliĂ¡  <pedromj@gmail.com>
13536
13537         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
13538
13539 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
13540
13541         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
13542         Fixes bug #81479. Include details of exception when LoadFile fails.
13543
13544 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
13545
13546         * DrawListViewSubItemEventArgs.cs: Added missing setter
13547
13548 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13549
13550         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
13551         Hide methods (not complete). Implement missing 2.0 OnPopup event.
13552
13553 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13554
13555         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
13556         removed in ly last commit (it was breaking the Label edit feature).
13557
13558         * ThemeWin32Classic.cs: When drawing a ListViewItem use
13559         StringAlignment.Near for LineAlignment (match .Net).
13560
13561 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13562
13563         * TabControl.cs: Change SetTab so it adds the tabpage to the list
13564         of controls if it isn't already there - was blowing up when doing
13565         tabcontrol.TabPages[i]=new TabPage(). 
13566         SetTab now does a replace by removing the page at the index. 
13567         Add a new InsertTab method that inserts a page in a given index 
13568         instead of replacing. 
13569         Implements TabPageCollection.Insert(int, TabPage).
13570
13571 2007-04-27  Chris Toshok  <toshok@ximian.com>
13572
13573         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
13574         internal handler that can be invoked from our subclasses.)  Also,
13575         add a comment to PushData about how we need to fix it.
13576
13577         * CurrencyManager.cs: tons of changes here.  trying to get things
13578         matching the behavior of .net wrt event orders (ItemChanged,
13579         CurrentChanged, PositionChanged.)  I've implemented a private .net
13580         symbol (ChangeRecordState) that appears in stack traces because
13581         it's actually easier to do this than to effective inline all its
13582         various behaviors at every call site.
13583
13584         * RelatedPropertyManager.cs: guard against an exception here by
13585         not using parent.Current if the position is set to -1 (if the
13586         parent datasource is cleared, for instance).
13587
13588         * Binding.cs: don't parse data in PushData (this might be wrong,
13589         but it jives with MS's behavior.)  Also, don't call PushData when
13590         we get a CurrentChanged event.
13591
13592 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13593
13594         * WebBrowser.cs,
13595           WebBrowserBase.cs,
13596           WebBrowserSiteBase.cs,
13597           HtmlDocument.cs: Added stubbed out classes, no real implementations 
13598           yet.
13599
13600 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13601
13602         * MainMenu.cs: In draw method without parameters call draw method with 
13603         PaintEvent, another one (just rect) adjust rectangle and we dont need it
13604         as Rect property is already adjusted. Fixes #80694.
13605
13606 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
13607
13608         * Application.cs: Need to handle keyboard menu deselection here.
13609         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
13610         navigation, allowing keyboard to work on X11.
13611         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
13612
13613 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13614
13615         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
13616         menu bar. It fixes some drawing issues in menu bar.
13617
13618 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13619
13620         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
13621         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
13622         when <alt> key is pressed.
13623
13624 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13625
13626         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
13627         example just set visible to false and make this prevent from other problems.
13628         In SystrayAdd always remove pending expose. Fixes #81072.
13629
13630 2007-04-26  Marek Safar  <marek.safar@gmail.com>
13631
13632         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
13633         value is set.
13634
13635 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13636
13637         * ListView.cs: Added three missing 2.0 events and corresponding
13638         EventHandlers. Added the OwnerDraw property.
13639         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
13640
13641 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13642
13643         * DrawListViewItemEventArgs.cs
13644         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
13645
13646 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13647
13648         * TextControl.cs: Fixed typo in constructor
13649
13650 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
13651
13652         * Application.cs: Create a shortcut path so that currently selected
13653         MenuStrips can intercept keyboard events without having focus.
13654         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
13655         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
13656         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
13657         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
13658         generate WM_SYSCOMMAND message in X11 for other platforms.
13659         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
13660         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
13661         * ToolStripSplitButton.cs: Add DefaultItem property.
13662         
13663 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13664
13665         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
13666         fixes some menu draw problem on Windows with border diferent from default
13667         it also fixes #81403.
13668
13669 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13670
13671         * Form.cs: Refactor WndProc into separate methods, just like Control is
13672           doing it.
13673
13674 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13675
13676         * Control.cs: set_Text: move the call to the driver into a seperate
13677           virtual method so that Form can override it.
13678         * MaskedTextBox.cs: Corcompare fixes.
13679         * Form.cs: Override UpdateWindowText and only update the styles if the
13680           form has been shown (fixes #81405).
13681
13682 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13683
13684         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
13685         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
13686         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
13687         the form lost focus or another control was clicked.
13688
13689 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
13690
13691         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
13692         fixed.
13693
13694 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13695
13696         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
13697           DrawListViewItemEventHandler.cs,
13698           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
13699           Added.
13700         * X11Structs.cs: More ToString implementation.
13701
13702 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13703
13704         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
13705         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
13706
13707 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13708
13709         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
13710           handle.
13711         * FormCollection.cs: Don't add a form if it's already in the
13712           collection.
13713         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
13714           according to behaviour and MSDN. The ownerWin32 is the active
13715           window at the moment when we call ShowDialog, not the context's
13716           main form (the context's main form may open another form that opens
13717           a form with ShowDialog, the win32 owner is the second form). Add
13718           and remove forms to the Application.OpenForms in other places to
13719           better match MS behaviour. Add an IsActive property that raises
13720           On(de)Activated only if the active state has changed (we were
13721           raising OnDeactivated before OnActivated while creating forms).
13722         * Application.cs: Refactor Enabling/Disabling of windows for modal
13723           dialog loops out to separate methods, and restore the thread
13724           context when we quit the method. Fixes #81407.
13725
13726 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13727
13728         * ListView.cs: In ItemControl.HandleClicks, also fire 
13729         2.0 MouseClick or MouseDoubleClick events on the parent,
13730         not only the Click/DoubleClick events.
13731
13732 2007-04-24  Andreia Gaita  <avidigal@novell.com>
13733
13734         * TableLayoutSettings.cs: 
13735         - Added a GetControls method and a support structure to help the 
13736         TypeConverter to enumerate the controls for     serialization. 
13737         - Added a new serialization constructor. 
13738         - Added a isSerialized flag initialized to true on the 
13739         serialization constructor so that the TableLayoutPanel.LayoutSettings 
13740         setter does not throw the designed NotSupportedOperation exception
13741         when the object is built through deserialization.
13742         - Implemented GetObjectData
13743         
13744         * TableLayoutPanel.cs: Added check on LayoutSettings.
13745
13746 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13747
13748         * ListView.cs: Report Click and DoubleClick events to the parent
13749         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
13750         from breaking the click count state when using dialog forms (Control
13751         reports the clicks in a similar fashion). In the previous behaviour
13752         the last WM_LBUTTONUP message in a  double click was sent to the
13753         ListView's form, instead of the ListView, which was breaking the click
13754         count for it. Fixes #80387.
13755
13756 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
13757
13758         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
13759
13760 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
13761
13762         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
13763         us from created dropdowns for menu items that do not have subitems.
13764         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
13765         Check HasDropDownItems before calling DropDown so a dropdown will not be
13766         created if it isn't needed.
13767
13768 2007-04-24  Jackson Harper  <jackson@ximian.com>
13769
13770         * TreeView.cs: Set the first node to the selected node when we get
13771         focus if there is no selected node.
13772
13773 2007-04-24  Andreia Gaita  <avidigal@novell.com>
13774
13775         * MimeIcon.cs: remove using blocks so that image streams are
13776         not disposed of. Fixes #80151
13777
13778 2007-04-24  Jackson Harper  <jackson@ximian.com>
13779
13780         * TextBoxBase.cs: Fixup the height of textboxes when the control
13781         is created.
13782
13783 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
13784
13785         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
13786         for each ToolStripItem when the parent's RightToLeftChanged is called.
13787
13788 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13789
13790         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
13791           Fixes #80163.
13792         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
13793           property, so that the setter can be overriden too.
13794         * TextBox.cs: Change GetContextMenuInternal() to use
13795           ContextMenuInternal.
13796
13797 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13798
13799         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13800           #81406.
13801
13802 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13803
13804         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13805           #81406.
13806
13807 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13808
13809         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
13810           avoid duplicate work. Mostily skeleton code, it's not working at
13811           all yet.
13812
13813 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
13814
13815         * NotifyIcon.cs : stub for MouseClick event
13816         * Application.cs: stub for SetUnhandledExceptionMode
13817
13818 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
13819
13820         * BindingNavigator.cs : Initial (partial) implementation
13821
13822 2007-04-23  Jackson Harper  <jackson@ximian.com>
13823
13824         * TreeView.cs: Do not create the treeview's handle when setting
13825         the scroll position.
13826         - ExpandAll needs to compute the scrollbars so it knows which
13827         position to set the bar too.
13828         * TreeNode.cs: 
13829         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
13830
13831 2007-04-23  Jackson Harper  <jackson@ximian.com>
13832
13833         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
13834         key. Fixes #81408.
13835
13836 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
13837
13838         * ToolStripItem.cs: Make GetImageSize internal.
13839         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
13840         need to draw an item.  Fixes a reported issue where images on menus
13841         that were not 16x16 were drawing incorrectly.
13842
13843 2007-04-21  Miguel de Icaza  <miguel@novell.com>
13844
13845         * Padding.cs: Use the converter, fixes the resgen2 issue with
13846         XMLNotePad. 
13847
13848 2007-04-21  Jackson Harper  <jackson@ximian.com>
13849
13850         * TreeView.cs: Dont try to unhighlight the selected node if there
13851         isn't a selected node.
13852
13853 2007-04-21  Jackson Harper  <jackson@ximian.com>
13854
13855         * UpDownBase.cs:
13856         * TextBoxBase.cs:
13857         * ListView.cs:
13858         * ListBox.cs:
13859         * TreeView.cs: Use the InternalBorderStyle property to set the
13860         initial border style, this forces the client rectangle to be sized
13861         correctly.
13862
13863 2007-04-20  Jackson Harper  <jackson@ximian.com>
13864
13865         * TreeView.cs: Simplify scrolling to the last node after expanding
13866         all.
13867         - Fix some off by ones with setting the bottom.
13868
13869 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
13870
13871         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
13872         that.  We were incorrectly doing it the other way around.  Also,
13873         update ClientSize if we change the BorderStyle before the control
13874         is created.
13875
13876 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
13877
13878         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
13879         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
13880         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
13881         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
13882         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
13883         Caption to CaptionHeight.
13884         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
13885         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
13886         and FixedFrameBorderSize to return value from current XplatUI driver.
13887         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
13888         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
13889         and FixedFrameBorderSize using win32 API. Renamed Caption to
13890         CaptionHeight.
13891         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
13892         * SystemInformation.cs: Fixed typo in BorderSize.
13893
13894 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
13895
13896         * XplatUI.cs: Added MenuAccessKeysUnderlined.
13897         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
13898         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
13899         returning false.
13900         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
13901         value from XplatUI driver.
13902         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
13903         SystemParametersInfo.
13904         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
13905         override.
13906         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
13907         returning false.
13908
13909 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13910
13911         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
13912
13913 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13914
13915         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
13916
13917 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
13918
13919         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
13920         MenuStrips that contain ToolStripSeparators.
13921
13922 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13923
13924         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
13925           DefineStdCursorBitmap.
13926         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
13927           has been created off a standard cursor. This is used to get a
13928           bitmap of the standard cursor when Draw or DrawStretched is called
13929           in order to draw the cursor.
13930         * X11Structs.cs: Added XcursorImage and XcursorImages.
13931         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
13932           DefineStdCursorBitmap.
13933         * Cursors.cs: Update all relevant creations of Cursor to use the new
13934           internal constructor.
13935
13936 2007-04-19  Jackson Harper  <jackson@ximian.com>
13937
13938         * TextBox.cs: Move the has_been_focused into the base control, so
13939         some of the text adding methods can manipulate it (probably time
13940         for a better name for this flag too).
13941         - Call a new version of selectall that doesn't scroll
13942         * TextBoxBase.cs: When we append text, if the document is empty,
13943         don't scroll.  If the document has text already, we scroll to the
13944         end of the appended text.
13945         - When the text is changed, we reset the has_been_focused, so the
13946         next time the control gets focused, all the text is selected.
13947
13948 2007-04-19  Jackson Harper  <jackson@ximian.com>
13949
13950         * TextControl.cs: Move the margins to the document, add a method
13951         so the margin sizes can be updated.
13952         * TextBoxBase.cs: When the border style is changed, update the
13953         border sizes.
13954
13955 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
13956
13957         * Control.cs: Respect DefaultPadding.
13958         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
13959         padding into account.
13960         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
13961
13962 2007-04-19  Jackson Harper  <jackson@ximian.com>
13963
13964         * TextControl.cs: Oops, we need to use the ClientRect not the
13965         bounds here.
13966
13967 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13968
13969         * ListView.cs: In ItemControl.ItemsMouseDown, take into
13970         account the double clicks when CheckBoxes are used and
13971         the pointer is inside the checkbox. Fixes part of #81191.
13972
13973 2007-04-18  Jackson Harper  <jackson@ximian.com>
13974
13975         * TextControl.cs: Pressing the end key shouldn't move the caret
13976         past the line ending.
13977         * TextBoxBase.cs: We can still delete if we are in the line
13978         ending and the combine will just kill the existing line ending.
13979
13980 2007-04-18  Jackson Harper  <jackson@ximian.com>
13981
13982         * TextControl.cs: We can't move lines, then invalidate their
13983         bounds, we need to get the old bounds and combine that with the
13984         new bounds.
13985         * TextBoxBase.cs: Before combining two lines for a delete, we need
13986         to invalidate the area of the old line, since that will be moved
13987         in the combine operation.
13988
13989 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
13990
13991         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
13992         with transparent background. Fixes #80482.
13993
13994 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
13995
13996         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
13997         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
13998         [Fixes bug #81391]
13999
14000 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14001
14002         * CreateParams.cs: Add a couple of helper methods and do a less string
14003           concatenation in ToString.
14004         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
14005           overload that takes a Control parameter, since this method may be
14006           called before a control is assigned to the hwnd (from
14007           CreateWindow), and update CreateWindow to use the new overload. In
14008           GetMenuOrigin subtract the title bar from the y position if the
14009           form has a window manager (since we're painting it and not X).
14010         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
14011           CreateParams to calculate the origin (since border sizes may vary).
14012           In ScreenToMenu only subtract the title height if we actually have
14013           a title.
14014         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
14015           mdi children never have menus of themselves.
14016         * InternalWindowManager.cs: Implement menu handling like form does.
14017           Added GetMenuOrigin to calculate the menu origin, can't use the
14018           CreateParams from the form like normally since it's lying.
14019         * Hwnd.cs: Implement GetBorderSize better (in the sense more
14020           windows-like) and add Inflate and comparison operators to the
14021           Borders type. When calculating MenuOrigin and it's a form with a
14022           window manager, use the window manager to calculate it.
14023
14024 2007-04-17  Chris Toshok  <toshok@ximian.com>
14025
14026         * Control.cs (CreateControl): turns out in 2.0 we don't need this
14027         OnBindingContextChanged thing here.  It's only generated from
14028         ContainerControl.OnCreateControl.  Fixes a newly written unit test
14029         - BindingTest.BindingContextChangedTest4.
14030         
14031 2007-04-17  Jackson Harper  <jackson@ximian.com>
14032
14033         * ScrollBar.cs: When setting values, make sure the current
14034         position stays within the new values range.
14035
14036 2007-04-17  Chris Toshok  <toshok@ximian.com>
14037
14038         * Control.cs (CreateControl): talk about a bizarre corner case.
14039         Don't emit OnBindingContextChanged here if we're a parentless
14040         control (i.e. if we're a form.).  Fixes
14041         BindingTest.BindingContextChangedTest2.
14042
14043 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14044
14045         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
14046         from win32. Fixes #81255.
14047
14048 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14049
14050         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
14051         already present in CalculateButtonTextAndImageLayout.
14052
14053 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14054
14055         * XplatUIX11.cs: When setting min/max size for a window we need to
14056           translate the coordinates to x coordinates. Create an overload of
14057           SetWindowMinMax that takes a CreateParams handling this, and change
14058           SetWMStyles to call this function (can't use Control.FromHandle in
14059           the SetWindowMinMax to get the control/CreateParams from the handle
14060           because the handle might not have been assigned to the control
14061           yet). Fixes #81371.
14062
14063 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14064
14065         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
14066         if StateImageList is non-null and it has less than two items (match MS
14067         behaviour). Also, in HandleNavKeys handle the Space key, calling
14068         the new ToggleItemsCheckState method, which tries to change the
14069         checked state of the selected items. Fixes part of #81191.
14070
14071 2007-04-16  Jackson Harper  <jackson@ximian.com>
14072
14073         * RichTextBox.cs: namespace cleanup.
14074
14075 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14076
14077         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
14078
14079 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14080
14081         [Fixes #79447]
14082         * Control.cs: Call invalidate in set_Region.
14083
14084         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
14085         it dont works here.
14086
14087 2007-04-16  Jackson Harper  <jackson@ximian.com>
14088
14089         * TextBoxBase.cs: When enter is pressed, we need to update all
14090         lines below the current.
14091
14092 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
14093
14094         * MdiClient.cs: Implement implicit menu merging for MDI
14095         children.  When a child form is active, if it has a menustrip
14096         and the parent form has a MainMenuStrip, automatically merge
14097         the menus.
14098
14099 2007-04-15  Andreia Gaita  <avidigal@novell.com>
14100
14101         * TabControl.cs: Refactored sizing methods to not repeat
14102         code all over the place. Tab bounds are now calculated
14103         as if alignment is top and single line, and only when 
14104         setting the bounds are the positions adjusted according
14105         to alignment. Replaced hardcoded positions, spacings and
14106         paddings by getting the values the ThemeEngine. 
14107         Fixes #79619.
14108         
14109         * Theme.cs: Change TabControl properties and methods so
14110         that all start with TabControl*. Added more properties
14111         to help remove hardcoded values on tabcontrol.
14112         Add CPDrawBorder3D declaration so the Theming classes
14113         can access it.
14114         
14115         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
14116
14117         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
14118         on the Theming namespace, and call the appropriate methods here.
14119         Change CPDrawBorder3D to public.
14120
14121 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14122
14123         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
14124         the control after firing the OnMouseUp event, instead of sending
14125         the message before the mentioned event. This is so we can match the
14126         MS behaviour. Fixes part of #80385.
14127
14128 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
14129
14130         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
14131         RightToLeft property.
14132
14133 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
14134
14135         * ToolStrip.cs: Add properties and internal methods to support merging.
14136         * ToolStripItem.cs: Add MergeAction and MergeIndex.
14137         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
14138         not trigger reparenting or layouts.
14139         * ToolStripManager.cs: Add Merge and RevertMerge methods.
14140         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
14141         is hosting the overflow menu.
14142
14143 2007-04-13  Jackson Harper  <jackson@ximian.com>
14144
14145         * TextControl.cs: Set the line ending correctly for the first
14146         inserted line.
14147
14148 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
14149
14150         * Theme.cs: Update GetMethod to get the new definition for 
14151         KnownColors.Update (and fix theme color updates).
14152
14153 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
14154
14155         * MessageBox.cs: Fix some test and button position.
14156
14157 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14158
14159         * Form.cs: Consider the implicit controls in
14160         GetRealChildAtPoint. We need it since this method
14161         is called on Form when handling the some messages in
14162         WndProc, and need to consider those implicit ones too.
14163         Fixes #80385.
14164
14165 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
14166
14167         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
14168         if there are no ShortcutKeys set.
14169         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
14170         set, use it when painting.
14171
14172 2007-04-12  Jackson Harper  <jackson@ximian.com>
14173
14174         * TextControl.cs: Fix some off-by-one issues in line duplication
14175         and insertion in the undo manager. Also, overwrite the first tag
14176         of a line on insert, if it is just a zero lengthed tag. This
14177         prevents us from getting an extra stranded tag at the beginning of
14178         the first line.
14179
14180 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
14181
14182         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
14183         to calculated proper size including when handle was not created yet.
14184
14185 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14186
14187         * MdiWindowManager.cs: When moving a form, allow the form to be moved
14188           when the mouse is outside of it's parent's client rectangle. Fixes
14189           #79982 (take 3, part 2).
14190
14191 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14192
14193         * X11Structs.cs: Add a few ToString() overrides.
14194         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
14195           the window location in a window-manager independent way. Reworked
14196           FrameExtents, it now actually works. Reworked AddConfigureNotify
14197           and ReparentNotify handling to use GetTopLevelWindowLocation
14198           instead of the earlier, more hacky solution. Reworked SetWMStyles,
14199           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
14200           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
14201           for all other windows (fixes #81281 part 1), a toolwindow is hidden
14202           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
14203           and generally refactored to do as few calculations as possible
14204           inside the lock.
14205
14206 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
14207
14208         * Theme.cs: Change "reflective-contract" between MWF and SD to 
14209         minimize # of calls, avoid Color serialization and avoid updating 
14210         every "known colors" each time a single one is updated.
14211
14212 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
14213
14214         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
14215         when not readonly and the text is explicitly set. Code style updates.
14216         * DataGridTableStyle.cs: Removed extra line.
14217         * DataGrid.cs: Code style updates. Removed extra whitespace.
14218         * DataGridColumnStyle.cs: Code style updates. Removed extra 
14219         whitespace.
14220
14221 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14222
14223         * XplatUIX11.cs: Added comment that "fixes" #80021.
14224
14225 2007-04-09  Jackson Harper  <jackson@ximian.com>
14226
14227         * TextControl.cs: We don't need this -1 on the line count anymore.
14228
14229 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
14230
14231         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
14232         entered value to underlying type, and convert it back to a string to
14233         apply formatting. Modified GetFormattedValue to use TypeConverter
14234         if available.
14235
14236 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
14237
14238         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
14239         Use SubItems property when we want to ensure there's at least one
14240         subitem. Modified SubItems property to ensure there's always at least
14241         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
14242         the NRE's reported by MS.
14243
14244 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
14245
14246         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
14247         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
14248         Spaces to tabs. Removed extra tabs.
14249
14250 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
14251
14252         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14253         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
14254
14255 2007-04-06  Jackson Harper  <jackson@ximian.com>
14256
14257         * TextBoxBase.cs: When a delete removes a line, recalculate all
14258         lines below that line (they need to get offsets setup correctly)
14259         and invalidate.
14260
14261 2007-04-05  Jackson Harper  <jackson@ximian.com>
14262
14263         * TextControl.cs: We need to invalidate across the width of the
14264         document when we are invalidating multiple lines.
14265         * TextBoxBase.cs: Don't delete into the line ending.
14266
14267 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14268
14269         * ListView.cs: Restore the check for the MouseHover event
14270         in ListView. It looks like the ListView fires more than one MouseHover
14271         event when HoverSelection is true  _only_ in weird-corner scenarios, but
14272         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
14273         event.
14274
14275 2007-04-05  Mike Kestner  <mkestner@novell.com>
14276
14277         * ListView.cs : raise MouseDown before updating selection.
14278         [Fixes #80373 tab 1&3]
14279
14280 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
14281
14282         * ToolStripRenderer.cs: Add static method to mirror image.
14283         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
14284         and RightToLeftAutoMirrorImage.
14285         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
14286
14287 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
14288
14289         * ToolStripSplitStackLayout.cs: Support Alignment property.
14290         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
14291
14292 2007-04-05  Jackson Harper  <jackson@ximian.com>
14293
14294         * TextControl.cs: Move around the line endings when crossing line
14295         boundaries.
14296         - When combining lines, strip the ending text off the first line.
14297
14298 2007-04-05  Jackson Harper  <jackson@ximian.com>
14299
14300         * TextControl.cs:
14301         * TextBoxBase.cs: Try to never move the cursor into the line
14302         ending.
14303         
14304 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14305
14306         * ToolStripItem.cs: Make sure we aren't firing mouse events when
14307         the item is disabled.  Also add a few missing methods.
14308
14309 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14310
14311         * ListView.cs: We don't need the MouseEnter/MouseLeave check
14312         to fire just one MouseHover event when HoverSelection is true, since
14313         .Net does fire more than one MouseHover event in that scenario. Also,
14314         fix the selection in HoverSelection, by invoking UpdateMultiSelect
14315         if MultiSelect is true, instead of only setting ListViewItem.Selected.
14316         Finally, we need to reset the Hover logic in MouseMove, even when we
14317         don't have a selected item.
14318
14319 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14320
14321         * ToolStrip.cs: Add several missing methods, properties, and events.
14322
14323 2007-04-04  Chris Toshok  <toshok@ximian.com>
14324
14325         * DataGridTextBoxColumn.cs: set the bounds of the text box to
14326         (0,0,0,0) in Commit, as MS does.
14327
14328         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
14329         make sure we set CurrentRow on a row header click *before* calling
14330         Select.  This moves the current cell (and the textbox) to the new
14331         row.  The call to Select then hides the textbox, giving us the
14332         correct behavior.  Fixes #80362.
14333
14334         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
14335         (ListChangedHandler): reorder the position/current changed events,
14336         and call UpdateIsBinding in the ItemAdded case.
14337
14338         * GridColumnStylesCollection.cs: add some columns events, one of
14339         which raises the CollectionChanged event.
14340
14341 2007-04-04  Jackson Harper  <jackson@ximian.com>
14342
14343         * TextControl.cs: When we delete multiple selection lines
14344         invalidate the selection area, don't need to do that for single
14345         lines because the final update view will handle it.
14346
14347 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14348
14349         * Control.cs: When we CreateControl, we need to also create all of the
14350         control's children.  The child's OnLoad must also fire before the parent's
14351         OnLoad.  Fixes the toolbox size in PDN.
14352
14353 2007-04-04  Jackson Harper  <jackson@ximian.com>
14354
14355         * TextBoxBase.cs: When the user presses enter, insert a line
14356         ending into the text. (Maybe this would be a good spot for
14357         Environment.NewLine).
14358         * TextControl.cs: Remove undo manager hack, line endings get
14359         inserted properly now.
14360         
14361 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
14362
14363         * MenuAPI.cs: 
14364         - Remove unneeded parameters in UpdateCursor.
14365         - Fix UpdateCursor to check if menu is active.
14366         - Call UpdateCursor when menu deactivate my click.
14367         [Fixes remaining issues from #80410]
14368
14369 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
14370
14371         * Control.cs: GetRealChildAtPoint method added, it make an
14372         recursive child control search for the point. 
14373
14374         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
14375         menu.
14376
14377         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
14378
14379 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
14380
14381         * Form.cs: Fix mouse position when send back mouse event after closes
14382         menu.
14383
14384 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
14385
14386         * Form.cs: Simplify the BUTTONDOWN for active tracker.
14387
14388 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
14389
14390         * Control.cs: Fix an issue where if a user resized a control inside
14391         a sizing method like OnResize, we would overwrite their explicit
14392         value.  Also, only call DefaultSize once in the constructor instead
14393         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
14394         nothing actually changed.
14395
14396 2007-04-03  Jackson Harper  <jackson@ximian.com>
14397
14398         * TextControl.cs: Don't attempt to copy text for lines with no
14399         text in them (technically this shouldn't happen, but we aren't
14400         always inserting line endings when we should be).
14401
14402 2007-04-03  Jackson Harper  <jackson@ximian.com>
14403
14404         * TextBoxBase.cs: Calculate the scrollbars before calculating the
14405         document, because this sets some of the document size properties
14406         that are needed.
14407
14408 2007-04-03  Jackson Harper  <jackson@ximian.com>
14409
14410         * TextBoxBase.cs: We need to calculate maximums even if this is
14411         not a multiline control, because the maxs are used for scrolling.
14412         - Display the caret after doing a page up/down, we need to
14413         manually display it because a proper CaretMoved event isn't
14414         triggered (this is because of the way the math is done to
14415         determine how far to scroll).
14416
14417 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
14418
14419         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
14420         (ToolBar was relying on SetBoundsCore to default the values sent 
14421         base off of BoundsSpecified.)
14422
14423 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14424
14425         * DateTimePicker.cs: Change Text so that when a null value or empty
14426           string is assigned to the test we always raise ValueChanged and
14427           TextChanged (earlier implementation would only raise ValueChanged
14428           if the current date value was different from DateTime.Now).
14429
14430 2007-04-03  Andreia Gaita <avidigal@novell.com> 
14431
14432         * ButtonBase: Call update after invalidation, fixes #80194
14433
14434 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14435
14436         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
14437           #79335.
14438
14439 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14440
14441         * XplatUIX11.cs: SetWMStyles: If the control is a form with
14442           FormBorderStyle = None, don't give the window any decorations.
14443           Fixes #81276.
14444
14445 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14446
14447         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14448         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
14449           to check for is a mix of several styles (such as WS_CAPTION for
14450           instance).
14451         * Control.cs: Don't paint an area bigger than the client area when
14452           painting the background colour. Add an internal GetCreateParams.
14453           Update calls to XplatUI.CalculateWindowRect due to API change.
14454         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
14455           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
14456           the size if it hasn't been handled by any windows. When creating
14457           and moving windows, X wants the location of the entire window, but
14458           the size of the client window, so add
14459           TranslateClientRectangleToXClientRectangle,
14460           TranslateWindowSizeToXWindowSIze and
14461           TranslatedXWindowSizeToWindowSize to cope with this, and call them
14462           before every window creation and move. Update CalculateWIndowRect
14463           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
14464           In AddConfigureNotify don't do anything if the hwnd is a zombie
14465           (fixes the BadWindow we were getting while running the tests),
14466           always calculate the offsets when it's a parentless window, not
14467           only when reparented, and translate the window size, since we're
14468           getting the client size of the whole window, excluding entire
14469           window.
14470         * Theme.cs: Added BorderSizableSize.
14471         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14472           anymore. Update calls to XplatUI.CalculateWindowRect due to API
14473           chang
14474         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
14475           change. Fake the window styles here instead of in XplatUIWin32 so
14476           that all back-ends get the same window styles (and it's Form that's
14477           deciding when to use wm, not the Win32 backend anyways)
14478         * Hwnd.cs: Completely reworked GetWindowRectangle and
14479           GetClientRectangle - they are now passed a CreateParams and they
14480           only use Style and ExStyle to determine the rectangles (they should
14481           now work just like Win32AdjustWindowRectEx - though quite a few
14482           special cases are probably missing). They should also be 100%
14483           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
14484           == rect), and all numbers (borders, menu sizes) are taken from the
14485           current theme. Added a GetBorders helper function that will return
14486           the borders for any given CreateParams (including captions and
14487           menus), and GetBorderSize that returns the given border size only.
14488         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14489           Hwnd.GetClientRectangle.
14490
14491 2007-04-02  Chris Toshok  <toshok@ximian.com>
14492
14493         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
14494         logic between the values we present to the user and the values
14495         which are stored in the column's property.  Also, don't call
14496         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
14497
14498 2007-04-02  Jackson Harper  <jackson@ximian.com>
14499
14500         * TextBoxBase.cs: Scroll faster!
14501
14502 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
14503
14504         * StatusStrip.cs: Layout fixes for PDN.
14505         * ToolStrip.cs: Set item's available to true, and placement to main when
14506         added.
14507         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
14508         changing in setter before doing any work, add InternalVisible.
14509         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
14510         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14511         infinite loop.
14512
14513 2007-04-02  Jackson Harper  <jackson@ximian.com>
14514
14515         * TextBox.cs: LBUTTON does not make the textbox select all of it's
14516         text on focus.
14517
14518 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14519
14520         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
14521           Makes ToolStripComboBoxes show up again.
14522
14523 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14524
14525         * ListView.cs: Add a hover_pending field in ListView
14526         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
14527         cycle (we are resetting the MouseHover logic in XplatUI
14528         to handle HoverSelection). Fixes #80429.
14529
14530 2007-04-02  Jackson Harper  <jackson@ximian.com>
14531
14532         * TextControl.cs: Make sure the attributes get set on the last
14533         tag.
14534         - Still have to do the end tag if we have stepped all the ways to
14535         the end.
14536
14537 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
14538
14539         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
14540         on an internal libgdiplus call when the information is already 
14541         available via the public API.
14542
14543 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14544
14545         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
14546           control is removed from a control collecftion.
14547         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
14548           Fixes FormPropertyTest (failed on rare occasions).
14549         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
14550           of Win32SetParent (when changing from no parent to a parent it
14551           might add the new parent's location in screen coordinates to this
14552           window's location).
14553         * Form.cs: Rework ChangingParent once again, now the handle is
14554           recreated whenever a FormWindowManager is added or removed (that is
14555           whenever a normal form is parented or abandoned). Also change
14556           CreateParams so that all non-toplevel windows always get the
14557           specified sice (StartupPosition is never considered for
14558           non-TopLevel forms).
14559         * ContainerControl.cs: Add ChildControlRemoved, the container control
14560           needs to be notified when a control is removed from it's
14561           collection, in the case the removed control is the active control.
14562
14563 2007-04-02  Jackson Harper  <jackson@ximian.com>
14564
14565         * RichTextBox.cs: Use the new methods for setting the font and
14566         color, these methods set the specified attribute without
14567         overriding the other attributes.
14568
14569 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
14570
14571         * ToolStripPanel.cs: Fixes for better layouts in PDN.
14572
14573 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
14574
14575         * TextBox.cs: Added internal ChangeBackColor method to special-case
14576         Color.Empty. Added check for invalid ScrollBars value.
14577         * TextBoxBase.cs: Added internal ChangeBackColor method.
14578         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
14579         internal ChangeBackColor method to special-case Color.Empty. Added
14580         check for invalid ScrollBars value.
14581
14582 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
14583
14584         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
14585
14586 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14587
14588         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
14589         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
14590         [Based on submitted patch from Olivier Duff.]
14591
14592 2007-03-30  Jackson Harper  <jackson@ximian.com>
14593
14594         * TextBox.cs: Only select all on initial focus if the user has not
14595         specified a selection area.
14596
14597 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14598
14599         * UserControl.cs: Override CreateParams.
14600
14601 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14602
14603         [ Fixes #80995 ]
14604
14605         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14606         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
14607           check for is a mix of several styles (such as WS_CAPTION for instance).
14608         * Control.cs: Don't paint an area bigger than the client area when painting
14609           the background colour. Add an internal GetCreateParams. Update calls to
14610           XplatUI.CalculateWindowRect due to API change.
14611         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
14612           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
14613           hasn't been handled by any windows. When creating and moving windows, X
14614           wants the location of the entire window, but the size of the client
14615           window, so add TranslateClientRectangleToXClientRectangle,
14616           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
14617           to cope with this, and call them before every window creation and move.
14618           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
14619           removing DeriveStyles). In AddConfigureNotify don't do anything if the
14620           hwnd is a zombie (fixes the BadWindow we were getting while running the
14621           tests), always calculate the offsets when it's a parentless window, not
14622           only when reparented, and translate the window size, since we're getting
14623           the client size of the whole window, excluding entire window.
14624         * Theme.cs: Added BorderSizableSize.
14625         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14626           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
14627         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
14628           Fake the window styles here instead of in XplatUIWin32 so that all
14629           back-ends get the same window styles (and it's Form that's deciding when
14630           to use wm, not the Win32 backend anyways)
14631         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
14632           they are now passed a CreateParams and they only use Style and ExStyle
14633           to determine the rectangles (they should now work just like
14634           Win32AdjustWindowRectEx - though quite a few special cases are probably
14635           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
14636           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
14637           sizes) are taken from the current theme. Added a GetBorders helper
14638           function that will return the borders for any given CreateParams
14639           (including captions and menus), and GetBorderSize that returns the given
14640           border size only.
14641         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14642           Hwnd.GetClientRectangle.
14643
14644 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14645
14646         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
14647           layout of the mdi children is handled by CreateParams. Fixes
14648           #79964,
14649
14650 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14651
14652         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
14653         processed.
14654
14655         * Form.cs: When active tracker mouse down is not processed, send event 
14656         back to control inside mouse position. [Fixes #81227]
14657
14658 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14659
14660         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
14661         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
14662         stealing focus from the active form on Windows.  (Control will be made
14663         visible in ShowWindow.)
14664
14665 2007-03-29  Mike Kestner  <mkestner@novell.com>
14666
14667         * ImageList.cs : add internal Changed event.
14668         * ListView.cs : hook up to StateImageList.Changed to perform
14669         invalidations when the the state icon list changes. [Fixes #81191]
14670
14671 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14672
14673         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
14674         to prevent tooltips from stealing focus from the active form on Windows.
14675
14676 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14677
14678         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
14679
14680         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
14681
14682 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14683
14684         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
14685         balloons.
14686
14687 2007-03-29  Jackson Harper  <jackson@ximian.com>
14688
14689         * TextControl.cs: When deleting text from non multiline textboxes,
14690         we need to update the entire document, because line offsets will
14691         be shifting.
14692
14693 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14694
14695         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
14696         added to theme, now we can create themes that uses diferent notify engines
14697         like notification-daemon from galago project or growl for Mac OS.
14698
14699 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14700
14701         * NotifyIcon.cs: Prevent Balloon to show in task bar.
14702
14703 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14704
14705         * XplatUIX11.cs: Prevent system to open more than one balloon.
14706
14707         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
14708         some compiler warning messages.
14709
14710 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14711
14712         [Fixes #79149]
14713
14714         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
14715
14716         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
14717         implemented, this methods is used by NotifyIcon.BalloonWindow class.
14718
14719         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
14720         systems.
14721
14722 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14723
14724         * ListViewItem.cs: Forgot to make Invalidate internal.
14725
14726 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14727
14728         * ListView.cs: Add a InvalidateSelection method to
14729         invalidate methods which are currently selected, and call
14730         it when setting FullRowSelect and HideSelection, instead of
14731         calling Redraw.
14732
14733 2007-03-28  Chris Toshok  <toshok@ximian.com>
14734
14735         * XplatUIX11.cs (UnmapWindow): reindent this block.
14736
14737         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
14738         the selection_start if we're moving the selection (that is, not
14739         extending it). Fixes bug #80461.
14740
14741 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14742
14743         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
14744         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
14745         create private ControlCollection.
14746
14747 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14748
14749         * Control.cs: We need to call OnVisibleChanged for our implicit
14750         children as well as our normal children.  Fixes scrollbars in
14751         comboboxes not showing up.
14752
14753 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14754
14755         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
14756         the check for IsHandleCreated first.  The check in CreateHandle is not
14757         good enough because CreateHandle can be overriden, and the override 
14758         should not be called if the handle is already created.
14759
14760 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14761
14762         * ToolStrip.cs: Remove MonoTODO for tooltips.
14763         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
14764         * ToolStripContainer.cs: Add custom ControlCollection class.
14765         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
14766         * ToolStripDropDown.cs: Add some missing properties/methods.
14767         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
14768         * ToolStripItem.cs: Remove MonoTODO for tooltips.
14769         * ToolStripManager.cs: Add IsShortcutDefined.
14770         * ToolStripOverflow.cs: Override LayoutEngine.
14771         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
14772         * ToolStripSeparator.cs: Add ImageKey.
14773
14774 2007-03-28  Jackson Harper  <jackson@ximian.com>
14775
14776         * TextControl.cs: If a char delete removes a line ending, we need
14777         to update the ending style.
14778         - Make sure the line ending calcs get called.
14779
14780 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14781
14782         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
14783           it was making the new code not work. Fixed a typo in the new code
14784           as well. Fixes #79826.
14785
14786 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14787
14788         * XplatUIWin32.cs:
14789         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
14790         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
14791         - SystrayBalloon method implemented.
14792         [Add support for notifyicon balloon on win32, #79149]
14793
14794 2007-03-27  Mike Kestner  <mkestner@novell.com>
14795
14796         * ThemeWin32Classic.cs : update StateImageList selection to mirror
14797         the ms behavior when only one image is added to the list.
14798         [Fixes #81191]
14799
14800 2007-03-27  Jackson Harper  <jackson@ximian.com>
14801
14802         * TextControl.cs: Improvements to non multiline line ending
14803         drawing/measuing.
14804
14805 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14806
14807         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
14808
14809 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14810
14811         * NotifyIcon.cs: 
14812         - Balloon message handling added.
14813         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
14814
14815         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
14816         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
14817         to SystrayBalloon to me like other Systray method, also a
14818         handle parameter added.
14819
14820 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14821
14822         * ListView.cs: Show scrollbars even when items.Count == 0
14823         but the columns Width is bigger than the ListView.Width.
14824         Also, when columns.Count == 0 set layout_wd and layout_ht
14825         to the ClientRectangle values, so we don't show any scrollbar
14826         in that case.
14827
14828 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14829
14830         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
14831
14832 2007-03-27  Jackson Harper  <jackson@ximian.com>
14833
14834         * RichTextBox.cs: The RTF library decodes the text properly for us
14835         now.
14836
14837 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14838
14839         * ListView.cs: Display HeaderControl even when columns.Count == 0.
14840         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
14841         ListView header (HeaderControl), instead of Control.BackColor.
14842
14843 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
14844
14845         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
14846         Fixes tab control issues where controls would not show up because they
14847         never received their OnVisibleChanged call.
14848
14849 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14850
14851         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
14852         BalloonTipShown).
14853
14854 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
14855
14856         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
14857         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
14858         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
14859         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
14860         the handle.  Fix WindowState by using the internal variable until we are 
14861         sure that we've been shown.
14862         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
14863         max or min.
14864         [Fixes bug #81198]
14865
14866 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14867
14868         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
14869           (at least borders). Fixes #79386 on Linux (with a small difference
14870           in behaviour: when trying to resize a caption-less window metacity
14871           shows the sysmenu. Resizing is still possible though).
14872         * XplatUIWin32.cs: When setting window styles send request an extra
14873           WM_NCCALCSIZE when it's a form without title (due to no text and no
14874           caption), since Win32 seems to calculate it wrong the first time we
14875           get the message, though the second time things work as they should.
14876         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
14877           newly reparented window might show up unparented. Update
14878           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
14879           there's no title text. Fixes #79386.
14880
14881 2007-03-27  Mike Kestner  <mkestner@novell.com>
14882
14883         * ListBox.cs : don't perform invalidations if the handle hasn't been
14884         created.  [Fixes #80753]
14885
14886 2007-03-27  Mike Kestner  <mkestner@novell.com>
14887
14888         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
14889         [Fixes #80428]
14890
14891 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
14892
14893         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
14894         needed to implement Balloon.
14895
14896 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14897
14898         * ListViewItem.cs: In the constructors that take
14899         an array of strings, don't use ListViewSubItemCollection.AddRange
14900         method to add items, since we need to have a different behaviour (in
14901         the constructors we add an item for each null string, opposed to
14902         the behaviour of AddRange, which adds nothing).
14903
14904 2007-03-26  Andreia Gaita  <avidigal@novell.com>
14905
14906         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
14907
14908 2007-03-26  Jackson Harper  <jackson@ximian.com>
14909
14910         * TextControl.cs: Draw and measure line endings when in non
14911         multiline mode.
14912         - When searching the text, count the end of the last line as a
14913         word boundary.
14914
14915 2007-03-26  Jackson Harper  <jackson@ximian.com>
14916
14917         * RichTextBox.cs: The selection_start and selection_end don't
14918         really track the correct tags for the selection. So we'll manually
14919         compute the correct tag here.
14920
14921 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14922
14923         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
14924           and Continuous styles. Fixes #79469.
14925
14926 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
14927
14928         * ToolStrip.cs: Implement Tooltips.
14929         * ToolStripItem.cs: Create internal method for determining tooltip.
14930
14931 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
14932
14933         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
14934
14935 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
14936
14937         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
14938         it prevents a problem thak keeps icon visible after application 
14939         closes on win32.
14940
14941 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
14942
14943         * NotifyIcon.cs: Balloon properties and methods created.
14944
14945         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
14946         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
14947
14948 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
14949
14950         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
14951
14952 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
14953
14954         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
14955         parameter indicates which aspects were explicit/user-set.
14956         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
14957
14958 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
14959
14960         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
14961         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
14962         SmallChange, and Value (2.0).
14963         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
14964
14965 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14966
14967         * ListView.cs: Always set item_control.Width in LayoutDetails
14968         if View is Details. Setting it later in CalculateScrollBars
14969         in a not-so-corner scenario (the sum of columns width is
14970         not bigger than the ListView width when handle is created, and then
14971         that sum gets bigger by increasing the width of the columns)
14972         causes a very weird recursion path (which shouldn't be happening,
14973         since header_control sets it in CalculateScrollBars too). This bug
14974         appeared after Chris' fixes for handle created issues, so probably
14975         it's related to some handle-creation time.
14976
14977 2007-03-23  Chris Toshok  <toshok@ximian.com>
14978
14979         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
14980         case where there's an add row, just so we don't end up in a case
14981         where it's not displayed (this happens when the row is partially
14982         obscured).  Fixes bug #79574.
14983
14984 2007-03-23  Jackson Harper  <jackson@ximian.com>
14985
14986         * TextControl.cs:
14987         * TextBoxBase.cs:
14988         * RichTextBox.cs: Preserve line endings in the lines text buffer,
14989         also added an enum that represents the line ending type. 
14990
14991 2007-03-23  Andreia Gaita  <avidigal@novell.com>
14992
14993         * NumericUpDown.cs: Fix logic so Text and Value properties are not
14994         messed with in every method call, but only from DownButton, 
14995         UpButton, UpdateEditText() and ValidateText. Fixes #80346
14996
14997 2007-03-23  Chris Toshok  <toshok@ximian.com>
14998
14999         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
15000         format objects if the format spec is "".  Fixes bug #80889.
15001
15002 2007-03-22  Miguel de Icaza  <miguel@novell.com>
15003
15004         * ToolStripPanel.cs (Join): added stubs to build PDN3
15005
15006         * Control.cs (AutoScrollOffset): Add.
15007
15008         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
15009         property, its only implemented for Win32, on X11 it defaults to
15010         some hardcoded value.
15011
15012         * ToolStripItem.cs (AllowDrop): Add property
15013
15014 2007-03-22  Mike Kestner  <mkestner@novell.com>
15015
15016         * ListView.cs : in FullRowSelect Details mode, only enable box
15017         selection if the user clicks over the "item" column outside of the
15018         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
15019
15020 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15021
15022         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
15023           handle is not created yet.
15024         * Form.cs: Select: Don't call CreateHandle if the handle is already
15025           created, avoids a stack overflow on Windows when we are recreating
15026           controls.
15027         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
15028           they are made visible, and override AfterTopMostControl to keep
15029           them on top when other controls are brought to front.
15030           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
15031           or force_*scroll_visible is true (old implementation always shows
15032           scrollbars when needed, no matter what auto_scroll was set to).
15033         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
15034           IsHandleCreated check.
15035
15036 2007-03-22  Andreia Gaita  <avidigal@novell.com>
15037
15038         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
15039         row or col separator.
15040         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
15041
15042 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15043
15044         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
15045
15046 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15047
15048         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
15049         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
15050         every time. Fixes #80410.
15051
15052 2007-03-22  Chris Toshok  <toshok@ximian.com>
15053
15054         * BindingSource.cs (AddNew): partially implement.
15055
15056         remove a couple of NotImplementedException's
15057         to get bug #81148 closed.
15058
15059 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15060
15061         [Fixes #80380]
15062         
15063         * Control.cs:
15064         - UpdateCursor method added to update the screen cursor.
15065         - GetAvailableCursor method added to return cursor for enabled tree,
15066         it searches for cursor on control and it's parent's for enabled control.
15067         - Call UpdateCursor method on setter of Cursor property.
15068         - On setter of Enabled call UpdateCursor when it is false, we need to
15069         change cursor to normal (or to this parent cursor) because cursor 
15070         setting theres no effect to disabled controls.
15071         - Some minor source changes to follow the coding style guidelines.
15072
15073         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
15074         controls.
15075
15076 2007-03-22  Chris Toshok  <toshok@ximian.com>
15077
15078         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
15079         generates.
15080
15081 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15082
15083         * XplatUIX11.cs: Implement default locations for forms.
15084         * Form.cs: Completely rework startup location for forms. Fixes #79964.
15085         * Hwnd.cs: Add previous_child_startup_location (to track the current
15086           startup location for any child forms of the current form) and
15087           previous_main_startup_location (to track the startup location for
15088           the current toplevel form).
15089
15090 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15091
15092         * Control.cs: Don't trigger a layout if an implicit control is added
15093         that isn't visible.  Also, don't notify the owner when an implicit control
15094         is added.  (Owners shouldn't even know about their implicit controls.)
15095
15096 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15097
15098         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
15099         to save some re-layouts.
15100
15101 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
15102
15103         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
15104         [Fixes #81203]
15105
15106 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15107
15108         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
15109         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
15110
15111 2007-03-21  Mike Kestner  <mkestner@novell.com>
15112
15113         * ListView.cs : disable selection update for non-left button clicks
15114         with mods and over selected items.  [Fixes #80524]
15115
15116 2007-03-20  Jackson Harper  <jackson@ximian.com>
15117
15118         * TextControl.cs:
15119         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
15120         \r\r\n, \n.
15121
15122 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15123
15124         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
15125           very probably a more complicated calculation there. Update the
15126           textbox' ForeColor and BackColor when the ComboBox' colors are
15127           changed. Change the border change in LayoutComboBox to only affect
15128           the textbox, not all the calculations there. Seems to fix most of
15129           #79436.
15130
15131 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15132
15133         * ComboBox.cs: Handle Home and End keys as well as all combinations of
15134           modifiers + navigation keys as input keys, enables advanced text
15135           selection in the combobox (like Shift+Left Arrow for instance).
15136           ComboTextBox now overrides Focused and returns whatever
15137           ComboBox.Focused returns, since it really should be focused
15138           whenever the ComboBox is. Fixes #80795. Also make the border around
15139           the text box one pixel bigger, as mentioned in #79436.
15140
15141 2007-03-20  Jackson Harper  <jackson@ximian.com>
15142
15143         * TreeView.cs: Don't offset the images, this was causing some
15144         artifacts when expanding/collapsing with images that were the
15145         exact height of the treenode.
15146
15147 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15148
15149         * TrackBar.cs: Query the theme for the correct value when the mouse
15150           moves and the thumb is pressed. 
15151         * Theme.cs: Added TrackBarValueFromMousePosition
15152         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
15153           implementation was updating the trackbar value when drawing, now
15154           the drawing methods only draw. Fixes #80900. Refactored the
15155           calculations out to TrackBarValueFromMousePosition and
15156           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
15157           according to the mouse position whenever it wants to. Changed the
15158           light coloured pen when drawing the thumb from ControlLight to
15159           ControlLightLight, because the ControlLight is the same colour as
15160           the background so the 3D effect is lost. 
15161
15162 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15163
15164         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
15165         defined. Fixes #80784.
15166
15167 2007-03-20  Marek Habersack  <mhabersack@novell.com>
15168
15169         * ContextMenuStrip.cs: align with the change introduced in
15170         revision 74664.
15171
15172 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15173
15174         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
15175         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
15176         in SetTopmost.
15177
15178 2007-03-19  Chris Toshok  <toshok@ximian.com>
15179
15180         * Control.cs (WmPaint): don't make use of the Handle property
15181         after an event is emitted, as the user could have closed the
15182         form/destroyed the control.  Store the Handle in a local variable
15183         and make use of that.  Fixes bug #80768.
15184
15185 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15186
15187         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
15188         behavior in X11 environments.
15189
15190 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15191
15192         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
15193         because on setter of topmost we dont call SetTopmost when handle is not
15194         created.
15195
15196 2007-03-20  Jackson Harper  <jackson@ximian.com>
15197
15198         * TextControl.cs: Need to use SelectionLength () not
15199         selection_length, since that var is reset to -1.
15200         - Draw the caret when we don't have focus.
15201         * TextBox.cs: The selectall actually doesn't occur until the first
15202         focus.
15203         * TextBoxBase.cs: Need to update the caret position after a
15204         selectall.
15205         
15206 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15207
15208         * ListView.cs: Enable scrolling when using Tile view.
15209
15210 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15211
15212         [Fixes #80902]
15213
15214         * XplatUIDriver.cs: Abstract SetOwner method created.
15215
15216         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
15217         must be implemented and was masked as todo.
15218
15219         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
15220         GWL_HWNDPARENT.
15221
15222         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
15223         cheking for null owner to remove transient. The SetTopmost will be change
15224         on a decond step.
15225
15226         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
15227         SetTopmost. Now owned forms will work properly in win32 and X11.
15228
15229 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15230
15231         * MdiWindowManager.cs: Update function name.
15232         * Form.cs: After closing a form MdiParent is always null.
15233         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
15234           better what it should do: necessary book-keeping when the form is
15235           closed, it should not close the form itself.
15236
15237 2007-03-19  Andreia Gaita  <avidigal@novell.com>
15238
15239         * ListViewItem.cs: Fix back and fore color. The subitems only
15240         use their own colors if they are set, otherwise use the listview's
15241         colors. Don't set default colors on constructor for subitem.
15242         Fixes #79315.
15243
15244 2007-03-19  Mike Kestner  <mkestner@novell.com>
15245
15246         * ListView.cs : make box selection for Details views with 
15247         FullRowSelect conform to MS behavior when clicking in the "item" 
15248         column and clicking outside the defined columns.
15249         [Fixes case 5-6 of #80374]
15250
15251 2007-03-19  Chris Toshok  <toshok@ximian.com>
15252
15253         * ScrollableControl.cs: create the controls from within the ctor,
15254         but don't actually add them until our handle is created.  this
15255         fixes a NRE possibility jpobst found (if you override OnLayout in
15256         a subclass, it's called before your ctor).  Also, add a
15257         IsHandleCreated guard to UpdateSizeGripVisibility as well.
15258
15259 2007-03-19  Jackson Harper  <jackson@ximian.com>
15260
15261         * TextBox.cs: Reduce the amount of invalidation we do.
15262         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
15263         some of them are true by default on MS.
15264         - Add some functions to reduce the amount of invalidates we do.
15265         * TextControl.cs: Less invalidation.
15266
15267 2007-03-19  Chris Toshok  <toshok@ximian.com>
15268
15269         [ Fixes #81773, and *seems* to fix #81553 as well ]
15270
15271         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
15272         AccumulateDestroyedHandles.  We need to do it *after* we send
15273         WM_DESTROY, as the user's code can access Control.Handle in
15274         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
15275         move the WM_DESTROY/zombie handling to before the call to
15276         XDestroyWindow.  For some reason without this ordering
15277         FormTest.RecreateHandle hangs.  This ordering is semantically
15278         equivalent, however, as XDestroyWindow is async anyway.
15279
15280 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
15281
15282         * RichTextBox.cs: Reset backcolor_set after setting default.
15283
15284 2007-03-19  Chris Toshok  <toshok@ximian.com>
15285
15286         * ScrollableControl.cs: the scroll position should not effect the
15287         canvas size.  commit patch from georgegiolfan@yahoo.com, which
15288         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
15289         
15290 2007-03-19  Chris Toshok  <toshok@ximian.com>
15291
15292         * ScrollableControl.cs: clean this up a bit.  create the
15293         scrollbars in the ctor and just show/hide them as needed.  Also,
15294         make hscroll_visible/vscroll_visible internal to Recalculate, and
15295         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
15296         everywhere else.  This seems to fix the scrollbars appearing
15297         beneath the content for me (i have *no* idea why that is,
15298         however.)
15299
15300 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
15301
15302         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
15303         some redundacy for stuff in Anchor and Dock that base will take care of.
15304         [Fixes #80762]
15305
15306 2007-03-19  Mike Kestner  <mkestner@novell.com>
15307
15308         * ListView.cs : make box selection for Details views without 
15309         FullRowSelect dependent on the text bounds, not item bounds.
15310         * ListViewItem.cs : add an internal property to obtain the TextBounds
15311         in Details view.  [Fixes case 1-4 of #80374]
15312
15313 2007-03-19  Andreia Gaita  <avidigal@novell.com>
15314
15315         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
15316         we're < 2.0. #78448 && #80316
15317
15318 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
15319
15320         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
15321         have the same style available as the previously selected one.  Also,
15322         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
15323
15324 2007-03-19  Jackson Harper  <jackson@ximian.com>
15325
15326         * TextControl.cs: Add an alignment property that all new lines
15327         will be given.
15328         - Make sure to use the align shift when calculating the line's X
15329         position.
15330         * TextBox.cs: Set the alignment on the document as well as on all
15331         the document lines.
15332
15333 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15334
15335         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
15336           throw if setting the parent of an mdichild that already has an
15337           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
15338           AssemblyProductAttribute in the assembly, use the type's namespace (as
15339           MS seems to do). CreateControl: don't create the handle if the control
15340           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
15341           create handle if the control is not a form. Change FocusInternal to
15342           virtual so that it can be overriden by Form.
15343         * TextBox.cs: Update call to FocusInternal.
15344         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
15345           form is not a toplevel form when it's a mdi child, so update is_toplevel
15346           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
15347           hasn't been created. Show (IWin32Window): Don't allow this overload for
15348           toplevel windows. CenterToParent/CenterToScreen/Select: create the
15349           handle as MS does. SetVisibleCore: if called on a MdiChild and the
15350           parent isn't visible yet, save the visibility and restore it when the
15351           parent is made visible.
15352         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
15353           methods, since the visibility of the scrollbars can be changed from
15354           several places, not only from AutoScroll.
15355           [Fixes #81179]
15356
15357 2007-03-19  Jackson Harper  <jackson@ximian.com>
15358
15359         * RichTextBox.cs: Enable shortcuts by default.
15360         * TextBoxBase.cs: Add conditional shortcuts.  
15361
15362 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
15363
15364         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
15365
15366 2007-03-19  Chris Toshok  <toshok@ximian.com>
15367
15368         [ Fixes bug #80604]
15369         
15370         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
15371         swallow the message we're waiting on, instead of delivering it, as
15372         this is only used for the WM_SHOWWINDOW raised from
15373         MapWindow/UnmapWindow, and the message needs to be generated
15374         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
15375         before doing the Map/Unmap.  Also make sure that the Hwnd is still
15376         alive after the message has been handled.
15377
15378         *before* the window is shown.
15379
15380         * Control.cs (CreateControl): guard a few more things inside the
15381         if (!is_created) block, as we might end up being called again -
15382         yay .net.
15383         (WmShowWindow): call CreateControl if we're showing the control.
15384
15385 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15386
15387         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
15388           controls without a handle if they have any parent with a handle. In
15389           Dispose add a check whether the handle is created or not before
15390           calling BeginInvoke, this removes the need of the extra disposing
15391           parameter (which was bogus anyway since it didn't prevent the
15392           invoke from happening, it only skipped the check for an existing
15393           handle, meaning that the invoke would call on an inexistent
15394           handle).
15395
15396 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
15397
15398         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
15399         appears in taskbar.
15400
15401 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
15402
15403         * MessageBox.cs:
15404         - Fixed a problem that dont show help button for messages with 3 buttons.
15405         - Refactory button size and position calculations, now dont use fixed 
15406         values, also fixed button sizes (#80043) and form's border space.
15407         - AddButton method created, now all other AddButton methods call this one.
15408         - Some other source code cosmetic changes.
15409
15410 2007-03-18  Jackson Harper  <jackson@ximian.com>
15411
15412         * RichTextBox.cs: Don't do this all fonts must match check if
15413         there is only one char selected.
15414
15415 2007-03-18  Jackson Harper  <jackson@ximian.com>
15416
15417         * TreeView.cs: ScrollWindow works properly now, so we don't need
15418         to screw around with the scroll area.  This fixes some artifacts
15419         when expanding and collapsing.
15420
15421 2007-03-18  Jackson Harper  <jackson@ximian.com>
15422
15423         * TextBoxBase.cs: Allow updating the selection position when the
15424         cursor is outside the textarea, but we have a capture.
15425         * TextControl.cs: A special case for when the cursor is outside
15426         the bounds of the TB.
15427         
15428 2007-03-18  Jackson Harper  <jackson@ximian.com>
15429
15430         * TextBoxBase.cs: Remove image pasting code for now.  There is no
15431         way to get an image on the clipboard right now anyways.
15432         * TextControl.cs:
15433         * RichTextBox.cs: Use the new RTF Picture class for pictures.
15434
15435 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
15436
15437         * MessageBox.cs:
15438         - Set window properties in constructor intead of on CreateParams.
15439         - Remove topmost from Window ExStyle.
15440         - Set ShowInTaskbar to false.
15441         - Set form border to FixedDialog.
15442         - Some cosmetic changes and remove unneeded comments.
15443         - It fixes itens 2,3 and 4 of bug #80043.
15444
15445 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
15446
15447         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
15448         none was explicitly set. Fixes part of bug #79949.
15449
15450 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
15451
15452         * ToolStripComboBox.cs: Add AutoComplete*.
15453
15454 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
15455
15456         * ToolStripComboBox.cs: Add FlatStyle.
15457
15458 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
15459
15460         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
15461         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
15462
15463 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15464
15465         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
15466           CheckBox.cs, RadioButton.cs, BindingSource.cs,
15467           DataGridColumnStyle.cs: Remove warnings.
15468
15469 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15470
15471         * Menu.cs: MergeMenu: Check menu argument for null before looping over
15472           it.
15473         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
15474           visibility of mdi child forms. FormSizeChangedHandler: update the
15475           maximized size if size has changed while maximized.
15476         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
15477           creating the handle.
15478         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
15479           avoid creating the handle if not created.
15480         * XplatUI.cs: Update debug output.
15481         * XplatUIStructs.cs: Added ToString's for a couple of structs.
15482
15483 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
15484
15485         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
15486         ProcessCmdKey().
15487         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
15488         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
15489         Implement keyboard shortcuts.
15490
15491 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
15492
15493         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
15494         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
15495         ColorDialog and all derived classes.
15496
15497 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
15498
15499         [ Fixes bug #79828 ]
15500
15501         * ToolBar.cs:
15502         - Rename ToolBarButtonInfor to ToolBarItem.
15503         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
15504         - Maintain an array of ToolBarItem, used instead of ToolBarButton
15505         collection to be able add same button more than one time on a toolbar.
15506         - Refactory all properties and methods to use ToolBarItem. 
15507
15508         * ToolBarButton.cs: 
15509         - Remove all propeties and methods that is now in ToolBarItem.
15510         - Rectangle propery now gets the rectangle from first ToolBarItem to
15511         mimic win32 behavior.
15512         - Size calculation and layout methods also removed.
15513
15514         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
15515         ToolBarItem instead of ToolBarButton to right drawing buttons when
15516         same button/separator was added more than one time to ToolBar.
15517
15518         * ThemeNice.cs: Same as above. 
15519
15520 2007-03-15  Andreia Gaita  <avidigal@novell.com>
15521
15522         * XplatUIX11.cs: Fire extra MouseMove events right after
15523         MouseDown and MouseUp, emulating win32's <censored> behaviour
15524         for apps that rely on it.
15525
15526 2007-03-15  Jackson Harper  <jackson@ximian.com>
15527
15528         * TextControl.cs:
15529         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
15530         it is drawn on the controls client window and there is no NC
15531         area.
15532         - Set the background color to gray on 2.0 when we are readonly.
15533
15534 2007-03-15  Chris Toshok  <toshok@ximian.com>
15535
15536         [ Fixes bug #81144 ]
15537         
15538         * XplatUIX11.cs: implement VirtualScreen independently of
15539         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
15540         property.
15541
15542 2007-03-15  Chris Toshok  <toshok@ximian.com>
15543
15544         * Hwnd.cs: add an internal field for the cached_window_state.
15545
15546         * XplatUIX11.cs: cache the window state, invalidating the cache
15547         (and thus re-querying the X server) only when we see an update to
15548         the _NET_WM_STATE property.
15549
15550 2007-03-15  Chris Toshok  <toshok@ximian.com>
15551
15552         * BindingSource.cs: get a lot of the unit tests working.
15553
15554 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
15555
15556         * Control.cs: Modify UpdateStyles to store distances when bounds >=
15557         0 instead of just bounds > 0.  [Fixes bug #80912]
15558
15559 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
15560
15561         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
15562         and methods.
15563
15564 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
15565         
15566         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
15567         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
15568         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
15569         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
15570
15571 2007-03-15  Chris Toshok  <toshok@ximian.com>
15572
15573         [ Fixes #81101 ]
15574         
15575         * Control.cs: add Ivan's fix for 81101, with a slight modification
15576         - you can set control.Target to null.
15577
15578 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
15579
15580         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
15581         HideDropDown, use Hide instead to prevent an NRE.
15582         [Fixes bug #81147]
15583
15584 2007-03-14  Jackson Harper  <jackson@ximian.com>
15585
15586         * TextBoxBase.cs: Mess with the creation stuff a little. We need
15587         to calculate the document before the handle is created, in some
15588         cases. (Actually just one case).
15589
15590 2007-03-14  Jackson Harper  <jackson@ximian.com>
15591
15592         * TextBoxBase.cs: Need to display the caret after letting the base
15593         wndproc handle the focus methods, because the caret display
15594         methods check the focus state.
15595         - Try to display the caret after updating it's position with SelectWord.
15596         - Don't need to do an immediate update on this recalc, since there
15597         will be an invalidate anyways.
15598
15599 2007-03-14  Jackson Harper  <jackson@ximian.com>
15600
15601         * TreeView.cs: Some workarounds so that we can match event order a
15602         little better.
15603
15604 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
15605
15606         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
15607         #80803. Avoid NullReferenceException when Control does not have
15608         parent. Fixed different blinkstyle issues. Only subscribe to Tick
15609         event a single time. Only draw error icon when control is created and
15610         visible. Fixes failing unit tests.
15611
15612 2007-03-14  Andreia Gaita  <avidigal@novell.com>
15613
15614         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
15615         Selecting events. Fire Leave and Enter events when changing tabs.
15616
15617 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
15618
15619         * TreeView.cs: Add TreeViewNodeSorter.
15620         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
15621
15622 2007-03-14  Chris Toshok  <toshok@ximian.com>
15623
15624         * Form.cs: go ahead and remove the RecreateHandles that jpobst
15625         removed earlier and I had him add back it.  It turns out metacity
15626         *does* in fact handle the MOTIF_WM_HINTS property changing, it
15627         just doesn't redraw the window titlebar until you resize the
15628         window.  This also means we aren't recreating the entire window
15629         hierarchy on X when you change this property.  And it looks better
15630         on windows, too.
15631
15632 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15633
15634         * ListViewItem.cs:
15635         * ListView.cs: Collecting selection information
15636         is now done in SelectedIndexCollection rather than in
15637         SelectedListViewItemCollection. This is done so we can
15638         have the selection information code in one single place
15639         (virtual mode selection information entirely depends on
15640         SelectedIndexCollection).
15641
15642 2007-03-13  Miguel de Icaza  <miguel@novell.com>
15643
15644         * ErrorProvider.cs: Add stubs for ISupportInitialize
15645
15646 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15647
15648         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
15649         in the right order with the right values, from the Checked property, 
15650         just as MS does (instead of triggering them from ListView).
15651
15652         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
15653
15654 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15655
15656         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
15657         the correct handler in OnItemCheck method (ItemCheckEventHandler 
15658         instead of EventHandler). This used to throw an InvalidCastException.
15659
15660 2007-03-13  Jackson Harper  <jackson@ximian.com>
15661
15662         * TextBoxBase.cs: Calculate the document before the handle is
15663         created, so there isn't an extra invalidate called.
15664
15665 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
15666
15667         * Form.cs: Don't set owner in ShowDialog until we are sure
15668         that we aren't going to throw an exception.  [Fixes bug #80773]
15669
15670 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
15671
15672         * TreeView.cs: Make it compile.
15673
15674 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15675
15676         * Control.cs: Another place we don't call SizeFromClientSize.
15677         * Form.cs: Another place we don't call SizeFromClientSize.
15678         [Fixes bug #81125]
15679
15680 2007-03-12  Jackson Harper  <jackson@ximian.com>
15681
15682         * TreeView.cs: Basically emulating some strangness here with
15683         exanding nodes and setting node positions when windows aren't
15684         created.
15685         - Also attempting to walk the node tree less than previously, and
15686         just use visible order calculations for determining offsets.
15687         - oops made scrolling backwards.
15688         * TreeNode.cs: We need to start nodes with a zero visible order,
15689         because the order calcs are based on the first nodes order.
15690
15691 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15692
15693         * Form.cs: Don't exit the program if RecreateHandle is called on
15694         the main form.
15695
15696 2007-03-12  Chris Toshok  <toshok@ximian.com>
15697
15698         * XEventQueue.cs: remove the use of PostQuitState.
15699
15700         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
15701         WM_QUIT message in GetMessage, return false (and if we're in the
15702         nested WaitForHwndMessage, repost the WM_QUIT message).
15703
15704 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15705
15706         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
15707         or the MaximizeBox properties.  [Part of bug #80640]
15708
15709 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
15710
15711         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
15712         no links.
15713
15714 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15715
15716         * ToolStripItem.cs: Fix some tests I broke by checking Visible
15717         instead of visible.
15718
15719 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
15720
15721         * FileDialog.cs: Use text of File name combobox to determine what
15722         files the user selected. Added tokenizer to parse the file names.
15723         Fixes bug #81123.
15724
15725 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15726
15727         * Control.cs: We can't call SizeFromClientSize in the constructor,
15728         but we still need to do the same work, so make an internal version.
15729         [Fixes bug #80621]
15730
15731 2007-03-12  Jackson Harper  <jackson@ximian.com>
15732
15733         * TreeView.cs:
15734         * TreeNode.cs:
15735         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
15736         IsExpanded.
15737
15738 2007-03-12  Jackson Harper  <jackson@ximian.com>
15739
15740         * TextBoxBase.cs: Now that the handles are being created a little
15741         later, we need to make sure that the document is recalculated when
15742         the handle is created.
15743
15744 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
15745
15746         * Theme.cs: GetLinkFont abstract method added.
15747         
15748         * LinkLabel.cs: 
15749         - Remove CalcTrimRectangle, no longer needed.
15750         - Factor also remove, position issues must be fixed in libgdiplus.
15751         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
15752         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
15753         care about font used to draw links.
15754         - Set TabStop to true when control is "Selectable", control is selectable
15755         when have one or more links. Fixes #80501 (test case is also added).
15756         - Set the LinkArea values after links change, LinkArea values must be
15757         based in first link position and size, a test case was created.
15758         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
15759         the attribute must be true LinkArea.Length > 0. The same was applied to
15760         TabStop.
15761         
15762         * ThemeWin32Classic.cs: 
15763         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
15764         in draw method.
15765         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
15766         color change.
15767         - Draw focus rectangle for every parts focused, including parts that 
15768         is on another line, its because regions returns various rectangles
15769         and not only one. Needed to mimic W32 look.
15770         - Uses Graphics.Clip to delimite region painted, it mean that now 
15771         complete text is passed to DrawString, with this we solve layout
15772         issues without create another text renderer.
15773         - Uses Region.Intersect to fix some flickers problems, now only needed
15774         parts will redrawed.
15775         - This changes fixes #79614 and some other unreported issues, on Linux 
15776         some layout problems still remain, the problem is under 
15777         MeasureCharacterRanges but it is an libgdiplus bug.
15778
15779 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
15780
15781         * TextBox.cs: Set for foreground color.
15782         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
15783         this is already done in Control.
15784
15785 2007-03-10  Jackson Harper  <jackson@ximian.com>
15786
15787         * TextBox.cs: Set the background color, but reset the
15788         backcolor_set flag which is just for the user setting the
15789         background color.
15790
15791 2007-03-09  Chris Toshok  <toshok@ximian.com>
15792
15793         * Control.cs: really remove the call to XplatUI.SetVisible from
15794         CreateHandle(), like I said I did when I merged the branch.
15795
15796         * BindingSource.cs: implement some more of this stuff.
15797
15798 2007-03-09  Jackson Harper  <jackson@ximian.com>
15799
15800         * TextBox.cs: Don't explicitly set our background colors.
15801         * TextControl.cs:
15802         * TextBoxBase.cs: Draw readonly text.
15803         - Need to invalidate when backcolor or readonly are changed.
15804         
15805 2007-03-09  Jackson Harper  <jackson@ximian.com>
15806
15807         * TextBoxBase.cs: Don't set the forecolor until the handle is
15808         created.
15809         - Do not raise OnPaint, and removed some old debug code.
15810
15811 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
15812
15813         * ScrollableControl.cs: Fix mouse wheel scrolling.
15814
15815 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
15816
15817         * Control.cs: Wire up MouseDoubleClick event.
15818
15819 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
15820
15821         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
15822         top or bottom.
15823         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
15824         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
15825         item is added.  This logic was moved to ToolStrip.OnItemAdded.
15826         [Fixes bug #81090]
15827
15828 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15829
15830         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
15831
15832 2007-03-08  Jackson Harper  <jackson@ximian.com>
15833
15834         * TreeView.cs: Show the correct image for selected node (this used
15835         to work, not sure how the code got deleted). Also implemented 2.0 feature
15836         SelectedImageKey.
15837
15838 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15839
15840         * ListView.cs:
15841         * ListViewItem.cs: Cache index in items when retrieving them
15842         in VirtualMode.
15843
15844 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15845
15846         * ToolStripItem.cs: Don't return the explicit_size if we are using 
15847         AutoSize.  Fixes invalidation issue when user has explicitly set a
15848         size and has AutoSize = true.
15849
15850 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15851
15852         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
15853
15854 2007-03-07  Pedro MartĂ­nez JuliĂ¡  <pedromj@gmail.com>
15855
15856         * DataGridView.cs: Remove event handler from DataView when a
15857         DataTable is used as DataSource.
15858
15859 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15860
15861         * Control.cs: Create internal setter for client_size to allow it to be
15862         set without triggering resizing code.
15863         * Form.cs: Calculate client_size in constructor, only change client_size
15864         in FormBorderStyle property if Handle has been created.
15865         [Fixes #80574, #80791]
15866
15867 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
15868
15869         * SystemInformation.cs: Add TerminalServerSession.
15870
15871 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
15872
15873         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
15874         TreeView code.
15875
15876 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
15877
15878         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
15879         Handle before we were supposed to.  Now checks ActivateOnShow property
15880         in Control.
15881         * Control.cs: Add internal ActivateOnShow property.
15882         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
15883         for ActivateOnShow.
15884         * Hwnd.cs Remove no longer needed no_activate field.
15885
15886 2007-03-07  Jackson Harper  <jackson@ximian.com>
15887
15888         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
15889         2.0 properties
15890         * DrawTreeNodeEventHandler.cs: Add
15891         * DrawTreeNodeEventArgs.cs: Correct default value.
15892         
15893 2007-03-07  Chris Toshok  <toshok@ximian.com>
15894
15895         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
15896         to be called before NativeWindow.WndProc.  Put the HwndCreating
15897         magic there to hook up our Hwnd's to handles.
15898
15899 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
15900
15901         * DataGridView.cs: Comment out debug code.
15902
15903 2007-03-07  Chris Toshok  <toshok@ximian.com>
15904
15905         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
15906         to make the rest of the world happy]
15907
15908         * Control.cs (CreateHandle): there's no need to call
15909         XplatUI.SetVisible here, it's effectively done by
15910         XplatUI.CreateWindow on X now, and always was on windows.
15911
15912         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
15913         shortcircuit out of the loop if we have a message loop running on
15914         this thread.
15915
15916         [Changelog from merge]
15917
15918         2007-03-05  Chris Toshok  <toshok@ximian.com>
15919
15920                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
15921                 causes handle creation.
15922
15923         2007-02-28  Chris Toshok  <toshok@ximian.com>
15924
15925                 * ApplicationContext.cs: Add a flag to make sure we only raise the
15926                 ThreadExit event once (ExitThreadCore can be indirectly called
15927                 from a few places.)  I don't like the additional flag, but it
15928                 makes the event ordering/count correct.
15929
15930                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
15931                 without locking the collection.  An enumerator doesn't give us any
15932                 protection from modification anyway.  Lock the thread hash and
15933                 replace the complicated enumerator loop with a foreach.
15934                 (Application.CloseForms): make internal so it can be called from
15935                 ApplicationContext.  This should probably be moved to MWFThread.
15936                 (Application.ExitThread): don't call MWFThread.Current.Exit()
15937                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
15938                 when the runloop exits (in response to WM_QUIT.)
15939                 (Application.RunLoop): add a comment (and check) for
15940                 context.MainForm being null after setting context.MainForm.Visible
15941                 = true.  This is because you're perfectly free to dispose of a
15942                 form in VisibilityChanged.  Chalk this up to another case where we
15943                 need to synchronously generate WM_ACTIVATE from Control.Show.
15944                 Also, add handling for WM_QUIT here so we'll exit the loop.
15945                 
15946                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
15947                 fact that we don't wait if we're only unmapping the whole_window
15948                 makes me a bit nervous, but it doesn't seem to cause any problems
15949                 yet.
15950
15951                 also, add a comment about the stupid, broken and wrong resetting
15952                 of PostQuitState to false in GetMessage().
15953
15954                 In PostQuitMessage, we need to add a WM_QUIT message to the
15955                 thread's queue.  We use the FosterParent to get the right
15956                 handle/hwnd/queue.
15957
15958                 Lastly, in SetVisible, we need to unmap both windows, since the
15959                 waiting only happens when we're unmapping the client window.  So
15960                 now, the *only* time we unmap just the whole_window is in the hack
15961                 for resizing a control to 0,0.
15962                 
15963         2007-02-21  Chris Toshok  <toshok@ximian.com>
15964
15965                 * Application.cs (CloseForms): rewrite this so that we don't
15966                 modify the list while we're traversing it.
15967
15968         2007-02-20  Chris Toshok  <toshok@ximian.com>
15969
15970                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
15971                 of OnHandleCreated.
15972                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
15973                 handle is created.  otherwise we'll create it here.
15974                 (VerticalScrollEvent): same here.
15975
15976                 * Application.cs (CloseForms): call Form.Dispose, don't post
15977                 WM_CLOSE_INTERNAL.
15978
15979                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
15980                 here. Application should Dispose() of the Form's.
15981
15982                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
15983                 WM_DESTROY as well.
15984                 (MapWindow,UnmapWindow): only actually do the waiting for
15985                 SHOWWINDOW if the control we're dealing with is a Form.
15986                 (CreateWindow): if the control isn't a form, SendMessage
15987                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
15988
15989                 * Control.cs (SetVisibleCore): always use is_visible here, not
15990                 value.  If we use value, we can end up re-setting something
15991                 visible if, for instance, you do Control.Hide() in a delegate
15992                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
15993
15994         2007-02-20  Chris Toshok  <toshok@ximian.com>
15995
15996                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
15997                 the message we need.  PeekMessage returning false should not be a
15998                 condition under which we exit the loop.
15999
16000         2007-02-15  Chris Toshok  <toshok@ximian.com>
16001
16002                 * Control.cs (Refresh): only refresh if we've got a handle and are
16003                 visible.
16004                 (CreateAccessibilityInstance): CreateControl() here.
16005                 (UpdateChildrenZOrder): complicate the code loop even more by
16006                 taking into account controls that haven't had their handle
16007                 created, and those that aren't visible.  But on the flip side,
16008                 simplify the code by splitting it into two loops.  one which
16009                 builds up the list of child controls we're interested in, and the
16010                 other that sets the z order of those children.
16011
16012         2007-02-14  Chris Toshok  <toshok@ximian.com>
16013
16014                 * Control.cs: Control.AccessibilityObject causes the control to be
16015                 created, not just the handle.
16016
16017         2007-02-14  Chris Toshok  <toshok@ximian.com>
16018
16019                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
16020                 problem on X where a window might have its handle created (and be
16021                 visible) while the window is unmapped.  calling XConfigureWindow
16022                 on an unmapped window is bad, and generates X errors.
16023
16024         2007-02-13  Chris Toshok  <toshok@ximian.com>
16025
16026                 * Control.cs (CreateHandle): don't loop over our children setting
16027                 their parent here.  do it when in WndProc when we're shown.
16028                 (UpdateChildrenZOrder): make this internal so we can call it from
16029                 ScrollableControl.
16030                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
16031                 creating its handle.  Also, remove the calls to PerformLayout from
16032                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
16033                 OnVisibleChanged only seems to be called directly here for the
16034                 toplevel control.  It's propagated down the window hierarchy by
16035                 calls to child.OnParentVisibleChanged.
16036                 (OnVisibleChanged): don't do layout here - it's done (oddly
16037                 enough, according to a glance at stack traces on ms.net..) in
16038                 ScrollableControl.
16039                 
16040                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
16041                 z order of our children before calling PerformLayout.
16042
16043         2007-02-12  Chris Toshok  <toshok@ximian.com>
16044
16045                 [big change, fixes #80020]
16046                 
16047                 * AccessibleObject.cs: we need to make owner internal again to fix
16048                 some of ControlAccessibleObject.
16049
16050                 * Control.cs: lots of changes here.  add support for WM_CREATE,
16051                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
16052                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
16053                 we create child controls.  leave the MonoTODO's for the
16054                 accessibility calls, but fix the exceptions so the tests pass.
16055
16056                 Add the InvalidOperationExceptions to Invoke methods, and remove a
16057                 couple of InvokeInternal methods we aren't using.
16058                 
16059                 Also, add a couple of CreateHandle calls in places where we know
16060                 the handles are being created but our code doesn't reference
16061                 .Handle.
16062
16063                 Make SetVisibleCore call OnVisibleChange if the handle isn't
16064                 created.  If the handle is created, we rely on XplatUI.SetVisible
16065                 generating the event synchronously.
16066                 
16067                 Lastly, make sure we don't use this.Handle inside CreateHandle,
16068                 because we can call back into client (and that code can dispose of
16069                 the control).
16070
16071                 * XplatUIStructs.cs: misc/cleanup.
16072
16073                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
16074                 although we don't populate the wParam properly.
16075                 (CreateWindow): generate WM_CREATE.
16076                 (MapWindow,UnmapWindow): make these calls synchronous, at great
16077                 performance expense (particularly in the unmap case), to match
16078                 win32 behavior.
16079
16080                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
16081                 to call it.
16082                 (set_MdiParent): don't recreate the handle unless it's been
16083                 created already.
16084                 
16085                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
16086                 it's created.
16087
16088                 * NativeWindow.cs: this is probably the weirdest part of the
16089                 patch.  We need a way to link up the window being created to the
16090                 WM_CREATE message.  Since we can only be creating one window at a
16091                 time on a given thread, we keep track of a per-thread reference so
16092                 we can dispatch it properly.  We also need to keep track of the
16093                 Hwnd currently being created so that the win32 backend doesn't
16094                 have problems.
16095                 
16096                 * XplatUIWin32.cs: a similar change to the one we made in
16097                 NativeWindow.cs.
16098
16099 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16100
16101         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
16102         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
16103         to draw the menu shortcut string.
16104
16105 2007-03-07  Jackson Harper  <jackson@ximian.com>
16106
16107         * TreeNode.cs: Add the 2.0 collapse method.
16108
16109 2007-03-07  Pedro MartĂ­nez JuliĂ¡  <pedromj@gmail.com>
16110
16111         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
16112
16113 2007-03-07  Pedro MartĂ­nez JuliĂ¡  <pedromj@gmail.com>
16114
16115         * DataGridView.cs: Change DataSource will clear column and row
16116         lists. Call Invalidate() to reflect DataSource change.
16117
16118 2007-03-07  Pedro MartĂ­nez JuliĂ¡  <pedromj@gmail.com>
16119
16120         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
16121         and a new row is added to it.
16122
16123 2007-03-07  Pedro MartĂ­nez JuliĂ¡  <pedromj@gmail.com>
16124
16125         * DataGridView.cs: Add columns when DataSource is en empty list but
16126         is a System.Data.DataView (from a System.Data.DataTable).
16127
16128 2007-03-06  Andreia Gaita  <avidigal@novell.com>
16129
16130         * Label.cs: Implement AutoEllipsis (2.0)
16131
16132 2007-03-06  Jackson Harper  <jackson@ximian.com>
16133
16134         * TreeView.cs: Implement 2.0 TopNode setter property.
16135         - Use a local var instead of the skipped_nodes field for computing
16136         how many nodes to skip.  Otherwise we won't scroll because the
16137         valuechanged handler checks if skipped_nodes is equal to the new
16138         value.
16139         - Implement 2.0 Sort method.
16140         - Add useless 2.0 DoubleBuffer property
16141         - Implement 2.0 LineColors property.  Lets you change the color of
16142         the lines in the tree. Terribly useful for creating non cohesive
16143         desktops.
16144         - Implement 2.0 image key feature.
16145
16146 2007-03-06  Jackson Harper  <jackson@ximian.com>
16147
16148         * TreeView.cs: We can't get the bounds of the nodes before raising
16149         the AfterSelect event, because that event could change the node's
16150         bounds (scrolling, font change, etc).
16151
16152 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16153
16154         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
16155         * Form.cs: Don't recreate handle when creating FormWindowManager, just
16156           update window styles. In CreateParams us VisibleInternal instead of
16157           VIsible to get the actual visible flag set for this form.
16158         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
16159           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
16160           handle the case when the form is already maximized, in which case
16161           it should be restored. Fixes #81043.
16162
16163 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16164
16165         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
16166
16167 2007-03-05  Jackson Harper  <jackson@ximian.com>
16168
16169         * TreeViewHitTestInfo.cs: implement.
16170
16171 2007-03-05  Jackson Harper  <jackson@ximian.com>
16172
16173         * InternalWindowManager.cs: class status fix.
16174
16175 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16176
16177         * InternalWindowManager.cs: All windows that have a parent
16178         are confined to their parent when they're being moved.
16179         Fixes #80822.
16180
16181 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
16182
16183         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
16184         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
16185
16186 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16187
16188         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
16189           buttons invisible before deciding which ones should be visible
16190           (fixes minimize/maximize buttons showing up in toolwindows). Remove
16191           an unused variable.
16192         * InternalWindowManager.cs: Remove warning.
16193
16194 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16195
16196         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
16197         to throw an InvalidOperationException is virtual mode is being used.
16198
16199 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
16200
16201         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
16202         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
16203         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
16204         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
16205         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
16206         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
16207
16208 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16209
16210         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
16211           driver.KeyboardDelay from XplatUI.KeyboardDelay 
16212         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
16213           (patch by Sergey Volk)
16214
16215 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16216
16217         * ToolWindowManager.cs: Added, contains logic for
16218           tool windows.
16219         * CreateParams.cs: Add a few helper methods and an
16220           internal variable to know which control the CreateParams belongs
16221           to.
16222         * Control.cs: Call Form.ChangingParent when the
16223           parent is about to be changed.
16224         * XplatUIX11.cs: DeriveStyles (): Set
16225           caption_height for all windows that have captions and are children.
16226           Update to use ToolWindowManager instead of InternalWindowManager
16227           for ToolWindows.
16228         * XplatUIWin32.cs: Set fake window styles for all
16229           windows that have window managers.
16230         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
16231           now duplicated for mdi windows when they are
16232           maximized, first for the buttons the window itself has, then for
16233           the buttons that appear in the menu bar. Makes things a little
16234           easier). Updated UpdateWindowDecorations, SetWindowState and the
16235           mouse eventhandlers accordingly.
16236         * Form.cs: Add ChangingParent (), contains the
16237           logic of what should happen when the parent changes. In MdiParent
16238           don't set things that ChangingParent () is doing. When handling
16239           WM_CLOSE, we can close the form if there are any other modal forms
16240           and the current form is a descendent of the modal form.
16241         * InternalWindowManager.cs: A lot of refactoring,
16242           the title buttons are now extracted to a separate container class
16243           that takes care of all button code (clicks, tooltips, etc). Moved
16244           Iconic|Maximized|Normal Bounds properties to this class from
16245           MdiWindowManager, so that the window state logic can succeed for
16246           other than mdi wm's. Implemented general window state change logic.
16247           Moved CreateButtons to ThemeWin32Classic, since the theme might
16248           override which buttons are available when as well as the exact
16249           location.
16250         * FormWindowManager.cs: Added, contains logic for
16251           normal forms.
16252         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
16253           which buttons go where (and if they are at all visible). 
16254           Removed special handling of maximized windows, since they aren't special. 
16255           In DrawManagedWindowDecorations don't try to draw the text if it is
16256           empty.
16257         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
16258           use whatever the wm gives us.
16259
16260 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
16261
16262         * ButtonBase.cs: Add 2.0 properties.
16263         * Button.cs: Override Draw for 2.0.
16264         * Control.cs: Add Entered and Selected properties.
16265         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
16266         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
16267         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
16268         buttons.
16269         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
16270
16271 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
16272
16273         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
16274
16275 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
16276
16277         * XplatUIWin32.cs: Register a new class with Windows each time we get
16278         a new ClassStyle.  [Fixes bugs #79432, #80817]
16279         * Controls.cs: Set the correct ClassStyle in CreateParams.
16280         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
16281
16282 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
16283
16284         * ListView.cs: Add fireEvent argument to ReorderColumn since the
16285         ColumnReordered event must not be signaled when modifying DisplayIndex
16286         of a ColumnHeader. Added internal ReorderColumns method which takes
16287         care of drawing, and updating the internal DisplayIndex of the
16288         ColumnHeader. Added AddColumn method which is invoked from
16289         ColumnHeaderCollection when adding or inserting columns, and which
16290         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
16291         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
16292         Recalculated dispay indices after removing a ColumnHeader.
16293         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
16294         match MS. Allows last display index to be returned after ListView
16295         is disposed. Update actual location of ColumnHeader when DisplayIndex
16296         is modified.
16297
16298 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
16299
16300         * LinkLabel.cs: Improve CalcTrimRectangle.
16301         
16302         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
16303
16304 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
16305
16306         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
16307         get rectangle as a result value.
16308
16309 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
16310
16311         * LinkLabel.cs: Theres some diferences between rectangle return from 
16312         MeasureCharacterRanges and the area used for DrawString to fix this 
16313         CalcMeasurementFactor method was created, it calcules the diferences
16314         to be use later to adjust rectangle in draw operations. Fixes #80473.
16315         
16316         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
16317         to adjust draw rectangle.
16318
16319 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
16320
16321         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
16322         text and some other changes to reduce and optimize source code.
16323
16324 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
16325
16326         * RadioButton.cs: Implement 2.0 event.
16327         * RelatedImageListAttribute.cs: Implement new class.
16328
16329 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
16330
16331         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
16332
16333 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
16334
16335         * CheckBox.cs: Implement 2.0 functionality.
16336
16337 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16338
16339         * ListView.cs: Refactor Add and AddRange methods of
16340         ListViewItemCollection, to not update the ListView
16341         everytime an item is added in AddRange. Also move the update
16342         code to a new CollectionChanged method, and call it
16343         from other methods that need it as well (this should also fix some
16344         bugs when Sorting is used).
16345
16346 2007-02-27  Jackson Harper  <jackson@ximian.com>
16347
16348         * TextControl.cs: Try to never let the caret stay in a non-text
16349         tag.
16350         * TextBoxBase.cs: Update the caret.
16351
16352 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
16353
16354         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
16355         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
16356         delete POINT structure, duplicate of one in XplatUIStructs.
16357         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
16358
16359 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
16360
16361         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
16362         edit box since otherwise the Label would immediately be set (even if
16363         the user did not modify the label). In OnKeyDown set Handled to true
16364         if Return or Escape was pressed. In ColumnHeaderCollection unlink
16365         columns that are to be removed. In ListViewItemCollection unlink items
16366         that are to be removed.
16367
16368 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
16369
16370         * TextRenderer.cs: If we set a GDI clip region, we need to clear
16371         it when we are done.  [Fixes bug #80949]
16372
16373 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16374
16375         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
16376
16377 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16378
16379         * ListView.cs: I forgot to commit the changes for ListView 
16380         in my previous patch.
16381
16382 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16383
16384         * Clipboard.cs: Partially implement an overload of SetDataObject.
16385         * Form.cs: Implement ShowWithoutActivation.
16386         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
16387
16388 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16389
16390         This is a first set of changes to make the Virtual mode works,
16391         by avoiding the retrieval of ListViewItem instances until
16392         draw time.
16393
16394         * ListView.cs: Store item position in the ListView instead of the
16395         ListViewItem, this way we don't request the Bounds property of
16396         ListViewItem inside the ListView calculations, as well as cache the item
16397         size in item_size field. Store indexes instead of ListViewItem
16398         instances in the matrix used by icon view. Add a ItemMatrixLocation
16399         struct to hold the row and col info of the matrix info.
16400
16401         * ListViewItem.cs: Don't store the location anymore, and only cache
16402         the rectangles for GetBounds. Use the ListView.GetItemLocation
16403         method to retrieve the actual location.
16404
16405 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16406
16407         * TextRenderer.cs: Add clipping support, thanks to George.
16408         [Fixes bug #80949]
16409
16410 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16411
16412         * ListViewItem.cs: Cancel label edit when item is removed from 
16413         ListView.
16414         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
16415         event before the edit textbox is displayed.  Added CancelEdit method
16416         which is used end to editing while ignoring the value set by the
16417         user. In EndEdit, set focus to ListView to avoid losing focus to
16418         other controls. In ListViewItemCollection.Clear, cancel editing of
16419         any of the items.  In Remove, cancel editing of item being removed.
16420         Avoid udplicate code by modifing RemoveAt to invoke Remove.
16421
16422 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16423
16424         * FileDialog.cs: Update FSEntry when move is successful. Fixes
16425         bug #80948.  
16426
16427 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16428
16429         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
16430         compatible with non X11 systems. Fixes #80901.
16431
16432 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16433
16434         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
16435         whether the item should be unselected and reselect. We do no want this
16436         when we're starting to edit the label. Do not fire the 
16437         SelectedIndexChanged event from ListView when its already been fired
16438         by modifying ListViewItem.Selected. Fixes bug #80943.
16439
16440 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16441
16442         * TextRenderer.cs: Previos commit logic was backwards.
16443
16444 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16445
16446         * TextRenderer.cs: Don't add padding on MeasureText if we were
16447         sent the NoPadding flag.
16448
16449 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16450
16451         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
16452         after DrawButton. To prevent image overlaps button borders SetClip and 
16453         ResetClip added before and after draw image. Fixes #79129.
16454
16455 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16456
16457         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
16458         window size, it fix problem when you run under win32 that theres
16459         Size diferent than ClientSize. Also fix controls size and positions
16460         to mimic Win32. Fixes #80837.
16461
16462 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
16463
16464         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
16465         menu area to fix some problems for non X11 systems. Fixes #80613.
16466
16467 2007-02-22  Jackson Harper  <jackson@ximian.com>
16468
16469         * TreeNode.cs: When a node is expanded, set its is_expanded flag
16470         even if it doesn't have any children.
16471
16472 2007-02-22  Jackson Harper  <jackson@ximian.com>
16473
16474         * TreeView.cs: Calculate the top node 'on the fly', this
16475         eliminates issues where you need to click on the tree before
16476         scrolling it to get the top node computed correctly.
16477         * TreeNodeCollection.cs: We don't need to mess with the top node
16478         anymore.
16479
16480 2007-02-22  Jackson Harper  <jackson@ximian.com>
16481
16482         * DataGridViewRow.cs: Fix typo so height can actually be set.
16483         Patch by Peter Grimm.
16484
16485 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16486
16487         * FileDialog.cs: Fixed support for renaming files and directories.
16488         * ListView.cs: Do not lose focus when edit is canceled. Process
16489         Escape as regular key (to prevent closing of dialogs).
16490
16491 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16492
16493         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
16494         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
16495
16496 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16497
16498         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
16499         did not modify label.
16500         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
16501         modified the text. Reset Label when user presses Escape in edit mode.
16502         Move focus to ListView after having cancelled or finished editing the
16503         label.
16504
16505 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
16506
16507         * ComboBox.cs: Removed unnecessary initializations. Marked items field
16508         private. Clear textbox when Text is set to null and SelectedIndex is
16509         already -1.
16510         * FileDialog.cs: Removed unnecessary initializations. Removed 
16511         workarounds for ComboBox bugs that are now fixed. Modified
16512         DefaultExt, InitialDirectory and Title property to change null to
16513         zero-length string in getters. Avoid directly accessing fields.
16514
16515 2007-02-20  Jackson Harper  <jackson@ximian.com>
16516
16517         * TextControl.cs: Remove RecalAlignments call, that was some
16518         debugging leftovers.
16519         - Don't use the line indent when we shouldn't.
16520         * RichTextBox.cs: Add support for paragraph left indents.
16521
16522 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16523
16524         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
16525         Seems like the class status pages doesn't catch params differences.
16526
16527 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
16528
16529         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
16530
16531 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
16532
16533         * ComboBox.cs: Setting Text should have no effect if item text of
16534         selected item exactly matches value. First lookup text using
16535         case-sensitive comparison, and fallback to case-insensitive comparison.
16536         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
16537         allow startIndex to be last index. Changed ArgumentOutOfRangeException
16538         paramname to match MS. Restart from first item if string is not found
16539         after startIndex. Fixed paramname of ArgumentNullException that is
16540         thrown for null value in ObjectCollection.Contains.
16541
16542 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
16543
16544         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
16545
16546 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16547
16548         * ListControl.cs: In SelectedValue use value.Equals to compare for
16549         equality instead of ==, otherwise it will fail for strings.
16550         Fixes #80794.
16551
16552 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16553         
16554         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
16555         since the caret won't show up unless ShowSelection is true. 
16556         Fixes #80795.
16557
16558 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16559
16560         * Application.cs: When disabling all forms but the main form, do not
16561           disable any descendants of the main form (such as mdi children or
16562           other parented forms). Fixes #80822 on Windows.
16563         * Form.cs: If we have a parent, set the WS_CHILD style.
16564         * Control.cs: Update the window styles if the control whose parent has
16565           changed is a form (the WS_CHILD style has to be switched).
16566
16567 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
16568
16569         * XplatUIStructs.cs: MsgUIState structure added.
16570
16571 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
16572
16573         * FileDialog.cs: Removed need for separate fileName field. On 2.0
16574         profile, do not check filename(s) for illegal character if filename(s)
16575         were set non-interactively but always check on 1.0 profile. Fixed NRE
16576          in DefaultExt and only strip off first leading dot. Improve exception
16577         message when invalid Filter is set. Do not ignore InitialDirectory if
16578         it does no exist. Store specified Title, and if empty use default
16579         title (depending on type of dialog). Added an internal DialogTitle 
16580         property for retrieving dialog title. Fixed logic of displayed dir to
16581         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
16582         string as its buggy.
16583         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
16584         FileName is a zero-length string (it can never be null). Override 
16585         DialogTitle property to set default title of dialog box.
16586         * SaveFileDialog.cs: Override DialogTitle property to set default
16587         title of dialog box.
16588
16589 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
16590
16591         * FileDialog.cs: Modify default text of filename and filetype labels
16592         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
16593         after we've updated the SelectedIndex. Fixes part of bug #80887.
16594         * SaveFileDialog.cs: Set text of filetype label.
16595
16596 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16597
16598         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
16599         label field. Needed by latest Jackson's fixes for ListView.
16600
16601 2007-02-16  Andreia Gaita  <avidigal@novell.com>
16602
16603         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
16604         print preview images.
16605
16606 2007-02-16  Jackson Harper  <jackson@ximian.com>
16607
16608         * ListView.cs: Make AfterLabelEdit work correctly.
16609         * FileDialog.cs: After changing the name of the folder, we have to
16610         make sure that it is created, or that we pop up an error because
16611         it already exists.
16612
16613 2007-02-16  Jackson Harper  <jackson@ximian.com>
16614
16615         * X11Dnd.cs: Implement aliases on mime handlers, so things like
16616         System.String are mapped to text.
16617         - Handle dataobjects, getting all the possible formats out of them
16618         - We dont need the drag event args before we give feedback. This
16619         allows feedback cursors to be immediate before selections have
16620         been converted.
16621
16622 2007-02-16  Jackson Harper  <jackson@ximian.com>
16623
16624         * TextBoxBase.cs: Modified the method for inserting images to
16625         taking a line and position instead of tag and position.
16626         * RichTextBox.cs: Handle PngBlip data by inserting the png image
16627         into the RTF file.
16628         * TextControl.cs: Allow images to be inserted as the first tag of
16629         a line.
16630         - Fix some off by one issues when we assume the first tag is a
16631         text tag, not an image tag.
16632
16633 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16634
16635         * ListView.cs: Set focus to ListView when ItemControl gets a
16636         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
16637         Fixes part of #80467.
16638
16639 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16640
16641         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
16642           validate Text input (if null or empty string reset Value to default
16643           value). Fixes #80830.
16644
16645 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16646
16647         * ListView.cs: Set owner as null for columns and items when
16648         Dispose is invoked. Fixes #80607.
16649
16650 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
16651
16652         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
16653         showing DropDowns, don't show a Grip when doing Flow layout.
16654         [This fixes the toolbox in PDN 2.72.]
16655         * ToolStripItem.cs: Add Anchor property and some internal properties to
16656         reduces needed changes to FlowLayout.
16657         * ToolStripOverflow.cs: Remove unused variable.
16658         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
16659         use it in the layout calculations.
16660
16661 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16662
16663         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
16664         reported in #79640.
16665         
16666         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
16667         size calculation.
16668
16669 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16670
16671         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
16672         MeasureString format, it can make button very large in some cases, it is
16673         strange but is what win32 do.
16674
16675 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16676
16677         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
16678         size calculation.
16679
16680         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
16681         rendering, the value is based on MenuAccessKeysUnderlined.
16682
16683 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16684
16685         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
16686         for most themes.
16687         
16688         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
16689         
16690         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
16691         and use MenuAccessKeysUnderlined instead.
16692
16693 2007-02-13  Andreia Gaita  <avidigal@novell.com>
16694
16695         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
16696         A selected control would not get a Focus call if:
16697                 - the default active control of the container is the same as
16698                   the one that was selected
16699                 - we are switching from one container to another
16700         Under these conditions, the container being selected already has
16701         an active_control, which is the same as the one being activated, 
16702         so set_ActiveControl would always return and not send the Focus
16703         call. Fix to check if the currently active control of the container
16704         is actually focused.
16705
16706 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
16707
16708         * StatusStrip.cs: Implement the spring layout.
16709         * ToolStripControlHost.cs: Make sure the hosted control's visibility
16710         always matches the host.
16711         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
16712         and TextAfterImage.
16713
16714 2007-02-13  Andreia Gaita  <avidigal@novell.com>
16715
16716         * Control.cs: Code reorganization only.
16717           - Reorganize the WndProc cases so that each case has it's own handling method, 
16718           to help with the no-line-numbering stack traces.
16719           - Formatting changes (it's vstudio's fault, really :p)
16720
16721 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16722
16723         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
16724           Thread.CurrentUICulture to match DateTimePicker's (and MS)
16725           behaviour.
16726
16727 2007-02-12  Jackson Harper  <jackson@ximian.com>
16728
16729         * RichTextBox.cs:
16730         * TextBox.cs: By default we have a non multiline document
16731         - use the multiline property instead of the internal variable
16732         * TextBoxBase.cs: Treat multiline and non multiline the same in
16733         most places.
16734         - Use the documents multiline flag instead of tracking it ourself
16735         * TextControl.cs: Attempt at getting multiline to match MS
16736         behavior.  Lines now track an offset, which is either their X or Y
16737         offset depending on whether or not we are in multiline mode.
16738         - Update all the methods to understand that lines have an X value.
16739         - Fix crash in Undo::Duplicate when empty lines are deleted.
16740
16741 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
16742
16743         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
16744         code moved to properties PreferredHeight and PreferredWidth. It solve the
16745         all problems when preferred sizes must be recalculated. Fixes #80801.
16746
16747 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
16748
16749         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
16750         font height when compatible_text_rendering is false. Partially fix #80801.
16751
16752 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16753
16754         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
16755
16756 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16757
16758         * Form.cs: Improved exception messages in ShowDialog.
16759
16760 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16761
16762         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
16763         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
16764         if not set. Fixes bug #80764. Avoid accessing current_settings field
16765         directly.
16766
16767 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
16768
16769         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
16770         false.
16771
16772         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
16773         public in 2.0 and for easy maintenance and dont break compatibility it is 
16774         internal in 1.1.
16775         
16776 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16777
16778         * ToolStripItem.cs: Implement using images from ImageList.
16779
16780 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16781
16782         * DateTimePicker.cs: Change default date-formatting culture from
16783           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
16784           seems to be the way MS does it.
16785
16786 2007-02-08  Andreia Gaita  <avidigal@novell.com>
16787
16788         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
16789         (the 6 was cut off on the right side)
16790
16791 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16792
16793         * Form.cs: Tell MenuStrips to close when the form is clicked.
16794         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
16795         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
16796         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
16797         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
16798         support for Overflow, where items that do not fit are automatically
16799         reparented to a drop down menu.
16800         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
16801         Also: fixes bug #80747.
16802
16803 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16804
16805         * ComboBox.cs: Remove warning (unused code).
16806         * ScrollableControl.cs: Remove warning for 1.1 profile.
16807
16808 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16809
16810         * Form.cs: Remove a warning.
16811
16812 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16813
16814         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
16815           'g' specifier, not documented anywhere, but seems to always show up
16816           as a single space (might have something to do with the DateTime 'g'
16817           specifier, which is the era format, but since DateTimePicker can't
16818           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
16819           won't crash if the format has an unmatched quote. Now shows
16820           single-character formats correctly. Fixes #80744.
16821
16822 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16823
16824         * StatusStrip.cs: Stretch property needs to call base.Stretch,
16825         not this.Stretch to fix stack overflow. [Fixes bug #80760]
16826
16827 2007-02-07  Chris Toshok  <toshok@ximian.com>
16828
16829         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
16830         background color.  it overwrites the background image we've
16831         already painted.  Fixes #80599.
16832
16833 2007-02-07  Chris Toshok  <toshok@ximian.com>
16834
16835         * DataGrid.cs: return immediately from Edit() when there are no
16836         columns.  Fixes #80662.
16837
16838 2007-02-07  Chris Toshok  <toshok@ximian.com>
16839
16840         * MessageBox.cs: fix #80625.  don't always show the Help button in
16841         2.0.  use the displayHelpButton parameter to determine if we
16842         should show it. Also, make the internal show_help field private.
16843
16844 2007-02-07  Chris Toshok  <toshok@ximian.com>
16845
16846         * Control.cs (SetVisibleCore): check in the proposed patch for
16847         80604, and set is_visible before calling CreateControl.
16848
16849 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
16850
16851         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
16852         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
16853         on it.
16854
16855 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
16856
16857         * MenuAPI.cs: hotkey_active internal field added, it is required because
16858         we need to know when hotkeys must be draw, before this change a keystate
16859         Navigating was used but we can have menu in navigating state without
16860         hotkeys. Fixes #80694.
16861         
16862         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
16863
16864 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16865
16866         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
16867           corresponding events and methods to be internal for 1.1 profile and
16868           public for 2.0 profile (required by SizeGrip).
16869         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
16870           implicit control list). Don't set the size nor the location of the
16871           SizeGrip anymore as it's not needed.
16872         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
16873           draw directly on the captured control (fixes #80656). Removed
16874           ShowGrip (it wasn't used anywhere), redraw (always true), added
16875           GetDefaultSize and GetDefaultRectangle to calculate defaults.
16876         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
16877           be called from SizeGrip.
16878
16879 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16880
16881         * Timer.cs: Throw ArgumentException if Interval <= 0.
16882
16883 2007-02-05  Jackson Harper  <jackson@ximian.com>
16884
16885         * TreeView.cs: We need to check scrollbar visibility when window
16886         visibility is updated, because non visible trees don't ever add
16887         scrollbars.
16888         * Cursor.cs: We want the override cursor to be reset to NULL when
16889         we set current cursor to the default cursor.
16890
16891 2007-02-05  Jackson Harper  <jackson@ximian.com>
16892
16893         * TextControl.cs: Don't have crlfs when we are non multiline.
16894         - Consolidate the line position.
16895
16896 2007-02-05  Jackson Harper  <jackson@ximian.com>
16897
16898         * X11Keyboard.cs: BACK+CTRL gets a special char code.
16899
16900 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16901
16902         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
16903           handling LeaveNotify->NotifyUngrab in order to send
16904           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
16905           after calling XUngrabPointer, so we call WindowUngrabbed directly
16906           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
16907         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
16908           MouseCaptureChanged correctly. Also create handles if changing
16909           Capture (matches MS behaviour).
16910
16911 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16912
16913         * SizeGrip.cs: Make the last change 2.0 only.
16914
16915 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16916
16917         * SizeGrip.cs: If resizing and the capture is lost, revert any size
16918           changes to initial size (fixes #80597).
16919
16920 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16921
16922         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
16923
16924 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16925
16926         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
16927           background) and only allow dragging if enabled. This way the
16928           sizegrip can be used to fill the open square that otherwise would
16929           have been shown in the bottom right corner of ScrollableControl
16930           when ScrollableControl is not suppose to support sizing.
16931         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
16932           sizegrip is shown and enabled, and hook up with necessary events.
16933
16934 2007-02-01  Chris Toshok  <toshok@ximian.com>
16935
16936         * DataGridTextBoxColumn.cs: clean up the
16937         GetFormattedString/GetColumnValueAtRow combination of functions.
16938         Also fix UpdateUI, and the initial state of
16939         IsInEditOrNavigateMode.
16940
16941         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
16942         aren't supposed to scroll the textbox here, we're supposed to
16943         scroll the datagrid.
16944
16945 2007-02-01  Chris Toshok  <toshok@ximian.com>
16946
16947         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
16948         setting the position.
16949
16950 2007-02-01  Chris Toshok  <toshok@ximian.com>
16951
16952         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
16953         here, since the most recent focus fixes keep us from generating
16954         the Leave event when our textbox gets focus.
16955         (Edit): we should be passing null for the column style's
16956         instantText parameter.
16957         
16958 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
16959
16960         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
16961         raised.  Fixes menu text/icons not showing up in PDN.
16962
16963 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16964
16965         * Control.cs: Remove code in constructor that makes every
16966         control with WS_CHILD set have initial location -1, -1.
16967
16968 2007-01-31  Jackson Harper  <jackson@ximian.com>
16969
16970         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
16971         XplatUIX11.
16972         * XplatUIX11.cs: Give teh keyboard to teh dnd.
16973
16974 2007-01-31  Jackson Harper  <jackson@ximian.com>
16975
16976         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
16977         - Remove some debug code.
16978
16979 2007-01-31  Jackson Harper  <jackson@ximian.com>
16980
16981         * XplatUIX11.cs: If you set the override cursor during a grab, it
16982         should actually override the grab cursor.  This comes into play
16983         when you are setting custom cursors in a DND feedback method.
16984
16985 2007-01-31  Jackson Harper  <jackson@ximian.com>
16986
16987         * X11Dnd.cs: Add support for handling the QueryContinue and
16988         GiveFeedback events.
16989         - Cancel drag and drop actions when the escape key is clicked.
16990         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
16991         can handle the ESCAPE key.
16992         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
16993         done when dnd events are continued after the button is released.
16994         - Add a new helper method so that dnd can translate key events.
16995
16996 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
16997
16998         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
16999         make it more obvious what is happening.
17000
17001 2007-01-30  Jackson Harper  <jackson@ximian.com>
17002
17003         * XplatUIX11.cs: Don't break when handling button release in drag
17004         and drop operations. We need that BUTTONUP message to get through
17005         so capture is released.
17006         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
17007         this is handled automatically when the mouse is down.
17008
17009 2007-01-30  Jackson Harper  <jackson@ximian.com>
17010
17011         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
17012         is closed, so we need to make sure that we aren't changing the
17013         dialog result when the OK (Open or Save) button has been clicked
17014         and we are closing the window ourselves.  Note we don't need to
17015         worry about the cache being written in this case, because it was
17016         already done in the previous FilOk call.
17017
17018 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17019         
17020         * DateTimePicker.cs: Remove a warning.
17021         * ComboBox.cs: Remove a couple of warnings.
17022
17023 2007-01-29  Chris Toshok  <toshok@ximian.com>
17024
17025         * XplatUIX11.cs: don't crash, and remove the icon if the user has
17026         set one, if SetIcon is passed a null icon.
17027
17028 2007-01-29  Andreia Gaita  <avidigal@novell.com>
17029
17030         * TextBox.cs: Redraw when the password characters changes
17031         * TextControl.cs: Check if textbox has a password char and draw 
17032         a line of password chars instead of the text in the line. LineTag gets 
17033         an extra Draw() method which allows document.Draw to override the text 
17034         that will be drawn. Removes 1024 char limitation on length of passworded 
17035         lines.
17036
17037 2007-01-29  Jackson Harper  <jackson@ximian.com>
17038
17039         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
17040         single chars is not.
17041
17042 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
17043
17044         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
17045         one pixel.  Fix a StackOverflowException caused by an overload wrongly
17046         calling itself.
17047
17048 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
17049
17050         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
17051         also remove ProcessArrowKey and put the code inside ProcessKeys.
17052
17053 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
17054
17055         * PaddingConverter.cs: Added.
17056
17057 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17058         
17059         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
17060         ShowPanels is false (fixes #80600). Only draw up to 127 characters
17061         of text (fixes #80601). For panels clip the text to draw to the
17062         panel (fixes #80603).
17063
17064 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17065
17066         * ComboBox.cs: Fixed implementation of ResetText.
17067
17068 2007-01-25  Jackson Harper  <jackson@ximian.com>
17069
17070         * TextControl.cs: For the last char of a line we need to use the
17071         line size, not that chars width, since it won't actually be
17072         computed since the right side of a char is based on the start of
17073         the left side of the next char, and the next char does not exist.
17074
17075 2007-01-25  Chris Toshok  <toshok@ximian.com>
17076
17077         * Splitter.cs: fix the new unit tests, and reindent some switch
17078         statements.
17079
17080 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17081
17082         * ComboBox.cs: Implemented 2.0 methods and events.
17083         * TextBoxBase.cs: Added OnTextUpdate, so that
17084         ComboBox.ComboTextBox can inform ComboBox of it.
17085
17086 2007-01-25  Jackson Harper  <jackson@ximian.com>
17087
17088         * TextControl.cs: Respect ShowSelection when deciding whether or
17089         not to display the caret, this allows comboboxes to have carets
17090         when the combotextbox does not have focus.
17091
17092 2007-01-25  Jackson Harper  <jackson@ximian.com>
17093
17094         * TextControl.cs: Add a Suspend/Resume for updating, basically the
17095         same as the Suspend/Resume for recalc, except this will do actual
17096         Invalidates.
17097         - New Undo manager, works much like the MS version.
17098         - Implemented Redo
17099         * TextBoxBase.cs: The Cut operation is undoable.
17100
17101 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17102         
17103         * TextBoxBase.cs: Don't antialias text. Makes it look way better
17104         on Windows (no difference on Linux).    
17105
17106 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17107
17108         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
17109         we don't want to activate any windows. Fixes #79433.
17110
17111 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
17112
17113         - ButtonBase.cs: Fix capitalization of parameter: disposing.
17114         [Fixes bug #80609]
17115
17116 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
17117
17118         * FileDialog.cs:
17119         - Move to using System.ComponentModel.EventHandlerList
17120         - Replace Refresh with Invalidate
17121         - Clear the mime filecache on closing
17122         - Some other memory reducing work. After beeing closed FD now uses
17123           only about 300 KB for the fdo mime stuff plus the memory of the
17124           cached icons.
17125         * Mime.cs: Changed coding style and removed unnecessary commented
17126         code. Some more memory memory reducing work.
17127
17128 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17129
17130         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
17131         a few other missing 2.0 properties.
17132         * Theme.cs: Added DrawFlatStyleComboBox.
17133         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
17134
17135 2007-01-24  Chris Toshok  <toshok@ximian.com>
17136
17137         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
17138         wake_waiting flag, not just when there's data to be read.  if we
17139         don't, then future wakeup's won't reach us and we'll be doomed to
17140         wait for the entire 1 second timeout forever (unless there are X
17141         events to be had).
17142
17143 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
17144
17145         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
17146         until you pass Items.Count, not Items.Count - 1 like 1.1.
17147
17148 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
17149
17150         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
17151
17152 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
17153
17154         * ToolStripContainer.cs: The recent Dock fix exposed that I was
17155         adding the panels in the wrong order.
17156
17157 2007-01-24  Jackson Harper  <jackson@ximian.com>
17158
17159         * TextBoxBase.cs: When we move the caret we also need to move the
17160         selection, this fixes some random crashing after doing select
17161         text, unselect, delete a char, paste.
17162
17163 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17164
17165         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
17166
17167 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17168
17169         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
17170         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
17171         * ToolBar.cs: Force redraw in BackgroundImageChanged.
17172
17173 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17174
17175         * ToolBar.cs:
17176         - Implement support for vertical toolbars. Fixes #80539;
17177         - Call LayoutToolBar when resize, it fix some other problems in layout.
17178         - Rename requested_height to requested_size, as we can have width on it
17179         when toolbar is vertical.
17180         - Create a private property "Vertical" that uses Dock to verify when 
17181         toolbar is vertical or not.
17182         - Set ControlStyles when change Dock property.
17183         - Refactory in LayoutToolBar to have better variables names and to support
17184         vertical toolbars.
17185         - Fixes default value for ButtonSize when button count is equal zero, size
17186         must be (39, 36) test case writed.
17187
17188 2007-01-23  Chris Toshok  <toshok@ximian.com>
17189
17190         * Control.cs: fix the checks so that they work correctly for mdi
17191         parents/children.
17192
17193 2007-01-23  Chris Toshok  <toshok@ximian.com>
17194
17195         * Control.cs: ControlCollection seems to have super-secret
17196         abstraction breaking knowledge of Mdi containers.  allow MdiClient
17197         to add toplevel controls.
17198
17199 2007-01-23  Chris Toshok  <toshok@ximian.com>
17200
17201         * Control.cs: throw an ArgumentException if a toplevel control is
17202         added to our control collection from ControlCollection.Add, as
17203         well as from ControlCollection.IList.Add.  This fixes the
17204         ControlSetTopLevelTest.TestTopLevelAdd unit test.
17205
17206         Also, in ControlCollection.IList.Add, don't through an
17207         ArgumentNullException, throw an ArgumentException, when value ==
17208         null.  This matches MS.
17209
17210 2007-01-23  Chris Toshok  <toshok@ximian.com>
17211
17212         * BindingSource.cs: initial, incomplete, implementation of
17213         BindingSource.
17214
17215 2007-01-23  Jackson Harper  <jackson@ximian.com>
17216
17217         * TextControl.cs:
17218         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
17219         that I can fix a broken unit test (TextBoxTest::ClearUndo)
17220         
17221 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17222
17223         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
17224
17225 2007-01-23  Andreia Gaita  <avidigal@novell.com>
17226
17227         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
17228         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
17229         IndexOfKey() for 2.0
17230
17231 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17232
17233         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
17234         to prevent it from changing z-order.
17235         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
17236         leave UI updates in MdiWindowManager.
17237         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
17238         1 sized (NC handling goes weird on Linux otherwise).
17239         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
17240         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
17241         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
17242         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
17243         and SetWindowState(s) to allow for changing the size of an activated child
17244         before activating it (reduces a lot of flicker).
17245
17246 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
17247
17248         * Form.cs: Changing FormBorderStyle has different semantics based
17249         on whether the Form is visible or not.  If not visible, don't change
17250         the Size.  But InvalidateNC needs to be called to force the window
17251         to pick up the changes and redraw itself.  [Fixes bug #80574]
17252
17253 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
17254
17255         [Moma work]
17256         * ContainerControl.cs: ProcessCmdKey.
17257         * ErrorProvider.cs: new constructor.
17258         * Form.cs: fix AutoValidateEvent compiler warning.
17259         * Label.cs: fix OnAutoSizeChanged compiler warning.
17260         * MenuStrip.cs: fix CanOverflow compiler warning.
17261         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
17262         * TextBox.cs: Dispose.
17263         * ToolStrip.cs: CanOverflow, re-enable double buffering.
17264         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
17265         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
17266         * ToolStripItem.cs: Overflow, RightToLeft properties.
17267
17268 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17269
17270         * Form.cs: Move the layout of the main form to MdiWindowManager.
17271         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
17272         do a layout of the main window to update MdiClient's client area to
17273         the right area. Fixes #80533. Remove the calculation of nc size, 
17274         it was just wrong and the correct one is the same as for 
17275         InternalWindowManager. 
17276
17277 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
17278
17279         * Control.cs: Setting Anchor or Dock needs to reset the other
17280         to its default.  [Fixes bug #80556]
17281
17282 2007-01-20  Chris Toshok  <toshok@ximian.com>
17283
17284         * CheckedListBox.cs: class status changes.
17285
17286         * ScrollableControl.cs: same.
17287
17288         * RichTextBox.cs: same.
17289
17290         * ContainerControl.cs: same.
17291
17292         * ListView.cs: same.
17293
17294         * NotifyIcon.cs: same.
17295
17296         * MenuStrip.cs: same.
17297
17298         * RadioButton.cs: same.
17299
17300         * CheckBox.cs: same.
17301
17302         * PrintPreviewDialog.cs: same.
17303
17304         * Form.cs: same.
17305
17306 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
17307
17308         * TreeNode.cs: Apply Alan's patch for Name property.
17309
17310 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17311         
17312         * Form.cs: Implemented SizeGripStyle.
17313         * SizeGrip.cs: Check for minimum and maximum size for the
17314         control being resized and only resize if size has actually
17315         changed.
17316
17317 2007-01-19  Chris Toshok  <toshok@ximian.com>
17318
17319         * DataGridColumnStyle.cs: stop setting _readonly in the
17320         PropertyDescriptor setter.  fixes a unit test failure.
17321
17322         also, rename ParentReadOnly to TableStyleReadOnly, and have it
17323         just consult our table style (if we have one).  We don't need to
17324         consult the datagrid readonly attribute because that's passed in
17325         as the _ro arg to Edit.  this simplifies things a little.
17326         
17327         * DataGrid.cs: use CurrentColumn instead of
17328         current_cell.ColumnNumber just to simplify some of the code.
17329
17330         switch the order of some things in the CurrentCell setter to keep
17331         the previous cell from getting a textbox again -
17332         EnsureCellVisibility causes scrolling to happen, which calls Edit.
17333         So we need to set the new cell before calling it.
17334         
17335         call Edit in OnEnter, as does Microsoft.
17336         
17337         also, make sure the current table style isn't the one we create
17338         initially when checking to see if it's different than the one
17339         we're setting it to in BindColumns (this fixes #80421).
17340
17341         * GridTableStylesCollection.cs: table styles can have "" for a
17342         mapping name.  part of the fix for #80421.
17343
17344         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
17345         Edit significantly.
17346
17347 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17348
17349         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
17350         and less GDI object leaky-er.
17351
17352 2007-01-18  Andreia Gaita  <avidigal@novell.com>
17353
17354         * LinkLabel.cs: Add opaque control style
17355
17356 2007-01-18  Jackson Harper  <jackson@ximian.com>
17357
17358         * TextControl.cs: Calculate width properly.
17359         - Don't store the tag's X offset, this can be figured out very
17360         easily.
17361         - When getting the caret tag make sure to get the last empty tag.
17362
17363 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17364
17365         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
17366         [Fixes bug #79959]
17367
17368         * Control.cs: Color.Empty shouldn't count for previous transparent
17369         redraw changes.
17370
17371 2007-01-18  Jackson Harper  <jackson@ximian.com>
17372
17373         * TextBox.cs:
17374         * RichTextBox.cs:
17375         * TextControl.cs: Starting to merge in some pieces of my older
17376         undo work.  Basically just some slight cleanup of the undo API.
17377
17378 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17379
17380         * TrackBar.cs: Fix signature of RightToLeftLayout.
17381         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
17382         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
17383         * Application.cs: Implemented UseWaitCursor.
17384
17385 2007-01-18  Jackson Harper  <jackson@ximian.com>
17386
17387         * TextControl.cs: We can't skip tags if any part of the tag is
17388         visible.
17389
17390 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17391
17392         * ContainerControl.cs: Override OnLayout.
17393
17394 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17395
17396         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
17397
17398         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
17399         everything else.
17400
17401 2007-01-18  Chris Toshok  <toshok@ximian.com>
17402
17403         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
17404         (leftover from the container_selected days, I'd wager).  fixes bug
17405         #80546.
17406
17407 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17408
17409         * Control.cs: Apply patch from George to fix the new testcase on
17410         bug #80451.  We can't just check for Color.Transparent, we need 
17411         to check if the back color's alpha channel is < 255.
17412
17413 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17414
17415         * Form.cs: Move setting show_icon = true to before the constructor
17416         so that the base constructor has that information when it calculates
17417         the form's size.  Was causing forms to be (6, 6) bigger than they
17418         were supposed to be.  Thanks for catching this Rolf!
17419
17420 2007-01-18  Jackson Harper  <jackson@ximian.com>
17421
17422         * TextControl.cs: When replacing a selection we need to invalidate
17423         from the initial selection start, because selection start is moved
17424         to the end of the replacement.
17425
17426 2007-01-18  Andreia Gaita  <avidigal@novell.com>
17427
17428         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
17429
17430 2007-01-18  Chris Toshok  <toshok@ximian.com>
17431
17432         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
17433         I just added.
17434
17435 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
17436
17437         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
17438         layout methods and properties from ToolBarButton must be available
17439         into ToolBarButtonInfo.
17440
17441 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17442
17443         * Control.cs: If the control has a transparent background, we
17444         need to refresh it when it moves and when it's parent's background
17445         image changes.  [Fixes bug #80451]
17446
17447 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17448
17449         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
17450
17451 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17452
17453         * XplatUIWin32.cs: Implement proper double buffering for Windows.
17454         [Fixes bug #80447, and probably speeds up things as well]
17455
17456 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17457
17458         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
17459         * XplatUIWin32.cs: We need to recalculate NC size after changing 
17460         window style to toolwindow (otherwise the client rectangle will be
17461         3 pixels to small for some reason).
17462         * MdiWindowManager.cs: Revert NC size calculations to match how
17463         they are calculated only based on window styles (to match
17464         Win32AdjustWindowRectEx, since otherwise when setting size or 
17465         location, Control will call Win32AdjustWindowRectEx to update client 
17466         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
17467         calculate a different value of client size causing another paint 
17468         (and flickering))
17469         * InternalWindowManager.cs: When moving or resizing a window only
17470         update size or location if they actually changed.
17471         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
17472         (seems to match Windows behaviour better). Cleaned up 
17473         ManagedWindowDecorations to draw what's needed and nothing else
17474         (was drawing borders and lines where they shouldn't be)
17475         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
17476         (style = 0xFFFF) and takes into account caption height when 
17477         calculating window rectangle.   
17478
17479 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
17480
17481         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
17482         can be added to toolbar multiple times, we need to maintain a list of 
17483         button information for each positions.
17484
17485 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
17486
17487         * ToolBar.cs: Some small stetic changes.
17488
17489 2007-01-16  Jackson Harper  <jackson@ximian.com>
17490
17491         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
17492         that allow us to have nested recalc = false blocks.
17493         - Add paste support for images in the RichTextBox
17494         * RichTextBox.cs: flush the text after the color is changed, so
17495         the change takes effect.
17496         - Use SuspendRecalc
17497         - Some extra debugging info
17498         * TextControl.cs: Tags no longer track their length, it is just
17499         computed from the next tags length, this makes things a little
17500         simpler and reduces places that we have to track length changes.
17501         - Refactored the linetag class a little so we could make it
17502         a base class for different kinds of tags
17503         - Created a image tag, a tag that can have a single image inserted
17504         into it
17505         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
17506         that we can call suspend multiple times.
17507         - Add some debugging methods
17508
17509 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17510
17511         * MdiClient.cs: Add ActivatePreviousChild for 
17512         mdi child window navigation.
17513         * Form.cs: Use MdiClient.ActivateNextChild/
17514         ActivatePreviousChild instead of Form.SelectNextControl
17515         to select the next/previous child since 
17516         SelectNextControl doesn't do it in the same order
17517         as mdi children should do it.
17518
17519 2007-01-16  Chris Toshok  <toshok@ximian.com>
17520
17521         * Control.cs: remove container_selected field.
17522
17523 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17524
17525         * MdiClient.cs: Update main form's ActiveChild when
17526         updating keyboard focus for the mdi child.
17527
17528 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
17529
17530         * Control.cs: PreferredSize fix.
17531
17532         * Form.cs: Add several 2.0 events, properties, and methods.
17533
17534 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
17535
17536         * Form.cs: Provide meaningful message when MdiParent is assigned a
17537         Form that is not an MdiContainer.
17538
17539 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17540
17541         * MdiClient.cs: Update main form's ActiveChild when
17542         activating a mdi child.
17543
17544 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17545
17546         * MdiWindowManager.cs: Fix NRE when merging menus and main form
17547         doesn't have a menu.
17548
17549         * Form.cs: Request NCRecalc after creating a mdi child window.
17550         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
17551         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
17552         
17553         * MdiClient.cs: Add new method SendFocusToActiveChild that either
17554         sends keyboard focus to the active child, or to the MdiClient
17555         if there are no child forms.
17556         
17557 2007-01-15  Chris Toshok  <toshok@ximian.com>
17558
17559         * ListView.cs: drop the *Internal overrides, just do our work in
17560         ItemControl's WndProc instead.
17561
17562         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
17563         of the various controls, and forward the events properly (in the
17564         same manner as MS) from the textbox to the UpDown.  Also the
17565         ActiveControl of the UpDownBase gets set properly now.  Finally,
17566         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
17567
17568         * NumericUpDown.cs: set Text in the ctor.
17569
17570         * DomainUpDown.cs: call UpdateEditText in the ctor.
17571         
17572         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
17573         so even a Selectable = false textbox can be focused if you click
17574         in it.  Go figure.
17575
17576         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
17577         just add their handling in their respective WndProc's.  Also add
17578         an explicit FocusInternal method that doesn't consult CanFocus
17579         before calling Select(this).
17580
17581         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
17582         do our work in WndProc instead.
17583
17584         * TabControl.cs: same.
17585
17586         * ComboBox.cs: same.
17587
17588 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17589
17590         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
17591         Fixes #80006.
17592
17593 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17594
17595         * ListViewItem.cs:
17596         * ThemeWin32Classic.cs: Don't draw the item text outside
17597         item bounds in Details view, as well as use trimming.
17598         Fixes bug #80376.
17599
17600 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17601
17602         * Form.cs: Implement Form.ShowIcon.
17603         
17604         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
17605         null, which when combined with the DlgModalFrame window style removes
17606         the icon from the title bar.
17607
17608 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17609
17610         * Control.cs: Call OnMouseClick after OnClick. (2.0)
17611
17612 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17613
17614         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
17615         menu when mdi child windows theres a menu, uses insert to get icon
17616         at first position. Partially fix #80006.
17617
17618 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17619
17620         * Clipboard.cs: Implement 2.0 methods.
17621
17622 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17623
17624         * Menu.cs: Implement Insert method of MenuItemCollection class
17625         to fix MenuMerge.
17626
17627 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17628
17629         * ListView.cs: Implement 2.0 FindItemWithText method.
17630
17631 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17632
17633         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
17634         to calculate menu bar size. Fixes #80290.
17635
17636 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17637
17638         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
17639
17640 2007-01-11  Chris Toshok  <toshok@ximian.com>
17641
17642         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
17643         initial form.
17644
17645 2007-01-11  Chris Toshok  <toshok@ximian.com>
17646
17647         * LinkLabel.cs: make sure to call base.Select in our Select method
17648         if it turns out we're going to be selected (i.e. if we have a link
17649         that is going to receive focus).  That way our container's
17650         ActiveControl is updated properly.
17651
17652 2007-01-11  Chris Toshok  <toshok@ximian.com>
17653
17654         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
17655         they have 1 or more links.  this fixes the crash gert reported.
17656
17657 2007-01-11  Andreia Gaita  <avidigal@novell.com>
17658
17659         * ContainerControl.cs: Remove ContainerSelected flag, not needed
17660         anymore.
17661
17662         * Control.cs (Controls.Add): Check if control to be added to the collection
17663         is a top level control, and throw an ArgumentException if it is.
17664         Remove ContainerSelectedFlag, not needed anymore.
17665
17666         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
17667         top most control doesn't activate the form. This fixes a problem in the
17668         MessageBox, where the default button wouldn't get focus because the form
17669         was activated before being Loaded - when the Owner is set, SetTopMost is
17670         called, and it would activate it.
17671
17672 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
17673
17674         * Button.cs: When clicked and setting the parent form's DialogResult,
17675         use FindForm instead of Parent, since parent could be a container
17676         control and not the Form.  Fixes bug #80495.
17677
17678 2007-01-10  Chris Toshok  <toshok@ximian.com>
17679
17680         * Form.cs: move the call to SendControlFocus into the same
17681         is_loaded check.
17682
17683 2007-01-10  Chris Toshok  <toshok@ximian.com>
17684
17685         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
17686         It breaks in the face of the new ActiveControl stuff, and should
17687         be unnecessary.
17688
17689         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
17690         activecontrol's focus if it's not already set, after we set
17691         ActiveControl, but before we call OnActivated.  Re-fixes #79667
17692         after the previous focus/active control fixes regressed it.
17693
17694         * Control.cs: reindent some code.
17695         
17696 2007-01-10  Chris Toshok  <toshok@ximian.com>
17697
17698         * Splitter.cs: clearing some outstanding changes from my tree.
17699         Replace all accesses (not writes) to the internal dock_style field
17700         with the Dock property.
17701
17702 2007-01-10  Chris Toshok  <toshok@ximian.com>
17703
17704         * Control.cs: make FireEnter, FireLeave, FireValidating, and
17705         FireValidated virtual.
17706
17707         * Form.cs: override and don't chain up calls to FireEnter and
17708         FireLeave.
17709
17710 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17711
17712         * ListView.cs: Add more text padding space when using
17713         auto resize for columns (the previous value didn't work fine).
17714
17715         * ThemeWin32Classic.cs: Update text position inside columns,
17716         to match the appeareance of .Net.
17717
17718         * ColumnHeader.cs: When using auto resize, only the Width should
17719         depend on the sub items, not the Height. Also, set width after
17720         auto resizing (the value of Width should never remain as -1 or -2).
17721
17722 2007-01-10  Chris Toshok  <toshok@ximian.com>
17723
17724         * Application.cs: fix compilation errors when debug is enabled.
17725
17726 2007-01-10  Chris Toshok  <toshok@ximian.com>
17727
17728         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
17729         add some nice ascii art pictures and explanation of the process).
17730         (GetMostDeeplyNestedActiveControl): new utility function we need
17731         because our ActiveControl can refer to a child container with its
17732         own ActiveControl.
17733
17734         * Form.cs (OnActivated): remove the call to SelectActiveControl
17735         from here, since you can override this method and not chain up,
17736         and winforms still sets the active control.
17737         (OnCreateControl): also remove the unnecessary SelectActiveControl
17738         call from here.
17739         (WndProc): it's actually called from the WM_ACTIVATE block, just
17740         before calling OnActivated.
17741
17742         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
17743         inside the else.  the ActiveControl setter will end up setting
17744         focus on @control.  This keeps us from setting it again (and
17745         generating an extra LostFocus/GotFocus pair).
17746         (Select (bool, bool)): reindent.
17747
17748 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
17749
17750         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
17751         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
17752         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
17753         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
17754         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
17755         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
17756         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
17757         ToolStripTextBox.cs: Another wave of corcompare work.
17758
17759 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17760
17761         * ColumnHeader.cs: Implement 2.0 AutoResize method using
17762         the Width property.
17763
17764         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
17765         methods by callling Column.AutoResize method on columns.
17766
17767 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
17768
17769         * Control.cs: Provide proper implementations of PreferredSize
17770         and GetPreferredSize (2.0).
17771
17772 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
17773
17774         * Form.cs: Remove one character (!) to make my previous OnClosing
17775         stuff work for modal windows like MessageBox.
17776
17777 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17778
17779         * ListView.cs:
17780         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
17781         ListView.Columns to get the last displayed column. Fixes #80452.
17782
17783 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
17784
17785         * Label.cs, LinkLabel.cs: Source code identation fixes.
17786
17787 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
17788
17789         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
17790         we dont need to invalidate only borders because when we invalidate four
17791         border lines the invalidate's generates a complete redraw of button, 
17792         because it now invalidate a complete rect some other redraws operations
17793         are fixed. Fixes #80196.
17794         
17795         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
17796         Remove ToolBarInvalidateEntireButton as it is not used.
17797
17798 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
17799         
17800         * Form.cs: Make sure that both OnClosing and OnFormClosing are
17801         called for 2.0 profile.
17802         * CloseReason.cs: Make class internal for 1.1.
17803
17804 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
17805
17806         * ToolStripManager.cs: Implement FindToolStrip functionality.
17807         * ToolStrip.cs: Register and unregister with ToolStripManager.
17808
17809 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
17810
17811         * Control.cs: This was messy.  2.0 moves much of ControlCollection
17812         to ArrangedElementCollection.  Implemented this with as few #if's as 
17813         possible (which is still too many).
17814
17815 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
17816
17817         * Control.cs: Implement SizeFromClientSize() [2.0].
17818
17819 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
17820
17821         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
17822         use Theme.BorderSize to calculate area instead of static value 1, 
17823         by the way use new BorderStaticSize instead     Border3DSize when 
17824         border_static is true. Fixes #79537.
17825         
17826         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
17827         
17828         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
17829         it is not needed.
17830
17831 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
17832
17833         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
17834
17835 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
17836
17837         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
17838         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
17839         
17840         * Hwnd.cs: 
17841         - border_static field added, it will used to define when a control 
17842         theres 3D border but it must be static (thin).
17843         - In GetWindowRectangle use Theme.BorderSize to calculate area 
17844         instead of static value 1, by the way use new BorderStaticSize instead
17845         Border3DSize when border_static is true.
17846
17847         * XplatUIX11.cs, XplatUIOSX.cs: 
17848         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
17849         
17850         * Theme.cs: BorderStaticSize field added.
17851
17852 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
17853
17854         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
17855
17856 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
17857
17858         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
17859         mimic same behavior than win32 that set border only in CreateParams,
17860         it fix problems under CreateParams overrides. Fix #79442 and partial
17861         fix #79537.
17862         
17863         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
17864         of thi control you must call recreate handle. 
17865         
17866         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
17867         need to do anything as RecreateHangle will take care about borders.
17868
17869 2007-01-05  Mike Kestner  <mkestner@novell.com>
17870
17871         * ListView.cs: hack to eliminate Lost/Got focus notifications on
17872         cycles between the ItemControl and parent.  Fixes #80388.
17873
17874 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
17875
17876         * Control.cs: Lazy init layout engine. Do not directly use 
17877         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
17878
17879 2007-01-05  Chris Toshok  <toshok@ximian.com>
17880
17881         * DataGrid.cs: don't forceably rebind columns in SetDataSource
17882         unless our list manager has changed (i.e. unless we have reason to
17883         believe our columns have changed).  Fixes #80422.
17884         
17885         also, disable the call do BindColumns in
17886         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
17887         1.1 the event isn't raised in response to a column addition on a
17888         table.)
17889
17890 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
17891
17892         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
17893         that inheritors can not call it if they choose.  Fixes bug #80456.
17894
17895 2007-01-05  Andreia Gaita  <avidigal@novell.com>
17896
17897         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
17898         doesn't blow up with a null exception on marshalling.
17899         
17900 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
17901
17902         * Control.cs: Implement several 2.0 protected properties and methods.
17903         Ensure that all necessary events are being called when properties
17904         are set.
17905
17906 2007-01-05  Mike Kestner  <mkestner@novell.com>
17907
17908         * ListView.cs: implement PgUp/PgDn for Details view.  Also
17909         fixes First/LastVisibleIndex to use the item_control.ClientRect 
17910         instead of the parent control.  Fixes #80378.
17911
17912 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
17913
17914         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
17915           determine whether to use yard-pound or not (bug #78399).
17916
17917 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
17918
17919         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
17920         problems. So it is time to bring back the old popupbutton colors.
17921
17922 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17923
17924         * ColumnHeader.cs:
17925         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
17926         property by using the internal information of the
17927         columns order in ListView.
17928
17929 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
17930
17931         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
17932         Add 2.0 Tag properties.
17933
17934         * LinkArea.cs: Add 2.0 ToString method.
17935
17936 2007-01-03  Chris Toshok  <toshok@ximian.com>
17937
17938         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
17939         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
17940         when we're editing, which fixes #80047.
17941
17942 2007-01-03  Chris Toshok  <toshok@ximian.com>
17943
17944         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
17945         #80404.
17946
17947 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
17948
17949         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
17950         property and implementation.
17951
17952         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
17953         for MdiWindowListItem property.
17954
17955         * ToolStripDropDown.cs: Don't consider hidden menu items while
17956         laying out the menu.
17957
17958 2007-01-03  Andreia Gaita  <avidigal@novell.com>
17959
17960         * SendKeys.cs: window handle is not needed in win32, so just
17961         get the active window for X after parsing keys and don't use
17962         it when building the message; it is passed by parameter to the 
17963         Xplat method and used there to build the message instead. Also,
17964         wait for events to be processed on SendWait, as opposed to Send,
17965         which doesn't wait :) Playing with threads and Send() completely 
17966         hangs on ms.net, only SendWait() works.
17967         
17968         XplatUIX11.cs
17969         X11Display.cs: Check for valid window handle.
17970
17971 2007-01-03  Jackson Harper  <jackson@ximian.com>
17972
17973         * TextControl.cs: Need to prevent wrap calculations when replacing
17974         text (this was there before i removed it accidently).
17975         - Don't update the cursor during the positioning, just set it to
17976         selection_start at the end of the operaion.
17977
17978 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17979
17980         * Control.cs:
17981         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
17982         
17983 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17984
17985         * MonthCalendar.cs: Added Click and DoubleClick events again,
17986         but this time they only hide Control's Click and DoubleClick.
17987         
17988 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
17989
17990         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
17991         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
17992
17993 2007-01-02  Jackson Harper  <jackson@ximian.com>
17994
17995         * TextBoxBase.cs: We move the caret with the split now, so we
17996         don't need to explicitly move the caret after splitting.  This
17997         fixes the caret bumping down an extra line on Enter.
17998
17999 2007-01-02  Miguel de Icaza  <miguel@novell.com>
18000
18001         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
18002         2.72). 
18003
18004         * ScrollableControl.cs: Add Scroll event.
18005
18006 2007-01-02  Mike Kestner  <mkestner@novell.com>
18007
18008         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
18009         to fix all hdr height padding codepaths.  Fixes #80207.
18010
18011 2007-01-02  Chris Toshok  <toshok@ximian.com>
18012
18013         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
18014         setting it to the Control defaults anyway, and it being after the
18015         Dock set was screwing up layout.
18016         (set_Dock): don't short circuit out of setting base.Dock.  Also,
18017         no need to call UpdateStatusBar here, as it'll be re-layed out if
18018         it needs to be.
18019
18020 2007-01-02  Mike Kestner  <mkestner@novell.com>
18021
18022         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
18023         to header height for width == -1. Fixes the rest of #80207.
18024
18025 2007-01-02  Mike Kestner  <mkestner@novell.com>
18026
18027         * ListView.cs: rework the mouse event forwarding everaldo added
18028         to translate the coordinates to the parent control not
18029         raise the parent events until after we've done our work. Hover
18030         needs more work, in the case where HoverSelection is on, because
18031         the item control receives more than one MouseHover per Enter
18032         event, so we need to ensure only the "first" hover gets forwarded.
18033         Opening a minor bug for that.
18034
18035 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
18036
18037         * CheckedListBox.cs: Fixed SelectionMode to match MS.
18038         * ListControl.cs: Implemented AllowSelection property. Removed extra
18039         tabs.
18040         * ListBox.cs: Implemented AllowSelection property.
18041
18042 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18043
18044         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
18045         SelectedItem, it prevent for errors when you must disable item
18046         before perform click. Fixes #80409.
18047
18048 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18049
18050         * MenuAPI.cs: Prevent second level and beyond submenus to close
18051         until first level when move out side of popup.
18052         
18053 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18054
18055         * MenuAPI.cs:
18056         - Down submenu positin in three pixels.
18057         - Closes sub menu when mouse leaves from menu. Fixes #80402.
18058
18059 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18060
18061         * ThemeWin32Classic.cs:
18062         - Fix popup menu size adding one pixel on the top.
18063         - Down menu item border from two to one to mimic Win32.
18064         - Some source identation fixes. 
18065
18066 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18067
18068         * ThemeWin32Classic.cs: Use float numbers to calculate size and
18069         position of menu arrows, it fix wrong arrow size.
18070
18071 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18072
18073         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
18074         instead of line, it simplify draw operation and fix it using 3D
18075         borders to mimic Win32.
18076
18077 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
18078
18079         * StatusStrip.cs: Add implementation of the sizing grip.
18080
18081         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
18082         StatusStrip rendering.
18083
18084 2006-12-31  Chris Toshok  <toshok@ximian.com>
18085
18086         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
18087         override the layout style (anchor/dock) of the control.  assign to
18088         Dock instead.  Fixes bug #80416.
18089
18090         * ToolStrip.cs: same.
18091
18092 2006-12-31  Andreia Gaita  <avidigal@novell.com>
18093
18094         * ContainerControl.cs: Use ContainerSelected flag to check if 
18095         a Container is directly selected, or if Select is called on a 
18096         non-container. If a container is directly selected, focus events 
18097         should not be raised.
18098         Apply #80411 patch to throw exception on set_ActiveControl if 
18099         control is the same as the current one.
18100         
18101         * Control.cs: Use ContainerSelected flag (see above).
18102         Add invalidation check to raise event but not invalidate if 
18103         dimensions are 0.       
18104         Apply #80411 patch.
18105         
18106
18107 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
18108
18109         * MenuAPI.cs: After click, dont close popup menu when menu is
18110         ContextMenu. Fixes #80399.
18111
18112 2006-12-30  Chris Toshok  <toshok@ximian.com>
18113
18114         * ContainerControl.cs: make sure we throw the exception if the
18115         container control doesn't contain the control we're setting
18116         ActiveControl to.
18117
18118 2006-12-30  Chris Toshok  <toshok@ximian.com>
18119
18120         * Control.cs (SetTopLevel): fix the exception raised by
18121         SetTopLevel for child controls.
18122         (set_Anchor): call UpdateDistances when setting the anchor type.
18123         This fixes bug #80336.
18124
18125 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18126
18127         * Theme.cs: For now, revert back to 8pt font.
18128
18129 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
18130
18131         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
18132         Fixes #80395.
18133
18134 2006-12-29  Chris Toshok  <toshok@ximian.com>
18135
18136         * Control.cs: reorder the code in OnResize to give the same event
18137         ordering as MS.
18138
18139 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18140
18141         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
18142         TileHorizontally and TileVertically.
18143         
18144 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
18145
18146         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
18147         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
18148         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
18149         Corrected copyright and email adress.
18150
18151 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18152
18153         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
18154         of Exception in FullPath property if no TreeView is associated with
18155         the TreeNode.
18156
18157 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18158
18159         * Theme.cs: Marked default_font as private, and initialize it in ctor
18160         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
18161         on 2.0 profile.
18162         * ThemeGtk.cs: Removed default_font intialization.
18163         * ThemeWin32Classic.cs: Removed default_font initialization.
18164
18165 2006-12-28  Chris Toshok  <toshok@ximian.com>
18166
18167         * Control.cs: fix a couple of place where we were creating handles
18168         more aggressively than we should be.  Fixes ControlRefresh unit
18169         tests.
18170
18171 2006-12-28  Chris Toshok  <toshok@ximian.com>
18172
18173         * Control.cs: contrary to what the comment said, Control.Dock does
18174         not supercede Control.Anchor - the last one you assign to decides
18175         the layout behavior.  so we need to keep track of which was the
18176         last set.  Also, fix some of the affected property arguments in
18177         PerformLayout calls, and remove an redundant parent.PerformLayout
18178         call in OnResized.
18179
18180         Add a VisibleInternal property, which returns is_visible.  We
18181         can/should get rid of all the usage of this field elsewhere.
18182
18183 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18184         
18185         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
18186         control style, not DoubleBuffer. Added UseDoubleBuffering property
18187         that indicates whether doublebuffering is enabled and supported.
18188         (comment from and code based on Gert Driesen's patch in #80324).
18189         Fixes #80324.
18190
18191 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18192         
18193         * Control.cs: Fixed a NRE.
18194
18195 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18196
18197         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
18198         for 2.0.
18199
18200 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18201
18202         * Control.cs: Rewrote double buffering, now a seperate
18203         class handles all the buffering, no Graphics is disposed of
18204         until the painting is finished (earlier implementation 
18205         would crash if the control was resized in the OnPaint, 
18206         since it would cause the double buffer to be recreated
18207         and the old one disposed), a separate Graphics is 
18208         created for every paint (MS behaviour and anyways the state
18209         of the Graphics would have to be saved and restored otherwise)
18210         
18211         * XplatUIDriver.cs: 
18212         * XplatUIX11.cs:
18213         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
18214         so that we can get the graphics for the back buffer without
18215         having to create a new one and remove the offscreen_dc parameter
18216         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
18217         
18218 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18219
18220         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
18221         Also make virtual all the key-related methods.
18222
18223         * ListViewItem.cs: Make virtual the key related methods for
18224         ListViewSubItemCollection.
18225
18226 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18227
18228         * ListView.cs:
18229         * ListViewItem.cs:
18230         * ThemeWin32Classic.cs:
18231         * Theme.cs: Initial support for Tile view in ListView,
18232         as well as the implementation of the required bits for it (Item
18233         and Subitem).
18234
18235 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18236
18237         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
18238         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
18239         Provide useful exception messages.
18240
18241 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18242
18243         * TrackBar.cs: Remove a warning.
18244         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
18245         when used by DateTimePicker, fixes #80287. This also requires that 
18246         MonthCalendar implements it's own drawing for the yearly updown control,
18247         otherwise the Capture tracking would be too complicated. Removed the Click 
18248         and DoubleClick events (according to comments they were hiding the base class
18249         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
18250         raise these events, not that they cannot be raised. It is possible to raise 
18251         them by calling OnClick and OnDoubleClick). Added two internal fields in 
18252         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
18253         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
18254         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
18255         event, no longer needed.
18256         
18257 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18258
18259         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
18260         true if new value differs from current value.
18261
18262 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18263
18264         * Control.cs: ControlCollection.Count must be public. Fixed build of
18265         unit tests.
18266
18267 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18268
18269         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
18270
18271 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18272
18273         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
18274
18275 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
18276
18277         * Control.cs: Invalidates control including when Width and Height is 
18278         equal zero or is not visible, only Paint event must be care about 
18279         this. Fixes #79913.
18280
18281 2006-12-26  Chris Toshok  <toshok@ximian.com>
18282
18283         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
18284         more corcompare work.
18285
18286         * DataGridView.cs: fix compiler warning.
18287
18288         * ColumnHeader.cs: some corcompare work, and also take the
18289         opportunity to make the internal fields private.
18290
18291         * ListView.cs: fix the fallout from the above field change.
18292
18293 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
18294
18295         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
18296         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
18297         ToolStripTextBox.cs: Fixes to events and corcompare.
18298
18299 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
18300
18301         * ListView.cs: Call owner.OnMousexx event to propagate events from
18302         item to ListView. Fixes #80367.
18303
18304 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18305
18306         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
18307         if value is less than one. ItemHeight should not be set to a value
18308         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
18309         Removed extra tabs.
18310
18311 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
18312
18313         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
18314         * ToolStripStatusLabel.cs: Add Spring for Moma.
18315
18316 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18317
18318         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
18319         Fixed code formatting. Removed debug code.
18320         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
18321
18322 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18323
18324         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
18325         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
18326         ArgumentOutOfRangeException if ColumnCount is negative. In 
18327         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
18328         less than 4 or higher than 32768.
18329         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
18330         Fixed FormatProvider to return CurrentCulture unless explicitly set.
18331         Fixed IsFormatProviderDefault to return true if FormatProvider has
18332         not been explicitly set.
18333
18334 2006-12-25  Chris Toshok  <toshok@ximian.com>
18335
18336         * Application.cs: add a couple of 2.0 events.
18337
18338 2006-12-25  Chris Toshok  <toshok@ximian.com>
18339
18340         * Control.cs: fix compiler warning.
18341
18342         * AxHost.cs: corcompare fixes.
18343
18344         * ApplicationContext.cs: corcompare fixes.
18345
18346 2006-12-25  Chris Toshok  <toshok@ximian.com>
18347
18348         * Control.cs: only update dist_right/dist_bottom if the
18349         width/height is > 0.  this fixes anchored controls being resized
18350         smaller until they disappear and then resized larger again.
18351
18352 2006-12-25  Chris Toshok  <toshok@ximian.com>
18353
18354         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
18355         since they're nothing more than X/Left and Y/Top, respectively.
18356
18357         Also, move back to a per-control Bitmap/Graphics for
18358         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
18359         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
18360         Height.
18361
18362 2006-12-25  Miguel de Icaza  <miguel@novell.com>
18363
18364         * MessageBox.cs: Implemented overload that takes a new "bool
18365         displayHelpButton" by adding a new internal field "show_help".
18366         When clicked this will raise the HelpRequested on the owner or the
18367         main form. 
18368
18369         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
18370         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
18371
18372         * ListView.cs: Add support ColumnWidthChanged and
18373         ColumnWidthChanging. 
18374
18375         Add support for ColumnReordered event.
18376         (ReorderColumn): Add NET_2_0 specific support for cancelling the
18377         reorder.
18378
18379         Very nice codebase!
18380
18381         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
18382
18383         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
18384
18385 2006-12-24  Chris Toshok  <toshok@ximian.com>
18386
18387         * GridTablesFactory.cs: 2.0 corcompare work.
18388
18389         * ToolStripContainer.cs: add "override" to
18390         ContextMenuStripChanged, and remove the local event object.
18391
18392         * ToolStripDropDown.cs: same with a couple properties.
18393
18394         * ToolStripPanel.cs: same with AutoSizeChanged event.
18395
18396         * TextBoxBase.cs: add "override" to AutoSizeChanged.
18397
18398         * Form.cs: add the remaining 2.0 events, and do some corcompare
18399         attribute work.
18400
18401         * DateTimePicker.cs: add "new" to padding.
18402
18403         * ButtonBase.cs: use Control's use_compatible_text_rendering.
18404
18405         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
18406
18407         * DataGridView.cs: PaddingChanged is overridden.
18408
18409 2006-12-24  Chris Toshok  <toshok@ximian.com>
18410
18411         * Control.cs: corecompare work here too.
18412
18413         * DataGridViewElement.cs, DataGridView.cs,
18414         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
18415         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
18416         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
18417         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
18418         work.
18419
18420 2006-12-24  Miguel de Icaza  <miguel@novell.com>
18421
18422         * Control.cs: Switched the error message on the console for a
18423         todo.  A review of the code will have to cope with this anyways
18424         (since its a large feature, it is in our radar) and it was
18425         producing too much output when running PDN.
18426
18427         * ToolStripComboBox.cs: Set the text when the SelectedIndex
18428         changes.  Applications depend on this (PDN 2.72)
18429
18430 2006-12-23  Chris Toshok  <toshok@ximian.com>
18431
18432         * TableLayoutSettings.cs: finish up the corcompare work for this
18433         class.
18434
18435 2006-12-23  Chris Toshok  <toshok@ximian.com>
18436
18437         * Control.cs: make SetImplicitBounds internal, do some futzing
18438         with LayoutEngine so that it's available in 1.1, and remove the
18439         entire duplicated code mess from PerformLayout.  Use
18440         System.Windows.Forms.Layout.DefaultLayout instead.
18441
18442         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
18443
18444 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
18445
18446         * Form.cs: Add MainMenuStrip property.
18447
18448 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
18449
18450         * Control.cs: Add ContextMenuStrip property and implementation.
18451         Fix ContextMenu implementation to show menu centered on control when
18452         activated using the keyboard instead of showing at screen (0,0).
18453
18454         * ToolStripDropDown.cs: Fix needed overload of Show ().
18455
18456 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18457
18458         * Menu.cs: Name property added for 2.0 profile.
18459         
18460 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18461
18462         * Menu.cs: Update information about FindMenuItem, method to be
18463         implemented soon.
18464
18465 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18466
18467         * MenuAPI.cs: When deselect items deselect also selected subitems.
18468         
18469 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18470
18471         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
18472         FindSubItemByCoord to found itens that is not active, also an
18473         cheking added to FindSubItemByCoord to search for items only 
18474         in visible popup windows. Fixes #80274.
18475
18476 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
18477
18478         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
18479         internal property, it be care about change ExStyle. 
18480
18481 2006-12-22  Andreia Gaita  <avidigal@novell.com>
18482
18483         * ContainerControl.cs: set activeControl for parent forms up the 
18484         tree when the new activecontrol is a container.
18485         When validating the active control, if it is a container, also
18486         raise up the validation for it's active control. Fixes #80280
18487         
18488         * Control.cs: Add internal property flag and check to prevent
18489         Focus events from getting raised when Select() is called for
18490         a ContainerControl. There are still too many focus events being
18491         raised at the moment though.
18492         Cleaned up the code a bit.
18493
18494 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18495
18496         * Control.cs: Added all missing 2.0 events.and
18497         fixed a couple of corcompare issues.
18498         * TrackBar.cs: Implemented missing 2.0 bits.
18499         * MonthCalendar.cs, 
18500         * DateTimePicker.cs, 
18501         * MdiClient.cs: Fixed some corcompare issues.
18502
18503 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18504
18505         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
18506         SplitterPanel.cs: corecompare work.
18507
18508 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18509
18510         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
18511         Clean up warnings for BackgroundImageChanged and PaddingChanged
18512         events now that they are implemented in Control.cs.
18513
18514 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18515
18516         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
18517         
18518         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
18519         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
18520         of TableLayoutPanel and supporting cast.
18521
18522 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18523
18524         * XplatUIWin32.cs: 
18525         - GrabWindow now confines the mouse pointer to the confine window.
18526         - Added Win32ClipCursor and Win32GetClipCursor.
18527
18528         * Control.cs: 
18529         - Added CaptureWithConfine to be able to capture and confine 
18530         mouse pointer.
18531         
18532         * InternalWindowManager.cs: 
18533         - Call CaptureWithConfine instead of Capture if we're an
18534         MdiChild (fixes #79982).
18535
18536 2006-12-21  Chris Toshok  <toshok@ximian.com>
18537
18538         * DataGrid.cs: guard against the initial state of selection, where
18539         selection_start == -1.  make sure we only select from index >= 0.
18540         Fixes bug #80291.
18541
18542 2006-12-21  Chris Toshok  <toshok@ximian.com>
18543
18544         * Control.cs: we don't need to be so draconian with
18545         UpdateDistances, and we thusly don't need to call it before
18546         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
18547
18548 2006-12-21  Daniel Nauck  <dna@mono-project.de>
18549
18550         * ComboBox.cs,
18551         TextBox.cs: Implemented AutoComplete properties.
18552
18553 2006-12-20  Chris Toshok  <toshok@ximian.com>
18554
18555         * DataGridView*.cs: some corecompare work.
18556
18557 2006-12-20  Jackson Harper  <jackson@ximian.com>
18558
18559         * XplatUIX11.cs: We need to hide the caret when deleting it,
18560         otherwise you get carets left lying around everywhere.
18561         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
18562         prevents getting some weird half drawn caret tracers when
18563         scrolling.
18564         * TextControl.cs: Attempt to reduce the number of times we need to
18565         recreate the caret.
18566
18567 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
18568
18569         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
18570
18571 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18572
18573         * DateTimePicker.cs:
18574         - Implemented missing 2.0 bits.
18575         - Changed some default values to match MS.
18576         
18577 2006-12-20  Jackson Harper  <jackson@ximian.com>
18578
18579         * TextBoxBase.cs: When changing the font across the document we
18580         can't recalculate after changing each line, since that will cahnge
18581         the line count.
18582         - PreferredHeight is a little different than i thought.
18583         - When backspacing, move the caret before we do the actual char
18584         delete, because when that delete crosses a wrap boundary the
18585         positional information will change.
18586
18587 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18588
18589         * Control.cs: Added some missing 2.0 bits: 
18590         BackgroundImageLayout, BackgroundImageLayoutChanged, 
18591         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
18592         add IBindableComponent and IDropTarget implementation.
18593         
18594         * MonthCalendar.cs: 
18595         - Added all missing 2.0 features:
18596         BackgroundImageLayout, RightToLeftLayout, 
18597         OnHandleDestroyed, RightToLeftLayoutChanged, 
18598         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
18599         PaddingChanged.
18600         - Rewrote all the BoldDate code, it was completely broken.
18601         - Fixed all the tests (the tests can now be re-enabled, the
18602         problems were not with the tests, but with the control, it was
18603         mostly broken).
18604         
18605         * DateTimePicker.cs: Changed the location where the 
18606         MonthCalendar is shown.
18607         
18608 2006-12-19  Chris Toshok  <toshok@ximian.com>
18609
18610         * DataGridView.cs: add IDropTarget implementation.
18611
18612         * ToolStripPanel.cs: add IDropTarget implementation.
18613
18614 2006-12-19  Jackson Harper  <jackson@ximian.com>
18615
18616         * TextControl.cs: soft now means something different than what it
18617         used to mean, we want to move the caret regardless of whether or
18618         not this break was soft (would we really have wanted the caret
18619         to not move with the break in the old context?)
18620         * TreeView.cs: Make sure we factor in the vert scrollbar when
18621         calculating the horizontal scrollbar's maximum.
18622
18623 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18624
18625         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
18626         check for keywords in alternate casing, close bug #80049.
18627
18628 2006-12-19  Chris Toshok  <toshok@ximian.com>
18629
18630         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
18631         methods (which all do nothing).
18632
18633         * IDropTarget.cs: add the 4 missing methods.
18634
18635 2006-12-19  Chris Toshok  <toshok@ximian.com>
18636
18637         * TableLayoutRowStyleCollection.cs: corcompare work.
18638         
18639         * TableLayoutSettings.cs: same.
18640
18641         * TableLayoutStyle.cs: same.
18642
18643         * TableLayoutColumnStyleCollection.cs: same.
18644
18645 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
18646
18647         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
18648         TableLayoutPanel I've had in my local tree for way too long.
18649
18650 2006-12-19  Miguel de Icaza  <miguel@novell.com>
18651
18652         * TableLayoutSettings.cs: Finish the public API (still needs all
18653         the logic to update on changes). 
18654
18655         * TableLayoutPanelCellPosition.cs: new file.
18656         
18657         * TableLayoutRowStyleCollection.cs,
18658         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
18659         TableLayoutSettings.cs: Track the final 2.0 table api.
18660
18661 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18662
18663         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
18664         and Image List 2.0 members for ColummnHeader.
18665         * ListView.cs: Add key-related 2.0 methods for
18666         ColumnHeaderCollection.
18667
18668 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18669
18670         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
18671         ArgumentNullException if items argument is null. Ignore null item in
18672         arrays. Removed extra tabs.
18673
18674 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18675
18676         * MonthCalendar.cs: Fixed InvalidCastException.
18677
18678 2006-12-19  Jackson Harper  <jackson@ximian.com>
18679
18680         * TextControl.cs: Don't increment the position here.
18681         - When calculating char positions only add in the line break size
18682         for hard line breaks.
18683
18684 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18685
18686         * SendKeys.cs: Changed some things to match ms.net behaviour
18687         when parsing shifted capital letters.
18688         
18689         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
18690         Add window handle as parameter to SendInput. X11 needs the 
18691         window handle, and the handle being passed      to it in the keys 
18692         queue is the active control handle (which windows needs), not 
18693         the window handle.
18694         
18695         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
18696         to support SendKeys on X.       
18697         
18698         * X11Keyboard: Implement helper method to lookup a linux keycode
18699         given the virtual keycode. Added table of keycode-2-virtualkey
18700         values to support this.
18701
18702 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18703
18704         * ListView.cs: Add support for SelectedIndexCollection
18705         and SelectedItemCollection 2.0 methods. Implement support
18706         for ImageKey too.
18707         * ListViewItem.cs: Add support for ListViewSubItemCollection
18708         2.0 methods. Also, fix an incorrect behavior of AddRange method
18709         (it shouldn't call Clear).
18710         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
18711
18712 2006-12-19  Jackson Harper  <jackson@ximian.com>
18713
18714         * RichTextBox.cs: 
18715         * TextBoxBase.cs: New args for FormatText
18716         * TextControl.cs: Rewrote the main drawing method, this version
18717         feels a little easier to understand and debug to me.  Hopefully it
18718         does to others also
18719         - Fix FormatText to OR in the new formating values.  Added
18720         FormatSpecified param, basically this works in the same way as
18721         BoundsSpecified in Control.
18722         - Set the caret properties when the caret is positioned.
18723         - When wrapping text make sure that we calculate the width of the
18724         last character
18725         - when calculating alignments we might have wrapped down to the
18726         next line, so don't search for an individual tag, search for the
18727         end of the line
18728         - We need to invalidate the selection area when we replace the
18729         selection.
18730         
18731 2006-12-19  Daniel Nauck  <dna@mono-project.de>
18732
18733         * Application.cs: add Restart () 2.0 support
18734
18735 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18736
18737         * MenuItem.cs: Invalidate menu item rectangle after change Enable
18738         property. Fixes #80268.
18739         
18740 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18741
18742         * MenuAPI.cs: Dont trigger select event when closes top menu
18743         item. Fixes #80270.
18744
18745 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18746
18747         * MenuAPI.cs: When you click on menuitem only trigger onselect
18748         event for top menu itens. Fixes #80271.
18749         
18750 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18751
18752         * MdiWindowManager.cs: Make IconicBounds depend on
18753         the bottom of MdiClient, not the top (fixes #80267)
18754         
18755 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18756
18757         * MdiClient.cs: Added missing 2.0 attribute
18758
18759 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18760
18761         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
18762         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
18763
18764 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18765
18766         * MenuAPI.cs: Fix click when menuitem is not popup,
18767         this regression was caused by last commit (#80272).
18768
18769 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
18770
18771         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
18772         fire click event or close menu. Fixes #80272.
18773
18774 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18775
18776         * ListViewHitTestInfo.cs: add
18777
18778 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18779
18780         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
18781         * FlatButtonAppearance.cs: add
18782         * DockingAttribute.cs: add
18783
18784 2006-12-17  Chris Toshok  <toshok@ximian.com>
18785
18786         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
18787         and rebind our columns when it does - this way, if you make
18788         changes to the DataTable (or set the Table attribute on a DataView
18789         after setting it as the DataGrid's DataSource, the changes are
18790         made visible.)  Fixes bug #80107.
18791
18792 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18793
18794         * ListViewGroup.cs: add internal Location property for layouting.
18795         * Theme.cs: add abstract ListViewGroupHeight function.
18796         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
18797
18798 2006-12-16  Andreia Gaita  <avidigal@novell.com>
18799
18800         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
18801         Added reset of selected index to 0 when adding first tab page.
18802         Fixes #80264
18803         
18804         * NumericUpDown.cs: Fix NET_2_0 check
18805
18806 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18807
18808         * ListViewGroup.cs: fixed DefaultValueAttribute value
18809
18810 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18811
18812         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
18813
18814 2006-12-15  Miguel de Icaza  <miguel@novell.com>
18815
18816         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
18817         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
18818         ScrollableControl.cs: Add a handful of methods that are
18819         overwritten in 2.0 
18820
18821 2006-12-15  Chris Toshok  <toshok@ximian.com>
18822
18823         * XplatUIWin32.cs: initial implementation of the Reversible
18824         drawing functions.  there are some problems.  DrawReversibleFrame
18825         doesn't seem to work at all for Dashed FrameStyle, and in the
18826         Thick case there are drawing errors at the corners (we probably
18827         need to bind Rectangle instead of doing moveto/lineto's.)
18828
18829 2006-12-16  Andreia Gaita  <avidigal@novell.com>
18830         
18831         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
18832         to send blocks of key messages. Send accumulates keys to send with Flush, 
18833         while SendWait sends all keys immediately.
18834                 
18835         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
18836         XplatUIX11.cs,  XplatUIX11-new.cs:
18837         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
18838         to Win32 SendInput.
18839         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
18840         
18841         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
18842         testing for ms.net on this class is very tricky, as the tests run too fast 
18843         to allow the hook to release, essentially freezing the keyboard and the 
18844         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
18845         category :p
18846
18847 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18848
18849         * Padding.cs: fixed serialization compability to MS ("_var" field names),
18850                         added missing attributes.
18851  
18852 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18853
18854         * ListViewGroup.cs: Added missing attributes.
18855         * ListViewGroupCollection.cs: Added missing attributes.
18856
18857 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18858
18859         * ListViewItem.cs: fixed ListViewSubItem text property.
18860
18861 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18862         
18863         * Control.cs: Added missing 2.0 attributes
18864         
18865 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18866         
18867         * MdiClient.cs: Added missing 2.0 attribute.
18868         * MonthCalendar.cs: Added some missing 2.0 attributes 
18869         and properties.
18870         
18871 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18872
18873         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
18874
18875 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
18876
18877         * MainMenu.cs: Add the new 2.0 constructor to help out people
18878         using the MainMenu in VS2005.
18879
18880 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18881         
18882         * MdiChildContext.cs: Removed it, no longer used.
18883         * MdiClient.cs: Added missing 2.0 attributes.
18884         
18885 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18886         
18887         * InternalWindowManager.cs: Fix a NullRef with previous 
18888         changes for toolwindows.
18889         
18890 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18891
18892         * Control.cs: 
18893         - Added AfterTopMostControl to allow for certain controls 
18894         to always stay on top when normal controls are brought to 
18895         front.
18896         
18897         * XplatUIWin32.cs: 
18898         - (DrawInversibleRectangle): Get window rectangle from Win32 
18899         in stead of from control, since Win32 doesn't calculate
18900         screen coords correctly from control's Location if it 
18901         have docked siblings.
18902         
18903         * MdiWindowManager.cs:
18904         - Correct the control menu popup location when clicked on
18905         the maximized form icon. (fixes #80223.1)
18906         - Don't show moving rectangle if mouse hasn't moved from
18907         the original clicked point.
18908         - Removed FormGotFocus handler (not used).
18909         - Calculate the control buttons location from the main
18910         window's size and not client size (fixes #79770).
18911         - Form is now closed when the form icon is double-clicked
18912         (fixes #79775). 
18913         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
18914         
18915         * InternalWindowManager.cs:
18916         - Moved some MDI-only methods to MdiWindowManager.
18917         - Removed unused properties and methods.
18918         - Unified method naming for methods handling wm messages.
18919         - Moved all message handling to seperate methods for
18920         each message.
18921         
18922         * ThemeWin32Classic.cs:
18923         - DrawManagedWindowDecorations now draws the title bar 
18924         with a gradient brush.
18925         - Add a CPDrawButtonInternal that allows us to specify
18926         light, normal and dark colors for the buttons (control 
18927         buttons for MDI children were drawn with the same light
18928         color as the background, therefore loosing the 3D effect).
18929         
18930         * SizeGrip.cs:
18931         - Add a CapturedControl property that is used to 
18932         determine the control to resize (defaults to parent). 
18933         Needed for MdiClient, since its SizeGrip's parent is
18934         MdiClient, but the control to resize is the main form.
18935         
18936         * MdiClient.cs:
18937         - Set SizeGrip's CapturedControl to the main form in order
18938         to resize the main form and not the MdiClient.
18939         - Override AfterTopMostControl to leave the scrollbars 
18940         always on top.
18941
18942 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18943
18944         * ListView.cs: fixed ListViewItemCollection AddRange and
18945                         implemented ListViewItemCollection AddRange 2.0 support.
18946
18947 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18948
18949         * ListViewGroup.cs: Add.
18950         * ListViewGroupCollection.cs: Add
18951         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
18952         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
18953                                 stub for ImageKey 2.0 support.
18954
18955 2006-12-14  Mike Kestner  <mkestner@novell.com>
18956
18957         * ListView.cs: add text padding to the autocalculation for columns
18958         of width -2.  Fixes #80207.
18959  
18960 2006-12-14  Mike Kestner  <mkestner@novell.com>
18961
18962         * ListView.cs: add some index guarding for partial row navigation 
18963         logic.  Fixes #80250.
18964
18965 2006-12-14  Mike Kestner  <mkestner@novell.com>
18966
18967         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
18968         are added or inserted to the collection.  Fixes #81099.
18969
18970 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
18971
18972         * MenuAPI.cs: Closes menu when right click out side of popup
18973         it fix problem in ContextMenu and MainMenu. Fixes #80252.
18974
18975 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18976
18977         * ListViewItem.cs: Fix dumb error.
18978
18979         * ListView.cs: Add Find and ContainsKey methods in 
18980         ListViewItemCollection, and also return true for IsReadOnly
18981         and IsFixedSize (changes for 2.0). 
18982
18983 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
18984
18985         * Control.cs: Allow Region to be set to null.
18986
18987 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18988
18989         * MdiWindowManager.cs: Remove unused (commented out) code.
18990         * Form.cs: When the MdiChild is maximized, the form needs 
18991         WM_NCMOUSELEAVE, so request it.
18992         * InternalWindowManager.cs: 
18993         - Added tooltips to control buttons.
18994         - Removed duplicated control button handling code.
18995         - Removed unused (commented out) code.
18996         
18997 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
18998
18999         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
19000         was used because we must set cursor without trigger ChangeCursor event
19001         and without change Cursor control property. Fixes #79963.
19002
19003 2006-12-12  Andreia Gaita  <avidigal@novell.com>
19004         
19005         * Control.cs: Check if Region setter value is null, and ignore
19006
19007 2006-12-12  Jackson Harper  <jackson@ximian.com>
19008
19009         * TextControl.cs: We were almost always drawing one more line then
19010         needed, since the GetLineByPixel will return the last line found
19011         at that pixel. In most cases though, we were invalidating up to
19012         the junction between two lines.
19013         - Improve debug code.
19014
19015 2006-12-12  Chris Toshok  <toshok@ximian.com>
19016
19017         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
19018         and FillReversibleRectangle.
19019
19020         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
19021         and FillReversibleRectangle.
19022
19023         * XplatUIWin32.cs: add stubs which do nothing for
19024         DrawReversibleFrame, DrawReversibleLine, and
19025         FillReversibleRectangle.
19026
19027         * XplatUIOSX.cs: add stubs which raise NIE for
19028         DrawReversibleFrame, DrawReversibleLine, and
19029         FillReversibleRectangle.
19030
19031         * XplatUIX11.cs: add working implementation for
19032         DrawReversibleFrame, DrawReversibleLine, and
19033         FillReversibleRectangle.
19034         
19035         * ControlPaint.cs: implement DrawReversibleFrame,
19036         DrawReversibleLine, and FillReversibleRectangle, by calling into
19037         the appropriate XplatUI method.
19038
19039 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19040
19041         * Form.cs: Make MdiClient have the focus even if it's
19042         not selectable, since it should receive WM_KEY* and WM_MOUSE 
19043         messages. Fixes #79907.
19044         
19045 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19046
19047         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
19048         queried after the window is created.
19049         
19050         * XplatUIX11.cs: Added SendParentNotify to implement 
19051         WM_PARENTNOTIFY logic. Fixes #79965.
19052         
19053         * Control.cs: Added MakeParam.
19054         
19055 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19056
19057         * MdiClient.cs: Resume Layout before setting window
19058         states (fixes #80201).
19059
19060 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19061
19062         * MenuAPI.cs: Deselect a menu item after performing
19063         the click (fixes #80197).
19064
19065 2006-12-11  Jackson Harper  <jackson@ximian.com>
19066
19067         * TextBoxBase.cs: We need to cap this value, since Maximum -
19068         ViewPortHeight can be less than zero.
19069         - Only do selection with the left mouse button.
19070         * TextBox.cs: Don't tell the world that we have a context menu.
19071         * Control.cs: New method so that we can control whether or not the
19072         context menu is visible outside MWF.
19073
19074 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
19075
19076         * ToolBarButton.cs: Fix text positon. 
19077
19078 2006-12-11  Miguel de Icaza  <miguel@novell.com>
19079
19080         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
19081
19082         * Control.cs (DoubleBuffered): Add implementation.
19083
19084         * Application.cs (OpenForms): Add.
19085
19086 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
19087
19088         * Form.cs: Use opacity instead of Opactiy to determine if we need
19089         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
19090
19091 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
19092
19093         * Control.cs: Fix NRE if Control.Site was set to null.
19094
19095 2006-12-11  Chris Toshok  <toshok@ximian.com>
19096
19097         * Control.cs: ControlCollection.Remove should return if the arg is
19098         null, and ControlCollection.SetChildIndex should raise a ANE.
19099
19100 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
19101
19102         * Control.cs: Verify value set for Dock property. Code formatting
19103         updates.
19104
19105 2006-12-11  Jackson Harper  <jackson@ximian.com>
19106
19107         * TextControl.cs: Draw the caret and the selection when a flag is
19108         set on the owner.
19109         * TextBoxBase.cs: We want to draw the caret and the selection for
19110         TextBox but not for TextBoxBase.
19111         - If the window is resized and scrolling is no longer needed (the
19112         whole doc is visible) set the scroll position to zero.
19113         - The default SelectWord (the one TextBox uses) should move the
19114         caret to the end of the word.
19115         - SelectAll moves the caret to the end of the selection.
19116         * TextBox.cs: We don't selectall on focus, we just do it when the
19117         control is created.
19118         
19119 2006-12-11  Mike Kestner  <mkestner@novell.com>
19120
19121         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
19122
19123 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19124
19125         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
19126         2.0 support.
19127         * ListViewItem.cs: Add Name 2.0 property.
19128
19129 2006-12-11  Andreia Gaita  <avidigal@novell.com>
19130
19131         * TabControl.cs: Set visibility on selected or default tab 
19132         when tabcontrol handle is created, so that it's contents
19133         actually show up (duh). Fixes #80193
19134         Don't redraw the control if there is no handle created, as
19135         the selected index might be completely invalid. Added some tests
19136         to check for this.
19137
19138 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
19139
19140         * ToolBar.cs: Uses maximun width and height of all buttons as 
19141         button rectangle when ButtonSize specified, it looks strange but
19142         is what happens in Win32. Fixes #80189.
19143
19144 2006-12-11  Jackson Harper  <jackson@ximian.com>
19145
19146         * TextControl.cs: Need to track undo levels ourself, since
19147         compound actions will mess them up.
19148
19149 2006-12-10  Andreia Gaita  <avidigal@novell.com>
19150
19151         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
19152         SelectedIndex value is changed (even if it's not valid).
19153         Reset SelectedIndex to 0 when the handle is created and if
19154         the current index is invalid.
19155         Fixes SelectdeIndex unit tests and #80128
19156
19157 2006-12-08  Chris Toshok  <toshok@ximian.com>
19158
19159         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
19160         calls EndEdit, it needs to be called before we set current_cell to
19161         its new value.  Otherwise, we end up committing the value in the
19162         textbox to the new cell as well.  Fixes bug #80160.
19163
19164 2006-12-08  Chris Toshok  <toshok@ximian.com>
19165
19166         * Form.cs (set_CancelButton): if the button's DialogResult is
19167         None, set it to Cancel.  Fixes bug 80180.
19168
19169 2006-12-08  Jackson Harper  <jackson@ximian.com>
19170
19171         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
19172         to watch ourselves when setting the canvas size and setting the
19173         scrollbar values.
19174
19175 2006-12-08  Chris Toshok  <toshok@ximian.com>
19176
19177         * DataGrid.cs: comment out the two MakeTransparent calls for the
19178         time being so people using trunk (and not 1.2.2) on windows can
19179         actually use the datagrid.  This deals with bug #80151.
19180
19181 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
19182
19183         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
19184         Graphics.DrawImage (image, int, int, int, int) overload instead
19185         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
19186         the dpi difference and was blurring images it drew.
19187         [Fixes bug #79960]
19188
19189 2006-12-08  Chris Toshok  <toshok@ximian.com>
19190
19191         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
19192         rowcnt is 0 (such as with an empty datasource), and make sure we
19193         initialize not_usedarea.Y to cells.Y, so we don't draw over the
19194         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
19195
19196 2006-12-08  Chris Toshok  <toshok@ximian.com>
19197
19198         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
19199         grid.
19200
19201 2006-12-08  Chris Toshok  <toshok@ximian.com>
19202
19203         [ Fixes bug #80167 ]
19204         
19205         * ThemeWin32Classic.cs: don't draw the image if the button's flat
19206         style is FlatStyle.System.
19207
19208         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
19209         ButtonBase.flat_style private, and switch uses of it to the public
19210         property.
19211         
19212 2006-12-08  Chris Toshok  <toshok@ximian.com>
19213
19214         [ Fixes bug #80121 ]
19215         
19216         * ThemeWin32Classic.cs: center the caption text in the datagrid
19217         when we draw it.
19218
19219         * DataGrid.cs: lessen the amount we add to the caption height from
19220         6 to 2.  6 was making it huge.
19221
19222 2006-12-08  Andreia Gaita  <avidigal@novell.com>
19223
19224         * UpDownBase: Handle MouseWheel call directly instead of capturing
19225         the inner textbox's OnMouseWheel. Fixes #80166
19226
19227 2006-12-08  Jackson Harper  <jackson@ximian.com>
19228
19229         * TextControl.cs: We need to invalidate the textbox when we empty
19230         it (how had this not been discovered before?)
19231
19232 2006-12-08  Jackson Harper  <jackson@ximian.com>
19233
19234         * TextBoxBase.cs: Reworked the mouse down code so I could get it
19235         to behave like MS, we now ignore the eventargs.Click and just
19236         track state ourself, which we were already doing anyways.
19237         - Constrain the double click handler to the double click size.
19238         
19239 2006-12-08  Chris Toshok  <toshok@ximian.com>
19240
19241         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
19242         direction if that scrollbar isn't shown.  fixes bug #80158.
19243
19244 2006-12-08  Andreia Gaita  <avidigal@novell.com>
19245
19246         * NumericUpDown.cs: Update value on getter. Fixes #79950
19247
19248 2006-12-08  Chris Toshok  <toshok@ximian.com>
19249
19250         * MenuItem.cs: add back in the event cloning code.  I didn't know
19251         how to do it in the face of the EventHandlerList work i'd done
19252         last week.  Fixes bug #80183.
19253
19254 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
19255
19256         * Control.cs: Add an invalidate to the BackgroundImage setter.
19257         [Fixes 80184]
19258
19259 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
19260
19261         * ToolStrip*: Add some small properties reported by MoMA, fix event
19262         firing and default properties based off of unit tests, and add some
19263         attributes based off of the class status page.
19264
19265 2006-12-07  Jackson Harper  <jackson@ximian.com>
19266
19267         * TextBoxBase.cs: Take HideSelection into account when determining
19268         whether or not to show the selection.
19269         * RichTextBox.cs: After inserting the RTF into the document move
19270         the cursor to the beginning of the document.
19271
19272 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
19273
19274         * Control.cs: Remove static ArrayList "controls" which maintained
19275         a reference to every control created.
19276         * Application.cs: Create a static FormCollection to maintain a reference
19277         to every form created.  Use it in places that formerly enumerated through
19278         the controls one looking for forms.
19279         * Form.cs: Add and remove self from above FormCollection.
19280
19281 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
19282
19283         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
19284           not libgdk (though it makes me wonder why I didn't have any
19285           problems)
19286
19287 2006-12-07  Chris Toshok  <toshok@ximian.com>
19288
19289         [ you had to know this was coming after that last commit...]
19290         
19291         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
19292         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
19293         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
19294         XCopyArea).
19295
19296 2006-12-07  Chris Toshok  <toshok@ximian.com>
19297
19298         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
19299         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
19300         all the behavior we need for double buffering.
19301
19302         * XplatUIDriver.cs: implement the 3 double buffer methods using a
19303         client side Bitmap, just like the old Control-based double buffer
19304         code did.  The methods are virtual, so each XplatUI driver
19305         subclass can replace the implementation to use a faster, platform
19306         specific approach.
19307
19308         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
19309         double buffer code, and clean things up a bit in the process.
19310
19311 2006-12-06  Chris Toshok  <toshok@ximian.com>
19312
19313         * Control.cs: reindent WndProc.
19314
19315 2006-12-06  Chris Toshok  <toshok@ximian.com>
19316
19317         [ I wanna be like BenM when I grow up ]
19318         
19319         * Hwnd.cs: create a single static Graphics object on the static
19320         Bitmap we create.  use this for our text measurements.
19321
19322         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
19323         This was causing us to allocate a backbuffer for every control,
19324         even when it wasn't flagged as double buffered.  Instead use the
19325         single graphics instance.  This might have implications for
19326         multithreaded applications.  If we run into problems we can switch
19327         to creating 1 Graphics per control, on the static Hwnd bitmap.
19328
19329         this change nets us a 7M savings in private dirty mappings when
19330         running FormsTest.exe.
19331
19332 2006-12-06  Chris Toshok  <toshok@ximian.com>
19333
19334         * ListView.cs: the BackgroundImage override is just to set
19335         attributes.  chain up to base.BackgroundImage.
19336
19337         * RichTextBox.cs: same.
19338
19339         * ToolBar.cs: same, but we need to also redraw the toolbar when it
19340         changes, so instead a handler for BackgroundImageChanged.
19341         
19342         * Control.cs: make background_image private.
19343
19344 2006-12-06  Chris Toshok  <toshok@ximian.com>
19345
19346         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
19347         sure we even need this assignment, but roll with it for now.
19348
19349         * Control.cs: make the cursor field private.
19350
19351 2006-12-06  Chris Toshok  <toshok@ximian.com>
19352
19353         * Form.cs: we don't need to explicitly set ImeMode to
19354         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
19355         behavior in the face of ImeMode.Inherit.
19356
19357         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
19358         change the ctor's assignment to use ImeMode instead of ime_mode.
19359
19360         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
19361         ImeModeInherit.  Only check for the parent's imemode (and return
19362         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
19363         This fixes the button unit test, which sets both ImeMode and
19364         DefaultImeMode to ImeMode.Disable.
19365
19366         also make the ime_mode field private.
19367
19368 2006-12-06  Chris Toshok  <toshok@ximian.com>
19369
19370         * Control.cs: make control_style private.
19371
19372         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
19373         setting the styles to true, then setting them to false instead of
19374         reverting to their previous values.
19375
19376         also, call SetStyle on the scrollbars instead of using
19377         control_style directly.
19378
19379 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
19380
19381         * FormCollection.cs: Implement. [2.0]
19382
19383 2006-12-06  Chris Toshok  <toshok@ximian.com>
19384
19385         * Control.cs: make tab_stop private.
19386
19387         * Label.cs: set TabStop, not tab_stop.  reformat some event
19388         add/remove methods to make them more compact.
19389
19390 2006-12-06  Chris Toshok  <toshok@ximian.com>
19391
19392         * RadioButton.cs: fix TabStop handling.
19393
19394 2006-12-06  Chris Toshok  <toshok@ximian.com>
19395
19396         * TextBox.cs: remove the explicit assignments to has_focus.
19397         Control does that.
19398
19399         * ButtonBase.cs: remove the assignment to has_focus.  Control will
19400         manage that.
19401         
19402 2006-12-06  Chris Toshok  <toshok@ximian.com>
19403
19404         * ButtonBase.cs: remove all uses of is_enabled from this code.
19405         it's always true when any of the code containing the checks is
19406         executed.
19407
19408 2006-12-06  Chris Toshok  <toshok@ximian.com>
19409
19410         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
19411         with different semantics (some are present in both 1.1 and 2.0
19412         profiles) so that we match MS's behavior in our unit tests.
19413
19414 2006-12-06  Jackson Harper  <jackson@ximian.com>
19415
19416         * TextControl.cs: Make this operation undoable.
19417         * TextBoxBase.cs: Factor the border width into the preferred
19418         height.
19419         - implement Modified as per the spec.
19420
19421 2006-12-06  Chris Toshok  <toshok@ximian.com>
19422
19423         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
19424
19425 2006-12-06  Chris Toshok  <toshok@ximian.com>
19426
19427         * Control.cs: make right_to_left and context_menu fields private.
19428
19429 2006-12-06  Chris Toshok  <toshok@ximian.com>
19430
19431         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
19432         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
19433         Control.child_controls private.  switch all uses over to
19434         Control.Controls.
19435
19436 2006-12-06  Chris Toshok  <toshok@ximian.com>
19437
19438         * System.Windows.Forms/GroupBox.cs,
19439         System.Windows.Forms/AccessibleObject.cs,
19440         System.Windows.Forms/ErrorProvider.cs,
19441         System.Windows.Forms/Control.cs,
19442         System.Windows.Forms/UpDownBase.cs,
19443         System.Windows.Forms/ScrollBar.cs,
19444         System.Windows.Forms/DateTimePicker.cs,
19445         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
19446         System.Windows.Forms/ToolTip.cs,
19447         System.Windows.Forms/RadioButton.cs,
19448         System.Windows.Forms/LinkLabel.cs,
19449         System.Windows.Forms/Splitter.cs,
19450         System.Windows.Forms/TextBoxBase.cs,
19451         System.Windows.Forms/ToolStripTextBox.cs,
19452         System.Windows.Forms/ContainerControl.cs,
19453         System.Windows.Forms/ThemeWin32Classic.cs,
19454         System.Windows.Forms/SizeGrip.cs,
19455         System.Windows.Forms/ToolStripDropDown.cs,
19456         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
19457         private.  switch all uses over to Control.Parent.
19458
19459 2006-12-06  Chris Toshok  <toshok@ximian.com>
19460
19461         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
19462         Control does this before calling emitting these events.
19463
19464         * TabControl.cs: same.
19465
19466         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
19467         Control.client_rect.
19468
19469         * ButtonBase.cs: use the ClientSize property instead of the
19470         client_size field.
19471
19472         * ScrollableControl.cs: same.
19473
19474         * Control.cs: another pass at making properties private.  also,
19475         move the initialization of tab_stop to the ctor.
19476
19477 2006-12-05  Andreia Gaita <avidigal@novell.com>
19478
19479         * TabControl.cs: Let the selected index be set freely if the 
19480         control handle is not yet created.
19481
19482 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
19483
19484         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
19485         internal until I can rewrite DefaultLayout.
19486         * ToolStrip.cs: Fix build error and some general cleaning.
19487         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
19488         Fix build errors caused by making some of Control's fields private.
19489
19490 2006-12-05  Jackson Harper  <jackson@ximian.com>
19491
19492         * TextControl.cs: Redo Insert a little so that it use IndexOf
19493         instead of Split, this prevents it from messing up on things like
19494         \n\n\n. Also more effecient since the split array doesn't need to
19495         be created.
19496         * TextBoxBase.cs: AppendText doesnt handle multiline and non
19497         multiline text differently, this is the first of many fixes that
19498         will make multiline/non-multiline the same thing as far as the
19499         TextBoxBase is concerned.
19500         - Don't split the text and insert lines, this can lose some line
19501         endings (like is the last line a soft or hard break). Instead use
19502         the new Insert.
19503         - Fix an off by one when combining all the lines in the Text
19504         getter.
19505         - Remove separate multiline handling from the Text getter/setter.
19506
19507 2006-12-05  Chris Toshok  <toshok@ximian.com>
19508
19509         * ButtonBase.cs: a few changes:
19510
19511         - don't reinitialize internal Control fields in the ctor when they
19512         have the same values as Control sets them.
19513
19514         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
19515         this before calling those methods.
19516
19517         - we don't need to call Refresh for anything.  use Invalidate
19518         instead.
19519
19520         - OnEnabledChanged doesn't need to redraw at all - Control.cs
19521         calls Refresh in its OnEnabledChanged.
19522         
19523         - several of the events we were registered for in the ctor to
19524         redraw ourselves already include calls to Invalidate in the
19525         property setters that raise the events.  remove the extra
19526         invalidation.
19527
19528         - reformat a switch statement that was 83274658 columns wide.
19529         
19530 2006-12-05  Mike Kestner  <mkestner@novell.com>
19531
19532         * ComboBox.cs: fix a unit test regression from a TextBox
19533         SelectionLength return of -1 when there's no selection.  
19534
19535 2006-12-05  Chris Toshok  <toshok@ximian.com>
19536
19537         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
19538         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
19539         cleaning up some of the internal Control fields being used by
19540         subclasses.
19541
19542 2006-12-05  Mike Kestner  <mkestner@novell.com>
19543
19544         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
19545         listbox after AddImplicit calls since it defaults to hidden. Add a 
19546         hack to preserve requested heights across DropDownStyle changes.
19547
19548 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
19549
19550         * PropertyGrid.cs: Hide FindFirstItem method from public API.
19551
19552 2006-12-05  Chris Toshok  <toshok@ximian.com>
19553
19554         * DataGridView.cs: fix compiler warnings.
19555
19556         * PrintControllerWithStatusDialog.cs: same.
19557
19558         * ToolBar.cs: same.
19559
19560         * FolderBrowserDialog.cs: same.
19561
19562         * Splitter.cs: same.
19563
19564         * DataGridViewComboBoxCell.cs: same.
19565
19566         * XplatUIWin32.cs: same.
19567
19568         * PictureBox.cs: same.
19569
19570         * Win32DnD.cs: same.
19571
19572         * PageSetupDialog.cs: same.
19573
19574         * FileDialog.cs: same.
19575
19576         * PrintDialog.cs: same.
19577
19578         * DataGridTextBoxColumn.cs: same.
19579
19580         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
19581
19582 2006-12-05  Chris Toshok  <toshok@ximian.com>
19583
19584         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
19585         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
19586         System.ComponentModel.EventHandlerList work.
19587
19588 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
19589
19590         * DrawTreeNodeEventArgs.cs: Added.
19591
19592 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19593         
19594         * InternalWindowManager.cs: Remove an unused field.
19595         
19596 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19597
19598         * InternalWindowManager.cs:
19599         - Save the point where the title bar is clicked.
19600         
19601         * MdiWindowManager.cs:
19602         - Only allow moving of the window as long as the 
19603         clicked point on the title bar does not get out of
19604         MdiClient's rectangle. Fixes #79982.
19605         
19606         * MdiClient.cs:
19607         - Added Horizontal/VerticalScrollbarVisible.
19608         - Simplified the scrollbar sizing algorithm.
19609         - Cache the difference in scrolled value in
19610         H/VBarValueChanged and move the calculation out
19611         of the for loop.
19612
19613 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19614
19615         * Control.cs: Make the Console.WriteLine in WndProc 
19616         write more info.
19617
19618 2006-12-05  Chris Toshok  <toshok@ximian.com>
19619
19620         * ToolStripManager.cs, ToolStripButton.cs,
19621         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
19622         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
19623         ToolStripSplitButton.cs, ToolStripSeparator.cs,
19624         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
19625         ToolStripProgressBar.cs, ToolStripContainer.cs,
19626         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
19627         to using System.ComponentModel.EventHandlerList.
19628
19629 2006-12-04  Chris Toshok  <toshok@ximian.com>
19630
19631         * LinkLabel.cs: fix up compiler warnings.
19632
19633         * TableLayoutSettings.cs: same.
19634
19635         * TreeView.cs: same.
19636
19637         * ToolBar.cs: same.
19638
19639         * TabControl.cs: same.
19640
19641         * RichTextBox.cs: same.
19642
19643         * ListViewItem.cs: same.
19644
19645         * PropertyGrid.cs: same.
19646
19647         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
19648
19649         * ToolTip.cs same.
19650
19651         * TextRenderer.cs: fix up compiler warnings.
19652
19653         * Label.cs: same.
19654
19655         * Form.cs: corcompare fixes.
19656
19657         * PictureBox.cs: fix up compiler warnings.
19658
19659         * ImageListStreamer.cs: same.
19660
19661         * TrackBar.cs: corcompare fix.
19662
19663         * Control.cs: fix up compiler warnings.
19664
19665         * SplitterPanel.cs: same.
19666
19667         * NumericTextBox.cs: same.
19668
19669         * ImageList.cs: same.
19670
19671         * StatusStrip.cs: same.
19672
19673         * ProgressBar.cs: corcompare fix.
19674
19675         * ToolStripButton.cs: fix up compiler warnings.
19676
19677         * ToolStripStatusLabel.cs: same.
19678
19679         * ToolStripSplitButton.cs: same.
19680
19681         * ToolStripSeparator.cs: same.
19682
19683         * ToolStripProgressBar.cs: same.
19684
19685         * ToolStripDropDownMenu.cs: same
19686
19687         * ToolStripDropDown.cs: same.
19688
19689         * ToolStripDropDownButton.cs: same.
19690
19691         * ToolStrip.cs: same.
19692
19693         * ToolStripControlHost.cs: same.
19694
19695         * ToolStripContentPanel.cs: same.
19696
19697         * ToolStripDropDown.cs: same.
19698
19699         * ToolStripContainer.cs: same.
19700
19701         * ToolStripPanel.cs: same, and add "new" where we need it to work
19702         with the new ArrangedElementCollection.
19703
19704         * ToolStripItemCollection.cs: add "new" where we need it to work
19705         with the new ArrangedElementCollection.
19706
19707 2006-12-04  Andreia Gaita <avidigal@novell.com>
19708
19709         * TabControl.cs: Fix default tab selection to after TabControl
19710         gets focus and not before. Fixes #80128
19711
19712 2006-12-04  Chris Toshok  <toshok@ximian.com>
19713
19714         * DataGridTableStyle.cs: remove the gross calling of
19715         datagrid.Refresh from here.  It's a broken idea and it doesn't
19716         work anyway.
19717
19718         * DataGrid.cs: instead, just register/unregister from the
19719         DataGridTableStyle events in CurrentTableStyle.  we play it
19720         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
19721         even though some would most likely not require it.  Fixes bug
19722         #80115 (and one portion of #80117 as a side effect).
19723
19724 2006-12-04  Chris Toshok  <toshok@ximian.com>
19725
19726         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
19727         so the textbox (if any) goes away.  Fixes bug #80117.
19728
19729 2006-12-04  Chris Toshok  <toshok@ximian.com>
19730
19731         * DataGridColumnStyle.cs: set the column's readonly property
19732         initially based on the property descriptor's IsReadOnly.  Fixes
19733         bug #80044.
19734
19735 2006-12-04  Chris Toshok  <toshok@ximian.com>
19736
19737         * ComboBox.cs: wrap the dropdown style changing work in
19738         SuspendLayout/ResumeLayout.  Fixes bug #79968.
19739
19740 2006-12-04  Jackson Harper  <jackson@ximian.com>
19741
19742         * TextBoxBase.cs: Fix off by one, since these are one-based.
19743         * TextBox.cs: Select all the text when we get focus.  The TextBox
19744         does this but the RTB does not.
19745
19746 2006-12-04  Chris Toshok  <toshok@ximian.com>
19747
19748         * DataGridTextBoxColumn.cs: remove some spew.
19749
19750         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
19751         but some part of me is saying "it shouldn't be here.."  At any
19752         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
19753         setting the value.
19754
19755 2006-12-04  Chris Toshok  <toshok@ximian.com>
19756
19757         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
19758         to reassign the propertydescriptor.
19759
19760 2006-12-04  Jackson Harper  <jackson@ximian.com>
19761
19762         * TextBoxBase.cs:
19763         * TextControl.cs: Remove some unused variables.  Maybe this will
19764         patch things up between mike and I.
19765         - don't split lines less then one char wide, if the viewport is
19766         that small text won't be visible anyways.
19767         
19768 2006-12-04  Jackson Harper  <jackson@ximian.com>
19769
19770         * TextBoxBase.cs: Default selection length is -1, need to do some
19771         more testing on windows to see when this is used for the property.
19772         - Redid the Lines [] property to that we properly remove soft line
19773         breaks
19774         - added support for preserving carriage returns
19775         -  CanUndo is not a variable like 'is undo enabled' it just returns
19776         true if there is undo operations available.
19777         - AppendText doesn't need to grab the last tag itself anymore,
19778         this happens automatically when we move the cursor.
19779         * TextControl.cs: Add CompoundActions to the undo class. This
19780         allows combining the other operations into one big option.  ie a
19781         paste will combine { delete old, insert new, move cursor }
19782         - Add InsertString undo operation
19783         - New method for deleting multiline text
19784         - Add carriage returns to lines. So we can preserve carriage
19785         returns when text is 'roundtripped'
19786
19787 2006-12-04  Chris Toshok  <toshok@ximian.com>
19788
19789         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
19790         minimum 0.  Fixes the scrollbar exception in bug #80136.
19791
19792 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19793
19794         * MdiClient.cs: 
19795         * MdiWindowManager: Removed unused fields and methods.
19796         
19797 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19798         
19799         * StatusBar.cs: Update all panels when a AutoSize=Contents
19800         panel needs updating.
19801         
19802         * StatusBarPanel.cs: Remove twidth and only use initialize.
19803         Fixes #80031.
19804                 
19805 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19806
19807         * Form.cs: When a form's MdiParent is set add it directly
19808         on top of the z-order in stead of relying on MdiClient's
19809         ActivateChild to do it. Fixes #80135.
19810         
19811         * MdiClient.cs: 
19812         - Remove original_order, mdi_child_list is already doing
19813         the same thing.
19814         - Create mdi_child_list on construction in
19815         stead of first use (avoids a few null checks).
19816
19817         * MenuItem.cs: Use an already existing list of mdi children
19818         to get the correct order of children and remove the other
19819         redundant list.
19820
19821 2006-12-04  Chris Toshok  <toshok@ximian.com>
19822
19823         * PropertyGridView.cs: cached_splitter_location is only used in
19824         !DOUBLEBUFFER code.
19825
19826         * PropertyGrid.cs: implement the ComComponentNameChanged event
19827         using Events, hoping that would fix the warning.  Looks like a
19828         compiler bug instead (#80144).
19829
19830         * PropertyManager.cs: remove unused method.
19831
19832 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
19833
19834         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
19835         include parentesis to fix expression evaluation. Fixes #79634.
19836
19837 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
19838         
19839         * MenuAPI.cs:
19840         - Changes to fix behavior in Menu control, some reported in #80097
19841         and other detected during behavior refactory like a select event
19842         problems.
19843         - Remove unneded "if's" conditions.
19844         - Created an internal to flag when popup is active in control, we need 
19845         it because in .NET you can have menu active but without popup active
19846         when you active menu using popup without visible items.
19847         - Mimic win32 behavior for Select and Popup events.  
19848         - Dont open popup menu when you dont have visible subitems.
19849         - Do nothing when click on disabled menu item.
19850         - Some small changes to follow the coding style guidelines.
19851         - Unselect menu only when another control gives focus. Fixes #80097.
19852         - Remove unused code.
19853         
19854         * MenuItem.cs: internal VisibleItems method to check if menu
19855         theres visible subitems, it will be usefull to fix some 
19856         behavior in Menu control.
19857         
19858 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
19859         
19860         * Timer.cs: Tag property for 2.0 profile.
19861         
19862 2006-12-01  Chris Toshok  <toshok@ximian.com>
19863
19864         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
19865         
19866         * Win32DnD.cs: comment out some unused fields.
19867
19868         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
19869         some unused properties/methods.
19870
19871         * XplatUIX11.cs: fix MousePosition so we override the base class's
19872         property instead of conflicting with it.
19873
19874         * PictureBox.cs: comment out some unused fields
19875
19876         * OSXStructs.cs: make some struct fields public.
19877
19878         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
19879         MousePosition so we override the base class's property instead of
19880         conflicting with it.
19881
19882         * X11Dnd.cs: comment out some unused fields
19883
19884         * X11DesktopColors.cs: fix some struct field visibility to quiet
19885         the compiler.
19886
19887         * X11Dnd.cs: remove some debug code.
19888
19889         * ThemeClearlooks.cs: comment out unused field.
19890
19891         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
19892
19893         * ThemeGtk.cs: comment out some unused pinvokes.
19894
19895         * Timer.cs: remove some unused fields.
19896
19897         * ThemeClearlooks.cs: comment out unused field.
19898
19899         * UpDownBase.cs: comment out unused field.
19900
19901         * DataObject.cs: comment out unused field.
19902
19903         * DataGridBoolColumn.cs: reomve unused field.
19904
19905         * DataGrid.cs: remove unused field.
19906
19907         * Cursor.cs: remove old ToBitmap code.
19908
19909         * ControlPaint.cs: remove unused method.
19910
19911         * ScrollBar.cs: remove unused fields.
19912
19913         * ComboBox.cs: remove unused field, and chain up to
19914         AccessibleObject ctor.
19915
19916         * ListBox.cs: remove unused field.
19917
19918         * ButtonBase.cs: wrap a couple fields in NET_2_0.
19919
19920         * GridEntry.cs: remove unused fields.
19921
19922         * Binding.cs: remove unused fields.
19923
19924         * AxHost.cs: remove unused method.
19925
19926         * ContainerControl.cs: remove unused field.
19927
19928         * ScrollableControl.cs: remove unused fields.
19929
19930 2006-12-01  Chris Toshok  <toshok@ximian.com>
19931
19932         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
19933         the Where/WhereString stuff.  it's easy enough to CWL
19934         Environment.StackTrace.
19935
19936         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
19937         unused private fields.
19938
19939 2006-12-01  Jackson Harper  <jackson@ximian.com>
19940
19941         * TextControl.cs: Do not update the view while inserting multiline
19942         text. If we update the view we might wrap lines, before entering
19943         the new lines, which causes the new line insertion calculations to
19944         be totally fubared.
19945         - Remove an old TODO
19946         - Make debug output a little nicer
19947         
19948 2006-12-01  Chris Toshok  <toshok@ximian.com>
19949
19950         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
19951
19952 2006-12-01  Chris Toshok  <toshok@ximian.com>
19953
19954         [ fix the majority of the CS0108 warnings we've been suppressing ]
19955         
19956         * TreeView.cs: mark BackgroundImageChanged as 'new'.
19957
19958         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
19959         to "LayoutToolBar" to quiet mcs.
19960         
19961         * TabControl.cs: mark our ControlCollection class as 'new'.
19962
19963         * TextBoxBase.cs: mark some events as 'new'.
19964
19965         * Splitter.cs: TabStop is 'new'.
19966
19967         * ControlBindingsCollection.cs: mark a few methods as new since
19968         they change the visibility from protected to public.
19969
19970         * RadioButton.cs: DoubleClick -> base class, and remove unused
19971         HaveDoubleClick.
19972
19973         * MonthCalendar.cs: ImeMode property -> base class, and mark many
19974         events as new.
19975
19976         * NumericUpDown.cs: TextChanged -> base class.
19977
19978         * CheckedListBox.cs: mark our ObjectCollection class as new to
19979         quiet mcs.
19980
19981         * FolderBrowserDialog.cs: make HelpRequest event new and have it
19982         muck with the base class.
19983
19984         * StatusBar.cs: fix some mcs warnings about Update being the same
19985         name as a base class method.
19986
19987         * RichTextBox.cs: mark some events as new, and make them do things
19988         to the base class impl.
19989
19990         * UserControl.cs: mark TextChanged as new, and have it manipulate
19991         base.TextChanged.
19992
19993         * UpDownBase.cs: mark some things new.
19994
19995         * CheckBox.cs: mark DoubleClick "new", and add some text about
19996         what we need to look at.
19997
19998         * Panel.cs: make the events "new", and manipulate the base
19999         version.  these are just here for attributes.
20000
20001         * AccessibleObject.cs: make owner private.
20002
20003         * Control.cs: deal with AccessibleObject.owner being private.
20004         cache our own copy if we need it.
20005
20006         * Button.cs: add "new" to the DoubleClickEvent.
20007
20008         * ListBox.cs: no need to track our own has_focus here.  let
20009         Control.has_focus do it for us.  Also some other work to clear up
20010         warnings about not overriding base class methods of the same name.
20011         
20012         * ComboBox.cs: clear up some warnings about not override base
20013         class methods of the same name.
20014
20015 2006-12-01  Chris Toshok  <toshok@ximian.com>
20016
20017         * Form.cs: flag a few things as "new" to quiet some of the mcs
20018         warnings.
20019
20020         * AxHost.cs: same.
20021
20022         * PrintPreviewDialog.cs: same.
20023
20024         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
20025         now DGV isn't so horrible on the class status page.  also, move
20026         all events to using System.ComponentModel.EventHandlerList.  my
20027         wrists hurt.
20028
20029 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20030
20031         * MdiWindowManager.cs:
20032         - Set form to active mdi child if shown,
20033         and update the active mdi child to the next 
20034         remaining child in the z-order if the form is hidden.
20035
20036         * Form.cs: 
20037         - Track if the form has been visible and if its 
20038         visibility is beeing changed, so that the MdiClient
20039         can properly decide the ActiveMdiChild. The MdiClient 
20040         cannot track this since the form can change visibility 
20041         before MdiClient is created.
20042
20043         * MdiClient.cs:
20044         - Don't activate anything of the parent form is changing
20045         its visibility.
20046         - Rework ActiveMdiChild to only return visible mdi 
20047         children and take into account several other corner 
20048         cases.
20049
20050 2006-12-01  Chris Toshok  <toshok@ximian.com>
20051
20052         * IBindableComponent.cs: new 2.0 interface.
20053
20054 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
20055
20056         * DataGrid.cs: Font for caption area is bold by default.
20057
20058 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
20059
20060         * Menu.cs: Tag property for 2.0.
20061         
20062 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
20063
20064         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
20065         
20066 2006-12-01  Chris Toshok  <toshok@ximian.com>
20067
20068         * TreeView.cs: doh, the Begin* events should be
20069         TreeViewCancelEventHandler.
20070
20071 2006-12-01  Chris Toshok  <toshok@ximian.com>
20072
20073         * Form.cs: Form.ControlCollection already stores off the
20074         form_owner field.  don't access the base class's internal "owner"
20075         field.
20076
20077         * Control.cs: make all the fields in Control.ControlCollection
20078         private.  there's no need for any internal fields here.
20079
20080 2006-12-01  Chris Toshok  <toshok@ximian.com>
20081
20082         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
20083         OnHandleCreated.  Fixes bug #80109.
20084
20085 2006-12-01  Chris Toshok  <toshok@ximian.com>
20086
20087         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
20088         SplitContainer.cs, Control.cs, StatusStrip.cs,
20089         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
20090         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
20091         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
20092         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
20093         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
20094         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
20095         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
20096         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
20097         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
20098         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
20099
20100         do most of the work to convert our code over to use
20101         System.ComponentModel.Component.Events for
20102         adding/removing/dispatching events.
20103
20104
20105 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
20106
20107         * DataGridView.cs: Fix an ArgumentNullException reported 
20108         twice today in IRC.
20109
20110 2006-11-30  Mike Kestner  <mkestner@novell.com>
20111
20112         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
20113         grabbed listbox.  Fixes #80036 and #80101.
20114
20115 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
20116
20117         * Message.cs: Changed ToString() to match MS.
20118         
20119 2006-11-30  Jackson Harper  <jackson@ximian.com>
20120
20121         * TextBoxBase.cs: You can still change the selected text on a read
20122         only textbox.
20123         * TextControl.cs: Lower magic number for wrap calculations. This
20124         lets text get closer to the right (far) edge.
20125
20126 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
20127
20128         * Control.cs: Tweak 2.0 layout properties.
20129         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
20130         * TextRenderer.cs: Add a new overload.
20131         * ToolStrip*: Huge amount of changes and new features.
20132
20133 2006-11-30  Mike Kestner  <mkestner@novell.com>
20134
20135         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
20136         scroll range correct.  Fixes #79994.
20137
20138 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
20139
20140         * MdiWindowManager.cs: Update main form's text when
20141         a form is closed. (fixes #80038)
20142         
20143 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
20144
20145         * ToolBar.cs:
20146         - Fix an regression in ButtonSize.
20147         - Get ImeMode default value change to "Disable".
20148         - Get ShowTooltips default value change to true, default value is 
20149         "false" but after make a test in .NET we get "true" result as default.
20150         
20151 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
20152
20153         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
20154
20155 2006-11-29  Chris Toshok  <toshok@ximian.com>
20156
20157         * XplatUIWin32.cs (GetWindowTransparency): check return value of
20158         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
20159         SetWindowTransparency hasn't been called.
20160
20161 2006-11-29  Chris Toshok  <toshok@ximian.com>
20162
20163         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
20164         if it's supported.
20165         (set_AllowTransparency): reorder things a little so that the
20166         WS_EX_LAYERED style is removed properly.
20167
20168 2006-11-29  Chris Toshok  <toshok@ximian.com>
20169
20170         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
20171         
20172         * Form.cs: only call the XplatUI transparency method (get/set) if
20173         SupportsTransparency says it's supported. Otherwise fallback to
20174         doing nothing (in the set case) or returning the instance field we
20175         cache (in the get case).
20176
20177         * XplatUIStructs.cs: add TransparencySupport flag enum.
20178         
20179         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
20180         change to SupportsTransparency.
20181
20182         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
20183         TransparencySupport.None from SupportsTransparency.
20184
20185         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
20186         TransparencySupport.Set from SupportsTransparency.
20187
20188         * XplatUIWin32.cs: implement GetWindowTransparency calling
20189         GetLayeredWindowAttributes, and implement SupportsTransparency by
20190         checking whether or not both
20191         GetWindowTransparency/SetWindowTransparency are available
20192         entrypoints.  We need to do this since SetWindowTransparency is
20193         available as of win2k, but GetWindowTransparency requires winxp.
20194         yay win32 api.
20195
20196         * XplatUI.cs: Add GetWindowTransparency, and change
20197         SupportsTransparency to allow for either/both Get/Set.
20198
20199 2006-11-29  Chris Toshok  <toshok@ximian.com>
20200
20201         * DataGrid.cs: keep from going into an infinite loop redrawing a
20202         datagrid that has no datasource.  Fixes bug #80033.
20203
20204 2006-11-29  Chris Toshok  <toshok@ximian.com>
20205
20206         * MenuItem.cs: fix the NRE when we assign text (and therefore call
20207         Invalidate) before the mainmenu has been assigned to a control.
20208
20209 2006-11-29  Chris Toshok  <toshok@ximian.com>
20210
20211         * DataGrid.cs: detect when we should be double the double click
20212         row/column autosize stuff, although that codepath has yet to be
20213         written.  part of the work for bug #79891.
20214
20215 2006-11-29  Chris Toshok  <toshok@ximian.com>
20216
20217         * Binding.cs (SetControl): fix unit test.
20218
20219 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20220
20221         * PageSetupDialog.cs: Validate the margins and set them in
20222         PageSettings. 
20223         * NumericTextBox.cs: New class to mimic the behavior of the
20224         textboxes used in the printing dialogs.
20225
20226 2006-11-29  Andreia Gaita  <avidigal@novell.com>
20227         
20228         * Form.cs: Revert previous change (remove call UpdateBounds
20229         from form constructor), because it messes with the handle creation
20230         order, and that one needs lots and lots of love.
20231         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
20232         for valid printer and throw InvalidPrinterException if document
20233         is set but printer not valid), adding a MonoTODO. Once 
20234         handle creation is done properly, we can put this back in.
20235
20236 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20237
20238         * MenuItem.cs: Create a invalidate method for menu item, to be
20239         calling from set text, it make text changes to imadiate update
20240         on screen. Fixes #80013. 
20241         
20242 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20243
20244         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
20245         fixes bug #80070 and some other problem on toolbar buttons
20246         layout.
20247
20248 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20249
20250         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
20251         with dotted brush.      Fixes #79564
20252         
20253 2006-11-28  Andreia Gaita  <avidigal@novell.com>
20254
20255         * Form.cs: Removed call to UpdateBounds on Form
20256         constructor, it was causing a call to CreateHandle
20257         before it was supposed to.
20258         * PrintControllerWithStatusDialog: Applied patch
20259         by Chris Toshok to hide controller when there are
20260         no printers available.
20261         PrintDialog.cs: initialize printer settings to 
20262         null - correct DefaultValues test #5
20263         * PrintPreviewControl.cs: Move PrintController
20264         initialization to GeneratePreview
20265         * PrintPreviewDialog.cs: 
20266         - Remove Preview generation     from Document_set(). It is 
20267         called on OnPaint
20268         - Throw InvalidPrinterException on CreateHandle if
20269         a Document is set but there are no printers or 
20270         printer is not valid.
20271         * ThemeWin32Classic: don't paint PrintPreviewControl
20272         if there is nothing to paint    
20273
20274 2006-11-28  Miguel de Icaza  <miguel@novell.com>
20275
20276         * Form.cs: Add another popular method.
20277
20278         * TabPage.cs: ditto.
20279
20280 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20281
20282         * MenuItem.cs: Fixed a warning.
20283         * InternalWindowManager: Fixed a warning.
20284
20285 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20286
20287         * MenuItem.cs:
20288         - When cloning a menu also clone MdiList and clone the 
20289           window menu items properly (as the forms and menuitems
20290           are kept in an internal hashtable, these need updating 
20291           as well)
20292         - Rewrote the window menu code, menu items are added in the
20293           order the forms were added to their parent, and they are
20294           updated every time the window menu is shown (before the
20295           list was only generated once, in the current order of the
20296           forms, and would never be updated). A checkmark is shown
20297           next to the item corresponding to the active mdi child.
20298
20299 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20300
20301         * XplatUIStructs.cs: 
20302         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
20303         
20304         * XplatUIWin32.cs: 
20305         - Added TME_NONCLIENT to TMEFlags.
20306         - Handles WM_NCMOUSEMOVE in GetMessage to 
20307           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
20308
20309         * MdiWindowManager:
20310         - Now merges mdi child menu to parent menu when maximized.
20311         - Recalculate NC areas of both mdi child and mdi parent. 
20312           Fixes #79757 (4).
20313           on window state and size changes.Fixes #79844 (3).
20314         - Handle WM_NCCALCSIZE to properly calculate borders.
20315
20316         * Form.cs:
20317         - Add/remove to the mdi containers list of mdi children 
20318           in the order they are added.
20319         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
20320           to the maximized mdi child.
20321         
20322         * InternalWindowManager.cs:
20323         - Only execute a click on the control buttons on the mouse up,
20324           not on the mouse down. Show the state of the button 
20325           (was only showing Normal state, never Pressed state). The
20326           pressed button now follows the mouse (if you click the Close 
20327           button and move the mouse over the Maximize button, the 
20328           Maximize button will be shown as pressed). Since Win32 does
20329           not generate WM_NCLBUTTONUP if you release the button outside
20330           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
20331           it as a mouse up.
20332         
20333         * ThemeWin32Classic.cs:
20334         - Draw a missing border around mdi child forms. Fixes #79844 (2).
20335
20336         * MdiClient.cs:
20337         - Added a list of forms which contains the order the forms are
20338           added to the mdi parent.
20339         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
20340         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
20341         - If the active form changes set the scrollbars to the top
20342           of the Z order, otherwise the form could hide them.
20343         - Scrollbars are now sized according to ClientSize, not 
20344           to Size, and they take into account the other scrollbar
20345           to determine maximum.
20346         
20347 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
20348         
20349         * XplatUI.cs:
20350         * XplatUIDriver.cs:
20351         * XplatUIX11.cs:
20352         * XplatUIWin32.cs:
20353         * XplatUIOSX.cs:
20354         - Added RequestAdditionalWM_NCMessages for windows to 
20355           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
20356           Currently only implemented in XplatUIWin32.
20357
20358 2006-11-27  Chris Toshok  <toshok@ximian.com>
20359
20360         * Hwnd.cs: only add the hwnd to the windows hash in
20361         set_WholeWindow and set_ClientWindow if whole_window/client_window
20362         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
20363
20364 2006-11-27  Mike Kestner  <mkestner@novell.com>
20365
20366         * ComboBox.cs: remove redundant OnDropDown call.  It is called
20367         from the ComboListBox.ShowWindow code. Fixes #79969.
20368
20369 2006-11-27  Chris Toshok  <toshok@ximian.com>
20370
20371         * Hwnd.cs: remove the setters for ExposePending and
20372         NCExposePending - noone uses them.
20373
20374 2006-11-27  Jackson Harper  <jackson@ximian.com>
20375
20376         * TextControl.cs: new param for ReplaceSelection which determines
20377         whether we select the new selection, or set the cursor to the end
20378         of the new selection.
20379         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
20380         pasting, select the new text.
20381         * RichTextBox.cs: Use new param for ReplaceSelection.
20382
20383 2006-11-27  Jackson Harper  <jackson@ximian.com>
20384
20385         * TextBoxBase.cs: Set the selection to the caret after the caret
20386         is moved, otherwise they get out of sync.
20387
20388 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
20389
20390         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
20391         it fixes #80015
20392
20393 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
20394
20395         * ThemeWin32Classic.cs: 
20396         - Fix toolbar drop down arrow position.
20397         - Fix drop down appearance when ToolBar.Appearance is normal,
20398         it fixes #80018.
20399         
20400 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
20401
20402         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
20403         * Control.cs: Same.
20404         * UpDownBase.cs: Same.
20405         * ButtonBase.cs: Same.
20406         * ScrollBar.cs: Same.
20407         * TrackBar.cs: Same.
20408         * PictureBox.cs: Same.
20409         * UserControl.cs: Same.
20410         * Label.cs: Same.
20411         * ListControl.cs: Same.
20412         * TextBoxBase.cs: Same.
20413         * ListView.cs: Same.
20414         * RichTextBox.cs: Same.
20415         * TreeView.cs: Same.
20416
20417 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
20418
20419         * PrintDialog.cs:
20420         - Text label for where 
20421         - Text label comment was not shown
20422
20423 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
20424
20425         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
20426
20427 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20428
20429         * InternalWindowManager.cs: 
20430         - Handle WM_PARENTNOTIFY to activate the form
20431         if any child control is clicked.
20432         - The form is only sizable if not minimized.
20433
20434         * MdiWindowManager.cs:
20435         - Save the IconicBounds if the form is moved.
20436         - Rework SetWindowState, now the window bounds 
20437         are stored only if the old window state is Normal.
20438         
20439         * MdiClient.cs:
20440         - In SetWindowStates store the old window state if 
20441         the window is maximized and restore window state if
20442         the window looses focus.
20443         - Don't handle any scrollbar value changes if 
20444         initializing the scroll bars. Fixes #79771.
20445         - Reworked ArrangeIconicWindows. Current algorithm
20446         tests bounds agains all other minimized windows, if
20447         any intersections create new bounds (going left to 
20448         right, bottom to top) and then test again. When 
20449         successful the bounds are saved and never computed
20450         again. Fixes #79774.
20451
20452 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20453
20454         * InternalWindowManager.cs: Added HandleTitleBarUp.
20455
20456 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20457
20458         * NumericUpDown.cs: In .NET 1.1, user entered text is still
20459         hexadecimal in ParseUserEdit.
20460
20461         
20462 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20463
20464         * MdiWindowManager.cs: 
20465         - Handle a click on the form's icon to show the 
20466         system menu (when maximized). Fixes #79775.
20467         - Change the existing click handler for the form's
20468         icon when not maximized to show on MouseUp.
20469         Fixes #79776.
20470
20471         * Form.cs: In OnResize only layout the mdi child's
20472         parent if it actually has a parent. Might not if
20473         the window is closing.
20474
20475
20476 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20477
20478         * MdiClient.cs: Ignore active MDI client for text of parent, if
20479         child has no text set.
20480
20481 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20482
20483         * ToolBar.cs: Fixed ToString to match MS.
20484
20485 2006-11-22  Andreia Gaita  <avidigal@novell.com>
20486
20487         * NumericUpDown: 
20488         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
20489         update inner values on set. Fixes #79966.
20490         - Override OnLostFocus to update value on NET 2. Fixes #79950.
20491         - Fix hexadecimal parsing.
20492         
20493         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
20494         parent. Fixes #79957
20495
20496 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20497
20498         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
20499         the actual size has to be queried, since if height /
20500         width is negative Win32 changes it to 0. 
20501         Fixes #79999 on Windows.
20502         
20503         * XplatUIX11.cs: Set height / width to 0 if negative
20504         in SetWindowPos. Fixes #79999 on Linux.
20505         
20506 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
20507
20508         * ThemeWin32Classic.cs: Fix text redenring when button is
20509         pressed.
20510
20511 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
20512
20513         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
20514         and later navigate by mouse. Fixes #79528.
20515
20516 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
20517
20518         * ToolBar.cs: Set default value for TabStop to false in
20519         constructor, it fixes remaining behavior of bug #79863.
20520
20521 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20522
20523         * MdiWindowManager.cs:
20524         * InternalWindowManager.cs:
20525         - Moved a few methods specific to Mdi from 
20526         InternalWindowManager to MdiWindowManager.
20527         Fixes #79996.
20528         
20529 2006-11-21  Chris Toshok  <toshok@ximian.com>
20530
20531         * XplatUIOSX.cs: stub out InvalidateNC.
20532
20533         * XplatUIWin32.cs: implement InvalidateNC using the call I found
20534         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
20535
20536         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
20537
20538         * XplatUIDriver.cs: add InvalidateNC abstract method.
20539
20540         * XplatUI.cs: add InvalidateNC.
20541
20542 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
20543
20544         * ToolBar.cs: Invalidate complete button area when pressed status 
20545         was changed.
20546         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
20547         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
20548         by 1 when button is pressed.
20549
20550 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20551
20552         * ToolButton.cs: Invalidate middle of DropDown button when
20553         ToolBar theres DropDownArrows.
20554         * ThemeWin32Classic.cs: Change position of DropDown arrow and
20555         fix DropDown drawing operations.
20556
20557 2006-11-20  Chris Toshok  <toshok@ximian.com>
20558
20559         * NativeWindow.cs: fix the formatting of functions ('{' on the
20560         following line), and enable the thread exception dialog.
20561
20562         * Application.cs: remove the duplicate exception catching from
20563         here.
20564
20565 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20566
20567         * Toolbar.cs: Triggers button click event when click on icon
20568         of dropdown ToolBarButton. Fixes #79912.
20569         
20570 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20571
20572         * Theme.cs:
20573         * ThemeWin32Classic.cs:
20574         - Added a property WindowBorderFont to enable themeing
20575           of mdi child windows' Text.
20576           
20577 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20578
20579         * InternalWindowManager.cs:
20580         * Form.cs:
20581         * MdiClient.cs:
20582         * MdiWindowManager.cs: 
20583         - If mdi child is maximized, set mdi parent's
20584           text to "Parent - [Child]". Fixes #79770.
20585         - If there is any maximized mdi child windows, only the active 
20586           window (and any new windows) is maximized, the rest are normal.
20587         - On a WindowState change only save mdi child's window bounds 
20588           if the old window state was normal. Fixes #79774.
20589         - The scroll bars are now calculated on hopefully all
20590           necessary events. Fixed #79771 / #79844->6 / #79906.
20591         - MdiClient.SizeScrollBars() now takes into account docked 
20592           controls in the parent when calculating available space.
20593         - InternalWindowManager now always repaints the entire title
20594           area. Fixes #79844->1/4/5.
20595         - Added RequestNCRecalc on mdi child windowstate changes.
20596           Fixes #79772.
20597
20598 2006-11-20  Mike Kestner  <mkestner@novell.com>
20599
20600         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
20601         in the MouseUp handler of the listbox and move the return handling
20602         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
20603
20604 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20605
20606         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
20607
20608 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20609
20610         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
20611           working in 1.2.x anymore. So, updated.
20612
20613 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
20614
20615         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
20616         NumberGroupSeparator of current culture instead of assuming en-US.
20617         Fixed bug #79967.
20618
20619 2006-11-17  Mike Kestner  <mkestner@novell.com>
20620
20621         * Control.cs: Add the concept of implicit bounds setting so that
20622         dock/undock round trips preserve explicitly set size/locations.
20623         Fixes #79313.
20624
20625 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20626
20627         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
20628           can't handle those filters. (Fixes bug #79961)
20629
20630 2006-11-17  Chris Toshok  <toshok@ximian.com>
20631
20632         [ fixes the exit/crashes associated with #79835.  it's clearly
20633         suboptimal though, we need to figure out a better way to solve
20634         this. ]
20635         
20636         * PrintPreviewControl.cs: deal with the new invalid printer
20637         exceptions.
20638
20639         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
20640         and return false (so CommonDialog.ShowDialog doesn't actually show
20641         the form.)
20642
20643         * PrintDialog.cs: enable/disable the Ok button depending on
20644         whether or not the printer is valid.
20645
20646         * CommonDialog.cs (ShowDialog): only actually show the form if
20647         RunDialog returns true.
20648
20649 2006-11-17  Jackson Harper  <jackson@ximian.com>
20650
20651         * TextControl.cs: When soft splitting a line, mark it as a soft
20652         split line. Also carry over the current line break to the next
20653         line.
20654
20655 2006-11-17  Chris Toshok  <toshok@ximian.com>
20656
20657         * XplatUIX11.cs: when scrolling a window with an invalid area, we
20658         only want to shift the part of the invalid area that overlaps the
20659         area we're scrolling.  we also don't want to clear the invalid
20660         area unless the invalid area was entirely contained within the
20661         scrolling area.
20662
20663 2006-11-16  Chris Toshok  <toshok@ximian.com>
20664
20665         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
20666         also make sure to free the memory returned by XGetWindowProperty
20667         in GetText().
20668
20669         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
20670
20671 2006-11-16  Chris Toshok  <toshok@ximian.com>
20672
20673         * XplatUI.cs: add a new super secret way to get at the totally
20674         unsupported X11 backend.
20675
20676 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
20677
20678         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
20679
20680 2006-11-16  Jackson Harper  <jackson@ximian.com>
20681
20682         * TreeView.cs: Allow more explicit setting of top node position
20683         for scrollbars. Slower algo, but more accurate.
20684         - CollapseAll should maintain the current top node.
20685         * TextBoxBase.cs: When positioning the caret, use the line, pos
20686         method, since the x, y method does not grab the correct tag, and
20687         the caret height never gets set correctly. (Maybe I should just do
20688         away with the caret having its own height, and always use the
20689         carets current tag for height).
20690
20691 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
20692
20693         [Fixes 79778, 79923]
20694
20695         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
20696         Parent to the FosterParent instead.
20697
20698 2006-11-16  Jackson Harper  <jackson@ximian.com>
20699
20700         * TreeView.cs: Need to recalc the topnode when we expand or
20701         collapse. The scrolling methods can't handle this on their own,
20702         since they use differences between the last scroll position, and
20703         those difference get completely messed up since we are expanding
20704         nodes.  This problem should probably be fixed in the scrolling
20705         methods, so they can figure out exactly where they are, but this
20706         will slow things down a little.
20707         * ThemeWin32Classic.cs: Special case for groupboxes with empty
20708         strings, makes nunit-gui look a lot nicer.
20709
20710 2006-11-16  Chris Toshok  <toshok@ximian.com>
20711
20712         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
20713         the broken multithreaded event handling we have in here.  File
20714         this entry under "Why we should move to the new X11 backend".
20715
20716         Any thread can make it into UpdateMessageQueue, which gets events
20717         from the X socket - some of which could belong to hwnds being
20718         managed by a different thread.  We can also have multiple threads
20719         in UpdateMessageQueue at the same time, with each one reading from
20720         the X socket.  This leads to many problems, with the following
20721         solutions:
20722
20723         We can't use hwnd.Queue.Enqueue anywhere in here and must use
20724         EnqueueLocked.
20725
20726         The MotionNotify compression we do can't work across threads
20727         (without locking the entire queue, perhaps) since we call
20728         hwnd.Queue.Peek, so we just punt and don't compress motion events
20729         unless the owning thread is the one which got the X event.
20730
20731         ConfigureNotify is another fun one, since it modifies the hwnd's
20732         bounds and then enqueues the event.  We add a lock to Hwnd which
20733         is held when setting configure_pending to true (and enqueuing the
20734         event).
20735
20736         There is a race wrt the wake socket.  we need to make sure that
20737         only 1 thread is waiting on that socket, or else a thread could
20738         sleep waiting for data that never comes.  It's difficult (but not
20739         impossible) to make happen, because it seems to require something
20740         like the following:
20741
20742             1. Thread 1 polls on wake_receive
20743         
20744             2. poll returns saying there's data to be read on
20745                wake_receive.
20746         
20747             3. Thread 2 polls on wake_receive and immediately returns
20748                saying there's data to be read.
20749
20750             4. Thread 2 reads the wakeup byte from wake_receive
20751
20752             5. Thread 1 attempts to read the wakeup byte from
20753                wake_receive.
20754
20755             6. Thread 2 exits (due to a form closing, perhaps).
20756
20757             7. Thread 1 blocks forever.
20758         
20759         Fun, eh?
20760
20761         Fixing the Expose handling isn't done yet, and the races inherent
20762         in that piece of code are responsible for the drawing mistakes you
20763         see when generating expose events in a MT app (like NPlot).  This
20764         one is the likely to be the hardest to bandaid, and it doesn't
20765         appear to cause anything but drawing problems.  The other issues
20766         caused apps to exit or hang.
20767
20768         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
20769         called from a different thread than the one that should be calling
20770         these functions.
20771
20772         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
20773
20774 2006-11-15  Chris Toshok  <toshok@ximian.com>
20775
20776         * Application.cs: null out the context's MainForm when we exit
20777         RunLoop.  Fixes a newly checked in unit test as well as the last
20778         ODE from bug #79933.
20779
20780 2006-11-15  Chris Toshok  <toshok@ximian.com>
20781
20782         * Form.cs (set_Owner): allow a null value so we can clear the
20783         form's owner.
20784         (Dispose): set all our owned_form's Owner properties to null, and
20785         clear the owned_forms collection.
20786         (WM_CLOSE): clean up this a little bit.. still not right though.
20787
20788         * ApplicationContext.cs: OnMainFormClosed should only call
20789         ExitThreadCore if the main form isn't recreating.  Fixes unit
20790         test.
20791
20792 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20793
20794         [Fixes 78346]
20795
20796         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
20797
20798 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20799
20800         [Fixes 79433]
20801
20802         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
20803         keep popup window types from stealing focus from the main form
20804         on Windows.
20805
20806         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
20807
20808         * MenuAPI.cs: Set above flag to true.
20809
20810 2006-11-15  Chris Toshok  <toshok@ximian.com>
20811
20812         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
20813         the button being released is not in wParam.
20814
20815 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20816
20817         * Form.cs: Add the released button to MouseEventArgs.Button
20818         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
20819         on Win32.
20820
20821 2006-11-15  Chris Toshok  <toshok@ximian.com>
20822
20823         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
20824         GetText().  untested because it's unused in our implementation.
20825         Control.Text always caches the text, even if
20826         ControlStyles.CacheText is not set.
20827
20828         fixes bug #79939.
20829
20830 2006-11-15  Chris Toshok  <toshok@ximian.com>
20831
20832         [ fixes #79933 ]
20833         
20834         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
20835         message.  no hiding, no disposing.
20836
20837         in the WM_CLOSE handler, hide the form if it's modal.
20838
20839 2006-11-15  Chris Toshok  <toshok@ximian.com>
20840
20841         * XplatUIX11.cs: use AddExpose instead of sending a message.
20842         fixes textbox border drawing.
20843
20844 2006-11-15  Chris Toshok  <toshok@ximian.com>
20845
20846         * PropertyGridView.cs: keep from crashing on mouse move/down when
20847         the property grid is empty.
20848
20849 2006-11-14  Jackson Harper  <jackson@ximian.com>
20850
20851         * TextControl.cs: Make PageUp and PageDown more like the MS
20852         versions.
20853         * TextBoxBase.cs: When we set the text property position the
20854         cursor at the beginning of the document.
20855
20856 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20857
20858         * Form.cs: if a mdi child's WindowState has changed
20859         before it's creation, it would display wrong control
20860         buttons.
20861         
20862 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
20863
20864         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
20865           (Fixes bug #79927)
20866
20867 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
20868
20869         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
20870         the window gets to paint its borders even if the window is
20871         getting smaller.
20872         
20873         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
20874         otherwise the old control buttons would still be painted 
20875         if the window gets bigger.
20876         
20877         * PaintEventArgs.cs: add an internal method so that the clip 
20878         rectangle can be changed.
20879         
20880 2006-11-13  Chris Toshok  <toshok@ximian.com>
20881
20882         [ fixes bug #79745 ]
20883         
20884         * NotifyIcon.cs: lots of cleanup.
20885
20886         * X11Structs.cs: add an enum for XEMBED messages.
20887
20888         * XplatUIX11.cs: reindent one of the giant switch statements, it
20889         was taking up an additional tab stop, and this file is already way
20890         too wide for my laptop's screen.
20891
20892         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
20893         we get it, resize the hwnd to the WMNormalHints max_width/height.
20894
20895 2006-11-13  Jackson Harper  <jackson@ximian.com>
20896
20897         * TextBoxBase.cs: Compute the value changes for the mouse wheel
20898         teh simple way.
20899
20900 2006-11-13  Chris Toshok  <toshok@ximian.com>
20901
20902         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
20903         #79898.  force a reference to the Region to stick around so the
20904         unmanaged object isn't collected (rendering our handle in the MSG
20905         stale).
20906
20907 2006-11-13  Chris Toshok  <toshok@ximian.com>
20908
20909         * XplatUIX11.cs: fix #79917 for window managers which support
20910
20911         using XStoreName on the raw utf8, and we need to convert to
20912         COMPOUND_TEXT if it's non-latin1.
20913
20914 2006-11-13  Chris Toshok  <toshok@ximian.com>
20915
20916         * Form.cs (set_DialogResult): we need to set closing to false if
20917         we're setting our result to None.  fixes bug #79908.
20918
20919 2006-11-13  Jackson Harper  <jackson@ximian.com>
20920
20921         * TextControl.cs: When formatting text, compute the adjusted tag
20922         lengths correctly, using FindTag for the end tag instead of trying
20923         to figure it out outselves.
20924         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
20925         the item, ItemHeight doesn't work, because trees with large
20926         imagelists use those for their height
20927         * TreeView.cs: ActualItemHeight factors in the image height
20928         - compute left edge of checkboxes correctly
20929         - when expanding/collapsing move the bottom down one pixel, so we
20930         aren't moving part of the node
20931
20932 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20933
20934         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
20935         stack in PaintEventStart so that it won't get disposed by the gc
20936         before reaching PaintEventEnd.
20937
20938 2006-11-13  Jackson Harper  <jackson@ximian.com>
20939
20940         * TextBoxBase.cs: Don't select the word if we are on a line with
20941         no text.
20942         - We don't need to position the caret on mouse up, since the mouse
20943         move handler should be doing this
20944         - When double clicking a blank line, the caret is advanced to the
20945         next line.
20946
20947 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
20948
20949         * TreeNodeCollection.cs: Avoid duplicating indexer code.
20950
20951 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
20952
20953         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
20954         Fixes part of bug #79910.
20955
20956 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
20957
20958         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
20959           (bug #79903). Some minor string updates to match ms.
20960
20961 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
20962
20963         * FileDialog.cs: Don't add an extension if the filename
20964           already ends with that extension.
20965
20966 2006-11-10  Jackson Harper  <jackson@ximian.com>
20967
20968         * TreeView.cs: Use the currently highlighted node for the
20969         BeforeSelect event.
20970         * TextBoxBase.cs: There is no need to expand selection on
20971         MouseMove.
20972         - CanUndo means 'is there any undo operations', not 'is undo
20973         allowed on this textcontrol. Fixed ClearUndo unit test.
20974
20975 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
20976
20977         * Button.cs: only perform click when button is Selectable (so as 
20978         not to activate default buttons when they're disabled)
20979         
20980         * Control.cs: Rewrite of the SelectNextControl and related 
20981         methods. HandleClick now selects next control if the current one
20982         is being disabled.
20983         
20984         * Form.cs: OnActivated selects next active control only if Load 
20985         has already occurred. If Load hasn't run, there's no point in 
20986         selecting here, Load might change the state of controls.
20987         
20988         * FocusTest.cs: Tests marked as working again for these fixes
20989
20990 2006-11-10  Chris Toshok  <toshok@ximian.com>
20991
20992         * XplatUIX11.cs: a couple of fixes.
20993
20994         - use XInternAtoms with almost all the atoms we need to register,
20995         instead of many, many calls to XInternAtom.  should help a bit on
20996         startup time, at the expense of making the code look a little
20997         worse.
20998
20999         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
21000         isn't reparented (which seems to be a clue that we're running fon
21001         compiz) and they have an Owner form.  This fixes the tool windows
21002         in paint.net when running under compiz.
21003
21004         - when setting the opacity of a window, support both the case
21005         where the window has been reparented and also when it hasn't been.
21006         Since compiz/beryl doesn't seem to reparent windows, and these are
21007         the only window managers which support translucency, I'm not sure
21008         why we need the hwnd.reparented case at all.. but leave it in.
21009         now we get translucent windows in paint.net under compiz/beryl.
21010
21011 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21012
21013         * FileDialog.cs: Always return the value for FilterIndex that
21014           was set. Internally convert it to values that make sense.
21015
21016 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21017         
21018         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
21019
21020 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21021
21022         * Toolbar.cs: Change default value of DropDownArrows to true, the 
21023         signature still using false to make it compatible with MS but the 
21024         initial value is true. Fixes #79855.
21025
21026 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21027
21028         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
21029           only available on Linux.
21030
21031 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
21032
21033         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
21034         reduce number of calls to redraw method during toolbar creation.
21035
21036 2006-11-09  Mike Kestner  <mkestner@novell.com>
21037
21038         * ListView.cs : raise SelectedIndexChanged when an item is selected
21039         programmatically via the Item.Selected property.  Gert's nice 
21040         ListViewSelectedIndexChanged test fixture now runs clean.
21041
21042 2006-11-09  Mike Kestner  <mkestner@novell.com>
21043
21044         * ListView.cs : raise SelectedIndexChanged when a selected item is
21045         removed from the item collection using Remove or RemoveAt.
21046
21047 2006-11-09  Mike Kestner  <mkestner@novell.com>
21048
21049         * ListView.cs : raise SelectedIndexChanged once per selected item
21050         for compat with MS.  Fixes #79849+.
21051
21052 2006-11-09  Chris Toshok  <toshok@ximian.com>
21053
21054         * TabControl.cs: initialize row_count to 0, and set it to 1 when
21055         we need to (if we have any tab pages).  Fixes unit test.
21056
21057 2006-11-09  Chris Toshok  <toshok@ximian.com>
21058
21059         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
21060         width is 0, not 3.  Fixes a unit test.
21061
21062 2006-11-09  Mike Kestner  <mkestner@novell.com>
21063
21064         * ListView.cs : use Implicit scrollbars so that focus isn't 
21065         stolen from the listview when they are clicked. Fixes #79850.
21066
21067 2006-11-09  Chris Toshok  <toshok@ximian.com>
21068
21069         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
21070         have a root item.  Fixes #79879.
21071
21072 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
21073
21074         * FileDialog.cs:
21075           - Fix ToString ()
21076           - An ArgumentException is now thrown if a wrong filter
21077             is applied (matches ms). The previous filter doesn't change
21078             anymore if an exception is thrown.
21079           - Changing the FileName property also affects FileNames
21080         * ColorDialog.cs: The length of the CustomColors array is always
21081           16. It doesn't matter if we use a smaller array or null to update
21082           or change the custom colors property.
21083         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
21084           for RootFolder if we get a undefined value.
21085
21086 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21087
21088         * StatusBarPanel.cs: 
21089         - Width is set to MinWidth if Width is smaller than
21090         MinWidth. Fixes #79842.
21091         - MinWidth now always overrides Width (MSDN says MinWidth
21092         is set to Width when AutoSize = None, but they do not 
21093         behave like that).
21094         - Style has now the the correct default value.
21095         
21096 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21097  
21098         * TrackBar.cs: 
21099         - The control is completely invalidated on 
21100         Got/LostFocus to draw the focus rectangle correctly.
21101         - When AutoSize then height is always 45 (width for 
21102         vertical controls).
21103         
21104         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
21105         on the mouse when moved and it doesn't move when grabbed
21106         until the mouse moves as well. Also fixed some wrong 
21107         calculations when clicking on the thumb (control thought
21108         click was outside of thumb and didn't grab it).
21109         Fixes some of the issues in #79718.
21110
21111 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
21112
21113         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
21114
21115 2006-11-08  Chris Toshok  <toshok@ximian.com>
21116
21117         * PropertyGridView.cs: only call ToggleValue if the item is not
21118         readonly.
21119
21120 2006-11-08  Jackson Harper  <jackson@ximian.com>
21121
21122         * TextBoxBase.cs: The RichTextBox and textbox have very different
21123         word selection methods.  Implement the textbox's simple word
21124         selection here, and let the RichTextBox override and provide it's
21125         own.
21126         - Don't do extra selection on mouseup
21127         * RichTextBox.cs: Use the documents word selection algorithm, I
21128         think ideally, this function will be pulled into the
21129         RichTextBox.cs code someday.
21130
21131 2006-11-08  Chris Toshok  <toshok@ximian.com>
21132
21133         * RootGridEntry.cs: new class to represent GridItemType.Root.
21134
21135         * CategoryGridEntry.cs: reformat, and add boilerplate.
21136         
21137         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
21138         returns the UI parent anyway, and we need special handling to
21139         implement the GetTarget method in the face of it.  Also, implement
21140         Select().
21141
21142         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
21143         a root grid item, and use that instead of PropertyGrid.grid_items.
21144         Also, make use of TypeConverters (and add limitted support for
21145         ICustomTypeDescriptors) when initially populating the grid.
21146         Arrays now show up more or less properly.
21147
21148 2006-11-08  Chris Toshok  <toshok@ximian.com>
21149
21150         * Application.cs: set the modal dialog to non modal after we close
21151         it.  Fixes bug #79866.
21152
21153 2006-11-08  Jackson Harper  <jackson@ximian.com>
21154
21155         * TextControl.cs: When combining lines carry over the line end
21156         style from the end line.
21157         - Invalidate the selected area when setting it, if it is visible.
21158         * TextBoxBase.cs: Only rich text box can do full line selects.
21159         - Make sure to set the cursor position when there is a click,
21160         otherwise two clicks in separate areas could cause a large chunk
21161         to be selected.
21162
21163 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21164
21165         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
21166         Fixes #79863.
21167
21168 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21169
21170         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
21171         time. Remove tooltips when ToolButton click events.  Fixes #79856.
21172
21173 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21174
21175         * MenuAPI.cs: Ignore right click for menu actions and fixes
21176         menu border when clicked.  Fixes #79846.
21177
21178 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21179
21180         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
21181         MouseState after create wParam for message, this fixes mouse button 
21182         equal none in mouse up events.
21183         
21184 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
21185
21186         * Control.cs : Focus() now calls Select to set the Container's
21187         Active Control and to give it focus. To avoid infinite recursion
21188         (because ActiveControl also calls Focus at one point), a check 
21189         is made in Focus with the help of a new internal variable
21190         is_focusing.
21191
21192 2006-11-07  Mike Kestner  <mkestner@novell.com>
21193
21194         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
21195         if there's a selection.  Fixes #79849.
21196
21197 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
21198
21199         * PropertyGrid.cs: Avoid fixed height of help description label.
21200         Fixes part of bug #79829.
21201
21202 2006-11-07  Chris Toshok  <toshok@ximian.com>
21203
21204         * XplatUIX11.cs: fix #79790 again, by using the
21205         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
21206
21207 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21208
21209         * ToolBar.cs: Fix left click checking.
21210
21211 2006-11-07  Chris Toshok  <toshok@ximian.com>
21212
21213         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
21214
21215 2006-11-07  Chris Toshok  <toshok@ximian.com>
21216
21217         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
21218         PropertyManager unit tests.
21219
21220         * PropertyManager.cs: make property_name internal.
21221
21222 2006-11-07  Chris Toshok  <toshok@ximian.com>
21223
21224         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
21225         pass a unit test.  Also, don't set image_index to anything in
21226         response to setting the ImageList property.
21227
21228 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21229
21230         * ToolBar.cs: Ignore click events when mouse button is not a
21231         left button, only accepts other button for dropdown menus.  
21232         Fixes #79854.
21233
21234 2006-11-07  Chris Toshok  <toshok@ximian.com>
21235
21236         * DataGrid.cs: make the back and parent row buttons a little less
21237         ugly.
21238
21239 2006-11-07  Jackson Harper  <jackson@ximian.com>
21240
21241         * TextBoxBase.cs: When converting to Text don't put line breaks in
21242         for soft line breaks.
21243         * TextControl.cs: There is an initial "fake" line in the document,
21244         this is now a soft break line, so that an extra line feed doesn't
21245         get added to the end of documents.
21246
21247 2006-11-07  Chris Toshok  <toshok@ximian.com>
21248
21249         [ fix bug #79778 ]
21250         
21251         * CurrencyManager.cs: if the list is readonly, don't bother
21252         checking if IBindingList.AllowNew is true.
21253
21254         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
21255         for non-DataRowView datasources..  or rather, make it not crash.
21256         (DataGridPaintRelationRow): make sure we limit the row painting to
21257         the area not covered by the row header, and make our cell width at
21258         least large enough to cover the relation area.  This allows grids
21259         that have relations but no rows to render correctly.
21260         (DataGridPaintRowContents): same type of changes here.
21261         (SetDataSource): move back to always calling
21262         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
21263         navigating back through relations.
21264         (HitTest): handle the case where we have no cells but have
21265         relations.  Right now we generate a hit in cell 0 of whatever the
21266         row is, not sure if this is strictly correct, but it works for our
21267         purposes.
21268         
21269         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
21270         bother doing anything.
21271
21272 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
21273
21274         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
21275         early version of StatusStrip.  Not responsible for eaten
21276         application or firstborn children.
21277
21278 2006-11-06  Chris Toshok  <toshok@ximian.com>
21279
21280         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
21281         call GetTabRect with a -1 index.  Fixes #79847.
21282
21283 2006-11-06  Jackson Harper  <jackson@ximian.com>
21284
21285         * TreeNodeCollection.cs: Update scrollbars after clearing.
21286
21287 2006-11-06  Chris Toshok  <toshok@ximian.com>
21288
21289         * NumericUpDown.cs: fix the ToString method for some unit test
21290         love.
21291
21292 2006-11-06  Chris Toshok  <toshok@ximian.com>
21293
21294         * PropertyGrid.cs:
21295         - set the initial SelectedGridItem if we can.
21296
21297         - Exclude non-mergable properties only if we're merging > 1
21298         object.  Merging 1 object isn't really merging, obviously.
21299
21300         - Handle PropertySort.NoSort just like Alphabetical, which is
21301         wrong of course, but at least gets things on the screen.
21302         
21303         * PropertyGridView.cs:
21304         - Add method "FindFirstItem" which finds the first property grid
21305         item, so we can select it by default.
21306
21307         - make use of GridEntry.CanResetValue.
21308
21309         - Don't call RedrawBelowItemOnExpansion here anymore, the
21310         individual GridEntry's will do that.
21311
21312         - Remove the ITypeDescriptorContextImpl internal class.
21313         
21314         * GridEntry.cs:
21315         - this class needs to implement ITypeDescriptorContext, as it's
21316         what MS's PropertyDescriptorGridEntry does, which means we can
21317         remove the ITypeDescriptorContextImpl internal class from
21318         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
21319
21320         - keep a reference to our PropertyGridView, and move the call to
21321         RedrawBelowItemOnExpansion here from PGV.  This means
21322         programmaticly setting Expanded actually does something visible.
21323
21324         - add a CanResetValue() function which takes into account our
21325         possibly multiple "selected_objects" in the merged case.  Shifting
21326         PropertyGridView to use this method fixes another unreported
21327         crasher found running the test for #79829.
21328
21329         - when Top or Bounds is updated, make sure the PropertyGridTextBox
21330         is updated to reflect this.
21331
21332         * CategoryGridEntry.cs: the ctor takes the PGV now.
21333         
21334 2006-11-06  Jackson Harper  <jackson@ximian.com>
21335
21336         * TextControl.cs: These are 1 based.
21337         * TextBoxBase.cs: When setting the selected text, don't change the
21338         selected text tags, this is done by ReplaceText, just position the
21339         cursor at the end of the new text.
21340
21341 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
21342
21343         * ListView.cs: Allow label edit only when, when LabelEdit is
21344           set to true.
21345
21346 2006-11-06  Jackson Harper  <jackson@ximian.com>
21347
21348         * TextControl.cs: If a suitable wrapping position isn't found,
21349         just wrap right in the middle of a word.
21350
21351 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
21352
21353         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
21354           bug #79820.
21355
21356 2006-11-06  Jackson Harper  <jackson@ximian.com>
21357
21358         * TreeView.cs: Can't use the VisibleCount property when setting
21359         scrollbar heights, because this doesn't take into account whether
21360         or not the horz scrollbar just came visible.
21361
21362 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
21363
21364         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
21365         activated.  Fixes #79369, #79832.
21366
21367 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
21368
21369         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
21370           had to remove support for links that point to a directory. FileInfo
21371           returns no usefull information (means, the directory they point to)
21372           for such links. Replaced some empty string ("") with String.Empty.
21373
21374 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
21375
21376         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
21377         NullReferenceException when attempting to remove node that is not in
21378         collection. Throw NullReferenceException when null is passed to 
21379         Remove. Allow first element of the collection to be removed. Fixes
21380         bug #79831.  In GetEnumerator ().Current return null if positioned 
21381         before the first element of the collection. In GetEnumerator ().Reset,
21382         position before first element of the collection.
21383
21384 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
21385
21386         * PropertyGrid.cs: To match MS, remove default title and description
21387         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
21388         buttons.
21389
21390 2006-11-04  Chris Toshok  <toshok@ximian.com>
21391
21392         * Theme.cs: add a Clamp method, just for kicks.
21393
21394         * ThemeWin32Classic.cs: clamp all color components to [0..255].
21395
21396 2006-11-04  Chris Toshok  <toshok@ximian.com>
21397
21398         * Form.cs: if the form isn't visible, Close() does nothing.
21399
21400 2006-11-03  Chris Toshok  <toshok@ximian.com>
21401
21402         * Form.cs (Close): if the form is modal, don't Dispose of it, only
21403         Hide it.
21404         (WndProc): don't Dispose after handling the WM_CLOSE message.
21405
21406         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
21407         them as such, instead of using casts from Control to Form.  Also,
21408         don't Dispose of the modal dialog when we fall out of the loop -
21409         Close() it instead.
21410
21411         fixes bug #79813.
21412
21413 2006-11-03  Chris Toshok  <toshok@ximian.com>
21414
21415         * Control.cs (Dispose): only go through the dispose thing if we're
21416         @disposing, and we haven't already been disposed.  Fixes bug
21417         #79814.
21418
21419         * Form.cs: no reason to call "base.Dispose()" here instead of
21420         "Dispose()".
21421
21422 2006-11-03  Mike Kestner  <mkestner@novell.com>
21423
21424         * ComboBox.cs : use ToString instead of casts in AddItem for
21425         sorting functionality.  Fixes #79812.
21426
21427 2006-11-03  Chris Toshok  <toshok@ximian.com>
21428
21429         * Application.cs: pave the way for actually using the thread
21430         exception dialog.  it's ifdefed out at the moment.
21431
21432 2006-11-03  Chris Toshok  <toshok@ximian.com>
21433
21434         * ThreadExceptionDialog.cs: until we get a better layout, actually
21435         hide the details textbox and label when we shouldn't see them.
21436
21437 2006-11-03  Jackson Harper  <jackson@ximian.com>
21438
21439         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
21440         multiline textboxes anymore.  This method also determines the
21441         width/height of a textboxes canvas area.
21442         - Sorta a revert of the last patch.  For multiline just position
21443         the controls, then bail.  This way the scrollbar width won't be
21444         altered.
21445
21446 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
21447
21448         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
21449         it dont need.  Fixes #79537.
21450
21451 2006-11-02  Jackson Harper  <jackson@ximian.com>
21452
21453         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
21454         send the status after firing the DndOver event.
21455
21456 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21457
21458         * TrackBar.cs: Now orientation only switches height / width if
21459         the control's handle is created (Win32 does it like this). Also 
21460         fixed a typo in ToString() for a test to pass, changed the 
21461         exception thrown in set_LargeChange and set_SmallChange to 
21462         match Win32 behaviour, and added TrackBar tests to the unit 
21463         tests.
21464
21465 2006-11-02  Chris Toshok  <toshok@ximian.com>
21466
21467         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
21468         not _NET_WM_STATE_NO_TASKBAR.
21469
21470 2006-11-02  Jackson Harper  <jackson@ximian.com>
21471
21472         * TextControl.cs: Increment count by one, since in the update view
21473         count - 1 is used.
21474
21475 2006-11-02  Jackson Harper  <jackson@ximian.com>
21476
21477         * TextBoxBase.cs: Use client rectangle not bounds for checking if
21478         the mouse is in the client rectangle (duh).
21479
21480 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21481         
21482         * TrackBar.cs: Fixed trackbar jumping around when clicking
21483         on it - the trackbar was not detecting correctly at which
21484         side of the thumb the click was done. (fixes #79718)
21485
21486 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
21487
21488         * ListBox.cs: scroll visible area when change SelectedIndex to
21489         a non visible area.  Fixes #79481.
21490
21491 2006-11-01  Jackson Harper  <jackson@ximian.com>
21492
21493         * TextControl.cs: When replacing the selection move the selection
21494         start/end/anchor to the end of the new text.
21495
21496 2006-11-01  Jackson Harper  <jackson@ximian.com>
21497
21498         * XplatUIWin32.cs: When setting the parent change the controls
21499         visibility to it's visibility flag, not to it's old parents
21500         visibility (.Visible walks the parent chain).
21501
21502 2006-11-01  Chris Toshok  <toshok@ximian.com>
21503
21504         * XplatUIX11.cs: revert the #79790 fix, as the simple.
21505         XSetTransientForHint fix breaks paint .net's tool windows.  more
21506         work needed for that one.
21507
21508 2006-11-01  Chris Toshok  <toshok@ximian.com>
21509
21510         * ScrollBar.cs: throw ArgumentException instead of Exception in
21511         LargeChange/SmallChange setters.  fixes unit tests.
21512
21513 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
21514
21515         * ContainerControl.cs: reverted rev.67183 (which was itself
21516         a reversion of rev.66853... eh).
21517         
21518         * Control.cs: Fixes Reflector hang by changing Focus() call
21519         to what it was before rev.66643 (calling Select() here sets 
21520         ActiveControl, which in some situations calls back Focus and 
21521         eventually does a stack overflow). Temp fix.    
21522         Changes to GetNextControl() to not look for children to select when
21523         parent cannot be selectable (so it looks for siblings instead)  
21524         
21525 2006-10-31  Mike Kestner  <mkestner@novell.com>
21526
21527         * CheckedListBox.cs : off by one error in returned index from
21528         ObjectCollection.Add.  Fixes #79758.
21529
21530 2006-10-31  Chris Toshok  <toshok@ximian.com>
21531
21532         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
21533         calls for the textbox/spinner, to keep from recursing to the point
21534         where we crash.  Fixes #79760.
21535
21536 2006-10-31  Chris Toshok  <toshok@ximian.com>
21537
21538         * ListControl.cs (set_SelectedValue): don't throw exceptions on
21539         null/"" value, just return.  matches ms's behavior and fixes some
21540         failing tests.
21541
21542 2006-10-31  Chris Toshok  <toshok@ximian.com>
21543
21544         * Control.cs (set_Capture): make a logic a little easier to
21545         follow.
21546
21547         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
21548         if it's being destroyed.  A necessary fix surely, but a bandaid
21549         also, to fix the stuck capture problem in bug #78413.
21550
21551 2006-10-31  Chris Toshok  <toshok@ximian.com>
21552
21553         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
21554         convention of clearing hwnd.ClientRect when we set the
21555         width/height (so it'll be recalculated by Hwnd).
21556
21557 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
21558
21559         * ContainerControl.cs: reversed Contains check from
21560         ActiveControl due to hanging problems. This fix
21561         partly regresses #79667 (button does not have
21562         initial focus), so this might be a symptom for 
21563         a larger parenting problem (set_ActiveControl
21564         is being called but the child control does
21565         not have the parent set yet?)   
21566         
21567 2006-10-31  Mike Kestner  <mkestner@novell.com>
21568
21569         * MenuAPI.cs : fix keynav when menu is click activated.
21570
21571 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
21572
21573         * ToolStrip*: Version 0.2.
21574
21575         * MenuStrip.cs: Version 0.1.
21576
21577         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
21578
21579 2006-10-30  Chris Toshok  <toshok@ximian.com>
21580
21581         [ fixes the oversized notify icon issue in bug #79745 ]
21582         
21583         * NotifyIcon.cs: scale the icon down to the size we're given by
21584         the XplatUI layer (this would be faster if we did it once instead
21585         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
21586         since it's never invoked.
21587
21588         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
21589         pixels high by default, so let's hardcode our systray icon to that
21590         size.  The SYSTEM_TRAY protocol should really have a way for
21591         client apps to query for the correct icon size.. but oh well.  A
21592         couple of patches to deal with the screwy client_window ==
21593         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
21594         instance, and also make sure we don't XSelectInput twice).
21595
21596 2006-10-30  Chris Toshok  <toshok@ximian.com>
21597
21598         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
21599         recreating forms.  Control recreation is the bane of my existence.
21600         Fix it in a way that keeps everyone happy.
21601
21602 2006-10-30  Chris Toshok  <toshok@ximian.com>
21603
21604         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
21605         just non-CHILD ones.  otherwise sometimes scrollbars end up with
21606         client_windows not being resized to the proper size (ReportBuilder
21607         shows this extremely well).
21608
21609 2006-10-30  Chris Toshok  <toshok@ximian.com>
21610
21611         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
21612         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
21613         showing up in the gnome taskbar.  Fixes bug #79790.
21614
21615 2006-10-30  Chris Toshok  <toshok@ximian.com>
21616
21617         * ApplicationContext.cs: guard against a NRE.
21618
21619         * Application.cs: null out the old MainForm for the context, so we
21620         don't try to use it again once it's disposed.  Fixes bug #79783.
21621
21622 2006-10-30  Chris Toshok  <toshok@ximian.com>
21623
21624         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
21625         BindingContext, set the data source directly, otherwise do the
21626         lazy approach - the actual ListManager will be created when we get
21627         a BindingContext. Fixes bug #79700.
21628
21629 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21630
21631         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
21632           XplatUIX11.cs: Remove old 2 parameter SetVisible.
21633
21634         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
21635
21636 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21637
21638         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
21639         of SetVisible that allows a window to be shown, but not activated.
21640         This is needed on Windows for MenuStrip, and can probably be used
21641         with MainMenu and ComboBox to fix the focus stealing issues on
21642         Windows.
21643
21644         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
21645
21646 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
21647
21648         * PictureBox.cs: Fix the output of the ToString method.
21649
21650 2006-10-29  Chris Toshok  <toshok@ximian.com>
21651
21652         * Control.cs (get_TopLevelControl): fix bug #79781.
21653
21654 2006-10-29  Chris Toshok  <toshok@ximian.com>
21655
21656         * ListControl.cs (set_DataSource): throw Exception here, not
21657         ArgumentException, to match MS behavior.
21658
21659 2006-10-29  Chris Toshok  <toshok@ximian.com>
21660
21661         * Form.cs: remove the try-catch's around calls to GetWindowState.
21662         We can just check the return value.
21663
21664         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
21665         Instead return -1.
21666
21667         * XplatUI.cs: Add note about additional return value for
21668         GetWindowState.
21669
21670 2006-10-29  Chris Toshok  <toshok@ximian.com>
21671
21672         * Control.cs (CreateHandle): when we create our handle, we also
21673         create the handles of our child controls.  Fixes one of the
21674         Control unit tests (CH11).
21675
21676 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21677
21678         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
21679
21680 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21681
21682         * ThemeClearlooks.cs: A little speedup.
21683
21684 2006-10-27  Chris Toshok  <toshok@ximian.com>
21685
21686         * Control.cs: implement Control.FromChildHandle in a way that
21687         matches the docs (and fixes the failed test.)
21688
21689 2006-10-27  Chris Toshok  <toshok@ximian.com>
21690
21691         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
21692         comments).
21693
21694         * DataGrid.cs: implement ResetForeColor such that the tests
21695         succeed.
21696         
21697 2006-10-27  Chris Toshok  <toshok@ximian.com>
21698
21699         * ToolBarButton.cs: setting text/tooltiptext to null results in it
21700         being set to "".  Fixes bug #79759.
21701
21702 2006-10-27  Jackson Harper  <jackson@ximian.com>
21703
21704         * TextControl.cs: We need to clear the entire selection area when
21705         setting the start, otherwise multiline selections are still
21706         visible.
21707
21708 2006-10-26  Chris Toshok  <toshok@ximian.com>
21709
21710         * PropertyGridView.cs: 
21711
21712         - ifdef all the code specific to the double
21713         buffer case, and provide some alternatives in the non-doublebuffer
21714         code, which makes heavy use of XplatUI.ScrollWindow to move things
21715         around without having to invalidate (and cause flicker).  There
21716         are still some drawing problems in the non-doublebuffered case, so
21717         DOUBLEBUFFER is defined by default.
21718
21719         - Fix the way dropdowns are handled.  now we explicitly watch for
21720         the events which might cause the dropdown to close, and break out
21721         of the nested event loop there.  This gets rid of all Capture
21722         code, at the expense of the Msg special casing.  Seems to work,
21723         though, and fixes bug #79743.
21724
21725 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
21726         * Control.cs: SetIsRecreating now recreates implicitly added
21727         child controls as well. Finally fixes #79629. The flag passed to 
21728         SetIsRecreating has also been removed since it wasn't used.
21729         
21730 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21731
21732         * PageSetupDialog.cs: Clean some code, fix some bits, 
21733         add some checks, and add a printer sub-dialog.
21734
21735 2006-10-26  Chris Toshok  <toshok@ximian.com>
21736
21737         * PropertyGrid.cs: make set_SelectedObject call
21738         set_SelectedObjects, and move the duplicate logic to the
21739         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
21740
21741         * PropertyGridView.cs: hide the textbox when we get a
21742         SelectedObjectsChanged event.
21743
21744         Fixes bug #79748.
21745
21746 2006-10-26  Chris Toshok  <toshok@ximian.com>
21747
21748         * PropertyGridView.cs: deal with the type converter not supporting
21749         GetStandardValues() or GetStandardValues() returning null, which
21750         is does in the default case.  Fixes #79742.
21751
21752 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
21753
21754         * CheckedListBox.cs: nunit no longer crashes when selecting 
21755         Project/Edit menu option
21756         
21757 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
21758
21759         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
21760         is no menu selected. fixes #79739
21761
21762 2006-10-25  Chris Toshok  <toshok@ximian.com>
21763
21764         * PropertyGridView.cs: factor out the splitter invalidation code
21765         into the SplitterPercent setter, and for kicks implement the
21766         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
21767         amount in either direction.
21768
21769 2006-10-25  Chris Toshok  <toshok@ximian.com>
21770
21771         * PropertyGridView.cs: do some cleanup of the brush used to draw
21772         text - read only fields should be grayed out.  not sure how to do
21773         this with the textbox, though.  but the textbox's should also be
21774         readonly now at least.  Also, hide/show the textbox when resizing
21775         the control.
21776         
21777         * CursorConverter.cs: use System.Reflection when getting the
21778         properties of Cursors, as TypeDescriptor.GetProperties isn't
21779         returning static properties.
21780
21781 2006-10-25  Chris Toshok  <toshok@ximian.com>
21782
21783         * PropertyGridView.cs: factor out the up/down handling, and reuse
21784         it for page up/down.  also add End/Home support.
21785
21786 2006-10-25  Chris Toshok  <toshok@ximian.com>
21787
21788         * PropertyGridView.cs:
21789
21790         - ensure the selected grid item is visible in the scrolled area,
21791         fixes bug #79572.
21792
21793         - fix Keys.Down handling when you're on the last item in the
21794         propertygrid.
21795
21796 2006-10-25  Mike Kestner  <mkestner@novell.com>
21797
21798         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
21799         clicks too.  Fixes #79725.
21800
21801 2006-10-24  Chris Toshok  <toshok@ximian.com>
21802
21803         * PropertyGrid.cs: use property.Converter instead of
21804         TypeDescriptor.GetConverter(property.PropertyType), so we catch
21805         TypeConverters declared on the property as well as on the
21806         PropertyType.  Fixes bug #79678.
21807
21808 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
21809
21810         * MimeIcon.cs, Mime.cs:
21811           Fallback to the default platform handler if no shared mime info
21812           stuff exists (fixes #79693).
21813
21814 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21815         * ContainerControl.cs: Incorrect contains check in ActiveControl 
21816         from previous fix (duh).
21817
21818 2006-10-20  Chris Toshok  <toshok@ximian.com>
21819
21820         * PropertyGridView.cs: the dropdown should be MIN(number of items
21821         in list, 15).  Fixes #79551.
21822
21823 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21824         Fixes #79384, #79394, #79652, #79667
21825         * Application.cs: 
21826         
21827         - Modal windows are now destroyed in the proper order for windows
21828         
21829         * ContainerControl.cs:
21830         
21831         - ActiveControl setter has more conditions on when to return:
21832                 - if we're reselecting the active control, but it actually
21833                 didn't have focus (window hidden or some such), it runs
21834                 - if the active control being selected doesn't actually 
21835                 exist in the container, it returns
21836         
21837         * Form.cs
21838         
21839         - The ShowDialog now gets the current form as the owner when
21840         invoking without parameters, and correctly activates the owner 
21841         when returning
21842         
21843         * MessageBox.cs
21844         
21845         - MessageBox now catches the Escape key to exit
21846
21847 2006-10-20  Chris Toshok  <toshok@ximian.com>
21848
21849         * PropertyGridView.cs: fix a number of issues (bug #78565, and
21850         most of bug #79676):
21851
21852         - you can navigate around the property grid with the arrow keys.
21853
21854         - the dropdown is sized properly when the pg has a vertical
21855         scrollbar.
21856
21857         - fix the indentation for subentries, and properly select the
21858         entire label rect.
21859
21860         - fix the gray bar's drawing (only draw it to the last element,
21861         not for the height of the control.  Also make sure we draw that
21862         last horizontal grid line.
21863
21864         - use the same mechanism the datagrid uses wrt the editing textbox
21865         when scrolling/resizing/etc.  Namely, we hide it first, do the
21866         operation, then show it again (if it's still visible).
21867         
21868         - aggressively remove a lot of unnecessary refreshes (and also
21869         calls to Invalidate(). call more limited variants, and only redraw
21870         what we need.)
21871         
21872         * PropertyGrid.cs:
21873
21874         - when we're populating the merged collection, fill in the UI
21875         parent with either the passed in item, or the category item we
21876         create.
21877
21878         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
21879
21880         * GridItem.cs: drop some fully qualified names.
21881         
21882         * GridEntry.cs: add a "UIParent", which is basically the parent
21883         treenode.
21884
21885         * GridItemCollection.cs: add an IndexOf method.
21886
21887 2006-10-20  Mike Kestner  <mkestner@novell.com>
21888
21889         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
21890         a working win32 NC invalidation mechanism, we can't invalidate
21891         menus.  [Fixes #79705]
21892
21893 2006-10-20  Mike Kestner  <mkestner@novell.com>
21894
21895         * ListBox.cs : don't update the VScrollbar if the list is empty,
21896         just hide it.  [Fixes #79692]
21897
21898 2006-10-20  Jackson Harper  <jackson@ximian.com>
21899
21900         * RichTextBox.cs: Handle some special chars better, and don't skip
21901         the entire group when we encounter a special char that we don't
21902         handle correctly.
21903
21904 2006-10-18  Chris Toshok  <toshok@ximian.com>
21905
21906         * PropertyGridView.cs: address a number of issues from bug #79676,
21907         mostly of the cosmetic variety.
21908
21909         - The highlight rectangle for indented items not extends all the
21910         way to the left.
21911
21912         - Indented items aren't indented so much.
21913
21914         - the dropdown is properly sized width-wise if the pg has a
21915         vertical scrollbar.
21916
21917 2006-10-18  Chris Toshok  <toshok@ximian.com>
21918
21919         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
21920         systray stuff is rather convoluted to begin with.
21921
21922         systray icons are a single window for some reason (that I haven't
21923         figured out yet), and for them, client_window == whole_window.
21924         Given the way the tests are structured elsewhere to determine
21925         which paints are pending (client vs. nc), that situation will
21926         always yield PAINT, not NCPAINT.  So, if we have a pending
21927         nc_expose and no pending expose, remove the hwnd from the paint
21928         queue, and also set nc_expose_pending to false, to keep us from
21929         blocking further expose's adding the hwnd to the paint queue.
21930
21931         phew.  like i said, a rather convoluted change.  Fixes the
21932         notifyicon repaint issues in bug #79645.
21933
21934 2006-10-18  Chris Toshok  <toshok@ximian.com>
21935
21936         * Form.cs: when getting the backcolor of the form, don't get
21937         base.BackColor, as this allows parents to influence the background
21938         color.  This breaks mdi forms.  Instead, if the background_color
21939         is empty, return the default.
21940
21941 2006-10-18  Chris Toshok  <toshok@ximian.com>
21942
21943         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
21944         to being private instead of internal static.
21945
21946         * Control.cs: remove all the stupid ParentWaitingOnRecreation
21947         crap, it wasn't working for more deeply nested controls anyway,
21948         and we already have the is_recreating flag - use that instead.
21949         Before calling DestroyHandle in RecreateHandle, recurse through
21950         the control tree setting it to true.  this returns the recreate
21951         code to much of its original simplicity, while now guaranteeing we
21952         actually recreate everything we're supposed to.  This change gets
21953         fyireporting actually showing mdi children.
21954
21955 2006-10-17  Chris Toshok  <toshok@ximian.com>
21956
21957         * Form.cs: remove some debug spew, and collapse some duplicate
21958         code at the end of SetClientSizeCore.
21959
21960         * XplatUIX11.cs: 
21961         - add some more debug spew here too wrt Destroy handling.
21962         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
21963         in Control's handling of WM_DESTROY.
21964         - Remove the handling of zombie window DestroyNotifies from the
21965         event loop - we don't need it.  Now the only DestroyNotifies we
21966         actually handle are ones generated by X.
21967         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
21968         match gtk's (functioning) handling of this. This keep metacity
21969         from leaving droppings in the form of wm borders with no window
21970         contents all over the place.
21971
21972         * Control.cs:
21973         - add a bunch of debug spew wrt control recreation.
21974         - fix a bug where we weren't tracking Visible properly on
21975         recreated hwnds.
21976         - fixed the WM_PAINT double buffer handling to support re-entrant
21977         calls (yes, i know it's gross, but it's happening to us).
21978
21979 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
21980         * ThemeWin32Classic.cs: changed drawing of selected days
21981         to make them look better.
21982
21983 2006-10-16  Chris Toshok  <toshok@ximian.com>
21984
21985         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
21986         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
21987
21988         * XplatUIX11.cs: move away from using hwnd.client_dc and
21989         hwnd.non_client_dc and on to a stack of dc's (and in window's
21990         case, PAINTSTRUCT's), so we can deal with nested Paint calls
21991         without puking or not disposing of Graphics objects.
21992
21993         * XplatUIOSX.cs: same.
21994
21995         * XplatUIWin32.cs: same.
21996
21997 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
21998
21999         * FileDialog.cs: Don't call on_directory_changed inside
22000           OnSelectedIndexChanged (it changes the SelectedIndex too).
22001           Instead move it to OnSelectionChangeCommitted.
22002
22003 2006-10-13  Chris Toshok  <toshok@ximian.com>
22004
22005         * XplatUIX11.cs: more Destroy work.  the current code does the
22006         following things, in order:
22007
22008         1. Enumerates all handles of all controls at or below the one
22009         being destroyed, in pre-order.  As it is doing this, it marks the
22010         handles as zombie and clears all references to them.
22011         
22012         2. calls XDestroyWindow on the window passed in.
22013
22014         3. SendMessage's WM_DESTROY to all he handles in the accumulated
22015         list.
22016
22017 2006-10-13  Chris Toshok  <toshok@ximian.com>
22018
22019         * XplatUIX11.cs: set hwnd.zombie to true before calling
22020         SendMessage (WM_DESTROY).  this keeps us from marking the new
22021         window a zombie, and also keeps us from calling sendmessage at
22022         all.
22023
22024 2006-10-13  Jackson Harper  <jackson@ximian.com>
22025
22026         * TextControl.cs: Do not show the caret and selection at the same
22027         time.  Reduces ugliness by 35%.
22028
22029 2006-10-13  Chris Toshok  <toshok@ximian.com>
22030
22031         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
22032         zombie after we do the recursive call, so we actually do call
22033         SendMessage on the children controls.
22034         (GetMessage): if we find a pending paint event for a zombie hwnd,
22035         remove the hwnd from the paint queue, or else it will always be
22036         there (and we'll effectively loop infinitely)
22037
22038 2006-10-13  Mike Kestner  <mkestner@novell.com>
22039
22040         * MenuItem.cs : add Selected format under keynav too.
22041         Fixes #79528.
22042
22043 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
22044
22045         * PropertyGrid.cs: Fixed some NRE's and small difference between our
22046         implementation and that of MS.
22047
22048 2006-10-13  Chris Toshok  <toshok@ximian.com>
22049
22050         * Control.cs (OnInvalidated) only futz with the invalid_region if
22051         the control is double buffered.  this fixes the apparent hang in
22052         the ListView unit tests.  Someone needs to make the
22053         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
22054
22055 2006-10-13  Chris Toshok  <toshok@ximian.com>
22056
22057         * PropertyGridView.cs:
22058
22059         - do a little refactoring so that only one place calls
22060         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
22061         else call that.  Also make it Refresh, since there are redraw bugs
22062         otherwise (we should take a look at that...)
22063
22064         - do a little more refactoring work to share the body of code
22065         involved with the drop down.  it was duplicated in the code
22066         dealing with the listbox handling and in the code dealing with the
22067         UITypeEditors.
22068
22069         - add a Capture to the dropdown form's control once it's
22070         displayed, and add a MouseDown handler that checks to make sure
22071         the position is inside the control.  If it's not, close the
22072         dropdown.  This fixes #78190.
22073
22074         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
22075         if the value is different than the initial value.
22076         
22077 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
22078
22079         * Control.cs: see #78650
22080         - Fixed GetNextControl for several cases:
22081                 - Changed FindFlatForward to return 
22082                 correct sibling control when more than one
22083                 control has same TabIndex as the currently 
22084                 focused one.
22085                 - Changed FindFlatBackward to loop children
22086                 from last to first and apply same logic as in
22087                 FindFlatForward
22088                 - Changed FindControlForward to search for
22089                 children when control is not a container
22090                 but has children, or search for siblings if
22091                 control is a container...
22092                 - Changed FindControlBackward   to continue
22093                 searching for child controls when hitting 
22094                 Panel-like parents
22095                 
22096         - Fixed Focus method to update ActiveControl
22097         (FocusTest.FocusSetsActive failure)
22098         
22099         * TabControl.cs:
22100         - Focus rectangle now refreshes when gaining
22101         or losing focus
22102         - Removed grab for Tab key on IsInputKey that 
22103         was keeping tab navigation from working (#78650)
22104
22105 2006-10-13  Chris Toshok  <toshok@ximian.com>
22106
22107         * PropertyGridView.cs:
22108         - Rewrite SetPropertyValue to loop over SelectedGridItem's
22109         SelectedObjects.
22110
22111         - Deal with GridItem.Value == null a few places.
22112
22113         * PropertyGrid.cs: 
22114         - replace the PopulateGridItemCollection with a pair of methods
22115         which compute the intersection of all the properties in the
22116         SelectedObjects array.  Fixes #79615.
22117
22118         - Throw ArgumentException from set_SelectedObjects if there's a
22119         null in the array.
22120
22121         - Add GetTarget method which can be used to traverse up the
22122         GridItem.Parent chain.  It depends on the assumption that
22123         selected_objects for different GridEntries are always in the same
22124         order (a safe assumption).  Use this method and loop over all the
22125         selected objects in the entry when calling RemoveValueChanged and
22126         AddValueChanged.
22127         
22128         * GridEntry.cs: Make this handle multiple selected objects.
22129         .Value returns null if not all the selected objects share the same
22130         value.
22131
22132 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
22133         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
22134           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
22135           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
22136           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
22137           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
22138         add additional functionality.
22139
22140 2006-10-12  Mike Kestner  <mkestner@novell.com>
22141
22142         * ErrorProvider.cs : new ToolTipWindow ctor sig.
22143         * HelpProvider.cs : new ToolTipWindow ctor sig.
22144         * ToolTip.cs : remove ToolTip param from Window sig since it is
22145         not used.
22146         * ToolBar.cs : add tooltip support.  Fixes #79565.
22147
22148 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22149
22150         * ComboBox.cs: move the events in set_SelectedIndex to 
22151         after the call to HighlightIndex in order to avoid 
22152         possible recursion and subsequent problems with the call
22153         to HighlightIndex and include a range check in 
22154         set_HighlightIndex. Fixes #79588
22155         
22156 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22157
22158         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
22159         to ui thread's settings instead of sunday. 
22160         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
22161
22162 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22163
22164         * DateTimePicker.cs
22165         * MonthCalendar.cs
22166         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
22167         and implement missing functionality (selecting different parts 
22168         of the date and edit them individually with the keyboard).
22169         
22170 2006-10-11  Chris Toshok  <toshok@ximian.com>
22171
22172         * Control.cs (OnInvalidated): fix NRE relating to last change.
22173
22174 2006-10-11  Chris Toshok  <toshok@ximian.com>
22175
22176         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
22177         atoms in _NET_WM_STATE here if the window is maximized.  We need
22178         to do this because we're *replacing* the existing _NET_WM_STATE
22179         property, so those atoms will be lost otherwise, and any further
22180         call to GetWindowState will return Normal for a window which is
22181         actually maximized.  Fixes #79338.
22182
22183 2006-10-11  Jackson Harper  <jackson@ximian.com>
22184
22185         * TextControl.cs: Special case for setting selection end to
22186         selection start, we basically kill the anchor.
22187         - some todo comments.
22188
22189 2006-10-11  Chris Toshok  <toshok@ximian.com>
22190
22191         * Control.cs: switch to using an "invalid_region" to track which
22192         parts of the image buffer need updating.  This is more code than
22193         the simple fix from r66532.  That version just attempted to always
22194         fill the entire buffer on redraw, which turns out to be
22195         inefficient when invalidating small rectangles.  This version
22196         simply adds the invalid rectangle to the invalid region.  When we
22197         get any WM_PAINT message we see if it can be filled using the
22198         image buffer, and if it can't (if the paint event's clip rectangle
22199         is visible in the invalid region) we first fill the image buffer.
22200         So, the image buffer is still a cache, we just fill it lazily.
22201
22202         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
22203         need it any longer.
22204
22205 2006-10-11  Chris Toshok  <toshok@ximian.com>
22206
22207         * XplatUIX11.cs (SetWindowPos): we need to update both position as
22208         well as size after calling XMoveResizeWindow.  This keeps us from
22209         ignoring future SetWindowPos calls.  Fixes the disappearing
22210         DateTimePicker in the ToolBarDockExample from bug #72499.
22211
22212 2006-10-11  Chris Toshok  <toshok@ximian.com>
22213
22214         * TextBoxBase.cs: reorder things a bit when it comes to
22215         resizing-causing-recalculation.  we were recalculating the
22216         document when our position was changed, which shouldn't happen.
22217         We only care about size changes.  Clear up some more redundant
22218         recalculation calls while I'm at it.  This makes the toolbar dock
22219         example snappy when you're just dragging toolbars around (since it
22220         causes a relayout whenever you move one.)
22221
22222 2006-10-11  Chris Toshok  <toshok@ximian.com>
22223
22224         * ToolBarButton.cs (get_Rectangle): this only returns
22225         Rectangle.Empty if Visible == false, or Parent == null.
22226         Parent.Visible doesn't matter.
22227
22228 2006-10-10  Chris Toshok  <toshok@ximian.com>
22229
22230         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
22231         by .net 1.1, so switch to an internal method instead.
22232
22233 2006-10-10  Chris Toshok  <toshok@ximian.com>
22234
22235         * Control.cs (WM_PAINT): when a control is double buffered we draw
22236         initially to the ImageBuffer and then copy from there.  But when a
22237         parent control which has child controls is double buffered, the
22238         initial drawing doesn't encompass the entire ClientRectangle of
22239         the parent control, so we end up with uninitialized bits (this is
22240         easily seen by dragging the top toolbar in
22241         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
22242         manually set the ClipRectangle of the paint_event (only the one we
22243         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
22244         of the nastiness in bug #72499.
22245
22246         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
22247         which we use in Control.cs's WM_PAINT handling.
22248
22249 2006-10-10  Jackson Harper  <jackson@ximian.com>
22250
22251         * TextBoxBase.cs: Finish off the autoscrolling stuff.
22252
22253 2006-10-10  Chris Toshok  <toshok@ximian.com>
22254
22255         * Cursor.cs: Apply a slightly different patch to the one suggested
22256         in #79609.
22257
22258 2006-10-10  Jackson Harper  <jackson@ximian.com>
22259
22260         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
22261         not the parent form.
22262         * TextControl.cs: use difference in old line count vs new count to
22263         calculate how many lines were added, this takes into account soft
22264         line breaks properly.
22265
22266 2006-10-10  Chris Toshok  <toshok@ximian.com>
22267
22268         * LinkLabel.cs: don't call MeasureCharacterRanges against a
22269         rectangle located at 0,0 and the size of the text.  Use
22270         ClientRectangle instead.  This fixes rendering of non-left aligned
22271         link labels.
22272
22273 2006-10-10  Jackson Harper  <jackson@ximian.com>
22274
22275         * TextBoxBase.cs: When we set the selection start position the
22276         caret.
22277         * TextControl.cs: Need to update the caret when we decrement it to
22278         zero.
22279         - Make sure that the selection_visible flag gets reset to false if
22280         the selection isn't visible.  Before this you could get it set to
22281         visible by changing the selection start, then changing the end to
22282         equal the start.
22283
22284 2006-10-09  Jackson Harper  <jackson@ximian.com>
22285
22286         * TreeView.cs: Don't update scrollbars when we aren't visible.
22287         * TreeNodeCollection.cs: Only need to update scrollbars if being
22288         added to an expanded visible node or the root node.
22289
22290 2006-10-09  Chris Toshok  <toshok@ximian.com>
22291
22292         * XplatUIX11.cs (SendMessage): fix NRE.
22293
22294 2006-10-09  Jackson Harper  <jackson@ximian.com>
22295
22296         * TextBoxBase.cs: Implement horizontal autoscrolling.
22297         * TextControl.cs: Add a movement types that allows moving forward
22298         and backwards without wrapping.
22299
22300 2006-10-09  Mike Kestner  <mkestner@novell.com>
22301
22302         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
22303         with focus "expansion" of labels.  Fixes #79532 and then some.
22304         * ThemeWin32Classic.cs : add LineLimit to ListView label format
22305         when wrapping.
22306
22307 2006-10-09  Jackson Harper  <jackson@ximian.com>
22308
22309         * TextBoxBase.cs: Set the default max values to MaxValue since
22310         we use the scrollbar for autoscrolling and the default value is
22311         100.  If we don't do this the caret won't keep up with typing
22312         after about 18 characters.
22313         * TextControl.cs: Make sure the selection is offset by the
22314         viewport x.  This fixes selection when using auto scrolling.
22315
22316 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
22317         
22318         * Form.cs: The active control should be selected after the 
22319         OnLoad so that any child control initialization that affects
22320         the selection is done. Fixes #79406
22321
22322 2006-10-06  Chris Toshok  <toshok@ximian.com>
22323
22324         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
22325         to have no evil effects.
22326
22327         - Stop selecting StructureNotifyMask on non-toplevel windows.
22328
22329           The only way children should be resized is by using the SWF api,
22330           and we already send WM_WINDOWPOSCHANGED messages in those cases.
22331           Toplevel windows can be interacted with via the window manager,
22332           and so we keep the input mask there.
22333
22334           The other event StructureNotifyMask gives us (that we care
22335           about) is DestroyNotify.  The code is already structured such
22336           that it assumes we won't be getting a DestroyNotify event for
22337           the window we pass to XDestroyWindow (which is what
22338           StructureNotifyMask is supposed to guarantee.)  So, that code
22339           shouldn't be affected by this either.
22340
22341         - Stop selecting VisibilityChangeMask altogether.
22342
22343           We weren't doing anything with the resulting events anyway.
22344         
22345         This vastly reduces the number of X requests and events we see
22346         when resizing/laying out a large ui.
22347
22348 2006-10-06  Chris Toshok  <toshok@ximian.com>
22349
22350         * ScrollableControl.cs (DisplayRectangle): we need to take into
22351         account the DockPadding regardless of whether or not auto_scroll
22352         == true.  rework this slightly to this effect, and fix bug #79606,
22353         and part of #72499 (you can now see the drag handles and drag
22354         toolbars around).
22355
22356 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
22357
22358         * ListViewItem.cs: Collections of selected and checked items are now
22359         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
22360         we mark the collection "dirty".
22361         * ListView.cs: Marked collections readonly. Modified UpdateSelection
22362         to only clear SelectedItems when a new item is selected and MultiSelect
22363         is enabled. CheckedItems and SelectedItems now subscribe to Changed
22364         event of ListViewItemCollection, and mark its list dirty whenever
22365         that event is fire. This allows us to return selected/checked items 
22366         in the same order as they are in the Items collection. This matches
22367         the MS behavior.
22368
22369 2006-10-06  Chris Toshok  <toshok@ximian.com>
22370
22371         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
22372         right mouse clicks.  Fixes bug #79593.
22373
22374 2006-10-06  Chris Toshok  <toshok@ximian.com>
22375
22376         * Splitter.cs: doh, fix splitters that don't want to cancel the
22377         movement when you drag them.  Also, impose the limits on the
22378         values we send to the SplitterMovingEvent.  Fixes #79598.
22379
22380 2006-10-06  Jackson Harper  <jackson@ximian.com>
22381
22382         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
22383         since we use this for auto scrolling also.
22384
22385 2006-10-05  Chris Toshok  <toshok@ximian.com>
22386
22387         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
22388         beginning to think that most datagrid column types don't need this
22389         method.  Fixes bug #79392.
22390
22391 2006-10-05  Chris Toshok  <toshok@ximian.com>
22392
22393         * DataGrid.cs: move back to a more lazy scheme for creating the
22394         CurrencyManager, so we aren't updating it every time you set
22395         either DataSource or DataMember.  Also, don't call
22396         RecreateDataGridRows if the currency manager hasn't changed.
22397
22398 2006-10-05  Chris Toshok  <toshok@ximian.com>
22399
22400         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
22401         emitted, SelectedIndex should already be updated.  Fixes bug
22402         #78929.
22403
22404 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
22405
22406         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
22407           ToolStripTextBox.cs: Initial commit.
22408         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
22409
22410 2006-10-05  Jackson Harper  <jackson@ximian.com>
22411
22412         * TabControl.cs: We need to invalidate the tab control area when
22413         new ones are added (duh).
22414
22415 2006-10-03  Chris Toshok  <toshok@ximian.com>
22416
22417         * Form.cs (ProcessDialogKey): if the focused control is in this
22418         form and is a button, call its PerformClick method here.  Fixes
22419         #79534.
22420
22421 2006-10-04  Jackson Harper  <jackson@ximian.com>
22422
22423         * TabPage.cs: Ignore setting of Visible, and add an internal
22424         method for setting the controls visibility.  TabPage's Visible
22425         property is a little strange on MS, this seems to make us
22426         compatible, and fixes cases where people set all the tab pages to
22427         visible.
22428         * TabControl.cs: Use the new internal setting on tab pages
22429         visibility.
22430
22431 2006-10-03  Mike Kestner  <mkestner@novell.com>
22432
22433         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
22434
22435 2006-10-03  Mike Kestner  <mkestner@novell.com>
22436
22437         * ListView.cs : use is_visible instead of Visible to check if 
22438         scrollbars should be placed/sized.  Also some max_wrap_width
22439         love for LargeIcon view.  [Fixes #79533]
22440
22441 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
22442
22443         * TextControl.cs :
22444           Make set_TextAlign() do actually update the align. Fixed #78403.
22445
22446 2006-10-03  Chris Toshok  <toshok@ximian.com>
22447
22448         * DataGrid.cs: fix a crash when switching datasources if the
22449         vertical scrollbar is at someplace other than Value = 0.  Also,
22450         reduce the number of recalculation passes we do in SetDataSource
22451         from 2 to 1.
22452
22453 2006-10-03  Jackson Harper  <jackson@ximian.com>
22454
22455         * TextBoxBase.cs: Move the if value the same bail check up, we
22456         don't want to empty the document if it is already empty, this
22457         seems to severly mess up the caret.  TODO: I should probably fix
22458         the empty statement to update teh caret somehow.
22459
22460 2006-10-03  Chris Toshok  <toshok@ximian.com>
22461
22462         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
22463         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
22464         reflection, an internal row type, properties on said type, etc.)
22465         will work with our datagrid.  Fixes #79531.
22466
22467 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
22468
22469         * FileDialog.cs: Don't crash if a path is not accessible
22470           (System.UnauthorizedAccessException). Fixes #79569.
22471         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
22472           a ':' too. Return unknown icon for those paths/files.
22473
22474 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
22475
22476         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
22477         GetContainerControl returns null.
22478
22479 2006-10-02  Chris Toshok  <toshok@ximian.com>
22480
22481         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
22482         call to XGetWindowAttributes instead of "handle".  fixes an X
22483         error using notifyicon after the NotifyIconWindow to Form base
22484         class switch.
22485
22486 2006-10-02  Chris Toshok  <toshok@ximian.com>
22487
22488         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
22489         server grab and looping we need to do to get down to the most
22490         deeply nested child window.
22491         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
22492         QueryPointer again after the WarpPointer so we can generate a
22493         proper (fake) MotionNotify event to be enqueued in the destination
22494         window's queue.
22495         (GetCursorPos): call QueryPointer.
22496
22497         Fixes #79556.
22498
22499 2006-10-02  Jackson Harper  <jackson@ximian.com>
22500
22501         * NotifyIcon.cs: Derive the notify icon from a form, so things
22502         like FindForm work on it.
22503         - Swallow the WM_CONTEXTMENU message, since that is generated on
22504         mouse down, and context menu is a mouse up kinda guy.  I believe
22505         the correct fix here is probably to make the notify icon entirely
22506         NC area, but this seems to work fine for anyone not manipulating
22507         WndProc.
22508
22509 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
22510
22511         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
22512           ToolStripItemCollection.cs, ToolStripLabel.cs,
22513           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
22514           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
22515           Initial implementation.
22516         * TextRenderer.cs: Provide padding to MeasureText.
22517
22518 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
22519
22520         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
22521         of ButtonBaseAccessibleObject. Fix bug #79552.
22522
22523 2006-10-02  Jackson Harper  <jackson@ximian.com>
22524
22525         * MdiWindowManager.cs: When maximizing use the containers client
22526         rect, not it's bounds, so nc area is accounted correctly.
22527         - Use the parent form's size for the menu position, since the
22528         client isn't always the full form size.
22529
22530 2006-10-01  Chris Toshok  <toshok@ximian.com>
22531
22532         * ScrollableControl.cs: make sure neither right_edge or
22533         bottom_edge are < 0, since they're used as LargeChange for the
22534         horiz/vert scrollbars respectively.  Fixes #79539.
22535
22536 2006-10-01  Chris Toshok  <toshok@ximian.com>
22537
22538         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
22539         the xplatuix11 code can cause us to destroy/recreate our handle.
22540
22541         * XplatUIX11.cs
22542         (SystrayAdd):
22543         - this code can be invoked many times for the same Hwnd.  Make
22544           sure we only destroy the client window once (the first time this
22545           method is called).  This fixes bug #79544.
22546         - Remove the call to the improperly bound XSync.  why we had two
22547           bindings to this, I will never know, but this call resulted in
22548           events being discarded from the queue(!).
22549         - correct a misunderstanding of _XEMBED_INFO - the second atom is
22550           not our current state but the state we wish to be in.  So, 0 if
22551           we don't want to be mapped.  Change it to 1.
22552         (SystrayRemove): The XEMBED spec makes mention of the fact that
22553         gtk doesn't support the reparent of client windows away from the
22554         embedder.  Looking at gtksocket-x11.c seems to agree with this.
22555         The only avenue we have for removing systray icons is to destroy
22556         them.  We don't want the handle to go away for good, though, so
22557         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
22558         #79545.
22559         
22560 2006-10-01  Chris Toshok  <toshok@ximian.com>
22561
22562         * Form.cs (WndProc): inline the native_enabled variable usage into
22563         the cases in which it's used.  Fixes #79536.
22564
22565 2006-09-29  Mike Kestner  <mkestner@novell.com>
22566
22567         * ListView.cs : toggle the selection state for ctrl clicks in 
22568         multiselect mode. [Fixes #79417]
22569
22570 2006-09-29  Mike Kestner  <mkestner@novell.com>
22571
22572         * ListView.cs : kill CanMultiSelect and refactor the selection
22573         code to support multiselection in the absence of mod keys. Steal
22574         arrow/home/end keys by overriding InternalPreProcessMessage to
22575         restore regressed keynav behavior.
22576         [Fixes #79416]
22577
22578 2006-09-29  Jackson Harper  <jackson@ximian.com>
22579
22580         * MdiClient.cs: Repaint the titlebars when the active window is
22581         changed.
22582
22583 2006-09-29  Chris Toshok  <toshok@ximian.com>
22584
22585         * Application.cs: when entering a runloop with a modal, make sure
22586         the hwnd is enabled.  Fixes #79480.
22587
22588 2006-09-29  Chris Toshok  <toshok@ximian.com>
22589
22590         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
22591         when ListManager.CanAddRows == false, bump us back one.
22592
22593         * DataGridColumnStyle.cs (ParentReadOnly): remove the
22594         listmanager.CanAddRows check.  This makes ArrayLists uneditable
22595         using a datagrid, which is not right.
22596         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
22597         is an IEditable, but call property_descriptor.SetValue regardless.
22598         fixes #79435.
22599
22600 2006-09-29  Chris Toshok  <toshok@ximian.com>
22601
22602         * DataGridBoolColumn.cs: we need to test equality in the face of
22603         possible null values (as is the case with the default NullValue).
22604         This patch keeps us from crashing in that case.
22605
22606 2006-09-29  Jackson Harper  <jackson@ximian.com>
22607
22608         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
22609         here, since it will get called for every node collection in the
22610         tree. This is now done in the treeview once the sorting is
22611         finished.
22612         * TreeView.cs: Recalculate the visible order, and update the
22613         scrollbars after sorting, set the top nope to the root so that the
22614         recalc actually works.
22615
22616 2006-09-29  Chris Toshok  <toshok@ximian.com>
22617
22618         * LinkLabel.cs: more handling of the default link collection in
22619         the face of LinkArea manipulation.  The default link collection
22620         contains 1 element (start=0,length=-1).  If the user sets LinkArea
22621         to anything and the links collection is the default, clear it.
22622         Then only add the link if its nonempty.  Fixes #79518.
22623
22624 2006-09-29  Chris Toshok  <toshok@ximian.com>
22625
22626         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
22627         piece correctly when we hit a '\n'.  Fixes #79517.
22628
22629 2006-09-29  Chris Toshok  <toshok@ximian.com>
22630
22631         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
22632         change the binding of gdk_init_check to take two IntPtr's, and
22633         pass IntPtr.Zero for both of them.  Fixes #79520.
22634
22635 2006-09-29  Mike Kestner  <mkestner@novell.com>
22636
22637         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
22638         [Fixes #78779]
22639
22640 2006-09-28  Jackson Harper  <jackson@ximian.com>
22641
22642         * XplatUIX11.cs: When translating NC messages make sure we go from
22643         whole window to screen, not client window to screen.
22644         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
22645         method doesn't exist
22646         - Skip over controls that aren't forms when arranging.
22647
22648 2006-09-28  Jackson Harper  <jackson@ximian.com>
22649
22650         * XplatUIWin32.cs: Clip the rect to the parent window.
22651         * XplatUIStructs.cs: Add clipping modes struct.
22652         * InternalWindowManager.cs: New private method that factors title
22653         bar heights in when calculating the pos of an NC mouse message.
22654         - Use SendMessage to force a paint when the form's size is changed
22655         instead of painting the decorations immediately.
22656         - Don't let the NC button click messages get to DefWndProc,
22657         because they will attempt to handle windowing themself, and this
22658         messes up z-order (it will put them in front of the scrollbars).
22659         * XplatUIX11.cs: Make sure that we don't reset window managers if
22660         we already have one (ie the window is an MDI window).
22661
22662 2006-09-28  Chris Toshok  <toshok@ximian.com>
22663
22664         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
22665         menu code really needs going over.
22666
22667 2006-09-27  Chris Toshok  <toshok@ximian.com>
22668
22669         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
22670         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
22671         window is maximizable.  So, we need to make sure that even if we
22672         clear the border/wm frame of those functions, they're still
22673         available (basically, we remove the decoration without removing
22674         the function).  Half the fix for #79338.
22675
22676 2006-09-27  Chris Toshok  <toshok@ximian.com>
22677
22678         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
22679         Fixes bug #79515.
22680
22681 2006-09-27  Chris Toshok  <toshok@ximian.com>
22682
22683         * Splitter.cs: reorder things a bit so that we don't actually
22684         draw/move the splitter until after calling OnSplitterMoving.  This
22685         lets users cancel/disallow the movement by explicitly setting
22686         event.SplitX/SplitY.  Fixes #79372.
22687
22688 2006-09-27  Jackson Harper  <jackson@ximian.com>
22689
22690         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
22691         because it is most likely on a window being destroyed, and that
22692         will give us an X11 error.
22693
22694 2006-09-27  Chris Toshok  <toshok@ximian.com>
22695
22696         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
22697         the dropdown button now toggles between showing and hiding the
22698         dropdown.  Also, get rid of dropdown_form_showing and just use
22699         dropdown_form.Visible.  We still don't do a grab, but I'll leave
22700         that part to someone who has handled Capture-fu before.
22701
22702 2006-09-27  Chris Toshok  <toshok@ximian.com>
22703
22704         * DataGrid.cs: return false if alt isn't pressed when '0' is
22705         pressed.  this keeps the '0' key from being swallowed, and fixes
22706         bug #79350.
22707
22708 2006-09-27  Chris Toshok  <toshok@ximian.com>
22709
22710         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
22711         Calling Refresh (in response to a scrollbar event) screws up the
22712         scrollbar painting.  Fixes bug #78923.
22713
22714 2006-09-27  Chris Toshok  <toshok@ximian.com>
22715
22716         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
22717         then insert into hashtable" blocks threadsafe.
22718
22719 2006-09-27  Chris Toshok  <toshok@ximian.com>
22720
22721         * MessageBox.cs (CreateParams): the styles should be |'ed with our
22722         baseclass's, since otherwise the
22723         ControlBox/MinimizeBox/MaximizeBox assignments above have no
22724         effect.  This gets the close button back in messageboxes.
22725
22726 2006-09-27  Chris Toshok  <toshok@ximian.com>
22727
22728         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
22729         flag, not just != 0.  this makes flags that are actually multiple
22730         bits (like WS_CAPTION) work.  fixes bug #79508.
22731
22732 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
22733
22734         * PageSetupDialog.cs: add support for getting and settings the 
22735         paper size, source and orientation.
22736
22737 2006-09-26  Chris Toshok  <toshok@ximian.com>
22738
22739         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
22740         and caption == "", we need to remove the resize handles as well as
22741         the title bar.
22742
22743         * Control.cs (set_Text): turns out that setting Text on a form
22744         should change the WM styles on the window, since if ControlBox ==
22745         false, the only way to get a window border is to have a non-""
22746         Text property.  check winforms/forms/text.cs for an example.  so,
22747         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
22748         update both window styles and title.  This fixes a lot of dialogs
22749         (including the preferences dialog in MonoCalendar.)
22750
22751 2006-09-26  Chris Toshok  <toshok@ximian.com>
22752
22753         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
22754         control isn't a Form), call Win32ShowWindow to hide the window,
22755         but don't update the control Visible property.  When we reparent
22756         back to a parent control, call SetVisible in order for the
22757         window's visibility to be reinstated.
22758
22759         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
22760         the FosterParent.
22761
22762         * Control.cs (ControlCollection.Remove): remove that value.Hide()
22763         call for good, since it breaks MonoCalendar (and other things I'm
22764         sure.) Also, set all_controls to null *after* the owner calls,
22765         which end up regenerating it.
22766         (ChangeParent): allow new_parent to be == null, passing
22767         IntPtr.Zero down to XplatUI.
22768
22769         this fixes #79294 the right way.
22770
22771 2006-09-26  Mike Kestner  <mkestner@novell.com>
22772
22773         * GridEntry.cs : internal SetParent method.
22774         * PropertyGrid.cs : attach to property changed on the proper
22775         target if we have a hierarchical grid with subobjects. Setup
22776         GridItem.Parent for hierarchical items.
22777         * PropertyGridView.cs : Set value on the correct target for
22778         hierarchical grids. [Fixes #78903]
22779
22780 2006-09-26  Chris Toshok  <toshok@ximian.com>
22781
22782         * Control.cs (ChildNeedsRecreating): this should return true if
22783         either we're being recreated and the child is in our list, or our
22784         parent is waiting for our recreation.
22785
22786 2006-09-26  Chris Toshok  <toshok@ximian.com>
22787
22788         * Control.cs (ControlCollection.Remove): reinstate the
22789         value.Hide() call as suggested in bug #79294.
22790
22791 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
22792
22793         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
22794         coordinates (versus a relative move).
22795
22796 2006-09-26  Chris Toshok  <toshok@ximian.com>
22797
22798         * Control.cs: rework child recreation a little bit.  It turns out
22799         that we race between the DestroyNotify the WM_DESTROY message.  If
22800         the parent gets its DestroyNotify before the child gets the
22801         WM_DESTROY message, the child ends up not recreating (since the
22802         parent finishes its recreation on DestroyNotify, and the child
22803         checks ParentIsRecreating.)
22804
22805         So, instead we store off a list of all the child controls which
22806         need to be recreated when the parent control starts to recreate
22807         itself.  Then, when child controls get their WM_DESTROY message we
22808         check to see if they're in the parent's pending recreation list,
22809         and if so, we recreate.  This removes all dependency on ordering
22810         from the code and fixes the initial MonoCalendar upgrade dialog.
22811         
22812 2006-09-26  Jackson Harper  <jackson@ximian.com>
22813
22814         * TextControl.cs: Use the Line to get the length of the line,
22815         since soft line breaks can change the end line.
22816
22817 2006-09-26  Chris Toshok  <toshok@ximian.com>
22818
22819         * Control.cs (ControlCollection.AddImplicit): don't add the
22820         control again if it's already in one of our lists.  This keeps us
22821         from adding controls over and over again for comboboxes when their
22822         handle gets recreated (as the combobox adds implicit controls in
22823         OnHandleCreated).  Fixes the X11 errors in bug #79480.
22824
22825 2006-09-26  Jackson Harper  <jackson@ximian.com>
22826
22827         * TextControl.cs: When deleting characters make sure that any
22828         orphaned zero lengthed tags get deleted.
22829         - Fix ToString for zero lengthed tags.
22830
22831 2006-09-25  Jackson Harper  <jackson@ximian.com>
22832
22833         * TextControl.cs: When getting a tag at the location there can be
22834         multiple tags at the same spot, these are 0-lengthed tags that
22835         appear when extra formatting has been stuck in a location.  We
22836         need to pull out the last of these 0 lengthed tags.
22837
22838 2006-09-25  Jackson Harper  <jackson@ximian.com>
22839
22840         * TextControl.cs: Fix print out in debug method.
22841         * TextBoxBase.cs: When text is set bail if we are setting to the
22842         previous value.
22843         
22844 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
22845
22846         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
22847           It is now possible to change the selected index in a FontXXXListBox
22848           with the up and down arrow keys from the FontXXXTextBoxes.
22849           Also, send the FontXXXTextBox mouse wheel event to the corresponding
22850           FontXXXListBoxes to match ms.
22851
22852 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
22853
22854         * SystemInformation.cs: Return a clone of the theme's MenuFont because
22855         anyone can dispose it, anytime. All other properties returns enums, 
22856         structs or basic types so they don't need such tricks.
22857
22858 2006-09-22  Jackson Harper  <jackson@ximian.com>
22859
22860         * XplatUI.cs:
22861         * XplatUIWin32.cs:
22862         * Clipboard.cs:
22863         * DataFormats.cs:
22864         * XplatUIOSX.cs:
22865         * XplatUIDriver.cs: Update interface to add a primary selection
22866         flag, so the driver can use the primary selection buffer if
22867         needed.
22868         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
22869
22870         * RichTextBox.cs: We need to supply the data object to paste now
22871         (so we can choose to supply CLIPBOARD or PRIMARY).
22872         * TextBoxBase.cs: Supply data object to paste (see above).
22873         - Middle click uses the primary selection data object.
22874         
22875 2006-09-21  Chris Toshok  <toshok@ximian.com>
22876
22877         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
22878         of SetWMStyles.  It's still a rat's nest and is largely
22879         order-dependent which I dislike immensely.  This also fixes the X
22880         button disappearing from toplevel forms.
22881
22882 2006-09-21  Mike Kestner <mkestner@novell.com>
22883
22884         * ListBox.cs: move Jordi's click/dblclick raising code to the
22885         mouse up handler.
22886
22887 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
22888
22889         * ListBox.cs: Fixes 79450
22890
22891 2006-09-21  Mike Kestner <mkestner@novell.com>
22892
22893         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
22894         to deal with people updating the TreeNodeCollection after the tree
22895         is disposed.  "Fixes" 79330.
22896
22897 2006-09-20  Jackson Harper <jackson@ximian.com>
22898
22899         * TextControl.cs: Push the cursor record onto the undo stack
22900         before the delete action. This fixes 78651.
22901
22902 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
22903
22904         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
22905         CreateParams. Fixes 79329.
22906
22907 2006-09-19  Chris Toshok  <toshok@ximian.com>
22908
22909         * XplatUIX11.cs: a couple of blanket code massage passes to clean
22910         things up a bit.  First, get rid of the NetAtoms array (and the NA
22911         enum), and just embed the atoms as static fields.  Also, add a
22912         couple of functions (StyleSet and ExStyleSet) to clean up all the
22913         bitmask testing of styles.
22914
22915         * X11Structs.cs: remove the NA enum, not needed anymore.
22916         
22917 2006-09-19  Chris Toshok  <toshok@ximian.com>
22918
22919         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
22920         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
22921         added cleanup to get MessageBox titles appearing again, which were
22922         broken by my earlier fix for caption-less/ControlBox-less windows.
22923
22924 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
22925
22926         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
22927           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
22928           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
22929           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
22930           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
22931           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
22932           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
22933           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
22934           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
22935           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
22936           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
22937             Inital import.
22938         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
22939           ToolStripButton.cs: Stubs needed for above.
22940         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
22941
22942 2006-09-15  Chris Toshok  <toshok@ximian.com>
22943
22944         * XplatUIX11.cs:
22945         - make the MessageQueues hashtable Synchronized.
22946         
22947         - SendMessage: if the Hwnd is owned by a different thread, use the
22948         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
22949         thread.  Fixes bug #79201.
22950
22951 2006-09-15  Chris Toshok  <toshok@ximian.com>
22952
22953         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
22954         ControlBox == false, we disallow maximize/minimize/close.  If the
22955         form Caption is "" we also disallow move (and get rid of the Title
22956         decoration).  Unfortunately, regardless of how things are set,
22957         we're stuck with the Title and WM menu.
22958
22959 2006-09-15  Chris Toshok  <toshok@ximian.com>
22960
22961         * Application.cs: add locking around the static message_filters
22962         ArrayList, part of #79196.
22963
22964 2006-09-15  Chris Toshok  <toshok@ximian.com>
22965
22966         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
22967         Form.ControlBox == false, the window has no titlebar nor resize
22968         handles.  fixes bug #79368.
22969
22970 2006-09-15  Chris Toshok  <toshok@ximian.com>
22971
22972         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
22973         >= 0.  Fixes bug #79370.
22974
22975 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
22976         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
22977         * Control.cs:
22978             Add properties: LayoutEngine, Margin, DefaultMargin.
22979             Add method: GetPreferredSize.
22980             Move layout logic from PerformLayout to layout engines. 
22981
22982 2006-09-13  Chris Toshok  <toshok@ximian.com>
22983
22984         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
22985         fix for #79326 broke #78718, so this change addresses that.
22986
22987         - in SendWMDestroyMessages remove the call to
22988         CleanupCachedWindows, since we might be recreating the control and
22989         need to maintain the references to right Hwnd handles.  Also, set
22990         the zombie flag to true for each of the children in the hierarchy
22991         instead of calling hwnd.Dispose.  This will cause GetMessage to
22992         ignore all events for the window except for DestroyNotify.
22993
22994         - In GetMessage, ignore messages except for DestroyNotify for
22995         zombie hwnds.
22996         
22997         * Control.cs: revert the is_recreating fix from the last
22998         ChangeLog.  It's definitely "right", but it breaks switching from
22999         an MDI form to a non-MDI form.  Will need to revisit that.
23000
23001         * Hwnd.cs: add a zombie flag, which means "the
23002         client_window/whole_window handles are invalid, but we're waiting
23003         for the DestroyNotify event to come in for them".  Set the flag to
23004         false explicitly if setting WholeWindow/ClientWindow, and also
23005         when Disposing.
23006         
23007 2006-09-13  Chris Toshok  <toshok@ximian.com>
23008
23009         * XplatUIX11.cs: rework window destruction slightly.
23010
23011         - when destroying the windows associated with a control, we don't
23012         need 2 separate XDestroyWindow calls.  Just the one for the
23013         whole_window (or for client_window if whole_window is somehow
23014         IntPtr.Zero -- can this happen?) is enough.
23015
23016         - reworked SendWMDestroyMessages slightly, so we always dispose
23017         the child control hwnd's after sending the messages.
23018         
23019         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
23020         the two places it was used (one was even using hwnd.Handle and the
23021         other hwnd.client_window.  ugh), adding another call in
23022         SendWMDestroyMessages.  We need this new call because now the
23023         DestroyNotify events in the queue will be ignored for the child
23024         controls (as their hwnd's were disposed, and the window id's
23025         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
23026
23027         - this fixes bug #79326.
23028
23029 2006-09-13  Chris Toshok  <toshok@ximian.com>
23030
23031         * Control.cs: don't always set is_recreating to false at the end
23032         of RecreateHandle, since sometimes we're not done (and won't be
23033         until WndProc handles the WM_DESTROY message).  Also, set
23034         is_recreating to false in the WM_DESTROY handling code.  Part of
23035         the fix for bug #79326.
23036
23037 2006-09-13  Miguel de Icaza  <miguel@novell.com>
23038
23039         * X11DesktopColors.cs: Start the droppage of debugging messages.
23040
23041         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
23042
23043 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
23044
23045         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
23046
23047 2006-09-12  Chris Toshok  <toshok@ximian.com>
23048
23049         * DataGrid.cs (get_ListManager): if the list_manager is null, try
23050         to create it using SetDataSource.  Fixes bug #79151.
23051
23052 2006-09-11  Chris Toshok  <toshok@ximian.com>
23053
23054         * XEventQueue.cs: add a DispatchIdle property.
23055
23056         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
23057         either the queue is null, or the queue has DispatchIdle set to
23058         true.
23059         (DoEvents): set queue.DispatchIdle to false around the
23060         peek/translate/dispatch message loop in this method.  This keeps
23061         Application.Doevents from emitting idle events.  Part of the fix
23062         for #78823.
23063
23064 2006-09-11  Chris Toshok  <toshok@ximian.com>
23065
23066         * DataGrid.cs (set_DataSource): make this work for both the
23067         winforms/datagrid test and ReportBuilder.  It seems as though when
23068         we've created a ListManager (or maybe it's if we have a
23069         BindingContext?), when we set the DataSource it clears the
23070         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
23071         #79333.
23072
23073 2006-09-11  Chris Toshok  <toshok@ximian.com>
23074
23075         * XplatUIX11.cs: deal with queue being null, which happens in all
23076         the Clipboard functions.  Fixes one of the two problems mentioned
23077         in #78612.
23078
23079 2006-09-11  Chris Toshok  <toshok@ximian.com>
23080
23081         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
23082         button on various spots (including outside the menu) works closer
23083         to MS, and doesn't crash.  Fixes #79343.
23084
23085 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
23086
23087         * ListView.cs: Do not initialize item_sorter in init. To match MS,
23088         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
23089         and the internal comparer is set. When a new ListViewItemSorter is set,
23090         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
23091         was specified. No further processing is necessary if SortOrder is set
23092         to it's current value. If Sorting is modified to None, and View is
23093         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
23094         (either custom or our internal ItemComparer) to null, on 1.0 profile
23095         only set item_sorter to null if its our internal IComparer. If Sorting
23096         is modified to Ascending or Descending, then use our internal IComparer
23097         if none is set, and if the current IComparer is our internal one then:
23098         on 2.0 profile always replace it with one for new Sorting, and on 1.0
23099         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
23100         Enum.IsDefined to verify whether a valid View value is specified in
23101         its setter. Automatically sort listview items when listview is
23102         created. In Sort, do nothing if ListView is not yet created, or if
23103         no item_sorter is set (no Sorting was set, Sorting was explicitly set
23104         to None or ListViewItemSorter was set to null). Added Sort overload
23105         taking a bool to indicate whether the ListView should be redrawn when
23106         items are sorted (we use this in ListViewItemCollection to avoid double
23107         redraws). Modified our internal IComparer to take the sort order into
23108         account. In Add and AddRange methods of ListViewItemCollection, also
23109         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
23110         view), but use overload with noredraw option to avoid double redraw.
23111         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
23112         true when View is Tile, and do the same when attempting to set View to
23113         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
23114         for selected/checked indices, as it involves overhead when sorting is
23115         done while these collections are not used all that often. Instead
23116         we'll build the indices on demand. Modified IList implementation of
23117         CheckedIndexCollection to use public methods if object is int.
23118         Modified CheckedListViewItemCollection to hide checked items if
23119         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
23120         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
23121         IList implementation in SelectedIndexCollection to use public methods
23122         if object is int. Modified SelectedListViewItemCollection to hide
23123         selected items if listview is not yet created.
23124         * ListViewItem.cs: CheckedIndices list no longer needs to be
23125         maintained separately (see ListView changes). Also clone font, fixes
23126         test failure.
23127
23128 2006-09-11  Mike Kestner  <mkestner@novell.com>
23129
23130         * ComboBox.cs: if we are updating the contents of the currently
23131         selected index, refresh the control or the textbox selection.
23132         [Fixes #79066]
23133
23134 2006-09-11  Mike Kestner  <mkestner@novell.com>
23135
23136         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
23137         the 'specified' logic has been moved there.  This seems like a bug 
23138         in Control.cs, since our current SetBoundsCore completely ignores 
23139         the specified parameter.  Peter's commit seems to indicate that is 
23140         the way the MS control implementation works.  [Fixes #79325]
23141
23142 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
23143
23144         * XplatUI.cs: Set default_class_name to be composed
23145         of current domain id. This allows MWF to be loaded in multiple
23146         domains on Win32.
23147
23148 2006-09-09  Miguel de Icaza  <miguel@novell.com>
23149
23150         * X11Keyboard.cs: If we are unable to obtain the input method, do
23151         not call CreateXic to create the input context.   Should fix
23152         #78944/79276.
23153
23154 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
23155
23156         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
23157           Simplified gnome support by adding more pinvokes to get the
23158           icon for a file or mime type.
23159
23160 2006-09-08  Jackson Harper  <jackson@ximian.com>
23161
23162         * MenuAPI.cs: Deslect popup context menu items before closing the
23163         window, so that you don't see the previously selected item
23164         selected when you reopen the menu.
23165         * TextControl.cs: Update the cursor position even if we don't have
23166         focus.  This fixes typing in things like the ComboBox.  I'm not
23167         totally sure we should always set the visibility if we don't have
23168         focus, but couldn't find any corner cases where the cursor showed
23169         up when it shouldn't.
23170
23171 2006-09-08  Chris Toshok  <toshok@ximian.com>
23172
23173         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
23174         our arrays are length 256.  & 0xff before indexing.  Fixes the
23175         crash in bug #78077.
23176         
23177 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23178
23179         * ThemeWin32Classic.cs: 
23180         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
23181         is true. Handle that check box too.
23182
23183 2006-09-07  Chris Toshok  <toshok@ximian.com>
23184
23185         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
23186         79244.
23187
23188 2006-09-07  Chris Toshok  <toshok@ximian.com>
23189
23190         * Control.cs: in set_BackColor only do the work if
23191         background_color != value.
23192
23193         * XplatUIX11.cs: move the clearing of invalid areas (both client
23194         and nc) to the same block of code where we set (nc_)expose_pending
23195         to false.  That is, move it from PaintEventEnd to PaintEventStart,
23196         so things that cause invalidates from within OnPaint will trigger
23197         another call to OnPaint.  Fixes bug #79262.
23198
23199 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
23200
23201         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
23202         * FileDialog.cs: Fix typo
23203
23204 2006-09-07  Jackson Harper  <jackson@ximian.com>
23205
23206         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
23207         for tab pages if they have any.
23208
23209 2006-09-06  Mike Kestner  <mkestner@novell.com>
23210
23211         * Splitter.cs: use the "current" rect when finishing drag handle
23212         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
23213
23214 2006-09-06  Mike Kestner  <mkestner@novell.com>
23215
23216         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
23217         support offset splitters. [Fixes #79298]
23218
23219 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
23220
23221         * Mime.cs: Fixed a bug that could override the global mime type
23222           result.
23223
23224 2006-09-05  Jackson Harper  <jackson@ximian.com>
23225
23226         * TabControl.cs: Better calculation method for setting the slider
23227         pos. Prevents crashes on really wide tabs.
23228         - Draw Image on tab pages if an image list is used.
23229
23230 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23231
23232         * MonthCalendar.cs: When Font changes, the Size should be
23233         updated to fit the new font's space requirements.
23234
23235 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
23236
23237         * ListBox.cs: If the items are cleared with Items.Clear set
23238           top_index to 0.
23239
23240 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23241
23242         * MonthCalendar.cs: Handle arrow keys as input keys. Also
23243         fire DateChanged event instead of DateSelected event when
23244         the date was changed by keyboard interaction.
23245
23246 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23247
23248         * DateTimePicker.cs: Handle DateChanged for the associated
23249         month_calendar control, and set month_calendar.Font from 
23250         OnFontChanged method, as well as resize the height of the
23251         control when needed. Make PreferredHeight proportional.
23252
23253 2006-09-01  Chris Toshok  <toshok@ximian.com>
23254
23255         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
23256         properties.
23257
23258         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
23259
23260 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
23261
23262         * FileDialog.cs: Set ClientSize instead of window size, to allow space
23263           for decorations (Fixes #79219)
23264
23265 2006-09-01  Mike Kestner  <mkestner@novell.com>
23266
23267         * ComboBox.cs: first stab at sorting plus some selection handling
23268         fixes to bring us more in line with MS behavior.  Also switches back
23269         to index based selection.  Alternative patches for index-based 
23270         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
23271         and latency@gmx.de on bug 78848.  I assume they were similar to this
23272         code I've had simmering in my tree forever.
23273         [Fixes #78848]
23274
23275 2006-09-01  Chris Toshok  <toshok@ximian.com>
23276
23277         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
23278         when setting list position guard against ending up with a -1 index
23279         (the other part of the fix for #78812).  Should probably make sure
23280         we don't need the analogous fix in the ItemDeleted case.
23281
23282         * DataGrid.cs:
23283         - in SetDataSource, work around the fact that the way
23284         OnBindingContextChanged is invoked will cause us to re-enter this
23285         method.  I'll remove the hack once I investigate
23286         OnBindingContextChanged.
23287
23288         - fix the logic in set_DataSource and set_DataMember (basically
23289         what to do if the other of the two is null.)
23290         
23291         - in OnListManagerItemChanged, we need to take into account the
23292         edit row when deciding whether or not to call RecreateDataGridRows
23293         (part of the fix for #78812).
23294
23295 2006-09-01  Jackson Harper  <jackson@ximian.com>
23296
23297         * Splitter.cs: Don't do anything if there is no control to affect
23298         (prevents us from crashing in weird tet cases).
23299         * TreeView.cs: Bounding box for the mouse movement reverting
23300         focus/selection back to previously selected node.  This matches
23301         MS, and makes the tree a lot more useable.
23302         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
23303         use clipping so they are not drawn.  This fixes when the control
23304         is set to have a transparent background, or if it was over an
23305         image.
23306
23307 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
23308
23309         * MimeIcon.cs: Improved handling for reading default icons when
23310           using gnome (2.16 made it necessary). Check and read svg icons
23311           first, then 48x48 and then 32x32 icons.
23312
23313 2006-08-31  Chris Toshok  <toshok@ximian.com>
23314
23315         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
23316         visible.
23317
23318         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
23319         ProcessKeyPreview.  Fixes part of #77806.
23320
23321         * DataGrid.cs: big patch.
23322
23323         - revert the queueing up of DataSource/DataMember if inside
23324         BeginInit/EndInit calls.  That's not the way the datagrid achieves
23325         its delayed databinding.  Instead, call SetDataSource in
23326         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
23327         #78811.
23328
23329         - Also, it wasn't mentioned in #78811, but the test case exhibits
23330         behavior that was lacking in our datagrid implementation - Columns
23331         that have mapping names that don't exist in the datasource's
23332         properties aren't shown.  Yuck.  To fix this I added the bound
23333         field to the column style, and basically any calculation to figure
23334         out anything about columns uses a loop to find the bound columns.
23335         still need to investigate if I can cache an array of the bound
23336         columns or if the indices must be the same.
23337
23338         - When setting CurrentCell, we no longer abort if the cell being
23339         edited was in the add row.  This fixes the other part of #77806.
23340
23341         - The new code also fixes #78807.
23342         
23343         * ThemeWin32Classic.cs: perpetrate the same disgusting
23344         column.bound field hack, and only render bound fields.
23345
23346 2006-08-31  Chris Toshok  <toshok@ximian.com>
23347
23348         * DataGridColumnStyle.cs: add bound field.  this field is true if
23349         the datasource has a property corresponding to the mapping name.
23350
23351         * DataGridTableStyle.cs: set the bound field on the column styles
23352         depending on whether or not we have a column for that property.
23353
23354 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
23355
23356         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
23357           splitter control (fixes #79228)
23358
23359 2006-08-31  Chris Toshok  <toshok@ximian.com>
23360
23361         * DataGridColumnStyle.cs: we need to delay the assignment of
23362         property descriptor until the last possible moment due to the lazy
23363         databinding stuff in the datagrid.  Also, fix the exceptions
23364         thrown by CheckValidDataSource to match MS.
23365
23366 2006-08-31  Jackson Harper  <jackson@ximian.com>
23367
23368         * Form.cs: When activated select the active control, if there is
23369         no active control, we select the first control.
23370         * XplatUIX11.cs: If there is no focus control when we get a
23371         FocusIn event, find the toplevel form and activate it.  This
23372         occurs when you popup a window, it becomes the focus window, then
23373         you close that window, giving focus back to the main window.
23374
23375 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23376
23377         * MonthCalendar.cs: 
23378         * ThemeWin32Classic.cs: Cache Font in bold style, as well
23379         as StringFormat with Center alignments in MonthCalendar,
23380         instead of creating new ones when drawing the control. 
23381         Also, draw the month name in bold style.
23382
23383 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
23384
23385         * Control.cs:
23386           - PerformLayout(): It would seem MS performs the fill even if the 
23387             control is not visible (part of #79218 fix)
23388           - ResetBackColor(): Use the setter to reset the color, to allow
23389             overriders to catch the change.
23390         * Form.cs:
23391           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
23392           - CreateHandle(): dito (part of $79218 fix)
23393           - Don't set an icon if we have a dialog
23394         * ScrollableControl.cs:
23395           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
23396           - ScrollIntoView(): No need to scroll if control is already visible
23397             (resolves fixme and fixes #79218)
23398
23399 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23400
23401         * MonthCalendar.cs: Change proportions in SingleMonthSize
23402         to match the aspect of the original control.
23403
23404 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
23405
23406         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
23407           get updated when they get maximized.
23408
23409 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
23410
23411         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
23412
23413 2006-08-29  Chris Toshok  <toshok@ximian.com>
23414
23415         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
23416
23417 2006-08-29  Jackson Harper  <jackson@ximian.com>
23418
23419         * TreeView.cs: Need to track selected node and highlighted node,
23420         they aren't always the same thing, when the mouse is down on a
23421         node it is hilighted, but not selected yet.
23422         - Do the HideSelection stuff right
23423         - Need to focus on rbutton mouse down. And redraw selection when
23424         right click is mouse upped.
23425
23426 2006-08-29  Mike Kestner  <mkestner@novell.com>
23427
23428         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
23429         when SubItems.Count < Columns.Count.  [Fixes #79167]
23430
23431 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
23432
23433         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
23434
23435 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
23436
23437         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
23438           from X. Only send based on ConfigureNotify if we don't have the
23439           correct location in hwnd (if the window manager moved us)
23440
23441 2006-08-28  Mike Kestner  <mkestner@novell.com>
23442
23443         * ListView.cs: remove a TODO. 
23444         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
23445         [Fixes ListView part of #79166]
23446
23447 2006-08-28  Mike Kestner  <mkestner@novell.com>
23448
23449         * ListView.cs: move wheel handler to parent since it is focused
23450         instead of the item_control now.  [Fixes #79177]
23451
23452 2006-08-28  Mike Kestner  <mkestner@novell.com>
23453
23454         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
23455         when the control is focused. [Fixes #79171]
23456
23457 2006-08-28  Mike Kestner  <mkestner@novell.com>
23458
23459         * ListView.cs: size the item and header controls for empty and
23460         unscrollable views.
23461         * ThemeWin32Classic.cs: draw disabled backgrounds.
23462         [Fixes #79187]
23463
23464 2006-08-28  Chris Toshok  <toshok@ximian.com>
23465
23466         * Form.cs: remove unused "active_form" static field.
23467
23468         * Hwnd.cs: lock around accesses to static windows collection.
23469
23470         * Application.cs: lock threads in Exit ().
23471
23472 2006-08-28  Chris Toshok  <toshok@ximian.com>
23473
23474         * NativeWindow.cs: lock around accesses to window_collection.
23475         
23476 2006-08-28  Chris Toshok  <toshok@ximian.com>
23477
23478         * Control.cs: err, fix this the right way, by locking on controls
23479         when using it.  not by making it synchronized.
23480
23481 2006-08-28  Chris Toshok  <toshok@ximian.com>
23482
23483         * Control.cs: make the static "controls" field synchronized, as it
23484         gets updated from multiple threads.
23485
23486 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
23487
23488         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
23489           Prevent other threads from exiting when calling thread sets quit state.
23490         * XEventQueue.cs: Added PostQuitState property
23491
23492 2006-08-27  Chris Toshok  <toshok@ximian.com>
23493
23494         * AsyncMethodData.cs: add a slot for the window handle.
23495
23496         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
23497         window (the destination control's window, not the foster window).
23498
23499         * Control.cs (BeginInvokeInternal): store the window's handle in
23500         the AsyncMethodData.
23501         
23502
23503 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
23504
23505         * XplatUIX11.cs:
23506           - PostQuitMessage: Removed resetting S.D display handle, we might have
23507             another loop started after calling PostQuitMessage (Fixes #79119)
23508           - Created destructor to reset S.D handle
23509
23510 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
23511
23512         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
23513
23514 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23515
23516         * TextControl.cs (Insert): Update the caret position even if we don't
23517           have a handle yet, just don't call the driver in that case.
23518         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
23519           to the end of the new selection text (Fixes #79184)
23520
23521 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23522
23523         * Form.cs (Activate): Only activate if the handle is created)
23524         * Control.c:
23525           - Mark window as invisible when it's disposed
23526           - Check if window handle is created when setting window visible, 
23527             instead of relying just on the is_created variable
23528           - Check if object is disposed when creating the control (Fixes #79155)
23529
23530 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23531
23532         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
23533           when allowing layout again. Otherwise we re-generate the anchoring 
23534           distance to the border again and actually alter what the user wanted
23535           This is ugly, it'd be better if we used DisplayRectangle instead of
23536           ClientRectangle for Control.UpdateDistances, but that causes us to
23537           have other problems (initial anchoring positons would be wrong)
23538           (Fixes #78835)
23539
23540 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23541
23542         * Control.cs:
23543           - The size and location setters shouldn't go directly to 
23544             SetBoundsCore, but to SetBounds, which triggers layout on the
23545             parent, then calls SetBoundsCore. (Related to fix for #78835)
23546           - SetBounds: Moved actual location update code into this function
23547             from SetBoundsCore, to match MS. Added call to PerformLayout if
23548             we have a parent (to trigger resizing of anchored parents if the 
23549             child size has changed (see testcase for #78835) 
23550         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
23551           new control code
23552         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
23553
23554 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23555
23556         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
23557           System.Drawing when a toplevel window gets closed; there might
23558           be other toplevel windows belonging to the same app (Fixes #78052)
23559
23560 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
23561
23562         * FileDialog.cs: After reading FileDialog settings from mwf_config
23563           use Desktop prefix only if a real folder doesn't exist anymore.
23564         * FontDialog.cs: Added char sets.
23565           It is now possible to select the font, size or style with the
23566           textboxes.
23567
23568 2006-08-25  KornĂ©l PĂ¡l  <kornelpal@gmail.com>
23569
23570         * PrintPreviewDialog.cs: Use assembly name constants.
23571
23572 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23573
23574         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
23575           scrollbar from whacking it's buttons)
23576
23577 2006-08-24  Chris Toshok  <toshok@ximian.com>
23578
23579         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
23580         in this patch (aggregating setting Left/Top/Width/Height to
23581         setting Bounds on the scrollbars), but the crux of the fix is in
23582         Recalculate, where we scroll by the remaining scroll_position if
23583         we're hiding a scrollbar.  The 2*$5 reward in the comment is
23584         serious.
23585
23586 2006-08-24  Jackson Harper  <jackson@ximian.com>
23587
23588         * MdiClient.cs:
23589         * MdiWindowManager.cs: If the form is made a non-mdi window we
23590         need to remove the form closed event so that closing forms works
23591         correctly.
23592
23593 2006-08-24  Jackson Harper  <jackson@ximian.com>
23594
23595         * Control.cs: Make IsRecreating internal so that the driver can
23596         check it
23597         - Temporarily remove the Hide when controls are removed, its
23598         making a whole bunch of things not work because visibility isn't
23599         getting reset elsewhere correctly
23600         * Form.cs: Need to do a full handle recreation when the mdi parent
23601         is set.
23602         * XplatUIX11.cs: If we are recreating handles don't dispose the
23603         HWNDs.  What was happening is the handles were being recreated in
23604         SendWMDestroyMessages, but then flow continued on in that method
23605         and destroyed the new handles.
23606
23607 2006-08-23  Jackson Harper  <jackson@ximian.com>
23608
23609         * Form.cs: MdiClient is always at the back of the bus
23610         * Control.cs: When the order of items in the collection is changed
23611         we need to reset the all_controls array
23612         - do the same sorta setup thats done when adding a control when a
23613         control is set on the collection.
23614
23615 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23616
23617         * TextBoxBase.cs (get_Text): Return an empty array if our document
23618           is empty (fixes #79052)
23619
23620 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23621
23622         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
23623           on WM_SYSCHAR messages (fixes #79053)
23624
23625 2006-08-23  Chris Toshok  <toshok@ximian.com>
23626
23627         * DataGrid.cs: fix flickering when scrolling vertically.
23628
23629 2006-08-23  Chris Toshok  <toshok@ximian.com>
23630
23631         * DataGrid.cs (EndEdit): only invalidate the row header when we
23632         need to.
23633
23634 2006-08-23  Chris Toshok  <toshok@ximian.com>
23635
23636         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
23637         methods.  fixes the flicker when scrolling around.
23638
23639 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23640
23641         * FileDialog.cs: Making sure the control is created before we get a 
23642           chance to use it with BeginInvoke (Fixes #79096)
23643
23644 2006-08-23  Chris Toshok  <toshok@ximian.com>
23645
23646         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
23647         width to use when painting the rows.
23648
23649 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23650
23651         * TextBoxBase.cs:
23652           - Throw ArgumentException if a negative value is passed to SelectionLength
23653           - Update the selection end if start is moved. end needs to be always
23654             after start. (Fixes #79095)
23655           - Track selection length; MS keeps the selection length even if start
23656             is changed; reset on all other operations affection selection
23657
23658 2006-08-22  Jackson Harper  <jackson@ximian.com>
23659
23660         * TreeView.cs: Make sure both scrollbars get displayed and sized
23661         correctly when the other bar is visible.
23662         - Use the original clip rectangle for checking if the area between
23663         the two scrollbars is visible, not the viewport adjusted clipping
23664         rectangle.
23665
23666 2006-08-22  Jackson Harper  <jackson@ximian.com>
23667
23668         * Binding.cs: We don't use IsBinding because it requires the
23669         control to be created, which really shouldn't be necessary just to
23670         set a property on the control.
23671
23672 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23673
23674         * ComboBox.cs: Some CB.ObjectCollection methods must throw
23675         ArgumentNullReferenceException when the argument is null.
23676
23677 2006-08-21  Jackson Harper  <jackson@ximian.com>
23678
23679         * Timer.cs: Track the thread that the timer is started in (NOT
23680         CREATED), this way messages for it will only be triggered on its
23681         queue.
23682         * XEventQueue.cs: Track the timers here, this makes timers per
23683         thread, like MS.
23684         * XplatUIX11.cs: The timers are moved to the XEventQueue.
23685
23686 2006-08-19  Chris Toshok  <toshok@ximian.com>
23687
23688         * XplatUIX11.cs: after further communication with pdb, we get the
23689         best of both worlds.  SetZOrder working for un-Mapped windows, and
23690         no X errors for un-mapped windows.
23691
23692 2006-08-19  Chris Toshok  <toshok@ximian.com>
23693
23694         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
23695         as it was causing pdn toolbars to not have the correct stacking.
23696
23697 2006-08-18  Mike Kestner  <mkestner@novell.com> 
23698
23699         * ListView.cs : guard against negative ClientArea.Width in scrollbar
23700         calculation.  Not sure why control should ever be setting a negative
23701         width though.  Fixes #78931.
23702
23703 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23704
23705         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
23706         null items in ObjectCollection class.
23707         * ListBox.cs.: Likewise.
23708
23709 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
23710
23711         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
23712           as the base method in ThemeWin32Classic should work fine.
23713           Fixed bug #78607.
23714
23715 2006-08-18  Jackson Harper  <jackson@ximian.com>
23716
23717         * Binding.cs: When validating if the value entered doesn't convert
23718         properly reset to the old value.
23719         * RadioButton.cs: Don't fire click when we get focus.
23720
23721 2006-08-18  Jackson Harper  <jackson@ximian.com>
23722
23723         * FileDialog.cs: Paint the selection on the directory combobox the
23724         same way as on MS. 
23725
23726 2006-08-17  Jackson Harper  <jackson@ximian.com>
23727
23728         * ErrorProvider.cs: Don't allow the error control to be selected.
23729         * Control.cs: Don't send the SetFocus messages, the control
23730         activation will do this, and if we do it blindly here validation
23731         does not work.
23732
23733 2006-08-17  Jackson Harper  <jackson@ximian.com>
23734
23735         * Control.cs:
23736         * ContainerControl.cs: Make validation events fire in the correct
23737         order.  TODO: For some reason the first validation event is not
23738         getting fired.
23739
23740 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23741
23742         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
23743
23744 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23745
23746         * ComboBox.cs : implement scroll wheel support for popped-down
23747         state. Fixes #78945. 
23748
23749 2006-08-17  Jackson Harper  <jackson@ximian.com>
23750
23751         * TreeView.cs: Specify treeview actions (old patch that didn't get
23752         committed for some reason).
23753         - Don't let the mouse wheel scroll us too far.  Just want to make
23754         the bottom node visible, not scroll it all the ways to the top.
23755
23756 2006-08-17  Jackson Harper  <jackson@ximian.com>
23757
23758         * XplatUIX11.cs: Mouse wheel events go to the focused window.
23759
23760 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23761
23762         * ComboBox.cs : don't do mouseover selection in simple mode.
23763
23764 2006-08-16  Jackson Harper  <jackson@ximian.com>
23765
23766         * Form.cs: Fire the closing events for all the mdi child windows
23767         when a window is closed.  If the cancel args are set to true, the
23768         main window still gets the event fired, but it doesn't not close.
23769         * MdiWindowManager.cs: Do this closing cleanup in a Closed
23770         handler, instead of when the button is clicked, so cancelling the
23771         close works correctly.
23772         * ComboBox.cs: Send the mouse down to the scrollbar.
23773
23774 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23775
23776         * ListBox.cs: When passing 'null' to SelectedItem,
23777         set SelectedIndex to -1, to unselect items. This is the
23778         observed behaviour in .Net.
23779
23780 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
23781
23782         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
23783           MS flags saying there won't be any. (fixes #78800)
23784         * Control.cs (HandleClick): Made virtual
23785
23786 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
23787
23788         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
23789           cultures. Fixed bug #78399.
23790
23791 2006-08-16  Jackson Harper  <jackson@ximian.com>
23792
23793         * Form.cs: Use the MdiClients MdiChildren property to access
23794         MdiChildren instead of creating the array from the child controls.
23795         * MdiClient.cs: Maintain a separate array of the mdi children, so
23796         that insertion order is maintained when the Z-order is changed.
23797
23798 2006-08-16  Mike Kestner  <mkestner@novell.com> 
23799
23800         * ListView.cs : add an ItemComparer and default to it for sorting.
23801         Fixes #79076, but sorting needs a complete overhaul to be compat with
23802         MS.
23803
23804 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
23805
23806         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
23807
23808 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23809
23810         * Hwnd.cs (Mapped): Properly traverse the tree
23811
23812 2006-08-15  Chris Toshok  <toshok@ximian.com>
23813
23814         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
23815         pass manager.Current.GetType() to ParseData.  It has to be the
23816         property type.  So, hold off doing the ParseData until we're in
23817         SetPropertyValue where we know the type.  This fixes the crash in
23818         #78821 but the textbox is still empty.
23819
23820 2006-08-15  Chris Toshok  <toshok@ximian.com>
23821
23822         * DataGrid.cs:
23823         - when we're scrolling, only call Edit() again if the
23824         current cell is still unobscured. Fixes bug #78927.
23825         - when handling mousedown on a cell, ensure the cell is visible
23826         before calling Edit.
23827         - remove the properties from DataGridRow, and remove the
23828         DataGridParentRow class altogether.
23829         
23830
23831 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23832
23833         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
23834           fire OnTextChanged by ourselves. There's no point calling base,
23835           we don't set the base value anywhere else. Fixes #78773.
23836
23837 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23838
23839         * ListBox.cs: Call CollectionChanged when modifying
23840         an item from Items indexer, to update the actual items
23841         in the list box.
23842
23843 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23844
23845         * PrintDialog.cs: Small fixes for focus and a pair of checks,
23846         to match .Net behaviour.
23847
23848 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23849
23850         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
23851
23852 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
23853
23854         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
23855
23856 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23857
23858         * MessageBox.cs: Prevent potential NRE exception.
23859         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
23860
23861 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
23862
23863         * MessageBox.cs: Calculate the owner of a messagebox, also make
23864           it topmost. Fixes #78753
23865
23866 2006-08-14  Chris Toshok  <toshok@ximian.com>
23867
23868         * XplatUIX11.cs: A couple of fixes so that metacity will let us
23869         programmatically move windows.  first, set the PPosition hint as
23870         well as the USPosition hint.  Second include some code from pdb
23871         that sets the window type to NORMAL when we set the transient for
23872         hint.  This is because, in the absence of a window type, metacity
23873         thinks any window with TransientFor set is a dialog, and refuses
23874         to let us move it programmatically.  fascists.
23875
23876 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
23877
23878         * XplatUIX11.cs: When setting normal hints, take into consideration
23879           an different hints previously set so we don't delete them (fixes #78866)
23880
23881 2006-08-12  Chris Toshok  <toshok@ximian.com>
23882
23883         * ToolBarButton.cs: make Layout return a boolean, if something to
23884         do with the button's layout changed.
23885
23886         * ToolBar.cs:
23887         - add another parameter to Redraw, @force, which all existing
23888           calls set to true.
23889         - make the Layout function return a boolean which is true if the
23890           layout has actually changed.  Redraw now uses this (and @force)
23891           to determine when to invalidate.  At present the only place
23892           where @force can be false is the call from OnResize, when
23893           background_image == null.  So, resizing a toolbar when the
23894           layout doesn't change results in no drawing.
23895
23896 2006-08-12  Chris Toshok  <toshok@ximian.com>
23897
23898         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
23899         the VScrollBar and HScrollbar reversed.  oops.
23900
23901         * DataGrid.cs: fix the logic that assigns sizes to the implicit
23902         scrollbars.  we were assigning them twice (once in
23903         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
23904         therefore causing two scrollbar resizes (and redraws?) to happen
23905         per grid resize.
23906
23907 2006-08-12  Chris Toshok  <toshok@ximian.com>
23908
23909         * ToolBarButton.cs: redraw the entire button if the theme tells us
23910         to.
23911
23912         * Theme.cs: add ToolBarInvalidateEntireButton.
23913
23914         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
23915         buttons, just the border.
23916
23917         * ThemeNice.cs: redraw the entire toolbar button since we need to
23918         draw the highlight image.
23919
23920         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
23921         we need to redraw the entire button (not just the border).
23922
23923 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
23924
23925         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
23926           for vertical bars. Fixes the mismatches shown by #78513
23927
23928 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
23929
23930         * FileDialog.cs: If a saved/remembered path doesn't exist
23931           anymore, fall back to "Desktop".
23932
23933 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
23934
23935         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
23936           parent. It's apparently legal to not have one
23937         * XplatUIX11.cs:
23938           - SetZOrder: Don't try to set Z-Order on an unmapped window
23939           - CreateWindow: 0,0 are legal coordinates for a window. don't move
23940             it unless the coordinates are negative
23941
23942 2006-08-10  Mike Kestner  <mkestner@novell.com>
23943
23944         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
23945         when setting to null per msdn docs.  Fixes #78854.
23946
23947 2006-08-10  Chris Toshok  <toshok@ximian.com>
23948
23949         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
23950         flickering by setting a clip rectangle on the Graphics when we
23951         need to redraw just a particular menuitem.  Also, rename "OnClick"
23952         to "OnMouseDown" to reflect what it actually is.
23953         
23954         * Form.cs: track the OnMouseDown change.
23955
23956 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
23957
23958         * CommonDialog.cs: Properly inherit the CreateParams from the form
23959           and only change what we need. Fixes #78865
23960
23961 2006-08-10  Chris Toshok  <toshok@ximian.com>
23962
23963         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
23964         flickering in flat mode (and most of the flickering in general) by
23965         only invalidating the button border (and not the entire rectangle)
23966         when the state changes.  A couple of cases still flicker:
23967         ToggleButtons, and the dropdown arrow case when the user mouse
23968         ups.
23969
23970 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
23971
23972         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
23973           for german keyboards. Numlock state shouldn't affect the behaviour
23974           of the Del key. Fixes bug #78291.
23975
23976 2006-08-10  Chris Toshok  <toshok@ximian.com>
23977
23978         * ListControl.cs: remove the items.Clear line from BindDataItems,
23979         as this is the first thing done by both subclasses in their
23980         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
23981         passed -1, refresh the list.  This gets databinding working when
23982         the datasource is set on the list before the datasource is
23983         populated (as in wf-apps/ReportBuilder.)
23984
23985         * ComboBox.cs: remove the argument to BindDataItems.  This call
23986         should really go away, and be initiated by the ListControl code.
23987
23988         * ListBox.cs: same.
23989
23990 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
23991
23992         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
23993           if no data is in the document when the control is displayed
23994
23995 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
23996
23997         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
23998           yes (fixes #78806)
23999         * TextControl.cs: 
24000           - PositionCaret: Allow positioning of caret but don't call methods 
24001             requiring a handle if the window isn't created yet
24002           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
24003           - owner_HandleCreated: Don't position the caret, just update it's 
24004             location. User might have already set a different position
24005
24006 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
24007
24008         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
24009           windows. Screws up the returned coordinates for child windows. 
24010           Fixes #78825. I'm hoping this doesn't break something, since the
24011           code was explicitly put in 8 months ago, but no bug was attached.
24012           Menus still seem to work properly.
24013
24014 2006-08-08  Chris Toshok  <toshok@ximian.com>
24015
24016         * DataGrid.cs: make BeginInit/EndInit actually do what they're
24017         supposed to do - delay data binding until the EndInit call.  Also,
24018         make the table style collection's CollectionChangeAction.Refresh
24019         work properly.
24020
24021         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
24022         (with action = Refresh) when a consituent table's MappingName is
24023         changed.
24024
24025 2006-08-08  Chris Toshok  <toshok@ximian.com>
24026
24027         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
24028         Invalidate, since changing the text can change the size of the all
24029         toolbar buttons.
24030
24031 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24032
24033         * Form.cs (AddOwnedForm): Still need to add the form to our listif
24034           we don't have it yet
24035
24036 2006-08-08  Chris Toshok  <toshok@ximian.com>
24037
24038         * PrintControllerWithStatusDialog.cs: don't .Close() the status
24039         dialog, as this causes X errors later on, since we actually
24040         destroy the window.  Instead, .Hide() it.
24041
24042 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24043
24044         * ComboBox.cs: Added focus reflection for popup window
24045         * XplatUIX11.cs: 
24046           - Removed transient setting for non-app windows for now, not sure it
24047             was needed
24048           - Fixed logic checking if we have captions when deciding 
24049             override_redirect, WS_CAPTION is two bits and a 0 check was not
24050             sufficient
24051           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
24052             complicated
24053         * Form.cs: 
24054           - AddOwnedForm: Don't just add the form to the list, call the property
24055             to ensure the driver is informed about the ownership as well
24056           - CreateHandle: Set the TopMost status in the driver if we have an owner
24057         * XplatUI.cs: Fixed debug statement
24058
24059 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
24060         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24061           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
24062           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
24063           TrackBarRenderer.cs: Make constructor private.
24064         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
24065         * ProfessionalColorTable.cs: Make properties virtual.
24066
24067 2006-08-06  Duncan Mak  <duncan@novell.com>
24068
24069         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
24070         is not changing.
24071
24072 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24073         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24074           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
24075           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
24076           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
24077           Initial import of new 2.0 classes.
24078
24079 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24080         * Application.cs: Add 2.0 VisualStyles properties.
24081
24082 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24083         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
24084           XplatUIX11.cs: Create property to allow access to existing private
24085           variable "themes_enabled"
24086
24087 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24088
24089         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
24090         file size, as otherwise our class libraries fail using windows. Fixes
24091         bug #78759.
24092
24093 2006-08-04  Jackson Harper  <jackson@ximian.com>
24094
24095         * Form.cs:
24096         * XplatUIX11.cs: Move the toolwindow window manager creation into
24097         the X11 driver, this way on win32 we can let windows create/handle
24098         the toolwindows.
24099
24100 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24101
24102         * PrintDialog.cs: Remove some redundant checks, add some others,
24103         clean some code, and move the focus to the text boxes when the
24104         values are incorrect.
24105
24106 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
24107
24108         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
24109
24110 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
24111
24112         * NumericUpDown.cs: Setting the Minimum and Maximum is now
24113           handled correctly. Fixes bug #79001.
24114
24115 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24116
24117         * PrintDialog.cs: The "Copies" numeric up down must have
24118         set the Minimum property to 1; only if the value is bigger
24119         than 1, activate "Collate" check box. This is the behaviour of .Net.
24120         Also modify the Document elements only if it is not null.
24121
24122 2006-08-03  Jackson Harper  <jackson@ximian.com>
24123
24124         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
24125         length. (We have a larger array then actual node count).
24126                 
24127 2006-08-03  Jackson Harper  <jackson@ximian.com>
24128
24129         * ComboBox.cs: Don't show selection by default.
24130         - The SelectAll isn't needed here, since the focus code should do
24131         that
24132         - DDL style lists to manual selection drawing, so when they
24133         get/lose focus they have to invalidate.
24134
24135 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
24136
24137         * TextBoxBase.cs: Don't always show all selections by default.
24138
24139 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
24140         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
24141           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
24142           Fixed various typos.
24143
24144 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
24145
24146         * Control.cs: Removing the controls in a ControlCollection with
24147           Clear now hides the controls as expected. Fixes bug #78804. 
24148
24149 2006-08-03  Jackson Harper  <jackson@ximian.com>
24150
24151         * Control.cs: Revert previous focus patch, it breaks reflector.
24152
24153 2006-08-03  Jackson Harper  <jackson@ximian.com>
24154
24155         * ComboBox.cs: Cleanup selection and focus with the combobox.
24156         This also eliminates some duplicated keyboard code, since now
24157         everything is handled by the main class.
24158         - Make list selection work on mouse up instead of down, to match
24159         MS.
24160
24161 2006-08-02  Jackson Harper  <jackson@ximian.com>
24162
24163         * Control.cs: Setting focus needs to go through the whole
24164         selection mechanism.
24165
24166 2006-08-02  Chris Toshok  <toshok@ximian.com>
24167
24168         * PrintPreviewDialog.cs: change MinimumSize to use
24169         base.MinimumSize so it works.
24170
24171 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
24172
24173         * TextControl.cs:
24174           - UpdateCaret: Added sanity check in case caret isn't defined yet
24175           - Line.Delete: Now updating selection and caret markers if we're
24176             transfering a node (Properly fixes #78323)
24177           - SetSelectionEnd: Added sanity check
24178         * TextBoxBase.cs: Removed broken attempt to fix #78323
24179
24180 2006-08-01  Chris Toshok  <toshok@ximian.com>
24181
24182         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
24183         Close() call is handled in Form, not here.
24184
24185 2006-08-01  Chris Toshok  <toshok@ximian.com>
24186
24187         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
24188         layout/rendering.
24189
24190         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
24191         for sizes < 100% zoom.  The code now aggressively attempts to keep
24192         from calling document.Print (), and tries not to use the scaling
24193         g.DrawImage whenever possible (it still does if you scale to >
24194         100%, since usually that involves huge images).
24195
24196         * PrintPreviewControl.cs: hook up the close button.
24197
24198 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
24199         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
24200           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
24201           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
24202           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
24203           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
24204           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
24205           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
24206           Removed [Serializable] for 2.0 Event Handlers.
24207
24208 2006-07-31  Jackson Harper  <jackson@ximian.com>
24209
24210         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
24211         * TextControl.cs: Uncomment out the body of this method.
24212
24213 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
24214
24215         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
24216           standard cursors.
24217
24218 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24219
24220         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
24221           that embed TextBox and need selections visible even if textbox is not
24222           focused to enforce that behaviour.
24223         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
24224           selection drawing
24225
24226 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24227
24228         * TextControl.cs:
24229           - Added new SetSelectionStart/SetSelectionEnd overloads
24230           - Fixed viewport width assignment to be accurate
24231           - Adjusted alignment line shift calculations to allow cursor on right
24232             aligned lines to be always visible at the right border (like MS)
24233         * TextBoxBase.cs:
24234           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
24235           - TextBoxBase_SizeChanged: recalculating canvas on size changes
24236           - CalculateScrollBars: Use ViewPort size instead of window size, to
24237             properly consider space occupied by the border and scrollbars 
24238             (Fixes #78661)
24239           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
24240             calculations; no longer leaves artifacts
24241           - CaretMoved: Adjusted window scrolling to match MS and fixed several
24242             calculation bugs (Still missing right/center align calculations)
24243
24244 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
24245
24246         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
24247           use of both scroll rect and clip rect, as they do the same.
24248
24249 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24250
24251         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
24252           in the event handler (fixes #78912)
24253
24254 2006-07-31  Chris Toshok  <toshok@ximian.com>
24255
24256         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
24257         grid.ListManager.Count, since grid.ListManager might be null.
24258         This of course begs the question "why are we drawing rows for a
24259         grid with no list manager (and therefor no rows)?"  Fixes the
24260         crash in bug #78929.
24261
24262 2006-07-31  Chris Toshok  <toshok@ximian.com>
24263
24264         * RelatedPropertyManager.cs: Don't always chain up to the parent
24265         ctor.  instead, call SetDataSource if the parent's position is !=
24266         -1.  Fixes the crash in #78822.
24267
24268 2006-07-31  Chris Toshok  <toshok@ximian.com>
24269
24270         * DataGrid.cs (get_ListManager): use field instead of property
24271         accessors for datasource and datamember.
24272         (RowsCount): make internal again.
24273         (OnMouseDown): end edits before resizing columns/rows.
24274         (OnMouseUp): restart edits after resizing columns/rows.
24275
24276 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
24277
24278         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
24279           This fixes the situation where the last set cursor is displayed
24280           whenever the mouse is over scrollbars.
24281
24282 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24283
24284         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
24285         Document properties, as well as initial values.
24286
24287 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
24288
24289         * XplatUIWin32.cs (SetBorderStyle): Setting both border
24290           and ClientEdge results in a 3-pixel border, which is
24291           wrong.
24292
24293 2006-07-28  Jackson Harper  <jackson@ximian.com>
24294
24295         * TreeNodeCollection.cs: Fix the clear method.
24296         - Fix the Shrink also
24297
24298 2006-07-27  Jackson Harper  <jackson@ximian.com>
24299
24300         * TreeView.cs: Make sure the visible order is computed when we
24301         attempt to size the scrollbars (for trees that mess with the
24302         scrolling when they shouldn't.
24303         - Make sure to give the scrollbars valid values.
24304
24305 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
24306
24307         * XplatUIX11.cs: Move motion compression code to where it
24308           has less performance impact
24309
24310 2006-07-26  Jackson Harper  <jackson@ximian.com>
24311
24312         * UpDownBase.cs: When the control is selected make the child
24313         controls non selectable, so that a click on them won't do a
24314         focus/unfocus cycle.
24315         - Don't give focus to the text box when the spinner is selected.
24316         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
24317
24318 2006-07-26  Chris Toshok  <toshok@ximian.com>
24319
24320         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
24321         satisfied with this solution.  If the bitmaps are small, we should
24322         just cache them in the PrintPreviewDialog and draw them here.
24323         Also, the layout is broken for the 2-up and 3-up cases.
24324
24325         * Theme.cs: add PrintPReviewControlPaint.
24326
24327         * PrintPreviewDialog.cs: first pass implementation.
24328
24329         * PrintPreviewControl.cs: first pass implementation.  No
24330         scrollbars yet.
24331
24332         * PrintDialog.cs: only validate fields if that particular portion
24333         of the UI is enabled.  Also, set the document's controller to a
24334         PrintControllerWithStatusDialog wrapping the document's print
24335         controller.
24336
24337         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
24338         bring up a SaveFileDialog (i hope we don't want to match the
24339         behavior of the crappy windows file entry) and set the
24340         PrinterSettings.PrintFileName accordingly.
24341
24342 2006-07-26  Jackson Harper  <jackson@ximian.com>
24343
24344         * ContainerControl.cs: Add a field that disables auto selecting
24345         the next control in a container when the container is activated.
24346         * UpDownBase.cs: Don't select the text box when the up down is
24347         selected.
24348
24349 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
24350
24351         * XEventQueue.cs: Added methods for peeking (used for compression
24352           of successive events)
24353         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
24354           mouse move events (fixes #78732)
24355
24356 2006-07-25  Jackson Harper  <jackson@ximian.com>
24357
24358         * UpDownBase.cs: Use an internal class for the textbox so that we
24359         can control focus.  the updown control should always have focus,
24360         if either the text area or the buttons are clicked.
24361         - Send the key messages to the textbox, since it never actually
24362         has focus
24363         - Activate and decativate the textbox caret.
24364
24365 2006-07-24  Jackson Harper  <jackson@ximian.com>
24366
24367         * Control.cs: Use the directed select when selecting a control,
24368         this way the container controls override will get called and the
24369         whole ActiveControl chain will get triggered.  TODO: probably need
24370         to make sure this gets done everywhere instead of the old
24371         Select(Control).
24372         * ContainerControl.cs: Implement the directed Select method to
24373         find and activate the correct child control.    
24374         
24375 2006-07-22  Mike Kestner  <mkestner@novell.com>
24376
24377         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
24378         menu handling code so that clicks without a grab work too.
24379         [Fixes #78914]
24380
24381 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
24382
24383         * FileDialog.cs: Enable the BackButton when dirstack has one element.
24384           Added some small optimizations.
24385
24386 2006-07-21  Matt Hargett  <matt@use.net>
24387
24388         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
24389
24390 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
24391
24392         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
24393           tests pass and match MS in some strange border cases.
24394
24395 2006-07-21  Chris Toshok  <toshok@ximian.com>
24396
24397         * ThemeWin32Classic.cs: handle drawing of the relation links and
24398         parent row buttons.
24399
24400         * Theme.cs: change args to DataGridPaintParentRow.
24401
24402         * DataGrid.cs: Don't use controls for the relation links and
24403         parent buttons, so we have to handle all their interactions in
24404         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
24405         when we're navigating through child tables, so we can reinstate
24406         selection, expanded state, current cell, etc.
24407
24408 2006-07-20  Chris Toshok  <toshok@ximian.com>
24409
24410         * ToolBar.cs: When we redraw a button, for whatever reason,
24411         there's no reason to redraw the entire toolbar.  Also, don't call
24412         Control.Refresh from within Redraw, as it's much heavier than
24413         Invalidate (which is really what we want).
24414
24415 2006-07-20  Chris Toshok  <toshok@ximian.com>
24416
24417         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
24418         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
24419         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
24420         traces from within a debug IBindingList datasource
24421         (in mono/winforms/datagrid) for *days*, I've finally gotten things
24422         to work in a similar fashion.
24423
24424 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24425
24426         * ListBox.cs: Don't call Sort () when setting 
24427         the Sorted property to false (avoid an unnecessary sort).
24428
24429 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24430
24431         * ListControl.cs: DataSource should throw an ArgumentException
24432         instead of a normal exception when the argument is not of the 
24433         correct type.
24434
24435 2006-07-20  Mike Kestner  <mkestner@novell.com>
24436
24437         * Control.cs: add InternalPreProcessMessage to allow us to steal
24438         key events before MWF gets its paws on them.  Adapted from a
24439         suggestion by eno.
24440         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
24441         up/down/left/right navigation. Override the new internal control
24442         method to steal the events since they never make it to WndProc.
24443         * ToolBarButton.cs: don't worry about pushed when setting hilight
24444         since the drawing code prefers pushed to hilight. Invalidate on 
24445         Hilight changes. Fixes #78547 and #78525.
24446
24447 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
24448
24449         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
24450           the canvas size. Fixes #78868
24451
24452 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
24453
24454         * Splitter.cs: Track requested split position until first layout
24455           is performed. Fixes #78871
24456
24457 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
24458
24459         * Application.cs: Removed code that forces 1.x for the version
24460           number if the version started with 0. Not sure why that code was
24461           there and I couldn't find any bugs that indicated we needed it.
24462           Fixes #78869
24463
24464 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
24465
24466         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
24467           ResetDefaults(), just write some output to the console until it's
24468           implemented. Fixes bug #78907 for now. Eliminated two warnings.
24469
24470 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
24471
24472         * PropertyGridView.cs: set StartPosition of drop down forms
24473         so they appear in correct initial spot.  Fixes #78190.
24474
24475 2006-07-19  Mike Kestner  <mkestner@novell.com>
24476
24477         * ThemeWin32Classic.cs: use parent background color when drawing
24478         flat toolbars.  Restructure the conditionals to make sure non-flat
24479         non-Divider toolbars are filled too.  Fixes #78837.
24480
24481 2006-07-19  Mike Kestner  <mkestner@novell.com>
24482
24483         * ListBox.cs: Sort on collection changes even if the handle
24484         isn't created yet.  Fixes #78813.
24485
24486 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24487
24488         * ListControl.cs: DisplayMember should never be null,
24489         and now we assign String.Empty when null is passed to it (this
24490         is the .Net way).
24491
24492 2006-07-17  Mike Kestner  <mkestner@novell.com>
24493
24494         * ListViewItem.cs: restructure Font and subitem Font handling 
24495         to hold a specific font and refer back to owner on null.
24496         Fixes #78761.
24497
24498 2006-07-17  Mike Kestner  <mkestner@novell.com>
24499
24500         * ToolBar.cs: bandaid for side-effect of previous patch which was
24501         discarding explicit heights for non-AutoSize toolbars.  Need to
24502         extend my format tester to deal with AutoSize=false. Fixes #78864.
24503
24504 2006-07-15  Jackson Harper  <jackson@ximian.com>
24505
24506         * LabelEditTextBox.cs:
24507         * TreeView.cs: Use a new LabelEdit class for node editing, this
24508         class automatically 'closes' itself when it gets the enter key or
24509         loses focus.
24510         - Use the client rectangle when setting the trees scrollbars, so
24511         border style is taken into account.
24512         
24513 2006-07-14  Jackson Harper  <jackson@ximian.com>
24514
24515         * TreeNode.cs:
24516         * TreeView.cs: Make the editing work similar to MSs, firing the
24517         events correctly and ending edits correctly.
24518
24519 2006-07-14  Mike Kestner  <mkestner@novell.com>
24520
24521         * ToolBarButton.cs:
24522         * ToolBar.cs: layout restructuring and redraw enhancements to support
24523         formatting changes gracefully, like setting TextAlign, ImageList, 
24524         ButtonSize, and Appearance.  Handles explicit button sizing quirks
24525         of the MS controls.  Things like flat toolbars ignoring button size
24526         but becoming constant sized at the largest button's size.  Normal
24527         toolbars with an image set cannot be shrunk smaller than the image,
24528         but text can be clipped/ignored.
24529         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
24530         is zero.  Seems like DrawString should be smart enough to not put
24531         anything on screen though. Also trim labels and ellipsize at the char
24532         boundary, not word.
24533         Fixes #78711 and #78483.
24534
24535 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24536
24537         * FolderBrowserDialog.cs: Disable "New Folder" button and
24538           "New Folder" contextmenu menuitem if a folder like "My Computer"
24539           is selected.
24540
24541 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24542
24543         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
24544         * FolderBrowserDialog.cs:
24545           - Use MWFConfig to store and read size and position settings
24546           - Added code to create a new folder (button or context menu).
24547             Use TreeView labeledit to change the name of the new folder.
24548
24549 2006-07-14  Jackson Harper  <jackson@ximian.com>
24550
24551         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
24552         when the tree is scrolled we end editing.
24553
24554 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24555
24556         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
24557           Down arrows
24558
24559 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
24560
24561         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
24562         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
24563         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
24564         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
24565         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
24566         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
24567         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
24568         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
24569         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
24570         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
24571         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
24572         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
24573         ListViewItemSelectionChangedEventHandler.cs,
24574         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
24575         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
24576         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
24577         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
24578         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
24579         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
24580         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
24581         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
24582         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
24583         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
24584         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
24585         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
24586         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
24587         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
24588         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
24589         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
24590         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
24591         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
24592         WebBrowserNavigatingEventHandler.cs, 
24593         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
24594
24595 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
24596
24597         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
24598         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
24599         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
24600         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
24601         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
24602         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
24603         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
24604         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
24605         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
24606         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
24607         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
24608         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
24609         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
24610         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
24611         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
24612         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
24613         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
24614         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
24615         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
24616         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
24617         ListViewItemStates.cs, MaskFormat.cs: Added
24618
24619 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
24620
24621         * PropertyGridView.cs: Fix keyboard navigation of drop down.
24622         Patch from eno for bug 78558.
24623         
24624 2006-07-13  Jackson Harper  <jackson@ximian.com>
24625
24626         * TreeView.cs: When an edit is finished make sure that the
24627         selected node is visible.
24628         - When setting the top/bottom use the scrollbars is_visible, so
24629         everything will be set correctly even if the tree isn't visible
24630         yet.
24631
24632 2006-07-13  Jackson Harper  <jackson@ximian.com>
24633
24634         * ComboBox.cs: Revert the item->index part of my previous patch.
24635         * TreeView.cs: Use LostFocus instead of Leave for detecting when
24636         the edit box has lost focus (duh).
24637         - Just make the edit box not visible when we get return, that will
24638         take the focus, which will call EndEdit
24639         * TreeNode.cs When we start editing, notify the treeview.
24640
24641 2006-07-12  Jackson Harper  <jackson@ximian.com>
24642
24643         * ComboBox.cs: Clear out old items before setting the item list.
24644         This prevents databound controls from having their items added
24645         twice.
24646         - Switch the combobox to use indices whereever possible instead of
24647         using Item's.  This allows usto navigate through lists that have
24648         more then one item with the same string value (ie a, b, b, a).
24649         - Scroll the listboxes scrollbar when a non visible item is
24650         highlighted
24651         - Allow keypress to cycle through all the possible values. For
24652         example if you have b1, b2, b3 and hold down the B key all the
24653         values will be cycled through.
24654         
24655 2006-07-12  Jackson Harper  <jackson@ximian.com>
24656
24657         * TextBoxBase.cs:
24658         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
24659         this using the internal methods.
24660         * Control.cs: Add OnGotFocusInternal.  A new method that allows
24661         controls to "override" OnGotFocus and change focus behavior if
24662         needed.
24663         - Same thing for LostFocus
24664         * ComboBox.cs: Pass off focus to the text control properly.
24665
24666 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
24667
24668         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
24669         * FolderBrowserDialog.cs: Almost a complete rewrite.
24670           - Better support for Environment.Specialfolders
24671           - Added support for MWFVFS
24672           - Made setting SelectedPath work
24673
24674 2006-07-12  Jackson Harper  <jackson@ximian.com>
24675
24676         * Control.cs: Optimze getting all the controls.
24677
24678 2006-07-11  Jackson Harper  <jackson@ximian.com>
24679
24680         * ContainerControl.cs: Override SETFOCUS in the container control,
24681         so that it is not selected on mouse click.
24682
24683 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
24684
24685         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
24686           Hopefully we will have a better way once all of focus is complete.
24687
24688 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
24689
24690         * ThemeWin32Classic.cs: Commented out some debug code and fixed
24691           a compile error with csc.
24692
24693 2006-07-11  Jackson Harper  <jackson@ximian.com>
24694
24695         * Control.cs: When hiding a control only select the next control
24696         if the current control was focused.
24697         - Don't handle enter/leave when setting/killing focus, this is
24698         done by the container control.
24699         - Remove is_selected, it's not needed anymore.
24700         - Add utility methods for selecting a child control, and for
24701         firing the Enter/Leave events.
24702         * ContainerControl.cs: When a control is activated fire the
24703         enter/leave events.
24704         - Don't wrap when processing the tab key, so that focus can be
24705         moved outside of the container.
24706         - Use the correct active control
24707
24708 2006-07-11  Jackson Harper  <jackson@ximian.com>
24709
24710         * ComboBox.cs: Remove some debug code that was blinding me.
24711         * UpDownBase.cs: These controls actually aren't implicit, they are
24712         visible to the user.
24713
24714 2006-07-10  Chris Toshok  <toshok@ximian.com>
24715
24716         * DataGrid.cs: move back to the is_adding boolean field.  god i
24717         hate this is_editing/is_adding/is_changing stuff.
24718
24719 2006-07-10  Chris Toshok  <toshok@ximian.com>
24720
24721         * DataGridTableStyle.cs: just check if the property type is bool.
24722         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
24723         Don't use CanRenderType.
24724
24725         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
24726         if our text == NullText.  Remove CanRenderType.
24727
24728         * DataGridBoolColumn.cs: nuke CanRenderType.
24729
24730         * DataGrid.cs: reenable some code to end the current edit inside
24731         of set_CurrentCell.  This fixes the other 1.1.16 regression.
24732         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
24733         Also, remove the visible_row_count arg from CalcRowHeaders, since
24734         we don't need to worry about the actual height of the area.
24735
24736 2006-07-10  Chris Toshok  <toshok@ximian.com>
24737
24738         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
24739         mode, just return.
24740
24741         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
24742         the real sense of the IsInEditOrNavigateMode property (true =
24743         navigate, false = edit).  Also, update OnKeyPress to reflect this.
24744
24745         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
24746         column style exists, we still need to set its property descriptor
24747         to match up with our list manager.
24748
24749 2006-07-10  Chris Toshok  <toshok@ximian.com>
24750
24751         * ThemeWin32Classic.cs: implement the new row/header painting
24752         approach.  The parent row painting will likely go away and
24753         replaced with label controls, but the rest seems to work ok (and
24754         efficiently).
24755
24756         * Theme.cs: change the way we draw datagrid rows.  we don't draw
24757         the row headers as a block now.  Instead we draw them in the
24758         normal draw-row loop.  Add some calls for drawing parent rows and
24759         relation rows.
24760
24761         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
24762         a default table style.  Set the defaults from ThemeEngine.Current,
24763         not SystemColors.  Fix lots of misc issues with property setters.
24764
24765         * DataGrid.cs: move loads of style information out of this class
24766         as it's being duplicated with DataGridTableStyle.  keep track of a
24767         special DataGridTableStyle for the properties we used to mirror
24768         here.  Switch all the style properties to access this table style
24769         instead of instance fields of this class.  Also add a internal
24770         class to represent parent rows (more needs to be stored here, like
24771         the selection state from the parent table, as well as the
24772         expansion state.)  Also, for datasources with relations, do the
24773         right thing for collapse/expand, and add support for the
24774         navigation/parent row buttons.
24775
24776         Lastly, fix the crash in the 1.1.16 build.
24777
24778         * GridTableStylesCollection.cs: make the explicit interface
24779         implementations call the class's methods as opposed to duplicating
24780         them.
24781
24782         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
24783         0 so the text doesn't jump around when we move the cursor.
24784
24785 2006-07-10  Jackson Harper  <jackson@ximian.com>
24786
24787         * TextBoxBase.cs:
24788         * ListBox.cs: Match MS's ToString (this makes debugging focus
24789         stuff infinitely easier).
24790
24791 2006-07-10  Jackson Harper  <jackson@ximian.com>
24792
24793         * Control.cs (SelectNextControl): When checking the control's
24794         parent use this instead of ctrl.parent so that null can be passed
24795         to SelectNextControl. (I have unit tests for this).
24796         - Remove unused var.
24797
24798 2006-07-10  Chris Toshok  <toshok@ximian.com>
24799
24800         * CurrencyManager.cs: correct one regression, the removal of the
24801         finalType field.  Also, add a MonoTODO on CanAddRows, implement
24802         Refresh() correctly, and fix some event emission in
24803         ListChangedHandler.
24804
24805 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
24806
24807         * FileDialog.cs: Don't use brackets for new folders if they exist
24808           under *nix. Instead use -(number of existing folders +1).
24809
24810 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
24811
24812         * FileDialog.cs:
24813           - Fixed really nasty bug #78771
24814           - Don't block the whole GUI when reading directories with a lot of
24815             entries. Use an other thread instead and call BeginInvoke to
24816             update the ListView in MWFFileView
24817
24818 2006-07-07  Chris Toshok  <toshok@ximian.com>
24819
24820         * Control.cs (Dispose): release any Capture when disposing.
24821
24822 2006-07-07  Chris Toshok  <toshok@ximian.com>
24823
24824         * LinkLabel.cs (Select): if we chain up to the parent, set
24825         focused_index to -1 so we'll search for the first available link
24826         the next time the user tabs into us.  Also, if the direction is
24827         backward and focused_index == -1, start the search from the last
24828         element.
24829
24830 2006-07-07  Chris Toshok  <toshok@ximian.com>
24831
24832         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
24833         is beyond the end of the text, don't do anything.
24834         (CreateLinkPieces): set our ControlStyles.Selectable based on
24835         whether or not we have any links.
24836         (Link.Invalidate): use a loop instead of foreach.
24837         (Link.set_Start): null out owner.sorted_links so it'll be
24838         recreated by CreateLinkPieces.
24839
24840 2006-07-06  Chris Toshok  <toshok@ximian.com>
24841
24842         * LinkLabel.cs: revert the SetStyle change.
24843
24844 2006-07-06  Chris Toshok  <toshok@ximian.com>
24845
24846         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
24847         (OnEnableChanged): s/Refresh/Invalidate
24848         (OnGotFocus): if we have a focused index already, refocus it (so
24849         if we mouse out/in to the window it'll focus the right link).
24850         (OnKeyDown): move the tab handling out of here.
24851         (OnLostFocus): don't set focused_index to -1, so we can refocus it
24852         when we lose focus.
24853         (OnMouseDown): don't Capture here - Control handles it.  Also,
24854         focus the active link.
24855         (OnMouseUp): don't deal with Capture.
24856         (OnPaintBackgroundInternal): remove.
24857         (OnTextAlignChanged): CreateLinkPieces before calling the
24858         superclass's method.
24859         (OnTextChanged): call CreateLinkPieces before calling superclass's
24860         method.
24861         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
24862         move around.
24863         (Select): implement this, moving the selection between different
24864         links, and call parent.SelectNextControl if we don't have another
24865         link to focus in the given direction.
24866         (CreateLinkPieces): call Invalidate instead of Refresh.
24867         
24868 2006-07-06  Chris Toshok  <toshok@ximian.com>
24869
24870         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
24871         new LinkLabel internals.
24872
24873         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
24874         over pieces looking for active/focused/etc links.  also, deal with
24875         runs of text (and links) with embedded \n's in them, and use
24876         MeasureCharacterRanges instead of MeasureString to figure out the
24877         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
24878         two-step.
24879
24880 2006-07-04  Jackson Harper  <jackson@ximian.com>
24881
24882         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
24883         XKB or key auto repeat, do it manually.  Without key auto repeat,
24884         when a key is held down we get key press, key release, key press,
24885         key release, ... with auto repeat we get key press, key press, key
24886         press ..., and then a release when the key is actually released.
24887
24888 2006-07-03  Jackson Harper  <jackson@ximian.com>
24889
24890         * TabControl.cs:
24891         * ThemeWin32Classic.cs: Tabs do not obey normal background color
24892         rules, they are always control color regardless of the background
24893         color.
24894
24895 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
24896
24897         * FileDialog.cs: Added internal class MWFConfig.
24898           Removed Registry support and replaced it with support for the new
24899           MWFConfig class. See MWFConfig comments for more information.
24900
24901 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
24902
24903         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
24904           rectangle. Added some patches from eno from bug #78490 and fixed
24905           the arrow position for small up and down CPDrawScrollButtons.
24906
24907 2006-06-30  Jackson Harper  <jackson@ximian.com>
24908
24909         * InternalWindowManager.cs: Remove some debug code.
24910         * Form.cs: When an MdiParent is set to null, the window is
24911         "detatched" and becomes a normal window.
24912         * MdiClient.cs: Don't bring the new child form to the front until
24913         it is activated (setting it as active does this), this makes the
24914         previously active forms titlebar get redrawn as inactive.
24915
24916 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
24917
24918         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
24919           with later controls
24920
24921 2006-06-29  Mike Kestner  <mkestner@novell.com>
24922
24923         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
24924         arrow in keynav state.  Fixes #78682.
24925
24926 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
24927
24928         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
24929           order (fixes #78393)
24930
24931 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
24932
24933         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
24934           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
24935           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
24936           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
24937           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
24938           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
24939           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
24940           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
24941           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
24942           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
24943           enumerations (FlagsAttribute, SerializableAttribute, added/removed
24944           values)
24945
24946 2006-06-28  Mike Kestner  <mkestner@novell.com>
24947
24948         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
24949
24950 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
24951
24952         * PropertyGrid.cs,
24953           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
24954           item lines from other area (It also makes BackColor consistent and
24955           compatible with .NET). Fixed bug #78564.
24956
24957 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
24958
24959         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
24960         Patch from Eno for #78555.
24961
24962 2006-06-27  Chris Toshok  <toshok@ximian.com>
24963
24964         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
24965
24966         * DataGridColumnStyle.cs: same.
24967
24968         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
24969         
24970         * DataGridDrawingLogic.cs: nuke.
24971
24972 2006-06-27  Chris Toshok  <toshok@ximian.com>
24973
24974         * DataGridTableStyle.cs: clean up the constructors, and build the
24975         list of child relations for this table.  I have no idea if this is
24976         where we should be doing it (it probably isn't), but since we're
24977         already iterating over the properties..
24978
24979         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
24980         struct and array for keeping track of row information, similar to
24981         what's shown in a hack on
24982         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
24983
24984         * Theme.cs: be consistent about the naming of DataGrid methods,
24985         prefering ColumnWidths and RowHeights over columnsWidths and
24986         RowsHeights.
24987
24988         * ThemeWin32Classic.cs: same, and also add support for variable
24989         sized rows (and the +/- expansion icons for related rows).
24990
24991 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
24992
24993         * TextBoxBase.cs: Applied Eno's patch from #78660
24994
24995 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
24996
24997         * Form.cs (ScaleCore): We don't want to scale our form if it's
24998           state is minimized or maximized, but we still need to scale our
24999           child windows. Also, added try/finally block to ensure layout
25000           gets reset (Fixes #78697)
25001
25002 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
25003
25004         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
25005
25006 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
25007
25008         * Form.cs: Fixed c+p error and added check to resize form if minimum
25009           size is bigger than current size (Fixes #78709)
25010
25011 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
25012
25013         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
25014
25015 2006-06-26  Mike Kestner  <mkestner@novell.com>
25016
25017         * ComboBox.cs: only do Keypress handling in the combo when there  
25018         are items in the collection. Fixes #78710.
25019
25020 2006-06-26  Chris Toshok  <toshok@ximian.com>
25021
25022         * Binding.cs: make this work bi-directionally.  also, clear up
25023         other mixups between Push/Pull Data (e.g. we're supposed to pull
25024         data when validating).
25025
25026         * BindingManagerBase.cs: trim some fully qualified collection
25027         types.
25028
25029         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
25030
25031 2006-06-23  Chris Toshok  <toshok@ximian.com>
25032
25033         * PropertyManager.cs: It appears (according to the unit tests)
25034         that PropertyManager doesn't use
25035         PropertyDescriptor.AddValueChanged to track propery value changes
25036         in its datasource, but uses the same scheme as Binding, where it
25037         looks for a <Property>Changed event and binds to it.
25038
25039         Also, according to the docs, IsSuspended always returns false for
25040         a property manager with a non-null datasource.
25041
25042 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
25043
25044         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
25045           need to update the actual DialogResult. (Fixes #78613)
25046
25047 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
25048
25049         * Form.cs (ShowDialog): Release any captures before running the
25050           new message pump (fixes #78680)
25051
25052 2006-06-22  Mike Kestner  <mkestner@novell.com>
25053
25054         * ListView.cs: Layout column widths properly in details mode even 
25055         if HeaderStyle.None is set.  Fixes #78691.
25056
25057 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
25058
25059         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
25060
25061 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
25062
25063         * Control.cs (ContainsFocus): Using new driver method to get focused
25064           window, instead of trying to use internal tracking var, which can
25065           recursion issues (Fixes #78685)
25066         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
25067           XplatUIWin32.cs: Added GetFocus method to return focused window
25068
25069 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25070
25071         * ColorDialog.cs: when the mouse button is pressed inside the color
25072         matrix, don't let the cursor move out of it until the button is
25073         released, which is the behavior on windows. Changed 'colours' by
25074         'colors' to use the same word consistently.
25075
25076 2006-06-21  Chris Toshok  <toshok@ximian.com>
25077
25078         * DataGrid.cs: add in some basic navigation stuff (navigating to a
25079         child relation and back, using a stack).  Also, remove
25080         GetDataSource and the code that calls it - it's not needed.  Also,
25081         track CurrencyManager.ListName's removal.
25082
25083 2006-06-21  Chris Toshok  <toshok@ximian.com>
25084
25085         * CurrencyManager.cs: push some of the original type checking from
25086         BindingContext.CreateBindingManager to here, and remove some of
25087         the finalType stuff.  Need more tests to make sure I've got the
25088         ListName part right, and we might need more in SetDataSource.
25089
25090         * PropertyManager.cs: add a ctor that takes just the datasource,
25091         and no property name.  Make SetDataSource work with a null
25092         property_name, and make Current return the data_source if the
25093         property descriptor is null.  this makes 'string foo = "hi";
25094         BindingContext[foo].Current' return "hi" as it should.
25095
25096         * RelatedCurrencyManager.cs: make this code more generic - there's
25097         no reason the parent manager has to be CurrencyManager, and
25098         there's no reason to pass the DataRelation.  It suffices to use a
25099         BindingManagerBase and PropetyDescriptor.
25100
25101         * RelatedPropertyManager.cs: make a similar change here.
25102         
25103         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
25104         flower I knew it could be.
25105
25106 2006-06-20  Chris Toshok  <toshok@ximian.com>
25107
25108         * PropertyManager.cs: the PropertyChangedHandler is invoked when
25109         data in the source has changed and we need to update the control,
25110         so s/PullData/PushData.
25111
25112         * CurrencyManager.cs: Refresh is meant to update the control from
25113         data in the datasource.  So, s/PullData/PushData.
25114
25115         * BindingContext.cs: add more ugliness (we weren't handling the
25116         case where data_source = DataTable and data_member = column_name).
25117
25118         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
25119         from the perspective of the datasource.  PullData pulls from the
25120         control, PushData pushes to the control.
25121
25122 2006-06-20  Chris Toshok  <toshok@ximian.com>
25123
25124         * BindingContext.cs: rewrite the CreateBindingManager code to
25125         handle navigation paths more or less properly.  This could
25126         definitely stand some more work, in particular to push the
25127         recursion up to the toplevel.  But that relies on fixes in other
25128         places (System.Data comes to mind).
25129
25130         Also, move to a flat hashtable (and encode the twolevel nature of
25131         the dictionary into the hash key).  This lets us implement the
25132         IEnumerable.GetEnumerator method.
25133
25134         * RelatedCurrencyManager.cs: new class.  Update our view based on
25135         our relation and our parent CurrencyManager's position.
25136
25137         * CurrencyManager.cs: split out some logic from the ctor into
25138         SetView, so it can be called from the new RelatedCurrencyManager
25139         subclass.
25140
25141         * RelatedPropertyManager.cs: new class.  Update our datasource
25142         based on the position of our parent CurrencyManager.
25143
25144         * PropertyManager.cs: split out some logic from the ctor into
25145         SetDataSource, so it can be called from the new RelatedDataSource
25146         subclass.  Also, make the Current getter return the value
25147         of the PropertyDescriptor, not the data_source.
25148
25149         * Binding.cs: no need to duplicate the string splitting code here.
25150
25151 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
25152
25153         * Control.cs:
25154           - set_Enabled: OnEnabledChanged is not called if the inherited state 
25155             of the control is not altered, even though  we might be changing the
25156             internal state of the control (#78458)
25157           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
25158             OnEnabledChanged, to allow easy altering of any child window state
25159           - OnEnabledChanged: Added code to enable/disable driver window state
25160           - OnParentEnabledChanged: Instead of firing the event, call 
25161             OnEnabledChanged, which will fire the event and also a) set driver
25162             window state and pass the enabled state to any grandchildren (#78458)
25163
25164 2006-06-19  Jackson Harper  <jackson@ximian.com>
25165
25166         * InternalWindowManager.cs: We don't set the cursor explicitly
25167         thats done via the response to NCHITTESTs.
25168         - Don't need to adjust for titlebar heights anymore, the
25169         coordinates are coming in the correct coordinates now (see peters
25170         last patch).
25171
25172
25173 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
25174
25175         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
25176           being translated relative to whole window, instead of client window.
25177           That caused broken offsets on mouseclick (and caused gas for our
25178           InternalWindowManager)
25179
25180 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
25181
25182         * TextControl.cs:
25183           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
25184           - Undo(): Added replay of cursor move on DeleteChars action; added
25185             calling Undo() again if a recorded cursor move is invalid (to
25186             ensure that some action is performed on Undo)
25187         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
25188
25189 2006-06-16  Jackson Harper  <jackson@ximian.com>
25190
25191         * MdiClient.cs: Instead of just sizing maximized windows when
25192         there is a resize we also have to adjust the Y of minimized
25193         windows, so they stay pinned to the bottom of the mdi container.
25194         - Eliminate separate tracking of the active control, we can just
25195         get this from the controls collection.
25196         - Paint the decorations for the newly activated titlebar so we get
25197         a pretty blue bar.
25198         * InternalWindowManager.cs:
25199         * ThemeWin32Classic.cs: Minimized windows get all three buttons
25200         even if they are a tool window.
25201         
25202 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
25203
25204         * TextControl.cs (Undo): Handle non-existent cursor locations in the
25205           undo buffer, these can happen when text was deleted and the cursor
25206           was recorded first. Since we will also have a recorded cursor
25207           after the delete this is not an issue. (Fixes #78651)
25208
25209 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
25210
25211         * AccessibleObject.cs: Remove dependence on Control.is_selected;
25212           instead properly track control states internally (allows us to
25213           remove is_selected from Control)
25214
25215 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25216
25217         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
25218         whose width is not a multiple of 8.
25219
25220 2006-06-13  Jackson Harper  <jackson@ximian.com>
25221
25222         * MdiClient.cs:  Only maximize the next child if the current one
25223         is maximized.
25224
25225 2006-06-13  Chris Toshok  <toshok@ximian.com>
25226
25227         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
25228         modified.  Also, guard against grid or grid_drawing being null in
25229         Invalidate.
25230
25231         * DataGrid.cs: Reformat tons of getters/setters.  In the
25232         DataMember setter, just call SetNewDataSource instead of
25233         duplicating some of its functionality.  In SetNewDataSource, don't
25234         check ListManager for null, since the property getter creates the
25235         object if needed.
25236
25237         * DataGridTableStyle.cs: don't set TableStyle or call
25238         SetDataGridInternal on the column here, it's done in
25239         GridColumnStylesCollection.Add.
25240
25241         * GridColumnStylesCollection.cs: fix all the explicit interface
25242         implementations to just call our methods.  Nuke AddInternal() and
25243         move the body of it to Add().  Also, add a call to
25244         column.SetDataGridInternal to Add().
25245
25246         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
25247         base()+duplicate code.  Also, use the Format property instead of
25248         format to generate an Invalidate ala MS.  Lastly, create the
25249         textbox here, unconditionally.
25250         (set_Format): call Invalidate.
25251         (get_TextBox): no need to call EnsureTextBox.
25252         (Commit): remove the message box.
25253         (Edit) remove the call to EnsureTextBox.
25254         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
25255         (EnterNullValue): no need to check textbox for null.
25256         (HideEditBox): no need to check textbox for null.
25257         (SetDataGridInColumn): add the textbox to the grid's controls.
25258         (EnsureTextBox): nuke.
25259         
25260 2006-06-13  Jackson Harper  <jackson@ximian.com>
25261
25262         * MdiWindowManager.cs: Hook up to the maximized menus paint event
25263         and redraw the buttons when needed. Unhook when the window is
25264         unmaximized.
25265         * MainMenu.cs: Add an internal Paint event, the mdi window manager
25266         needs this so that it can redraw its buttons when the menu is
25267         repainted.
25268         * InternalWindowManager.cs:
25269         * Form.cs: The method order has changed for DrawMaximizedButtons,
25270         so that it can be a PaintEventHandler.
25271         
25272 2006-06-13  Jackson Harper  <jackson@ximian.com>
25273
25274         * MdiClient.cs: When we close a maximized mdi window, the next mdi
25275         window is activated and maximized, even if it wasn't before.
25276         - When  a new window is activated repaint the decorations of the
25277         old one, so that it no longer has the Active "look" (the blue
25278         titlebar).
25279         * InternalWindowManager.cs: Open up CreateButtons to base classes
25280         so they can recreate the buttons on state changes.
25281         - If a window is maximized give it all three buttons
25282         * MdiWindowManager.cs: Create the titlebar buttons when the state
25283         is changed, this is needed because a toolwindow will not have all
25284         three buttons until it is maximized.
25285
25286 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
25287
25288         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
25289           Fixed bug #78609.
25290
25291 2006-06-12  Jackson Harper  <jackson@ximian.com>
25292
25293         * KeysConverter.cs: Make sure we handle the Ctrl special case
25294         if its the only key.
25295         
25296 2006-06-12  Jackson Harper  <jackson@ximian.com>
25297
25298         * Theme.cs: Add a method to get the size of a managed window
25299         toolbar button.
25300         * InternalWindowManager.cs: Remove the ButtonSize property, this
25301         should be retrieved from the theme.
25302         * MdiWindowManager.cs: Get the button size from the theme
25303         * ThemeWin32Classic.cs: Make the method to get the managed window
25304         titlebar button size public.
25305         - Handle the different button sizes of maximized toolwindows
25306         (should match any maximized window).
25307         - Get the titlebar height from the theme, not the WM (which gets
25308         it from the theme).
25309
25310 2006-06-12  Jackson Harper  <jackson@ximian.com>
25311
25312         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
25313         event down to the mdi window manager.
25314         - Expose some extra stuff to base classes
25315         - Make sure to end the Capture on an NC Mouse up, so that we can
25316         get double clicks properly, and the sizing doens't stick.
25317         - When doing PointToClient contain it in the workable desktop
25318         area, this prevents windows from changing size when the cursor is
25319         pulled outside of the working area while sizing.
25320         * MdiWindowManager.cs: When we get a double click maximize the
25321         window.
25322         - Reset the cursor after handling mode changes.
25323
25324 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
25325
25326         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
25327           current desktop, instead of just assuming a 0, 0 origin. This
25328           is needed for our internal window manager, to know the top
25329           margin of the desktop
25330
25331 2006-06-12  Chris Toshok  <toshok@ximian.com>
25332
25333         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
25334         we need this to get rid of the selected background in the bool
25335         column.
25336         (CancelEditing): move the ConcedeFocus call to above the Abort
25337         call.  Also, set is_changing to false and invalidate the row
25338         header if we were changing before.
25339         (ProcessKeyPreviewInternal): remove, since noone outside this
25340         class calls it anymore.  Roll the code into ProcessKeyPreview.
25341         (EndEdit): remove the internal version.
25342         (InvalidateCurrentRowHeader): make private.
25343
25344         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
25345         Keys.Escape handling (and with it the last call to
25346         DataGrid.EndEdit from outside the class.)
25347
25348
25349 2006-06-12  Chris Toshok  <toshok@ximian.com>
25350
25351         * DataGridTextBox.cs (.ctor): isedit defaults to false.
25352         (OnKeyPress): set isedit to true.
25353         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
25354         already handled by the grid.
25355
25356         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
25357         right.  ugh.
25358         (set_DataSource): SetDataSource always returns true, so stop
25359         putting it in an if statement.
25360         (EndEdit): get rid of some {}'s
25361         (ProcessGridKey): return true in case Keys.Escape.
25362         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
25363         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
25364         PositionChanged, stopped connecting to CurrentChanged.
25365         (GetDataSource): simplify this a bunch.
25366         (SetDataSource): change return type from bool to void.
25367         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
25368         to this, and make sure we don't set ListManager.Position inside
25369         set_CurrentCell.
25370         (OnListManagerItemChanged): if we're passed an actual index,
25371         redraw that row.
25372
25373         * CurrencyManager.cs (set_Position): don't call PullData here.
25374
25375 2006-06-09  Jackson Harper  <jackson@ximian.com>
25376
25377         * TreeNode.cs:  Recalculate the visible order before doing the
25378         Expand/Collapse Below calls, because those calls generate an
25379         expose.
25380         - Reduce calls to the TreeView property, which is mildly expensive
25381         by using a local var.
25382         * Form.cs: Layout the MDI child windows when creating the parent
25383         form.
25384         - Don't use the internal constructor anymore
25385         * MdiClient.cs: use the parent form width/height (if available)
25386         when laying out the child windows, we do this because the
25387         mdiclient isn't docked yet when the initial layout is done.
25388         - Don't need an internal constructor anymore.
25389
25390 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25391
25392         * FileDialog.cs: handle access errors when trying to create a folder
25393         or changing to a directory. No need to initialize out parameters.
25394
25395 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25396
25397         * FileDialog.cs: Append a number when creating a new folder if the
25398           folder already exists (use parenthesis instead of square brackets)
25399
25400 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25401
25402         * FileDialog.cs:
25403           - Disabled registry support for windows and added better registry
25404             error checking for other systems (need to investigate why it
25405             works perfectly on my system)
25406           - If a folder already exist show an error MessageBox instead of
25407             trying to create an indexed name.
25408           - Fixed a non intentional typo.
25409
25410 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25411
25412         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
25413
25414 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25415
25416         * FileDialog.cs: When creating a new folder don't crash if the
25417           folder already exists.
25418
25419 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25420
25421         * FileDialog.cs: Allmost a complete rewrite.
25422           - added a "virtual" file system that handles the differences
25423             between unix and windows file systems (especially the directory
25424             structure). Moved most of the directory and file handling code
25425             into the vfs.
25426             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
25427             UnixFileSystem and FSEntry.
25428           - Recently used folder/directory, size, location and used file names
25429             (file name ComboBox) are now stored in the registry and get read
25430             before the dialog shows up (fixes part 6 of bug #78446).
25431           - Creation of new folders/directories is now possible (context menu
25432             or ToolBar). Added TextEntryDialog for this that fills in the gap
25433             until ListView.LabelEdit works.
25434           - Fixed cursor handling (bug #78527) and focus handling for
25435             PopupButtonPanel
25436           - Various "Search in" ComboBox enhancements. The content of the
25437             dropdown listbox now almost matches ms.
25438           - Changed the behaviour when the user switches to SpecialFolder
25439             Recent to show the ListView in View.Details.
25440           - Beside using the ToolBar to change the View property of the
25441             file ListView it is now possible to use the context menu too.
25442
25443 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25444
25445         * ComboBox.cs: Don't create a new ObjectCollection when an item
25446           gets inserted. Just insert the item in the existing object_items
25447           ArrayList.
25448
25449 2006-06-08  Jackson Harper  <jackson@ximian.com>
25450
25451         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
25452         that the treeview and root node checks are done also, this fixes a
25453         regression i caused in the unit tests.
25454
25455 2006-06-07  Wade Berrier <wberrier@novell.com> 
25456
25457         * RichTextBox.cs: More ISO8859-1 -> unicode
25458
25459 2006-06-07  Mike Kestner  <mkestner@novell.com>
25460
25461         * ComboBox.cs : use items to hold highlight/selection so that
25462         collection insertions don't require synchronization.
25463
25464 2006-06-07  Jackson Harper  <jackson@ximian.com>
25465
25466         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
25467         routine.  We now always keep the sized edge at the cursor instead
25468         of computing movement and adjusting rects.  There is one buglet
25469         with this method though when the cursor is moved over area that
25470         the window can not expand too (such as the toolbars on the desktop).
25471
25472 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25473
25474         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
25475         here. Fixes crash on startup in AlbumSurfer.
25476
25477 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
25478
25479         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
25480           values
25481
25482 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25483
25484         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
25485         statement to avoid calling XNextEvent which will block if another thread
25486         took the event that we were expecting. Fixes bug #78605.
25487
25488 2006-06-07  Mike Kestner  <mkestner@novell.com>
25489
25490         * ListView.cs : isolated checkbox clicking from the selection logic.
25491         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
25492
25493 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
25494
25495         * Form.cs: Check that the value passed to Form.DialogResult
25496         is a valid enum value.
25497
25498 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25499
25500         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
25501         Computer'. Clicking it in the network view goes to 'My Computer'.
25502         Added CIFS filesystem type. Display the mount point of filesystems.
25503         Avoid duplicate mount points (happens for me with CIFS);
25504
25505 2006-06-06  Jackson Harper  <jackson@ximian.com>
25506
25507         * InternalWindowManager.cs: Draw the maximized windows buttons
25508         when resizing.
25509
25510 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25511
25512         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
25513         all other dialogs. Fixes bug #78585.
25514
25515 2006-06-06  Mike Kestner  <mkestner@novell.com>
25516
25517         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
25518         Only invalidate checkbox on checkstate changes to avoid flicker.
25519         * ListBox.cs : avoid unselect/select when clicking selected item.
25520         avoid reselection flicker for already multiselected items.
25521         Fixes #78382.
25522
25523 2006-06-06  Jackson Harper  <jackson@ximian.com>
25524
25525         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
25526         the parent form so that the menu is removed if needed.
25527
25528 2006-06-06  Mike Kestner  <mkestner@novell.com>
25529
25530         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
25531         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
25532
25533 2006-06-06  Mike Kestner  <mkestner@novell.com>
25534
25535         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
25536
25537
25538 2006-06-06  Jackson Harper  <jackson@ximian.com>
25539
25540         * Control.cs: Use the property (instead of the field) to get the
25541         default cursor so it is instantiated correctly.
25542         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
25543         resizes so we need to manually repaint the window decorations here.
25544         - Set the titlebar button locations as soon as they are created,
25545         otherwise they are not set correctly on win32.
25546         
25547 2006-06-06  Chris Toshok  <toshok@ximian.com>
25548
25549         * CurrencyManager.cs (set_Position): call PullData before
25550         OnCurrentChanged.
25551         (AddNew): after calling IBindingList.AddNew, update our
25552         listposition, and call OnCurrentChanged/OnPositionChanged (without
25553         calling PullData).
25554         (OnCurrentChanged): remove the call to PullData from here.
25555         (OnItemChanged): remove the call to PushData from here.
25556         (OnPositionChanged): change the test from == null to != null to
25557         match the other methods.
25558         (ListChangedHandler): the grossest part of the patch.  Implement
25559         this such that it passes the unit tests in CurrencyManagerTest and
25560         the output more or less matches that of MS's implementation.
25561  
25562 2006-06-06  Mike Kestner  <mkestner@novell.com>
25563
25564         * ListView.cs : only update check state on single click.
25565         * ThemeWin32Classic.cs : fix focus drawing for details view without
25566         fullrowselect.  Fixes #78454.
25567         * XplatUIX11.cs : fix for double click emission.
25568
25569 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
25570
25571         * PropertyGridView.cs : Applied Atsushi's patch to fix
25572         font dialog bug  (#78197).
25573
25574 2006-06-05  Jackson Harper  <jackson@ximian.com>
25575
25576         * TreeNode.cs: Compute the next node for expanding/collapsing
25577         correctly. We now factor in nodes without a NextNode
25578         correctly. (Fixes somes cases in nunit-gui).
25579         * InternalWindowManager.cs: Set the bounds when updating the
25580         virtual position of a tool window.
25581         
25582 2006-06-05  Chris Toshok  <toshok@ximian.com>
25583
25584         * DataGrid.cs: rename cached_currencymgr to list_manager.
25585         (set_CurrentCell): move SetCurrentCell code here, and clean it up
25586         some.
25587         (CurrentRow, CurrentColumn): single accessors so we can make the
25588         cursor movement code a lot easier to understand.
25589         (CurrentRowIndex): implement this in terms of CurrentRow.
25590         (BeginEdit): clean this up a bit.
25591         (CancelEditing): sort out the is_editing/is_changing/is_adding
25592         stuff a little.
25593         (EndEdit): minor changes.
25594         (OnKeyDown): add a comment about a (most likely) unnecessary
25595         check.
25596         (OnMouseDown): cancel editing when we click on a row header.  And
25597         use the CurrentRow setter, not CurrentCell.
25598         (ProcessDialogKey): directly call ProcessGridKey.
25599         (UpdateSelectionAfterCursorMove): factor out this common block of
25600         code (it's used everywhere that we move the cursor by updating row
25601         or column).
25602         (ProcessGridKey): pretty substantial overhaul.  Use the
25603         CurrentRow/CurrentColumn properties to make the code a lot more
25604         readable.  Only use the CurrentCell property when we have to
25605         modify both row and column at once.  Tab behavior is still broken,
25606         and Delete is untested.
25607         (Select): if we have no selected rows, set selection_start to
25608         @row.
25609         (EditCurrentCell): rename EditCell this.  It was only ever invoked
25610         with CurrentCell as the arg, so drop the arg and rename it.
25611
25612         * DataGridColumnStyle.cs: clean up the constructors a little, and
25613         drop CommonConstructor().
25614
25615         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
25616         actually get notified when the user hits it.
25617         (ProcessKeyMessage): *substantially* simplify this method.
25618         There's no reason (that I can see) for the textbox to be making
25619         calls into the datagrid at all.  Remove all of them but the ones
25620         for Enter handling.  those will take some more work.
25621
25622         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
25623         calling HideEditBox.
25624         (HideEditBox): if we have an active textbox, render it invisible
25625         without causing a re-layout of the datagrid.
25626
25627 2006-06-05  Mike Kestner  <mkestner@novell.com>
25628
25629         * ListView.cs : fix NRE crasher when focuseditem is cleared by
25630         collection changes by resetting it to Items[0].  Fixes #78587.
25631
25632 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25633
25634         * MessageBox.cs: if the height of the text is larger than the icon_size,
25635         use that. Fixes bug #78575.
25636
25637 2006-06-05  Jackson Harper  <jackson@ximian.com>
25638
25639         * TreeView.cs: Fix line drawing when scrolling.  To do this each
25640         node is basically responsible for drawing its entire horizontal
25641         area.  When drawing a node it draws its parent node lines if
25642         needed.
25643         - Adjust the clip area to the viewport rectangle
25644         - Fix Left/Right key handling to match MS. (It expand/collapses
25645         and moves to parents/first child but does not move selection to
25646         sibling nodes).
25647         - Fix SetTop to work with new bound calculation code
25648         - When scrollbars are no longer needed we need to reset scrolling
25649         vars and recalculate the visible order so the redraw is correct
25650         * TreeNode.cs: We can't expand/collapse nodes with no children.
25651
25652 2006-06-03  John Luke  <john.luke@gmail.com> 
25653
25654         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
25655         so the colors work without dev packages
25656         
25657 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
25658
25659         * Control.cs 
25660           - Select: Implemented to just use activate. Seems to match MS 
25661             behaviour closest. Documented to only do actual control walking 
25662             based on it's parameters if in a container control so I moved 
25663             the code there.
25664           - Removed selection check logic from our internal Select() method
25665         * ContainerControl.cs:
25666           - Select: Moved selection logic from Control here, since MS documents
25667             that containers obey the bool arguments. No longer calling base
25668
25669 2006-06-02  Jackson Harper  <jackson@ximian.com>
25670
25671         * TreeView.cs: If the selected node isn't changed when we get
25672         focus update the previously selected node so that we see the
25673         selection box.
25674
25675 2006-06-02  Mike Kestner  <mkestner@novell.com>
25676
25677         * ComboBox.cs: restructure grab and general mouse event handling.
25678         Make the composite control raise mouse events like it was a single
25679         control for leaves/enters/motion/up/down events.  fix dropdown list
25680         coordinate mangling and refactor it into the scrollbar subclass to
25681         reduce code duplication.  Fixes #78282 #78361 and #78457.
25682
25683 2006-06-02  Mike Kestner  <mkestner@novell.com>
25684
25685         * ScrollBar.cs: remove Capture setting/clearing, as it happens
25686         automatically in the Control.WndProc.
25687
25688 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25689
25690         * FileDialog.cs: fix crash when running SharpChess, which sets the
25691         FilterIndex to 2 with only one Filter.
25692
25693 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25694
25695         * ToolBar.cs: add SizeSpecified property.
25696         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
25697         try to figure out our real size, otherwise fallback to what the
25698         container says.
25699
25700 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
25701
25702         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
25703         * Control.cs (WndProc): MS always calls the DefWndProc to pass
25704           up the event
25705
25706 2006-06-01  Mike Kestner  <mkestner@novell.com>
25707
25708         * ListView.cs: revamp the focus management in ListView.  It still
25709         causes churn of LostFocus/GotFocus emissions on clicks, but it's
25710         better than not handling focus at all.  Will revisit when pdb feels
25711         the general focus handling is solid.  Fixes #78526.
25712
25713 2006-06-01  Jackson Harper  <jackson@ximian.com>
25714
25715         * TreeView.cs: Set the default border style in the constructor.
25716         - Move painting to use OnPaintInternal instead of capturing
25717         WM_PAINT, this is the correct way of doing things
25718         - UpdateBelow shouldn't invalidate the scrollbar area
25719         - Cap the top on update below in case the node was above the top
25720         of the viewport rectangle.
25721         - ExpandBelow and Collapse below need to obey Begin/End Update.
25722         * TreeNode.cs: Make is_expanded internal so the treenode
25723         collection can change it without firing the whole event chain.
25724         * TreeNodeCollection.cs: When clearing all the child nodes make
25725         sure to recalc the visible order.
25726         - Improve algo for remove the top node
25727
25728 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
25729
25730         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
25731           SendMessage directly calling window procedures, which in turn might
25732           call SetFocus()
25733
25734 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
25735
25736         * Control.cs: Don't handle WM_SETFOCUS if the same window already
25737           has focus (works around X11 sending a FocusIn after our SetFocus)
25738         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
25739
25740 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
25741
25742         * Mime.cs: Fix for the NET_2_0 build.
25743           NameValueCollection needs StringComparer now.
25744
25745 2006-05-31  Chris Toshok  <toshok@ximian.com>
25746
25747         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
25748         return (via an out parameter) the starting X of the column.
25749         (UpdateVisibleColumn): track change to FromPixelToColumn.
25750         (HitTest): add a ColumnResize case here.
25751         (DrawResizeLine): new function, probably poorly named.
25752
25753         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
25754         only need to keep one reference.
25755         (set_ListManager): same.
25756         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
25757         Also, add support for HitTestType.ColumnResize.
25758         (OnMouseMove): add column resize behavior here, and change the
25759         cursor to the correct one as we move around the datagrid.
25760         (OnMouseUp): terminate the column resize if we're resizing.
25761         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
25762         for the current cell.
25763         (ConnectListManagerEvents): use cached_currencymgr.
25764         (DisconnectListManagerEvents): fill this in, using
25765         cached_currencymgr.
25766         (SetCurrentCell): remove cached_currencymgr_events handling.
25767         (SetDataMember): only call DisconnectListManagerEvents if
25768         cached_currencymgr is != null.
25769         (SetDataSource): same.
25770         (OnListManagerCurrentChanged): cached_currencymgr_events ->
25771         cached_currencymgr.
25772
25773 2006-05-31  Jackson Harper  <jackson@ximian.com>
25774
25775         * BindingManagerBase.cs: Remove somedebug code that creeped into
25776         SVN.
25777         * TreeNode.cs: We get the indent level dynamically right now, so
25778         don't track it as a member.
25779         * TreeNodeCollection.cs: Make sure all nodes added to the list
25780         have parents, treeviews/topnodes setup properly.
25781         - Don't attempt to track indent level.
25782
25783 2006-05-30  Jackson Harper  <jackson@ximian.com>
25784
25785         * BindingContext.cs: Create the currency manager tables here.
25786         This allows us to more easily create null tables (when bad data
25787         members are used), and more easily create related currency
25788         managers.
25789         * CurrencyManager.cs: All the table creation stuff is done by the
25790         binding context now.
25791         - Current should throw an exception if listposition is -1.
25792         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
25793         been bound yet.
25794
25795 2006-05-30  Mike Kestner  <mkestner@novell.com>
25796
25797         * ListView.cs: allow reexpansion of zero-width column headers.
25798         Fixes #78528.
25799
25800 2006-05-28  Chris Toshok  <toshok@ximian.com>
25801
25802         * CurrencyManager.cs (get_Current): after the late binding
25803         listposition = -1 fix, we need to guard against it here and return
25804         null, otherwise we raise an exception (which is swallowed
25805         elsewhere, and breaks datagrid databinding.)
25806
25807 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
25808
25809         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
25810           than WM_SYSKEY, don't throw if get something unexpected (#78507)
25811
25812 2006-05-26  Jackson Harper  <jackson@ximian.com>
25813
25814         * ControlPaint.cs:
25815         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
25816         values, it's faster and it's all we care about (we don't care if
25817         the names aren't equal).
25818         * KeyboardLayouts.cs: Eliminate some dead code.
25819         - Lazy init things
25820         * X11Keyboard.cs: Lazy init keyboard detection.
25821         - Cleanup access modifiers a little.
25822
25823 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
25824
25825         * XplatUIX11.cs: Once again, attempting to get layout just right.
25826
25827 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
25828
25829         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
25830           the sizes of each link section, that will result in sizes that
25831           match DrawString's layout (Fixes #78391)
25832
25833 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
25834
25835         * FileDialog.cs: If AddExtension property is true autocomplete the
25836           extensions in SaveFileDialog correctly. Fixes bug #78453.
25837           Set MyNetwork and MyComputer to "C:\" for windows. This should
25838           fix part 8 of bug #78446 for now.
25839
25840 2006-05-26  Chris Toshok  <toshok@ximian.com>
25841
25842         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
25843         invalidate the current row header if we need to, but presumably
25844         we'll invalidate the row corrsponding to the bounds or
25845         editingControl.
25846         (GridHScrolled): switch back to this method, as it's part of the
25847         public api.  *sigh*.
25848         (GridVScrolled): same.
25849         (OnMouseWheel): hack up something that more or less works.  Call
25850         GridHScrolled/GridVScrolled directly, instead of duplicating much
25851         of their code here.
25852         (EnsureCellVisibility): reinstate a bunch of this code, since we
25853         can't just set the scrollbar Value and expect to do all the work
25854         in the ValueChanged handler.  Also, Call Update() after scrolling
25855         in one direction so the other XplatX11.ScrollWindow call has the
25856         proper stuff in the proper places.
25857         (EditCell): set is_editing to true before calling .Edit.
25858
25859         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
25860         don't bother comparing first.
25861         (OnKeyPress): call grid.ColumnStartedEditing before calling
25862         base.OnKeyPress.  this will set is_changing and invalidate the row
25863         header if necessary.
25864         (ProcessKeyMessage): for WM_CHAR messages, call
25865         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
25866         and WM_KEYDOWN.
25867         
25868         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
25869         it's done in the DataGrid.
25870         (NextState): call grid.ColumnStartedEditing, which takes care of
25871         invalidating the row header (and setting is_changing).
25872
25873         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
25874         here.  it's done in the DataGrid.
25875
25876 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25877
25878         * Control.cs: allow changing the cursor when the mouse position is
25879         out of bounds but Capture is set.
25880         * LinkLabel.cs: handle the case when the mouse button is pressed on the
25881         linklabel but released somewhere else.
25882
25883 2006-05-25  Jackson Harper  <jackson@ximian.com>
25884
25885         * TreeView.cs: When we get focus if there is no selected node make
25886         it the top node
25887         - Remove some uneeded setup code from Draw.
25888         * TreeNodeCollection.cs: If the tree doesn't have a top node when
25889         a new node is inserted make the new node the top.
25890         * XplatUIX11.cs:
25891         * Timer.cs: Use Utc time so that no local time zone stuff needs to
25892         be used (should be faster).
25893         
25894 2006-05-25  Chris Toshok  <toshok@ximian.com>
25895
25896         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
25897         problem with the last commit.
25898
25899 2006-05-25  Chris Toshok  <toshok@ximian.com>
25900
25901         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
25902         need the invalidate call here, while scrolling right-to-left via
25903         the left arrow key (i.e. moving the editing cell while scrolling).
25904
25905         * DataGrid.cs (.ctor): remove the initialization of
25906         ctrl_pressed/shift_pressed.  We no longer track them using key
25907         up/down handlers, but by using Control.ModifierKeys.  Also, switch
25908         to using ValueChanged handlers on the scrollbars instead of
25909         Scrolled event handlers.  This simplifies a bunch of the scrolling
25910         code.
25911         (GridHValueChanged): rename from GridHScrolled, and change it to
25912         work with the new event args.
25913         (GridVValueChanged): same.
25914         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
25915         (OnMouseWheel): actually scroll the datagrid.  Don't change the
25916         selected cell.
25917         (ProcessGridKey): correct all the keyboard navigation stuff I
25918         could find.  Ctrl up/down/left/right/home/end work now.
25919         (EnsureCellVisibility): correct method name spelling.  Also,
25920         simplify this a touch by not explicitly calling the
25921         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
25922         scrollbar value.
25923         (OnKeyUpDG): no need for this method now.
25924         
25925 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25926
25927         * LinkLabel.cs: display the OverrideCursor when hovering the label.
25928         Fixes bug #78392.
25929
25930 2006-05-25  Chris Toshok  <toshok@ximian.com>
25931
25932         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
25933         r61019.
25934
25935 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
25936
25937         * Application.cs: Moved setting of is_modal and closing to before
25938           we create the control, to allow the event handlers called as a
25939           result of creation affect closing. Also removed Gonzalo's previous
25940           change to setting DialogResult, the behaviour has been moved to 
25941           Form.ShowDialog()
25942         * Form.cs: 
25943           - ShowDialog(): Removed explicit creation of the form, let RunLoop
25944             handle it instead
25945           - ShowDialog(): If no dialog result is set, we need to return Cancel
25946           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
25947             the close is cancelled
25948
25949 2006-05-25  Jackson Harper  <jackson@ximian.com>
25950
25951         * StatusBar.cs: We only need to update the sizes of the other
25952         panels when we have auto size contents.  Also we are only updating
25953         the contents of the panel, not the borders, so compensate for the
25954         border width (TODO: get this width from the theme somehow).
25955         * TreeView.cs: Scrollable is true by default
25956         - Use invalidate instead of refresh where needed
25957         - Factor the scrollable value into scrollbar updating
25958         - Update the scrollbars if the Scrollable property is altered
25959         - Update the selected node if its ImageIndex is changed
25960         - Handle null nodes in UpdateNode (mainly so we don't have to
25961         check if selected is null when updating it
25962         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
25963         are factored into the visible count
25964         - Use VisibleCount for clarity in the code
25965         - When the font is changed we need to recurse through all the
25966         nodes and invalidate their sizes
25967         
25968 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25969
25970         * Application.cs: set the DialogResult to fixed when the main form is
25971         hidden or destroyed while being modal.
25972
25973 2006-05-25  Miguel de Icaza  <miguel@novell.com>
25974
25975         * Theme.cs: Use Tangoified messagebox icons. 
25976
25977         (GetSizedResourceImage): Also cope with width = 0 and do not
25978         trigger a warning in that case (0 means "give me your icon from
25979         the resouce, no special size needed).
25980
25981 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
25982
25983         * Application.cs: Leave runloop if the the main modal form is 
25984           hidden (fixes #78484)
25985
25986 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
25987
25988         * BindingContext.cs : reject null datasource in Contains() and
25989           Item[].
25990         * CurrencyManager.cs : check data_member validity when data_source
25991           is dataset. When it is late binding, the initial position is -1.
25992
25993 2006-05-24  Jackson Harper  <jackson@ximian.com>
25994
25995         * TreeNodeCollection.cs: Dont't recalculate the visible order on
25996         inserted nodes that aren't visible.  This changes the
25997         max_visible_order which confuses scrollbar settings.
25998         - Use the enumerator to get the prev node instead of duplicating
25999         code.
26000         * TreeView.cs: Use new method for setting scrollbar values
26001         - Don't set the bounds every time the scrollbar is updated
26002         - When updating below the root node use an invalidate instead of a
26003         refresh to prevent the child controls (scrollbars) from being
26004         refreshed. (UpdateBelow still needs to be reworked anyways).
26005         - Reenable SetBottom now that visible orders are set correctly,
26006         added some debug code incase we ever get bad values there again.
26007         - Set the scrollbar max to 2 less then the max value, this
26008         compensates for the max value being one above the node count, and
26009         for scrollbars adding one extra "notch".
26010         - When drawing image nodes if there is an imagelist we draw the
26011         first image in the list if the supplied image index is out of the
26012         image list's bounds.
26013         
26014 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26015
26016         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
26017           we receive a size change from the WM (Fixes #78503)
26018
26019 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
26020
26021         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
26022           rectangle (Fixes #78501)
26023
26024 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26025
26026         * ButtonBase.cs: 
26027           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
26028             as a bitfield.
26029           - Fixed MouseMove to no longer switch pressed state unless the left
26030             mouse button is pressed. Atsushi provided the original patch (#78485)
26031           
26032 2006-05-24  Jackson Harper  <jackson@ximian.com>
26033
26034         * ScrollBar.cs: New internal methods that allow us to change a
26035         couple values on the scrollbar (the most common case is maximum
26036         and large change) without getting multiple invalidates.
26037
26038 2006-05-24  Chris Toshok  <toshok@ximian.com>
26039
26040         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
26041         (Edit): save off the original state in oldState, and set
26042         grid.is_editing to true.
26043         (OnKeyDown): abort editing if escape is pressed.  also, call
26044         NextState if space is pressed.
26045         (OnMouseDown): call NextState.
26046         (NextState): factor out shared code from OnKeyDown and OnMouseDown
26047         here.  Also, only invalidate the row header once (on the initial
26048         is_changing switch) to save on redraws.
26049
26050 2006-05-24  Chris Toshok  <toshok@ximian.com>
26051
26052         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
26053         if the value in the cell is different than it was before.  This
26054         keeps us from triggering a layout when we move around a datarid
26055         with a highlighted cell.
26056         (Edit): suspend layout when creating/positining the text box, and
26057         resume passing false so we don't ever actually re-layout.
26058         (ReleaseHostedControl): same.
26059         (EnsureTextBox): reformat slightly, and set WordWrap to false.
26060
26061         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
26062         control-key sequences should go to the datagrid - remove that
26063         lock.  Also, modify the conditions under which we move between
26064         cells when moving the cursor within a cell, and remove the "this"
26065         and "base" from field accesses.  We weren't even consistent, given
26066         they all were in the base class.
26067
26068 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
26069
26070         * Binding.cs : (.ctor)
26071           An obvious NRE fix for BindingTest.CtorNullTest().
26072
26073 2006-05-23  Chris Toshok  <toshok@ximian.com>
26074
26075         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
26076         them between lines.  This fixes some quirks editing cells in the
26077         datagrid.
26078
26079 2006-05-23  Jackson Harper  <jackson@ximian.com>
26080
26081         * TreeView.cs: Use begin/end update when doing expand/collapse all
26082         so that we don't get flicker on the scrollbar.
26083
26084 2006-05-23  Jackson Harper  <jackson@ximian.com>
26085
26086         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
26087         treenode calculations to be independant of the painting code. To
26088         do this nodes track a visible order which is calculated by the
26089         treeview.
26090         - Call new methods for expanding/collapsing nodes.  These methods
26091         use scrollwindow so we don't have to update everything below the
26092         node.
26093         * TreeView.cs: Refactored drawing and scrolling code.  We don't
26094         need to update nodes when drawing anymore or calculate scrollbar
26095         stuff.
26096         - Added new methods for expanding/collapsing nodes. These methods
26097         use ScrollWindow so as to not have to redraw all the nodes below.
26098         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
26099         we add/remove nodes or sort.
26100         - Handle removing the selected and the top node properly.
26101
26102 2006-05-23  Chris Toshok  <toshok@ximian.com>
26103
26104         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
26105         maybe this should actually happen in the datagrid code?
26106         (EndEdit): no need to invalidate anything, given that
26107         ReleaseHostedControl causes the datagrid to relayout, which
26108         invalidates everything anyway.
26109
26110         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
26111         in SetCurrentCell).
26112         (set_SelectionBackColor): call InvalidateSelection instead of
26113         Refresh.
26114         (set_SelectionForeColor): same.
26115         (BeginEdit): Flesh this out a bit.
26116         (CancelEditing): only do any of this if we're editing/adding.
26117         (EndEdit): same.
26118         (OnMouseDown): there's no need to cancel editing here, it's done
26119         in SetCurrentCell.
26120         (SetCurrentCell): only invalidate the current row header if it's a
26121         different row than the new one.
26122         (ShiftSelection): fix this to work like MS does.
26123         (ResetSelection): factor out the invalidation of selected_rows to
26124         InvalidateSelection.
26125         (SetDataSource): cancel any editing that's going on.
26126
26127         * DataGridColumnStyle.cs
26128         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
26129         call the non-interface version.
26130
26131         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
26132         header rectangle with the clip rectangle so we don't redraw the
26133         entire header for just a small area.  Gets rid of the last flicker
26134         when horizontally scrolling.
26135         (DataGridPaintRow): same.
26136
26137 2006-05-23  Mike Kestner  <mkestner@novell.com>
26138
26139         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
26140         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
26141         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
26142         Critical bug report.
26143
26144 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
26145
26146         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
26147           and this fixes #78493
26148
26149 2006-05-23  Miguel de Icaza  <miguel@novell.com>
26150
26151         * Theme.cs (GetSizedResourceImage): Scale images if the proper
26152         size is not found.  
26153         
26154         * FileDialog.cs: Do not change the background for the side bar as
26155         it wont work nicely with the theme, and also reduces the artifacts
26156         in rendering the icons (which I want to fix too).
26157
26158         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
26159         resources, not resgen resources. 
26160
26161         (PlatformDefaultHandler): Pull images using the new API.
26162
26163 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
26164
26165         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
26166           a reference to the hwnd and will not remove it unless there are
26167           no pending exposures (fixes #78341)
26168         * XplatUI.cs: Improved debug
26169
26170 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
26171
26172         * MenuAPI.cs : don't handle OnClick event when it was not the left
26173           button. Fixed bug #78487.
26174
26175 2006-05-23  Mike Kestner  <mkestner@novell.com>
26176
26177         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
26178         prefer submenus to the top menu for item lookup, to avoid popping down
26179         top-row items.
26180
26181 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
26182
26183         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
26184           Graphics.FillRectangle as the visual results are really bad (even
26185           on win). We now draw perfect arrows (and perfect shadows when the
26186           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
26187           Pen.DashPattern to draw the dots of each line.
26188
26189 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
26190
26191         * FileDialog.cs: Update the filename combobox when navigating through
26192           the ListView with the cursor keys. Fixes part 7 of bug #78446.
26193
26194 2006-05-22  Mike Kestner  <mkestner@novell.com>
26195
26196         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
26197         Fixes #78463.
26198
26199 2006-05-22  Mike Kestner  <mkestner@novell.com>
26200
26201         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
26202         requests. Fix a misspelled parameter and a copy paste exception error
26203         in Select.
26204
26205 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
26206
26207         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
26208           to get the same width/height (5/13) on X11 as the default font has on
26209           win32. This means that our DefaultFont emSize is smaller than the 
26210           the MS SWF equivalent (even thought the width/height stays the same)
26211
26212 2006-05-20  Jackson Harper  <jackson@ximian.com>
26213
26214         * MdiClient.cs:
26215         * MdiWindowManager.cs:
26216         * InternalWindowManager.cs: Make sure to use the border width from
26217         the theme.
26218
26219 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
26220
26221         * PrintDialog.cs: Implements printer details
26222
26223 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
26224
26225         * FileDialog.cs: Added focus handling for PopupButtonPanel.
26226           Fixes part 1 and 2 of bug #78446
26227
26228 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
26229
26230         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
26231           instead of sticking to the first ever calculated value
26232
26233 2006-05-19  Mike Kestner  <mkestner@novell.com>
26234
26235         * ComboBox.cs: fix mouse motion selection to use MousePosition and
26236         PointToClient, since Capture is set. Fixes #78344.
26237
26238 2006-05-19  Mike Kestner  <mkestner@novell.com>
26239
26240         * ListView.cs: match MS behavior in Details view where items are not
26241         drawn if Columns.Count == 0. 
26242         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
26243         Use a separate pen to draw the check, since changing the width affects
26244         the box as well.  Fixes #78454.
26245
26246 2006-05-18  Miguel de Icaza  <miguel@novell.com>
26247
26248         * ListView.cs: ArgumentOutOfRangeException, single versions of the
26249         exception should throw the name of the invalid argument.
26250
26251         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
26252         there are no files listed. 
26253
26254 2006-05-18  Jackson Harper  <jackson@ximian.com>
26255
26256         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
26257         up.
26258
26259 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
26260
26261         * Control.cs: Brought back our old UpdateZOrder method as a private
26262           function and switched our calls from UpdateZOrder to the new one.
26263           This fixes the Paint.Net canvas disappearing bug.
26264
26265 2006-05-18  Jackson Harper  <jackson@ximian.com>
26266
26267         * Theme.cs:
26268         * ThemeWin32Classic.cs:
26269         * InternalWindowManager.cs: Move the drawing into the theme,
26270         expose everything the theme should need from the window manager.
26271
26272 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
26273
26274         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
26275           from the call to NativeWindow to avoid walking up the parent chain
26276           further than needed (speeds up setting cursors and avoids setting
26277           the wrong cursor if a parent has another cursor defined)
26278         * Cursor.cs: When loading an icon as cursor, MS uses the center of
26279           the icon as hotspot, not what's contained as hotspot in the icon
26280           file. This fixes the perceived drawing offset seen with Paint.Net
26281         
26282 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
26283
26284         * XplatUIX11.cs: 
26285           - Store the calculated rectangle in Hwnd object and use it when 
26286             setting the client size
26287           - Force Toolwindows to always be type Dock, to ensure they're on top
26288
26289 2006-05-18  Mike Kestner  <mkestner@novell.com>
26290
26291         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
26292         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
26293         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
26294         Substantial refactoring to remove confusing nested classes. Coding
26295         standard and Get+Set->property refactorings.  Shift to index based
26296         highlighting in ComboListBox instead of constantly using IndexOf and
26297         Items[]. Add invalidations on resize for DropDownList to fix ugliness
26298         in FileDialog growth.  Draw borders manually since Simple mode needs
26299         to look like two independent controls.  Make listbox border
26300         conditional to DropDownStyle.  Improved OwnerDraw support.
26301
26302 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
26303
26304         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
26305         Don't set the disposed graphics to null, so we can throw the "right"
26306         exception if the graphics is reused later (added a flag to avoid 
26307         double disposing). Some behaviours are different under 2.0 and are
26308         filled under bug #78448.
26309
26310 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
26311
26312         * Control.cs: When double-buffering is enabled, we need to reset
26313           our graphics context between paint calls. Otherwise, any 
26314           transformations and other alterations on the context will 
26315           become cumulative (#77734)
26316
26317 2006-05-18  Mike Kestner  <mkestner@novell.com>
26318
26319         * ListView.cs: do focused item selection like MS on clicks. 
26320         Rework focus handling for ItemControl so LostFocus invalidates as
26321         well.
26322         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
26323         the ListView ItemControl has focus.
26324
26325 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
26326
26327         * XplatUIX11.cs: If client_window ends up being width or height zero
26328           due to border settings, move it off window inside whole_window (#78433)
26329
26330 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
26331
26332         * Mime.cs: Shrink the mime file cache correctly.
26333
26334 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
26335
26336         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
26337
26338 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26339
26340         * XplatUIX11.cs (AddExpose): More sanity checks
26341
26342 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26343
26344         * XplatUIX11.cs:
26345           - AddExpose: Don't add expose ranges outside the size of our
26346             window
26347           - Cast opacity values to Int32 to avoid crashes with certain
26348             values
26349           - Added disabled code paths that protect against illegal cross-
26350             thread painting (Developers.exe)
26351
26352 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26353
26354         * ProgressBar.cs: Invalidate the control when it's resized
26355           since block size is based on control size. (#78388)
26356
26357 2006-05-16  Miguel de Icaza  <miguel@novell.com>
26358
26359         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
26360         of setting the incoming argument to the "reset" value, we set the
26361         this.datamember to string.empty (before we were invalidating the
26362         incoming data).   
26363
26364         Fixes 78420
26365
26366 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26367
26368         * Form.cs: Only apply transparency settings after the form
26369           is created. (Fixes #77800)
26370
26371 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26372
26373         * ApplicationContext.cs: Grab the HandleDestroyed event so
26374           we know when to fire OnMainFormClosed 
26375
26376 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26377
26378         * Application.cs: Introduced sub-class to allow tracking of
26379           threads and centralized triggering of the event mess for
26380           ThreadExit, AppExit, etc..  (#76156)
26381
26382 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
26383
26384         * MimeIcon.cs:
26385           - Do not return a null icon index value for a mime subclass.
26386             Instead try the main mime type class too.
26387           - Seems that some newer distributions don't have a link to some
26388             gnome default icons anymore. So check the default gnome dir too.
26389           
26390
26391 2006-05-16  Jackson Harper  <jackson@ximian.com>
26392
26393         * MdiClient.cs: Don't paint the parent background image if we have
26394         our own background image.
26395
26396 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26397
26398         * Control.cs:
26399           - PerformLayout: Do not shrink space filled by DockStyle.Fill
26400             controls, all filled controls are supposed to overlap (#78080)
26401           - UpdateZOrder is supposed to update the control's z-order in the
26402             parent's z-order chain. Fixed to behave like that
26403           - BringToFront: Removed obsolete code
26404           - SendToBack: Simplyfied
26405           - SetChildIndex: Trigger layout calculations when Z-order changes
26406             since layout is done by z-order
26407
26408 2006-05-16  Chris Toshok  <toshok@ximian.com>
26409
26410         [ fixes bug #78410 ]
26411         * DataGrid.cs (set_AlternatingBackColor): use
26412         grid_drawing.InvalidateCells instead of Refresh().
26413         (set_BackColor): call grid_drawing.InvalidateCells.
26414         (set_BackgroundColor): use Invalidate instead of Refresh.
26415
26416         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
26417         invalidate the cell area.
26418
26419 2006-05-15  Chris Toshok  <toshok@ximian.com>
26420
26421         [ fixes bug #78011 ]
26422         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
26423         on to DataGridPaintRow.
26424         (DataGridPaintRow): take a clip argument, and only draw the cells
26425         which intersect it.  same with the not_usedarea.
26426
26427         * Theme.cs (DataGridPaintRow) add @clip parameter.
26428
26429         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
26430         XplatUI.ScrollWindow.
26431         (ScrollToRow): same.
26432
26433         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
26434         with last column which was causing a gray swath to appear with the
26435         XplatUI.ScrollWindow code.
26436
26437 2006-05-15  Chris Toshok  <toshok@ximian.com>
26438
26439         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
26440         use XplatUI.ScrollWindow.
26441         (VerticalScrollEvent): use XplatUI.ScrollWindow.
26442
26443 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
26444
26445         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
26446
26447 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
26448
26449         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
26450           file since there are no equivalent X11 cursors
26451
26452 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
26453
26454         * MonthCalendar.cs : DateTimePicker should reflect selected date
26455           on mouse*up*, not mouse*down*. Fixed originally reported part of
26456           bug #76474.
26457
26458 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
26459
26460         * TabControl.cs : When argument index is equal or more than tab
26461           count, just ignore. Fixed bug #78395.
26462
26463 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
26464
26465         * Control.cs: Dispose all child controls when control is diposed (#78394)
26466
26467 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26468
26469         * ColorDialog.cs: Finally it is possible to select the color with
26470           the text boxes
26471
26472 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26473
26474         * PrintDialog.cs: Fix typo
26475
26476 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26477
26478         * PrintDialog.cs: PrintDialog is not resizable
26479         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
26480           color. Made some ToolBar drawing methods protected virtual.
26481
26482 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
26483
26484         * PrintDialog.cs: Implementation of the PrintDialog
26485
26486 2006-05-12  Chris Toshok  <toshok@ximian.com>
26487
26488         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
26489         thumb, instead use MoveThumb.  This has the side effect of making
26490         most of the other thumb moving machinery use MoveThumb as well.
26491         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
26492         need to actually invalidate the rectangle where the new thumb will
26493         go.
26494         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
26495         We force an Update() after, so it's not as fast as it could be,
26496         but at least there's zero flicker and no droppings.
26497         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
26498         (UpdateThumbPos): add another argument (dirty), which says whether
26499         or not to calculate/add dirty regions which we later invalidate.
26500         For cases where we know we're going to use MoveThumb, we pass
26501         false for this.  Otherwise, pass true.
26502
26503 2006-05-12  Jackson Harper  <jackson@ximian.com>
26504
26505         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
26506         the status bar.
26507         
26508 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
26509
26510         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
26511           and GetClipRegion methods and UserClipWontExposeParent property.
26512         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
26513           overriding UserClipWontExposeParent property, setting to false, since
26514           Win32 handles the required expose messages to draw our clipped parent
26515           areas internally
26516         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
26517           PaintEventStart to set the user clip region if set.
26518         * Control.cs: 
26519           - Now internally tracking the Region for the control since we need to
26520             store it if the handle is not yet created and only set it when it
26521             becomes created. Before setting the region forced handle creation
26522           - Added code to draw the parents underneath a user-clipped region
26523         * Hwnd.cs: Added UserClip property
26524
26525 2006-05-12  Chris Toshok  <toshok@ximian.com>
26526
26527         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
26528         (set_Maximum): same.
26529         (set_Minimum): same.
26530         (set_SmallChange): same.
26531         (OnMouseUpSB): remove the call to refresh when releasing the
26532         thumb.  We shouldn't need it.
26533         
26534 2006-05-12  Miguel de Icaza  <miguel@novell.com>
26535
26536         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
26537         AutoSize set to None, we do not need to relayout everything, we
26538         just need to invalidate the current region.
26539
26540         (Draw): Do not draw the entire ClientArea, just redraw the
26541         clip area being passed.
26542
26543         * MdiClient.cs: Make MdiClient constructor with the Form argument
26544         internal. 
26545
26546 2006-05-12  Jackson Harper  <jackson@ximian.com>
26547
26548         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
26549         parents background image,  but strangely not their own.
26550         - (DrawStatusBarPanel): Take into account horizontal alignment
26551         when drawing the strings and icons.
26552
26553 2006-05-12  Mike Kestner  <mkestner@novell.com>
26554
26555         * ListBox.cs: avoid invalidations for focus when the collection is
26556         empty. 
26557
26558 2006-05-12  Chris Toshok  <toshok@ximian.com>
26559
26560         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
26561         invalidate the entire thumb area.  Call InvalidateDirty which
26562         limits the redraw to the thumb itself and surrounding pixels.
26563
26564         * XplatUIX11.cs (ScrollWindow): optimize copying.
26565         
26566 2006-05-12  Chris Toshok  <toshok@ximian.com>
26567
26568         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
26569         Figure out the positioning/layout in a single pass instead of
26570         multiple recursive invocations.  Speeds up the initial display of
26571         the data grid.  Also, make many things private that were
26572         originally public but unused outside this class.
26573
26574 2006-05-11  Jackson Harper  <jackson@ximian.com>
26575
26576         * MdiClient.cs: Improved layout code.
26577
26578 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
26579
26580         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
26581           not SelectedObject.
26582
26583 2006-05-11  Chris Toshok  <toshok@ximian.com>
26584
26585         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
26586         union of that will always be {0,0,width,height}.
26587
26588 2006-05-11  Jackson Harper  <jackson@ximian.com>
26589
26590         * Form.cs: Match MS's DefaultSize for forms (they must have
26591         changed the size in sp2).
26592
26593 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26594
26595         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
26596
26597 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26598
26599         * TextControl.cs : Fixed bug #78109. This incorrect position
26600           comparison caused crash on automatic line split.
26601         * TextBoxBase.cs : reduce duplicate code.
26602
26603 2006-05-10  Jackson Harper  <jackson@ximian.com>
26604
26605         * MdiClient.cs: Active form is only sent to the back when using
26606         the Next form functionality, when a form is clicked the current
26607         active shouldn't be sent to the back.
26608         - Layout the mdi windows when the container is first made visible.
26609         * Form.cs: Give the MdiClient a ref to the containing form when we
26610         create it.
26611         
26612 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26613
26614         * LinkLabel.cs : link_font could be uninitialized, so populate one
26615           before actual use. Fixed bug #78340.
26616
26617 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26618
26619         * XplatUIX11.cs : clipboard format native value is IntPtr.
26620           Fixed bug #78283.
26621
26622 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26623
26624         * Control.cs: 
26625           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
26626             which is passed up the parent chain by DefWndProc
26627           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
26628             to DefWndProc (#77956)
26629         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
26630
26631 2006-05-10  Jackson Harper  <jackson@ximian.com>
26632
26633         * MdiClient.cs: We need to remove the controls from the mdi
26634         collection, when we close the window.
26635         * MdiWindowManager.cs: Special handling of closing mdi windows.
26636         * InternalWindowManager.cs: Make the close method virtual so the
26637         mdi window manager can handle it specially.
26638
26639 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
26640
26641         * DataGrid.cs:
26642           - Recalculate grid when the data source has changed
26643           - Matches styles provided by user from all data sources types
26644         * DataGridTableStyle.cs: For columns that provided by the user set the
26645         with the preferred value is there was unassigned.
26646         * CurrencyManager.cs: throw OnItemChanged event
26647
26648 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
26649
26650         * PictureBox.cs: Don't animate until handle is created. Start animation
26651           when handle is created.
26652
26653 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26654
26655         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
26656           current codebase.
26657         * XEventQueue.cs: We don't need to provide the extra info
26658
26659 2006-05-10  Jackson Harper  <jackson@ximian.com>
26660
26661         * MdiClient.cs: If the mdi clients parent form has a background
26662         image set, we draw that background image for the mdi area's
26663         background.
26664
26665 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26666
26667         * TextBoxBase.cs: Set IBeam cursor (#78347)
26668
26669 2006-05-10  Mike Kestner  <mkestner@novell.com>
26670
26671         * ToolBar.cs: fix some text padding issues with ButtonSize
26672         calculation. Update the default size to match MS documentation.
26673         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
26674         button size. Fixes #78296.
26675
26676 2006-05-10  Mike Kestner  <mkestner@novell.com>
26677
26678         * ListBox.cs: use is_visible for scrollbar positioning in case the
26679         control isn't on screen yet.  Fix off by one with Right vs Width
26680         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
26681         
26682 2006-05-10  Jackson Harper  <jackson@ximian.com>
26683
26684         * X11Dnd.cs: Drop to a control with another control on top of it.
26685         * ToolBar.cs: Work on a copy of the buttons list, so that it can
26686         be modified in click handlers. TODO: Look for similar problems in
26687         other controls.
26688
26689 2006-05-09  Jackson Harper  <jackson@ximian.com>
26690
26691         * Form.cs: Window managers need the old window state when setting
26692         window state now.
26693         * InternalWindowManager.cs: Allow the base mdi window manager to
26694         handle more of the MDI only stuff (like maximize buttons).
26695         * MdiWindowManager.cs: Fix some snafus in changing the window
26696         state.  Add all the menu functionality, for both popup and
26697         maximized menus.
26698         * MdiClient.cs: When a new form is selected the currently
26699         activated form is sent to the back, this matches MS.
26700         - Implement a new method to activate the next mdi child window.
26701
26702 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
26703
26704         * Control.cs: 
26705           - Added new InternalCapture method to allow controls to prevent
26706             the capture behaviour on the click handlers
26707           - Switched to use InternalCapture
26708         * ComboBox.cs:
26709           - Using InternalCapture to prevent mouse captures from being released
26710             on mouse button release (Fixes #78100)
26711         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
26712           returns Form borders if a caption is present. (Fixes #78310)
26713
26714 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
26715
26716         * TreeNode.cs: Changed serialization .ctor to not require every field
26717           to be present. (#78265)
26718         * OwnerDrawPropertyBag.cs: Added serialization .ctor
26719
26720 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
26721
26722         * MimeIcon.cs: for is faster than foreach for strings.
26723
26724 2006-05-05  Mike Kestner  <mkestner@novell.com>
26725
26726         * CheckedListBox.cs: update check handling code to not use selected.
26727         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
26728         behavior for visual feedback, motion response, shift/ctrl handling,
26729         and properly deal with all 4 selection modes. Updates to bounds
26730         handling logic.  Add scroll wheel support. [Fixes #77842]
26731
26732 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
26733
26734         * ListView.cs:
26735           - Moved adding of Implicit controls into .ctor. That way, subsequent
26736             creation of the controls will not cause them to think they are 
26737             toplevel windows (fixes #78200 header problem)
26738           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
26739           - Switched visibility setting of header control to use internal field
26740             to avoid triggering handle creation
26741           - Now checking if handle is created before causing a refresh when items
26742             are added (This makes us now match handle creation time with MS)
26743         * Splitter.cs: Removed loading of private splitter cursor, switched to
26744           Cursors version now that that is loading the right ones
26745         * Cursors.cs: Load proper splitter cursors from resources
26746         * Cursor.cs: Added second method of loading resource cursors for the 
26747           VS.Net users amongst us
26748
26749 2006-05-05  Mike Kestner  <mkestner@novell.com>
26750
26751         * ListView.cs: give header_control a minimum size based on the
26752         ListView size.
26753
26754 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
26755
26756         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
26757           window seems to do that with metacity, so set that type. (#78120)
26758
26759 2006-05-05  Mike Kestner  <mkestner@novell.com>
26760
26761         * ListViewItem.cs: fix Details mode checkbox layout bug.
26762         * ThemeWin32Classic.cs: draw a ListView column header for unused space
26763         at the end of the header, if it exists. [Fixes for #78200]
26764
26765 2006-05-04  Jackson Harper  <jackson@ximian.com>
26766
26767         * MdiClient.cs: Add a helper property to get the container form.
26768         * MdiWindowManager.cs: We have to make sure to use the menu origin
26769         when drawing the icons and buttons, this fixes maximized window
26770         icons/buttons on win32.
26771         * InternalWindowManager.cs: Reset the restore captions when a
26772         window goes from Maximized to Minimized and vice versa. Move the
26773         DrawMaximizedButtons into the MdiWindowManager source, tool
26774         windows can't be maximized. NOTE: This could use a little
26775         refactoring if time ever permits.
26776         
26777 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
26778
26779         * TextBox.cs: Add MWFCategoryAttributes
26780         * TextBoxBase.cs: Add MWFCategoryAttributes
26781         * Form.cs: Add MWFCategoryAttributes
26782
26783 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
26784
26785         * Control.cs: Add MWFCategoryAttributes
26786         * ScrollableControl.cs: Add MWFCategoryAttributes
26787
26788 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
26789
26790         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
26791           Divider is true. Fix a little glitch in PropertyToolBar
26792           drawing code
26793
26794 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
26795
26796         * Control.cs:
26797           - Dispose: Call base.Dispose, this causes the disposed event
26798             to be fired (and probably other, more important stuff)
26799           - SetVisibleCore: Set is_visible to true after creating the
26800             window so that the window still gets created invisible (if
26801             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
26802             to generate a WM_ACTIVE message
26803         * Form.cs: Call Dispose when we want to destroy the window, instead of
26804           just destroying the handle (Dispose will do that for us)
26805         * XplatUIX11.cs:
26806           - RootWindow also needs a queue, so we can properly process the
26807             property change events from RootWindow (like Activate)
26808           - Generatic synthetic WM_ACTIVE message when the active window is
26809             being destroyed
26810
26811 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
26812
26813         * LinkLabel.cs: Trigger a recalc of our label dimensions when
26814           bounds are changed
26815
26816 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
26817
26818         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
26819           for determining width and height (image might not be assigned if
26820           we're drawing an imagelist)
26821
26822 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
26823
26824         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
26825         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
26826           height from system
26827         * Theme.cs: No longer returns hardcoded menu height, instead calls
26828           new driver method
26829         * Form.cs (OnLoad): Scaling happens before triggering Load events 
26830           on MS (# 78257)
26831
26832 2006-05-01  Mike Kestner  <mkestner@novell.com>
26833
26834         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
26835
26836 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
26837
26838         * TextBoxBase.cs: Removed Fixme
26839         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
26840
26841 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
26842
26843         * XplatUIX11.cs:
26844           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
26845             the rectangle relative to the parent, considering borders. We
26846             don't really want that.
26847           - ScrollWindow: Fixed warning to be more understandable
26848         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
26849           scrollbars and scroll only the visible area
26850         * RichTextBox.cs: Removed debug output
26851
26852 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
26853
26854         * NumericUpDown.cs (Text): Just use base
26855         * UpDownBase.cs: Ensure txtView is created before using it
26856
26857 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
26858
26859         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
26860           casting to IntPtr to avoid 64bit overflow errors
26861
26862 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
26863
26864         * Control.cs:
26865           - AllowDrop: Don't force handle creation.
26866           - CreateHandle: Added call to tell driver if we're allowed to drop
26867
26868 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
26869
26870         * FileDialog.cs: Remember the last directory not only for the
26871           current instance but also for new FileDialog instances.
26872
26873 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
26874         
26875         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
26876           broke sending async messages
26877
26878 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
26879
26880         * XplatUIX11.cs:
26881           - ScrollWindow: Fixed method. We finally generate expose events again
26882             for scrolled areas. This was causing 'garbage' when scrolling
26883             textbox and other controls that used ScrollWindow
26884           - Switched from using the regular queue for paint events to the MS 
26885             model of 'generating' paint events when the queue is empty.
26886             We use the new XQueueEvent.Paint subclass to store which windows
26887             need painting.
26888           - AddExpose now takes the x/y/width/height of the exposed area
26889             and inserts the window into the paint queue if not already there
26890           - InvalidateWholeWindow: Switched to use new AddExpose method
26891           - UpdateMessageQueue: Added which queue to monitor for paint events
26892           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
26893             the unlikely case nothing above handles it. We reset the expose
26894             pending states to get them off the queue.
26895           - GetMessage: Now pulls a paint event if no other events are in the
26896             queue
26897           - Invalidate: Switched to new AddExpose method
26898           - PeekMessage: Updated to understand pending paint events
26899           - UpdateWindow: Fixed logic bug. We were only updating if the window
26900             didn't need updating. Also switched to sending WM_PAINT directly,
26901             like MS does.
26902         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
26903           and random access Remove(). The random access is needed to handle
26904           UpdateWindow() where a WM_PAINT is sent directly without accessing
26905           the queue.
26906         * ScrollBar.cs: Added Update() calls to cause immediate updates to
26907           allow for better feedback when scrolling. Scrollbars are small and
26908           the immediate update should make it 'feel' more responsive without
26909           slowing things down. ScrollBar still needs it's invaliate logic
26910           updated to not always invalidate the whole bar on certain changes.
26911
26912 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26913
26914         * Control.cs:
26915         (BackColor): if the control does not support a transparent background,
26916         return the default backcolor when the parent backcolor is transparent.
26917
26918 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
26919
26920         * Application.cs: Updated to new StartLoop/GetMessage API
26921         * RichTextBox.cs: Provide some output on RTF parsing errors
26922         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
26923           new queue_id argument to GetMessage and PeekMessage to allow faster
26924           handling of per-thread queues in drivers.
26925         * Hwnd.cs: Added Queue tracking and property
26926         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
26927         * XEventQueue.cs: Added thread trackingA
26928         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
26929         * XplatUIX11.cs:
26930           - Implemented new per-thread queue
26931           - GetMessage: Fixed return/break behaviour on several cases. We were
26932             returning stale messages in some cases, instead of just processing
26933             the next message
26934
26935 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
26936
26937         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
26938
26939 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
26940
26941         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
26942           fixed off-by-one comparisons between Width/Height and Right/Bottom.
26943
26944 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
26945
26946         * PropertyGridView.cs: Fix drop down width.
26947
26948 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
26949
26950         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
26951           a mess in DrawToolBar, so I removed one of them.
26952
26953 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
26954
26955         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
26956           needed (clip). Otherwise we get artifacts.
26957
26958 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
26959
26960         * FixedSizeTextBox.cs: Added constructor to allow specifying which
26961           dimension is fixed
26962         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
26963           and switched FixedSizeTextBox to only be fixed vertical (#78116)
26964         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
26965           if it matches the scale base font (avoids unneeded scaling)
26966
26967 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
26968
26969         * X11DesktopColors.cs: One gtk_init_check should be enough
26970
26971 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
26972
26973         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
26974           match MS behaviour
26975
26976 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
26977
26978         * TextBoxBase.cs: 
26979           - Generate OnTextChanged for Backspace even if we're only deleting
26980             the current selection
26981           - When setting the Text property, only select all text if the
26982             control does not have focus when it is being set. Otherwise
26983             just place the cursor at the beginning of the control
26984
26985 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
26986
26987         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
26988           Added a little helper to draw PropertyGrid ToolBar with a different
26989           border and a different BackColor.
26990         * PropertyGrid.cs: Some background parts didn't get painted with the
26991           correct background color. Added a class that helps us to draw the
26992           correct border for PropertyGridView and a class that helps us to
26993           draw ToolBars with a different backcolor
26994         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
26995
26996 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
26997
26998         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
26999         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
27000
27001 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
27002
27003         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
27004           into the palette entries. Also, since we're working on a copy
27005           we needed to copy the palette back onto the bitmap.
27006         * Cursor.cs: Same fix as XplatUIWin32.cs.
27007
27008 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
27009
27010         * ImageListStreamer.cs: Need to read the var (or we're off)
27011
27012 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
27013
27014         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
27015           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
27016           TextBoxBase.cs: Unused var fixes
27017         * AxHost.cs: Small 2.0 fix
27018         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
27019           as it seems that is what at least Metacity expects. This will make
27020           icons show up on 64bit platforms. We still have some 64bit size
27021           issues, though, since the startup app window size still won't match.
27022
27023 2006-04-25  Mike Kestner  <mkestner@novell.com>
27024
27025         * *.cs: cleanup newly reported exception var unused warnings.
27026
27027 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27028
27029         * ThemeWin32Classic.cs: Button image alignment now matches exactly
27030           ms
27031
27032 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27033
27034         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
27035           image. The image position is always the same, no matter if the
27036           button is pressed or not.
27037
27038 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27039
27040         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
27041           selection and set the correct filename for SaveFileDialog.
27042           Patch by Emery Conrad.
27043
27044 2006-04-24  Mike Kestner  <mkestner@novell.com>
27045
27046         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
27047         check for item.X outside the ClientRect instead of item.Y. Fixes
27048         #78151.
27049
27050 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27051
27052         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
27053         trust that value blindly and do some sanity check. Fixes bug #77814.
27054
27055 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27056
27057         * ImageListStreamer.cs: save the mask as a 1bpp image.
27058
27059 2006-04-21  Mike Kestner  <mkestner@novell.com>
27060
27061         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
27062         pass Checked and Indeterminate to the Theme Engine. Improve
27063         encapsulation with ListBox.
27064         * ListBox.cs: Keep a StringFormat instead of calculating it every item
27065         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
27066         nested types.  Move all CheckState functionality to CheckedListBox.
27067         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
27068         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
27069         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
27070         single base list. Fix scrollbar sizing and placement to mirror MS.
27071         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
27072         used.
27073         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
27074         for CheckedListBox by using new DrawItemState info.  Center the
27075         checkboxes on the items. Use new StringFormat property.
27076
27077 2006-04-18  Jackson Harper  <jackson@ximian.com>
27078
27079         * Form.cs: MdiChildren don't do default locations the same way as
27080         regular forms.  This prevents a crash when trying to position the
27081         mdi windows.
27082
27083 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
27084
27085         * PropertyGridTextBox.cs: Formatting, copyright
27086         * PropertiesTab.cs: Formatting
27087         * PropertyGrid.cs: Formatting
27088         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
27089           click toggling of values
27090           
27091 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
27092
27093         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
27094         * Control.cs (.ctor): verify_thread_handle is static, don't reset
27095           every time a control is created
27096         * Application.cs: Removed obsolete EnableRTLMirroring method
27097
27098 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
27099
27100         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
27101         SelectedIndex to -1. Fixes bug #78121.
27102
27103 2006-04-17  Jackson Harper  <jackson@ximian.com>
27104
27105         * Binding.cs: Handle null values for Current and BindingContext.
27106         This occurs when binding is a little delayed.
27107         * CurrencyManager.cs: return null for Current when there are no
27108         items in the list.
27109         - Hookup to the listchanged event on the DataView and update
27110         bindings when the list is changed.  This fixes late binding of
27111         controls.
27112
27113 2006-04-17  Jackson Harper  <jackson@ximian.com>
27114
27115         * X11Dnd.cs:
27116         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
27117         Ringenbach.
27118
27119 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
27120
27121         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
27122           place
27123         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
27124           with the correct ButtonState
27125
27126 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
27127
27128         * XplatUIX11.cs: Improved distinguishing between window types to
27129           tell the WM a type closer to what the app wants (Fixes #78107)
27130
27131 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
27132
27133         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
27134           GrabHandle
27135
27136 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
27137
27138         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
27139           drawing code to reflect the size grip changes
27140
27141 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27142
27143         * ImageListStreamer.cs: fix handling of the mask that follows the main
27144         bitmap when deserializing and serialize it properly. The generated mask
27145         should better be a 1bpp image, but I'll do that later.
27146
27147 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
27148
27149         * FileDialog.cs: Show something in the DirComboBox on *nix if the
27150           path doesn't fit into some of our Current.Places
27151
27152 2006-04-13  Jackson Harper  <jackson@ximian.com>
27153
27154         * ComboBox.cs: Use borders instead of drawing our own decorations,
27155         try to obey correct rules for heights.
27156         * Theme.cs:
27157         * ThemeNice.cs:
27158         * ThemeClearLooks.cs:
27159         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
27160         this is now handled by borders.
27161         - Remove unused DrawListBoxDecorationSize method.
27162         
27163 2006-04-13  Mike Kestner  <mkestner@novell.com>
27164
27165         * MenuAPI.cs: null guarding for the disbled click check fixes crash
27166         reported by Alex.
27167
27168 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
27169
27170         * ThemeWin32Classic.cs: 
27171           - Fixed CPDrawStringDisabled
27172           - Corrected drawing of disabled menu items
27173           - Fixed drawing of disabled radio buttons (bug #78095)
27174           - Draw check in a disabled CheckBox with color ControlDark 
27175
27176 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27177
27178         * Form.cs: Use the provided width when calculating the menu size;
27179           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
27180           and ClientSize.Width won't be updated yet
27181         * Application.cs: Use Visible instead of Show() to make form visible,
27182           this way we create the handle later and menusize is considered
27183
27184 2006-04-12  Mike Kestner  <mkestner@novell.com>
27185
27186         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
27187         reporting.
27188
27189 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27190
27191         * TextBox.cs: Implemented context menu
27192
27193 2006-04-12  Mike Kestner  <mkestner@novell.com>
27194
27195         * ListView.cs: implement box selection. fixes #77838.
27196         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
27197
27198 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
27199
27200         * XplatUIX11.cs: Added setting of window type when transient window
27201           is created (metacity would move it otherwise)
27202         * X11Structs.cs: Added WINDOW_TYPE atoms
27203         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
27204           background (the control is Opaque but still wants transparent
27205           backgrounds)
27206
27207 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27208
27209         * Control.cs: Added OnPaintBackgroundInternal to allow controls
27210           that set Opaque but don't mean it (like all ButtonBase-derived
27211           controls) to still draw their background
27212         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
27213           the background
27214
27215 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
27216
27217         * Control.cs (PaintControlBackground): Set the graphics object
27218           on our PaintEvent to null to prevent it from being disposed
27219           when the PaintEvent gets disposed
27220
27221 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
27222
27223         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
27224         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
27225
27226 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27227
27228         * Control.cs: 
27229           - Added transparency check to BackColor property. Transparent
27230             backgrounds are only allowed if the control styles permit it
27231           - Added recursive painting of parent control background and
27232             foreground if a control with a transparent backcolor is drawn
27233             (Thanks to Tim Ringenback for providing his 'hack' as a base
27234              for this patch) Fixes #77985 and #78026.
27235           - Added Opaque style check before calling OnPaintBackground, no
27236             need to draw the background if the control is opaque
27237           - Removed ControlAccessibleObject owner variable (inherited from
27238             base, no need to define again)
27239           - Added some documentation links explaining the drawing events
27240             and styles
27241
27242 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
27243
27244         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
27245           that the affected control is the located at the left border of our
27246           parent (Fixes #77936)
27247
27248 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27249
27250         * TextBoxBase.cs: When rendering disabled or readonly controls,
27251           draw the background with 'Control' instead of 'Window' color as
27252           long as the user hasn't specifically set a color
27253
27254 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
27255
27256         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
27257           since that won't be updated if the user types text (only if it's
27258           programatically set)
27259
27260 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27261
27262         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
27263           layout changes do to app-triggered resizes will have the proper
27264           display rectangle for layout
27265
27266 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
27267
27268         * ThemeWin32Classic.cs:
27269           - Make use of the SystemBrushes and SystemPens wherever possible
27270           - Corrected some highlight colors
27271           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
27272             drawing
27273         * Theme.cs: Added Empty field to CPColor struct
27274
27275 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27276
27277         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
27278           is displayed when calculating the display rectangle. Thanks to Mike
27279           for teaching me the err of my ways.
27280
27281 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
27282
27283         * ScrollableControl.cs:
27284           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
27285             (instead of 0,0) and we now return the real width/height instead of
27286             just the clientrectangle, adjusted for padding. The rectangle is
27287             now cached and created by the new CalculateDisplayRectangle method.
27288           - Created new CalculateDisplayRectange method, which basically does
27289             what get_DisplayRectangle() did originally, but now using the 
27290             right edge instead of DisplayRectangle to determine the size of
27291             our scrollbars
27292           - get_Canvas(): Fixed it to properly calculate canvas for 
27293             right/bottom controls which seem to be placed to the right/bottom
27294             of any controls that have a fixed location
27295           - Removed TODO that's taken care of
27296           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
27297             and SetDisplayRectLocation according to new MSDN2 docs
27298           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
27299             event when that is called, this is added for compatibility
27300           - ScrollControlIntoView(): Implemented.
27301           - Switched scrollbars to be implicit, they shouldn't be selectable
27302         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
27303           call it when the active control is set/changed
27304         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
27305         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
27306           implicit_control variable (used for native Win32 message generation)
27307         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
27308           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
27309         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
27310         * XplatUIStructs.cs: Added ScrollBarCommands enum
27311
27312 2006-04-10  Jackson Harper  <jackson@ximian.com>
27313
27314         * ButtonBase.cs:
27315         * CheckedListBox.cs:
27316         * ComboBox.cs:
27317         * DataGrid.cs:
27318         * DataGridView.cs:
27319         * Form.cs:
27320         * GroupBox.cs:
27321         * ListBox.cs:
27322         * PrintPreviewControl.cs:
27323         * ProgressBar.cs:
27324         * PropertyGrid.cs:
27325         * Splitter.cs:
27326         * StatusBar.cs:
27327         * TrackBar.cs:
27328         * UpDownBase.cs: Fixup base event overrides.
27329         
27330 2006-04-06  Mike Kestner  <mkestner@novell.com>
27331
27332         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
27333         all user-initiated value changes to min <= value <= max-thumbsz+1.
27334         (set_Value): check for vert/horiz when calculating new thumb position.
27335         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
27336         like MS does.
27337         (OnMouseMoveSB): refactor the thumb dragging code and refine
27338         invalidation logic to reduce flicker.
27339         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
27340         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
27341         (UpdateThumbPosition): small code readability cleanup
27342
27343 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
27344
27345         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
27346           different
27347
27348 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
27349
27350         * ThemeNice.cs: Use a better graphics effect when a button is pressed
27351
27352 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
27353
27354         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
27355         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
27356           This dramatically reduces the number of Pen.Dispose calls. 
27357           Where possible call ResPool methods only once instead of calling it
27358           over and over again (for example for the same color).
27359
27360 2006-04-06  Mike Kestner  <mkestner@novell.com>
27361
27362         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
27363         Also remove an unused private field on the collection. Fixes #77972.
27364
27365 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
27366
27367         * ThemeNice.cs: Added ToolBar drawing code
27368
27369 2006-04-06  Mike Kestner  <mkestner@novell.com>
27370
27371         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
27372         I'm assuming that means we need to look up the toplevel for the
27373         provided control. Fixes the crash trace in #77911 but exposes another
27374         crash in some strange reflection usage in NDocGui.
27375
27376 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
27377
27378         * ThemeNice.cs: Gave it a little silver touch and added Images
27379           method
27380         * FontDialog.cs: FontDialog is not resizable
27381         * FileDialg.cs: Added SizeGripStyle.Show
27382
27383 2006-04-05  Jackson Harper  <jackson@ximian.com>
27384
27385         * KeyboardLayouts.cs: Remove warning.
27386
27387 2006-04-05  Jackson Harper  <jackson@ximian.com>
27388
27389         * Control.cs: Enable OnPaintInternal so we can use it for drawing
27390         all of our controls instead of Paint +=.
27391         * ListBox.cs:
27392         * ListView.cs:
27393         * MenuAPI.cs:
27394         * MessageBox.cs:
27395         * NotifyIcon.cs:
27396         * ProgressBar.cs:
27397         * ScrollBar.cs:
27398         * Splitter.cs:
27399         * StatusBar.cs:
27400         * TabControl.cs:
27401         * TextBoxBase.cs:
27402         * ToolBar.cs:
27403         * TrackBar.cs:
27404         * UpDownBase.cs:
27405         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
27406         use OnPaintInternal. Remove Width/Height and Visible checks in
27407         paint handler, this is done at a higher level now.
27408         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
27409         * PaintEventArgs.cs: Add a handled flag so controls that don't
27410         want anymore painting after OnPaintInternal can make sure OnPaint
27411         isn't called.
27412
27413 2006-04-05  Mike Kestner  <mkestner@novell.com>
27414
27415         * Form.cs: fix the menu WndProc hacks to respect the native enabled
27416         state of the form, so that we don't process events when Modal dialogs
27417         are up. Fixes #77922.
27418
27419 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
27420
27421         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
27422           checking is done.
27423
27424 2006-04-05  Mike Kestner  <mkestner@novell.com>
27425
27426         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
27427
27428 2006-04-05  Mike Kestner  <mkestner@novell.com>
27429
27430         * ListView.cs (HeaderMouseMove): null guarding for the over column
27431         when setting up the drag_to_index.  Fixes #78015.
27432
27433 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
27434
27435         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
27436           in the taskbar. Transient windows seem to accomplish that.
27437
27438 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
27439
27440         * Form.cs:
27441           - Re-enabled CreateParams.X/Y code for FormStartPosition
27442           - Added code for manual placement when creating the Control
27443           - Incomplete patch to treat MDI forms differently when
27444             setting the ClientSizeCore. (Still need to figure out handling
27445             x/y coords there)
27446         * XplatUIX11.cs:
27447           - When we're explicitly setting the X/Y position of a non-Child
27448             window, let the WM know. Metacity really wants this.
27449
27450 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27451
27452         * ThemeNice.cs: Added CPDrawButton
27453
27454 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27455
27456         * ThemeNice.cs: Changed the color for focused buttons and activated
27457           the arrows for small scroll buttons.
27458
27459 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27460
27461         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
27462           anymore. Changed some method modifiers to protected (virtual)
27463         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
27464           changes
27465         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
27466           Updated drawing of menus, buttons and progressbars; added
27467           CPDrawBorder3D 
27468
27469 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27470
27471         * ImageListStreamer.cs: implemented serialization/deserialization
27472         of the images.
27473
27474 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
27475
27476         * ThemeWin32Classic.cs:
27477           - Removed all the DrawFrameControl stuff; CPDrawButton,
27478             CPDrawCheckBox and CPDrawRadioButton are now handled directly
27479             inside the methods
27480           - Updated and corrected the drawing code of CPDrawButton,
27481             CPDrawCheckBox and CPDrawRadioButton to better match ms
27482           - Updated theme checkbox and radiobutton code to use the CP*
27483             methods
27484
27485 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
27486
27487         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
27488           bug is fixed
27489
27490 2006-03-31  Jackson Harper  <jackson@ximian.com>
27491
27492         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
27493         sometimes.
27494         * UpDownBase.cs: Don't CreateGraphics manually, use a
27495         Refresh. Ideally we would invalidate the correct areas here.
27496
27497 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
27498
27499         * XplatUIX11.cs: 
27500           - We now track the mapping state of windows. If a window (or 
27501             one of it's parents) is not mapped we no longer permit
27502             WM_PAINT messages to be generated since we'd otherwise get 
27503             lots of BadMatch X errors. Jackson did all the work figuring
27504             out the problem.
27505           - Destroying the caret if the window it's contained in is 
27506             destroyed. Can't use regular DestroyCaret method since it
27507             might fall into a drawing function (trying to remove the
27508             caret) and with that generate new BadMatch errors. Again,
27509             Jackson tracked this down.
27510           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
27511             make sure we send the messages to all windows. (The old code
27512             would send the WM_DESTROY to the window, and then all child
27513             windows would be 'gone' because the WM_DESTROY handle lookup
27514             would no longer find the destroyed window)
27515         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
27516         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
27517
27518 2006-03-31  Jackson Harper  <jackson@ximian.com>
27519
27520         * ScrollableControl.cs: Dont recalc if we are not visible.
27521
27522 2006-03-31  Mike Kestner  <mkestner@novell.com>
27523
27524         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
27525         the visibility branch.
27526
27527 2006-03-31  Jackson Harper  <jackson@ximian.com>
27528
27529         * ScrollBar.cs: Cap values when incrementing/decrementing.
27530
27531 2006-03-31  Mike Kestner  <mkestner@novell.com>
27532
27533         * MenuAPI.cs: setup menu.tracker for popup/context menus.
27534         * ToolTip.cs: guard against timer expirations with no active control.
27535         Not sure why it happened.
27536
27537 2006-03-31  Mike Kestner  <mkestner@novell.com>
27538
27539         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
27540         text.
27541         * ToolTip.cs: Position the tooltip based on where the cursor is at
27542         popup time, not at MouseEnter time.  Add a Down state so that we don't
27543         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
27544         positioning offset. Lookup DisplaySize at positioning time, since it
27545         can theoretically change during invocation.
27546         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
27547         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
27548
27549 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27550
27551         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
27552           Fixes behaviour when the Text property of the box is String.Empty
27553
27554 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
27555
27556         * XplatUIX11.cs: Only send mouseleave for our client windows, not
27557           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
27558           a window)
27559
27560 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27561
27562         * FileDialog.cs: Visual enhancement for the popup buttons in 
27563           PopupButtonPanel
27564
27565 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27566
27567         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
27568           code
27569
27570 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
27571
27572         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
27573           highlighted menu items to match ms
27574
27575 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
27576
27577         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
27578
27579 2006-03-30  Mike Kestner  <mkestner@novell.com>
27580
27581         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
27582         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
27583         go active to account for HotLight to Selected transition.
27584         * MenuItem.cs: add internal Selected prop. Fill out the Status
27585         property by calculating it from item info. Add HotLight,
27586         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
27587
27588 2006-03-30  Mike Kestner  <mkestner@novell.com>
27589
27590         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
27591
27592 2006-03-29  Jackson Harper  <jackson@ximian.com>
27593
27594         * Form.cs: Implement TODO.
27595
27596 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
27597
27598         * PrintPreviewDialog.cs: Implemented missing methods and events; still
27599           missing proper dialog setup in the constructor
27600
27601 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
27602
27603         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
27604         * Control.cs:
27605           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
27606           - Fixed ResetBindings and removed TODO
27607           - Added check for cross-thread calls to get_Handle()
27608           - Added Marshaller attribute for set_Font to satisfy class status
27609         * FontDialog.cs: Removed TODOs that seemed implemented
27610         * UpDownBase.cs: Removed unneeded TODO and Fixme
27611         * MessageBox.cs: Implemented support for Default button and removed TODO
27612         * FileDialog.cs: Removed obsolete TODO
27613         * DomainUpDown.cs: Removed obsolete TODO
27614         * ButtonBase.cs: Removed obsolete TODO
27615         * XplatUIWin32.cs: Removed obsolete TODO
27616         * Form.cs:
27617           - Removed obsolete TODO
27618           - Calling CheckAcceptButton when the acceptbutton is changed to allow
27619             internal status updates
27620           - Making sure the active control is selected when the control is created
27621         * CurrencyManager.cs: Removed obsolete TODO
27622
27623 2006-03-29  Mike Kestner  <mkestner@novell.com>
27624
27625         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
27626         of PrintPreviewDialog and RichTextBox.
27627
27628 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27629
27630         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
27631           DarkDark, Light and LightLight colors for a specific color
27632         * ThemeWin32Classic.cs:
27633           - Use Button drawing code to draw RadioButtons and CheckBoxes with
27634             Appearance = Button 
27635           - Make use of the new ResPool helper CPColor
27636           - Draw ProgressBar and StatusBar with correct 3D borders
27637
27638 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27639
27640         * ColorDialog.cs: Return selected color. Fixes bug #77940.
27641
27642 2006-03-28  Mike Kestner  <mkestner@novell.com>
27643
27644         * ListView.cs: fix Icon layout to plan for scrollbar widths when
27645         calculating col/row counts.
27646
27647 2006-03-28  Mike Kestner  <mkestner@novell.com>
27648
27649         * ColumnHeader.cs:
27650         * ListView.cs:
27651         * ListViewItem.cs:
27652         * Menu.cs: 
27653         switch to explicit interface method implementation for some methods
27654         corcompare identifies as inconsistent with MS.
27655
27656 2006-03-28  Mike Kestner  <mkestner@novell.com>
27657
27658         * MainMenu.cs: 
27659         * Menu.cs:
27660         add a few missing methods from the class status output.
27661
27662 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
27663
27664         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
27665           correct.
27666
27667 2006-03-28  Mike Kestner  <mkestner@novell.com>
27668
27669         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
27670
27671 2006-03-27  Mike Kestner  <mkestner@novell.com>
27672
27673         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
27674         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
27675
27676 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
27677
27678         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
27679
27680 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27681
27682         * ThemeWin32Classic.cs:
27683           - GroupBox: Inserted a little gap between the text and the lines
27684             on the right side
27685           - Made the code in CPDrawBorder3D more readable
27686           - Corrected the drawing location of the up and down arrows in 
27687             CPDrawScrollButton
27688
27689 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27690
27691         * ControlPaint.cs: Corrected line widths in DrawBorder for
27692           ButtonBorderStyle Inset and Outset
27693
27694 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27695
27696         * ThemeWin32Classic.cs:
27697           - Rewrote the totally broken CPDrawBorder3D method. That was
27698             one of the main problems for the terrific ThemeWin32Classic
27699             look
27700           - Updated and corrected Button drawing
27701           - Correct the dimensions of the SizeGrip to match ms ones
27702           - Removed a small drawing glitch in DrawComboBoxEditDecorations
27703         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
27704           Border3DStyle.Sunken to match ms.
27705
27706 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27707
27708         * ThemeWin32Classic.cs: First small part of the "de-uglify
27709           ThemeWin32Classic" effort, SizeGrip
27710
27711 2006-03-24  Jackson Harper  <jackson@ximian.com>
27712
27713         * XplatUIX11.cs: Give a max idle time of one second, this matches
27714         MS and forces an Idle event every second when there are no other
27715         events in the queue.
27716
27717 2006-03-24  Mike Kestner  <mkestner@novell.com>
27718
27719         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
27720         * ListView.Item.cs: fix layout issues with null image lists and images
27721         smaller than checkbox size.
27722         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
27723         mode like MS does.  It's weird, but consistent.  ;-)
27724         Fixes #77890.
27725
27726 2006-03-24  Mike Kestner  <mkestner@novell.com>
27727
27728         * ListView.cs: Scroll wheel support for the item control.  Fixes
27729         #77839.
27730
27731 2006-03-23  Jackson Harper  <jackson@ximian.com>
27732
27733         * ScrollableControl.cs: Special case negative sized areas, not
27734         zero.
27735         * MonthCalendar.cs: Save the rect of the clicked date so we can
27736         use it for invalidation.
27737         - Try to cut down on the number of invalidates
27738         - Invalidate the rect the mouse is over and was over when moving
27739         the mouse, so we get the focus box following the cursor.
27740
27741 2006-03-23  Mike Kestner  <mkestner@novell.com>
27742
27743         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
27744         focus rectangle drawing. Fixes #77835.
27745
27746 2006-03-23  Mike Kestner  <mkestner@novell.com>
27747
27748         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
27749         the if and else if and reverting back to the original == check on the
27750         None conditional.
27751
27752 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
27753
27754         * FontDialog.cs: Update the example panel if the selected index of
27755           the fontListBox changes.
27756
27757 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
27758
27759         * FileDialog.cs: Make FileDialog remember which directory it was in
27760           last in the same execution.
27761
27762 2006-03-22  Mike Kestner  <mkestner@novell.com>
27763
27764         * FileDialog.cs: make the DropDownMenu on the toolbar display
27765         RadioChecks since they are mutually exclusive and that's what MS does.
27766
27767 2006-03-22  Mike Kestner  <mkestner@novell.com>
27768
27769         * Theme.cs: add Color param to CPDrawMenuGlyph.
27770         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
27771         checks and radio marks and arrows are visible on highlighted items.
27772         * ControlPaint.cs: update to use new Theme signature.
27773
27774 2006-03-22  Mike Kestner  <mkestner@novell.com>
27775
27776         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
27777         is active. Fixes #77870.
27778
27779 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
27780
27781         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
27782           to be focused/selected after startup
27783
27784 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
27785
27786         * ColorDialog.cs: 
27787           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
27788             CustomColors and ShowHelp properties
27789           - Some internal rewrites to get better results when using the
27790             ColorMatrix
27791
27792 2006-03-22  Mike Kestner  <mkestner@novell.com>
27793
27794         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
27795         HoverSelection.  Fixes #77836.
27796
27797 2006-03-22  Mike Kestner  <mkestner@novell.com>
27798
27799         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
27800         ToggleButtons.  (De)Sensitize the Back button around a stack count of
27801         1, not 0.  Update ButtonSize based on a pixel count of the win32
27802         control.  Adjust the toolbar size/location for new button size.
27803
27804 2006-03-22  Jackson Harper  <jackson@ximian.com>
27805
27806         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
27807         true.
27808         * ScrollBar.cs: When doing increments and decrements we need to
27809         set the Value property so that ValueChanged gets raised. A
27810         possible optimization here would be to make an internal SetValue
27811         that doesn't invalidate immediately.
27812         * ToolTip.cs: Tooltips get added to their container (when
27813         supplied) so they get disposed when the container is disposed.
27814         - Don't create tooltips for String.Empty. This prevents all these
27815         little 2-3 pixel windows from showing up when running nunit-gui
27816         and driving me mad.
27817         * Form.cs: Don't set topmost when setting the owner if the handles
27818         haven't been created yet.  The topmost set will happen when the
27819         handles are created.
27820
27821 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
27822
27823         * XplatUIX11.cs:
27824           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
27825           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
27826             visible (to allow them to recalculate their sizes)
27827
27828 2006-03-21  Mike Kestner  <mkestner@novell.com>
27829
27830         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
27831         methods. Removed a ton of redundant code.  Still not really happy with
27832         the border rendering, but I think that's mainly because of the
27833         ControlDarkDark being black instead of a dark grey. Depending on how 
27834         close we want to be, we might want to revisit those color choices.
27835         Among the new features added during the refactor were DropDownArrow
27836         pressed rendering, Disabled image rendering.  Proper flat appearance
27837         boundary rendering.  Removed the Divider and Wrapping dividers since I
27838         can't figure out any combination of themes and conditions to make the
27839         MS control draw a horizontal line on a toolbar despite what the
27840         Divider property docs indicate.
27841         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
27842         conditions and incorrect layout.  Updated to coding standard.
27843         * ToolBarButton.cs: refactored layout and positioning code from
27844         ToolBar to here.  Invalidate wherever possible instead of forcing
27845         redraws of the whole toolbar. 
27846         (Known remaining issues: explicit ButtonSize smaller than provided
27847         images.)
27848
27849 2006-03-21  Mike Kestner  <mkestner@novell.com>
27850
27851         * ContextMenu.cs (Show): use the position parameter instead of just
27852         showing at the MousePosition.
27853
27854 2006-03-21  Jackson Harper  <jackson@ximian.com>
27855
27856         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
27857         control handle this.
27858         * TreeNodeCollection.cs: If we are clearing the root node we need
27859         to reset top_node so calcs can still happen.
27860         * ThemeWin32Classic.cs: This is a Flags so we need to check
27861         properly.
27862         
27863 2006-03-21  Jackson Harper  <jackson@ximian.com>
27864
27865         * DataGrid.cs: Create columns when the binding context has been
27866         changed.
27867         * X11Structs.cs: Keysyms are uints.
27868         - Add size to fix build.
27869
27870 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
27871
27872         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
27873           XplatUIOSX.cs: 
27874           - Added ResetMouseHover method to allow controls to retrigger
27875             hovering if they need it more than once
27876           - Implemented MouseHoverTime and MouseHoverSize properties
27877         * Timer.cs: Start() must reset the interval
27878         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
27879           properties
27880
27881 2006-03-21  Jackson Harper  <jackson@ximian.com>
27882
27883         * X11Keyboard.cs: improved layout detection. Move the nonchar
27884         tables into this file.
27885         * KeyboardLayouts.cs: Move the tables into resource files.
27886
27887 2006-03-21  Mike Kestner  <mkestner@novell.com>
27888
27889         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
27890
27891 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
27892
27893         * Mime.cs: Various speed optimizations. Looking up mime types
27894           is now 2 times faster than before
27895
27896 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
27897
27898         * CreateParams.cs: Added internal menu field
27899         * Control.cs: 
27900           - Switched call order for UpdateBounds; now we always call
27901             the one that also takes ClientSize, and we're calculating the 
27902             client size via driver method in the others. The previous
27903             method of tracking client size by difference wasn't working
27904             for forms where even the starting client size wouldn't match
27905             the overall form size (due to borders) (Part of fix for #77729)
27906           - CreateParams(): Do not use parent.Handle unless the handle is
27907             already created. Causes havoc with Nexxia and throws off our
27908             creation of controls
27909         * XplatUIX11.cs:
27910           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
27911           - Switched handling of ConfigureNotify over to new PerformNCCalc 
27912             method (consolidates code)
27913           - Changed RequestNCRecalc to use new PerformNCCalc method
27914           - Added calls to RequestNCRecalc when menus and borders are changed
27915             to allow app to set NC size. (Part of fix for #77729) This matches
27916             when MS send a WM_NCRECALC on Win32 windows.
27917           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
27918             (Part of fix for #77729). This matches what MS does, they also
27919             send that message when the form is made visible.
27920           - XException.GetMessage: Improved usability of X errors by including
27921             a translation of the window into Hwnd and Control class
27922           - Improved debug info for window creation, reparenting and destruction
27923           - Created helper method WindowIsMapped() [Currently not used]
27924         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
27925         * Form.cs:
27926           - CreateParams: Now setting our menu on the new internal menu field
27927           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
27928             avoid calculating the same property twice
27929         * Hwnd.cs:
27930           - Improved usability of ToString() for debugging purposes
27931           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
27932             determine the height of the menu, instead of just the font. This
27933             required to also create a graphics context and to keep a bmp 
27934             around (for performance reasons)
27935
27936 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
27937
27938         * MenuAPI.cs: Added OnMouseUp method
27939         * Form.cs:
27940           - Now remembering the requested client size, avoids size errors
27941           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
27942             instead of base if the menu is active. This is required due to
27943             control now capturing and releasing on down/up and it would
27944             prematurely release our menu capture
27945
27946 2006-03-17  Jackson Harper  <jackson@ximian.com>
27947
27948         * KeyboardLayouts.cs: Add the czech layouts.
27949
27950 2006-03-16  Jackson Harper  <jackson@ximian.com>
27951
27952         * Control.cs: Use the viewport space when sizing not the controls
27953         client size, so things like ScrollableControl that effect the
27954         viewport size (when scrollbars are added) are computed correctly.
27955         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
27956         of ManagerEntrys.
27957         - Handle creating BindingManagers for null data sources.
27958         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
27959         source, otherwise when rows are added they are added to the 'fake'
27960         datasource and we will crash when trying to set the position in
27961         those rows.
27962         - Use Implicit scrollbars on the datagrid so they arent
27963         selectable.
27964         
27965 2006-03-16  Jackson Harper  <jackson@ximian.com>
27966
27967         * Binding.cs:
27968         * InternalWindowManager.cs:
27969         * MdiWindowManager.cs:
27970         * X11Keyboard.cs: I really want Mike to love me again (fix
27971         compiler warnings).
27972
27973 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
27974
27975         * DataGrid.cs:
27976           - OnMouseDown: Switch to editing mode when clicking on the cell
27977                          even if we're clicking on the cell that's currently 
27978                          selected
27979           - ProcessGridKey: Left/Right now wrap like MS.Net does
27980           - ProcessGridKey: Tab now knows to add a new row when tab is
27981                             pressed in the cell of the last column of the 
27982                             last row
27983           - ProcessGridKey: Enter now adds another row  if pressed in the last
27984                             row and selectes the new row, same column cell
27985           - ProcessGridKey: Home/End navigate columns, not rows, like 
27986                             originally implemented
27987           - Broke ProcessKeyPreview code out into an extra Internal method
27988             so it can be called from the edit code
27989         * DataGridTextBox.cs (ProcessKeyMessage):
27990           - Switched to accept Tab keypresses
27991           - Added F2 handling to allow jumping to the end of the edited cell
27992           - Added logic to allow moving caret left/right inside edited cell
27993             and making the edited cell jump when the caret hits cell borders
27994           - Tab and Enter are now passed to the datagrid after being handled
27995         * TextBoxBase.cs:
27996           - Removed capture code now that Control handles it
27997           - set_SelectionStart now ensures caret is visible
27998
27999 2006-03-16  Jackson Harper  <jackson@ximian.com>
28000
28001         * TrackBar.cs: Debackwards the increment/decrement for handling
28002         mouse clicks on the bar with vertical trackbars.
28003         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
28004         bottom to match MS.
28005
28006 2006-03-16  Mike Kestner  <mkestner@novell.com>
28007
28008         * ListView.cs: make shift/ctrl keyboard and mouse selection 
28009         consistent with the MS control. Fix a bug in
28010         SelectedListViewItemCollection.Clear that was pissing me off for the
28011         better part of a day because the collection was being altered
28012         underneath us as we walked the list.
28013
28014 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
28015
28016         * Control.cs: Not sure how we could miss this so long, but it seems
28017           that MS.Net has Capture set all the way from before calling 
28018           OnMouseDown through sending the mouse events until after
28019           OnMouseUp. This will fix DataGrid's selection being set to end
28020           at the location of the MouseUp.
28021
28022 2006-03-15  Jackson Harper  <jackson@ximian.com>
28023
28024         * BindingContext.cs: Check the binding after its added so that it
28025           can initialize the binding managers and hookup to events.
28026         * Binding.cs: Data members seem to sometimes include rows/cols in
28027           the format Row.Column we now take this into account.
28028           - Hookup to the position changed event so we can update the
28029           control when the position has changed in the data set.
28030         * CurrencyManager.cs: Take into account the row/col naming
28031           convention when creating dataset tables.
28032         * BindingContext.cs: Using a newer better way of storing
28033           datasource/datamember pairs.  Hopefully this better matches MS for
28034           looking up binding managers.
28035
28036
28037 2006-03-15  Jackson Harper  <jackson@ximian.com>
28038
28039         * BindingContext.cs: The currency manager needs the data member
28040         name, if the member is a data set we use the name to find the
28041         correct table.
28042         * CurrencyManager.cs: When creating the list prefer an IList over
28043         an IListSource.
28044         - Attempt to create a DataTable from a DataSet (TODO: might need
28045         some better error checking here, although MS doesn't seem to have much)
28046         - If we have a DataTable create a view and use it as our list.
28047
28048 2006-03-15  Mike Kestner  <mkestner@novell.com>
28049
28050         * ListView.cs: keep a matrix of the icon mode layout to facilitate
28051         keyboard navigation. Support Up/Down/Left/Right selection correctly
28052         for all 4 View modes.
28053         * ListViewItem.cs: add internal row/col fields for icon layouts.
28054
28055 2006-03-15  Jackson Harper  <jackson@ximian.com>
28056
28057         * TabControl.cs: Redraw the tabs when we resize so their newly
28058         calculated sizes are drawn on screen.
28059         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
28060         composite characters.
28061         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
28062         - filter events so that composite characters can be created
28063         patches by peter
28064         * X11Structs.cs: Add XIMProperties enum.
28065
28066 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
28067
28068         * Control.cs (BringToFront, SendToBack): Don't use window or handle
28069           unless it's created
28070
28071 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
28072
28073         * Control.cs (PerformLayout): We don't need to consider visiblity
28074           for anchoring, only for docking. This fixes 'whacky' alignment
28075           in listbox and other controls that use implicit scrollbars after
28076           the previous PerformLayout patch
28077         * ListBox.cs: Switched to use implicit scrollbars
28078           
28079 2006-03-14  Mike Kestner  <mkestner@novell.com>
28080
28081         * ToolBar.cs: 
28082         * VScrollBar.cs:
28083         - chain up the "new event" overrides to base and use
28084         OnEvent to raise them.  Part of fix for bug #76509.
28085
28086 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
28087
28088         * FileDialog.cs: Do not select an item in the parent directory
28089           on backspace
28090
28091 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
28092
28093         * Control.cs (PerformLayout): It would seem that we considered
28094           invisible windows for our layout. Not quite the right thing
28095           to do. Now we don't any longer, thereby fixing bug #76889.
28096
28097 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
28098
28099         * Control.cs (CanFocus): I goofed. A control can have focus 
28100           even though it's not selectable. Made it match MS docs.
28101
28102 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28103
28104         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
28105           center by default (fixes #76895)
28106         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
28107           all uses of Border3DSides.All with the explicit ORd together
28108           Left|Right|Top|Bottom because I assume that nobody was aware 
28109           that All also implies a center fill. Most places I checked had
28110           a fill right above.
28111         * ProgressBarStyle.cs: Added
28112
28113 2006-03-13  Mike Kestner  <mkestner@novell.com>
28114
28115         * ListView.cs: fix breakage in drag shadow header positioning 
28116         from Peter's csc compilation fix.
28117
28118 2006-03-13  Mike Kestner  <mkestner@novell.com>
28119
28120         * ListView.cs: fix NRE produced by backspacing twice in a focused
28121         FileDialog.
28122
28123 2006-03-13  Mike Kestner  <mkestner@novell.com>
28124
28125         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
28126
28127 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28128
28129         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
28130           be changed
28131         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
28132           the allowed size before making programmatic size changes
28133
28134 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
28135
28136         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
28137           set, metacity is broken and will still use the emty sizes in 
28138           the struct. (Fix for #77089)
28139
28140 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28141
28142         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
28143           WindowExStyles and marked both enums as Flags
28144         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
28145           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
28146           to match WindowStyles split
28147         * XplatUIX11.cs:
28148           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
28149           - Updated to match WindowStyles split
28150         * XplatUIWin32.cs:
28151           - Fixed FosterParent creation, was using ExStyle on the Style field
28152             (This should help with Popup focus issues)
28153           - Updated to match WindowStyles split
28154
28155 2006-03-13  Jackson Harper  <jackson@ximian.com>
28156
28157         * MdiWindowManager.cs: Use the system menu height. Fixes some
28158         strange sizing issues.
28159
28160 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
28161
28162         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
28163         * TextBoxBase.cs:
28164           - Scroll to caret after inserting text (#77672)
28165           - Make scroll range one pixel higher, fixes off-by-one error (and
28166             makes underlines visible on the last line)
28167
28168 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
28169
28170         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
28171           the keyboard state from being stuck with keys in 'pressed' state when
28172           focus is switched away via keyboard
28173         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
28174           reset the keyboard if no X11 KeyUp events are expected to come
28175         * X11Structs.cs: Switched type of Visible to bool to match driver
28176
28177 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
28178
28179         * TextControl.cs:
28180           - Switched caret to be just 1 pixel wide, matches MS and looks less
28181             clunky
28182           - Moved caret display 1 pixel down from the top of the control
28183             to improve view
28184           - InsertCharAtCharet: Update the selection start if moving the caret
28185             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
28186           - No longer always creating the caret when the caret methods are
28187             called. Only the actual ShowCaret/HideCaret will do that now
28188           - Only setting caret visible if the owner control has focus
28189           - UpdateView: Added invalidation-shortcut logic for center and right 
28190             aligned text. Previously we'd update all according to the left
28191             logic which caused drawing errors. Also fixed height of invalidated
28192             areas, now properly invalidating the whole area (was off-by-one)
28193           - owner_HandleCreated: Always generate the document when the
28194             handle is created; this ensures that 
28195         * TextBoxBase.cs:
28196           - Fixed situation where caret would disappear under the right
28197             window border, also improved scrolling behaviour on left-
28198             aligned textboxes
28199           - Fixed right-aligned textboxes to have a border to the
28200             right instead of the caret being under the right border
28201         * XplatUIX11.cs:
28202           - Switched from 'nested' to simple visible/not visible tracking 
28203             for caret (part of fix for #77671)
28204           - No longer passing through translated FocusIn/FocusOut messages
28205             since we were notifying too often and the wrong windows. Instead
28206             we just notify our focussed window of receiving or loosing focus
28207         * XplatUIWin32.cs: Switched from 'nested' show/hide 
28208           counting for caret to simple visible yes/no behaviour (part of 
28209           fix for #77671)
28210
28211 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
28212
28213         * Mime.cs: Remove debug code...
28214
28215 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
28216
28217         * MimeGenerated.cs: Removed
28218         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
28219           and subclasses) from /usr/(local/)share/mime and
28220           $HOME/.local/share/mime.
28221
28222 2006-03-10  Jackson Harper  <jackson@ximian.com>
28223
28224         * MdiWindowManager.cs: Recalc the NC area when a window is
28225         maximized/restored so that the menu area is drawn on forms that
28226         don't have a menu.
28227
28228 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28229
28230         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
28231           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
28232           us to force a WM_NCCALCRESIZE message being sent. This is needed
28233           for MDI maximizing.
28234
28235 2006-03-10  Jackson Harper  <jackson@ximian.com>
28236
28237         * Form.cs: We need to use the ActiveMenu when calculating menu
28238         height.
28239         - Fix nullref when the window manager hasn't been created yet.
28240         * Control.cs: Fix nullref when we try to bring a control to the
28241         front that has no parent.
28242         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
28243         height.
28244         - Add a dummy item to the maximized menu so it always has the
28245         correct height. Otherwise when there are no menus we don't get our
28246         icon and buttons.
28247         
28248
28249 2006-03-10  Jackson Harper  <jackson@ximian.com>
28250
28251         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
28252         stuff.
28253         * Form.cs: Make the window_state internal so the window managers
28254         can track it.
28255         - When an MDI child is maximized let its window manager create the
28256         main menu (so it can add its icon).
28257         - Notify the window managers of state changes
28258         - Let the window manager paint its buttons and handle button
28259         clicks on the menu when it is maximized.
28260         * InternalWindowManager.cs: Move the prev_bounds into the mdi
28261         window manager, since tool windows don't use it, only mdi windows.
28262         - Tell the main form that we don't want it to handle NCPAINT
28263         itself to avoid extra painting.
28264         - Handle clicks on a maximized windows menu.
28265         - Handle window state changes
28266         - Handle minimize/maximize clicks correctly by setting the window state.
28267         * MdiWindowManager.cs: Add an icon menu that (the menu you get
28268         when clicking on the forms icon).
28269         - New method to create a forms maximized menu. This is its normal
28270         menu + an icon.
28271         - Handle window state changes.
28272         - Handle sizing of maximized windows.  Maximized windows are just
28273         drawn bigger then the parent visible area. All controls are still
28274         there, they are just outside the visible area (this matches windows).
28275         * MdiClient.cs: No scrollbars when a child window is maximized.
28276         - Let the children windows figure out how big they should be when
28277         sizing maximized windows.
28278         - Implement a version of ArrangeIconicWindows somewhat similar to
28279         Windows version.  There are some little differences, but I don't
28280         think any app will rely on the layout of minimized mdi windows.
28281
28282 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28283
28284         * Padding.cs: Several fixes to allow compiling with csc 2.0
28285
28286 2006-03-09  Jackson Harper  <jackson@ximian.com>
28287
28288         * Menu.cs:
28289         * MenuItem.cs: Cheap hack so we can add items to the list without
28290         the events being raised.  This allows adding mdi items during
28291         drawing. TODO: Should probably find a better time to add the items.
28292
28293 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28294
28295         * ThemeWin32Classic.cs:
28296           - CheckBox_DrawText: Added logic to not wrap if not enough space
28297             is available (Fix for bug #77727)
28298           - RadioButton_DrawText: Added logic not to wrap if not enough
28299             space is available (Fix for bug #77727). Also removed some
28300             duplicate code, DrawString always drawing the regular text
28301             before hitting the if statement.
28302
28303 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
28304
28305         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
28306
28307 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28308
28309         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
28310         * ContainerControl.cs: Partial implementation of some 2.0 scaling
28311           methods. Moved the new 2.0 properties into alphabetical order with
28312           other properties and added MonoTODO tags
28313
28314 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28315
28316         * AutoScaleMode.cs: Added. Fix build.
28317
28318 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28319
28320         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
28321           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
28322           and was requiring premature handle creation for calls from above
28323         * Form.cs, Control.cs: Removed handle arguments from calls to
28324           CalculateClientRect()
28325
28326 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28327
28328         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
28329           drag_column.column_rect is MarshalByRef and can't be used that way
28330
28331 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28332
28333         * AxHost.cs: Added deserialization constructor for 
28334           AxHost+State (fixes 77743)
28335
28336 2006-03-09  Mike Kestner  <mkestner@novell.com>
28337
28338         * ListView.cs: 
28339         - Added column drag reordering for details view.
28340         - fixed behavior when mouse is dragged off column and
28341         AllowColumnReorder is false.
28342         * ColumnHeader.cs: clone the format too in Clone.
28343         * Theme.cs: add DrawListViewHeaderDragDetails method.
28344         * ThemeWin32Classic.cs:
28345         - impl new method for drawing drag column shadows and targets.
28346         - support column offset for details mode in DrawListViewItem.
28347
28348 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28349
28350         * TextControl.cs: Reset the char_count when the document is cleared
28351           (Fixes bug reported on mono-winforms mailing list)
28352
28353 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28354
28355         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
28356           of calling base we simply process the key ourselves, since both
28357           DefWindowProc and the handled method would set m.Result. 
28358           (Fixes #77732)
28359
28360 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28361
28362         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
28363           method also moves the window; instead implemented a copy of
28364           Control.ScaleCore (Part of fix for #77456)
28365         * TextBoxBase.cs: 
28366           - Created new CreateGraphicsInternal method to allow providing
28367             a graphics context when no handle is created without triggering
28368             handle creation. (Part of fix for #77456)
28369           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28370         * TextControl.cs: 
28371           - Switched Constructor to require TextBoxBase instead of Control (to
28372             allow uncast access to CreateGraphicsInternal)
28373           - Safeguarded use of owner.Handle property. No longer accessing it
28374             unless the handle is already created.
28375           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28376           - Now triggering a recalc when owning control becomes visible
28377         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
28378           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
28379           premature handle creation (Part of fix for #77456)
28380         * Control.cs:
28381           - We now only destroy our double-buffering buffers when the
28382             control is resized or disposed, but not when visibility
28383             changes. (The code even re-created them twice every time)
28384           - Now requiring a redraw of the buffer on visibility changes
28385             (fixes bug 77654 part 2)
28386           - Not passing OnParentVisibleChanged up unless the control
28387             is visible
28388           - CanFocus: Fixed to match MS documentation
28389           - Focus: Fixed to return actual focus state and to check if
28390             setting focus is legal before setting it
28391
28392 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
28393
28394         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
28395           when to draw focus rectangle by looking at parent focus and
28396           selected state instead. This fixes TabPages on Linux sometimes
28397           having none or multiple focus rectangles.
28398         * XplatUIX11.cs (SetFocus): 
28399           - Don't set the focus if the same window already has focus
28400           - Use SendMessage instead of PostMessage (like it's Win32
28401             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
28402             to match MS behaviour
28403         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
28404           are not selectable.
28405
28406 2006-03-07  Jackson Harper  <jackson@ximian.com>
28407
28408         * PictureBox.cs: Revert line I accidently committed last week.
28409
28410 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
28411
28412         * Control.cs: 
28413           - Added new IsRecreating and ParentIsRecreating properties to
28414             allow testing if RecreateHandle has been called on ourselves
28415             or one of our parents
28416           - WndProc(WM_DESTROY): If our control handle is being recreated
28417             we immediately need to create the handle when receiving the
28418             destroy, that way our child windows find a valid parent handle
28419             when they themselves are being recreated upon WM_DESTROY receipt
28420             (fix for bug #77654 part 1)
28421         * XplatUIX11.cs:
28422           - DestroyWindow: WM_DESTROY must be sent to our own window before
28423             notifying any child windows. MS documents that child windows
28424             are still valid when WM_DESTROY is received. (Control now relies on
28425             this behaviour)
28426           - Added some fine-grain debug options
28427
28428 2006-03-06  Jackson Harper  <jackson@ximian.com>
28429
28430         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
28431         box and base calculations off this.
28432         * MdiChildContext.cs:
28433         * MdiWindowManager.cs: Don't need to ensure scrollbars here
28434         anymore.
28435         
28436 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
28437
28438         * Splitter.cs: In situations where the affected control is added
28439           to the parent's control list after the splitter, we would not
28440           populate affected. Now we try populating it on mousedown, if
28441           it's not already set, and force it to be re-set whenever our
28442           parent changes.
28443
28444 2006-03-03  Matt Hargett  <matt@use.net>
28445
28446         * Control.cs: implement Control.Padding
28447         * Padding.cs: -Padding.All returns -1 when constructing with the
28448         implicit default ctor
28449         -Padding.ToString() matches MS.NET
28450         * ContainerControl.cs: implement
28451         ContainerControl.AutoScaleDimensions
28452         * ListControl.cs: implement ListControl.FormattingEnabled
28453         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
28454         * ButtonBase.cs:
28455         * TabPage.cs: Implement UseVisualStyleBackColor.
28456         * PictureBox.cs: Implement PictureBox.InitialImage.
28457
28458 2006-03-03  Mike Kestner  <mkestner@novell.com>
28459
28460         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
28461         event declarations to proxy to base event.
28462         * ListViewItem.cs: update to use ItemControl.
28463         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
28464         * ThemeWin32Classic.cs: update to new ListView theme API and fix
28465         column header label rendering for 0 width columns.
28466
28467 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
28468
28469         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
28470           that causes the control to be created. Fixes #77476.
28471
28472 2006-03-02  Jackson Harper  <jackson@ximian.com>
28473
28474         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
28475         expose_pending.
28476
28477 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
28478
28479         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
28480           passed in for the EventArgs (fixes #77690)
28481
28482 2006-03-01  Jackson Harper  <jackson@ximian.com>
28483
28484         * ScrollBar.cs: Refresh afterbeing resized.
28485
28486 2006-02-28  Mike Kestner  <mkestner@novell.com>
28487
28488         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
28489         Clean up a tracker compile warning.
28490         * MenuItem.cs: add internal PerformPopup method.
28491         [Fixes #77457]
28492
28493 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
28494
28495         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
28496           implicit expose) when the text is set to null
28497
28498 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
28499
28500         * RichTextBox.cs (FlushText): When newline is true, we always
28501           need to split the line, even if no text is on it and we may
28502           never eat newlines. (Fixes #77669)
28503
28504 2006-02-28  Mike Kestner  <mkestner@novell.com>
28505
28506         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
28507         and set Selected instead.
28508         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
28509         collections.
28510
28511 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
28512
28513         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
28514
28515 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
28516
28517         * FontDialog.cs:
28518           - Got rid of the panel. All controls are now directly added to
28519             the dialog form
28520           - It is now possible to set a font with the Font property
28521           - MinSize and MaxSize property do now what they should
28522           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
28523           - Searching and selecting a font with the font textbox works now,
28524             the same applies to the style and size textbox
28525           - Draw the correct 3D border in the example panel
28526           - Fixed a little mem leak (unused fonts didn't get disposed)
28527           - Many other internal updates/rewrites...
28528           - Fix typo
28529
28530 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
28531
28532         * TextControl.cs: 
28533           - InsertRTFFromStream: Added 'number of characters inserted' argument
28534           - set_SelectedRTF: Now using the number of characters to calculate
28535             the new location for the selection and cursor (x/y cannot be used
28536             due to potentially already wrapped text)
28537
28538 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
28539
28540         * TextControl.cs: Added property and implemented means to allow 
28541           disabling recalculation of a document (can be used to speed up
28542           multiple inserts and is needed to make RTF inserts predictable, see
28543           bug #77659)
28544         * RichTextBox.cs: Using the new NoRecalc property of Document to
28545           keep x/y insert locations predictable. Also makes it faster inserting
28546           large chunks of RTF
28547
28548 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
28549
28550         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
28551           it's easier for a child control to handle the other messages without
28552           having to duplicate the special functionality
28553         * TextBoxBase.cs
28554           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
28555             code to handle processing the key ourselves, in order to get 
28556             access to the result of KeyEventArgs.Handled. We now only call 
28557             ProcessKey if they key hasn't been handled already. Fixes #77526.
28558           - set_Text: If null or empty string is given, just clear the 
28559             document. Fixes part of #77526
28560
28561 2006-02-27  Jackson Harper  <jackson@ximian.com>
28562
28563         * SizeGrip.cs: Paint the background color before painting the grip
28564         so things look right.
28565         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
28566
28567 2006-02-27  Mike Kestner  <mkestner@novell.com>
28568
28569         * ListView.cs:
28570           - Restructure layout and invalidation model to remove a ton of
28571           flicker from the control and speed up performance in general.
28572           - Add manual column resize, flickers like crazy, but I already have
28573           some ideas on how I'll fix that. (#76822)
28574           - Merge the three Icon-based views into a single layout method.
28575           - Move item selection interaction logic from the item since 
28576           interaction with the collections is more appropriate to the view.
28577           - Deselection on non-item clicks.
28578         * ListViewItem.cs:
28579           - Encapsulate most of the layout. Add some internal props to trigger
28580           layout.  Move to a model where Items invalidate themselves instead
28581           of just invalidating the whole control every time something changes.
28582           - Invalidate on Text/Caption changes.
28583           - switch to an offset based layout model to avoid having to absolute
28584           position every element on item moves.
28585           - correct checkbox layout to conform to MS layout.
28586         * ThemeWin32Classic.cs:
28587           - refactor some column header drawing code.
28588           - fix string justification for column headers (#76821)
28589           - make SmallIcon labels top justified for compat with MS impl.
28590         * ThemeClearlooks.cs:
28591           - adjust to new ListViewItem internal checkbox bounds api.
28592
28593 2006-02-27  Jackson Harper  <jackson@ximian.com>
28594
28595         * Control.cs:  Change where implicit controls fall in the zorder.
28596         They are now on top of all children.
28597         - Synced AddImplicit code with Add
28598         - Removed unused enumerator.
28599         * SizeGrip.cs: Remove the TODO as its been TODONE.
28600
28601 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
28602
28603         * TextControl.cs(Insert): Combine the last lines unless the insertion
28604           string ends with \n\n, otherwise we leave one line too many (Fixes
28605           something I noticed with the testapp for #77526; the bug itself was
28606           already fixed in the previous checkin)
28607
28608 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
28609
28610         * RichTextBox.cs:
28611           - SelectionColor and SelectionFont methods no longer set absolute
28612             styles. Instead, the keep font or color respectively (This 
28613             resolves a long-standing FIXME in the code)
28614           - When flushing RTF text, the insert code now considers text trailing
28615             behind the insertion point (Fixes the bug where when replacing
28616             the selected text via SelectedRTF the remainder of the line behind 
28617             the selection would stay on the first insertion line)
28618         * TextBoxBase.cs:
28619           - AppendText now updates the selection points after inserting text
28620           - AppendText now ensures that the last tag (sometimes 0-length) of
28621             the document is used for the style information (Fixes part of 
28622             bug #77220)
28623         * TextControl.cs:
28624           - Created new FontDefiniton class to allow describing partial style
28625             changes
28626           - StreamLine() now takes a lines argument, to allow it to decide
28627             whether an encountered zero-length tag is the last in the document
28628             (which must be kept to not loose the font/color contained in it,
28629             for later appends)
28630           - Created Combine() and Split() methods for Marker structs, to 
28631             support marker updates due to reformatted documents (soft line
28632             wraps)
28633           - Implemented Document.CaretTag setter
28634           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
28635             of the last line (Not the cause, but also exposed by bug #77220)
28636           - Added LineTag argument to InsertString method, to allow callers
28637             to force a certain tag to be used (required to force use of the
28638             trailing zero-length tag of a document)
28639           - Now updating markers in Combine(), to avoid stale tag markers
28640           - Added some method descriptions to aid maintenance
28641           - Implemented new FormatText concept, allowing additive/subtractive
28642             formatting by only specifying the components that are to be 
28643             changed. This was needed for resolving the RTB.SelectedColor/
28644             RTB.SelectedFont fixmes
28645           - Added Break() support method to allow breaking up linetags (used
28646             for partial formatting)
28647           - Added GenerateTextFormat() method. It is used for partial 
28648             formatting and allows to generate a full font/color from given
28649             attributes and an existing tag.
28650
28651 2006-02-26  Jackson Harper  <jackson@ximian.com>
28652
28653         * XplatUIX11.cs:  Use the correct caption height.
28654         - Translate hittest coordinates to screen coords to match MS.
28655         * XplatUIWin32.cs: When we create MDI windows we need to reset
28656         some of the style flags, so we get a nice blank window, and can
28657         draw all the decorations ourselves.
28658         - Set a clipping rectangle on the non client paint event, the
28659         window manager drawing code needs one.
28660         * Form.cs: The window manager needs to know when the window state
28661         has been updated.
28662         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
28663         don't need to factor in border and title sizes in these
28664         methods. TODO: Remove the args and fix the call points.
28665         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
28666         properly.
28667         - Let the driver set the cursors.
28668         - Improve active window handling
28669         - Correct sizes for title bars and buttons.
28670         - Match MS drawing better
28671         * MdiWindowManager.cs: We don't need to handle border style
28672         updates specially anymore.
28673         - Check for scrollbars when windows are done moving
28674         - Handle Active properly.
28675         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
28676         correctly. I am spewing the exception though, so we don't hide the
28677         bugs.
28678         
28679 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
28680
28681         * DataGridViewRowPostPaintEventArgs.cs,
28682           DataGridViewCellPaintingEventArgs.cs,
28683           DataGridViewRowCollection.cs,
28684           DataGridViewRowPrePaintEventArgs.cs,
28685           DataGridViewCell.cs: Clear a few warnings and implement a few
28686           exceptions that should be thrown.
28687
28688 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28689
28690         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
28691           'inheriting' our parent's (non-default) cursor. (Part of
28692            the fix for #77479)
28693
28694 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
28695
28696         * XplatUIX11.cs: Fixed cast to make csc happy
28697
28698 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28699
28700         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
28701           it's for the client area (part of fix for #77479 and needed
28702           for MDI window cursor handling)
28703         * XplatUIX11.cs
28704           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
28705             the appropriate default cursors and also passing the message
28706             up the parent chain 
28707           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
28708             for non-client areas
28709
28710 2006-02-15  Jackson Harper  <jackson@ximian.com>
28711
28712         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
28713         is a real MDI window
28714
28715 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
28716
28717         * X11DesktopColors.cs: Instead of checking the desktop session
28718           string for "KDE" check if it starts with "KDE"
28719
28720 2006-02-10  Jackson Harper  <jackson@ximian.com>
28721
28722         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
28723         systems).
28724
28725 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
28726
28727         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
28728           errors
28729         * ColorDialog.cs:
28730           - Got rid of the panel. All controls are now directly added to
28731             the dialog form
28732           - Changed to mono coding style
28733
28734 2006-02-10  Jackson Harper  <jackson@ximian.com>
28735
28736         * InternalWindowManager.cs: We don't need the set visibility to
28737         false hack anymore now that peter has written beautiful shutdown
28738         code.
28739
28740 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
28741
28742         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
28743           where already explicitly destroyed
28744
28745 2006-02-10  Jackson Harper  <jackson@ximian.com>
28746
28747         * MdiClient.cs: Handle the case where windows are too high or to
28748         the left and we need scrollbars.
28749
28750 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
28751
28752         * MimeIcon.cs: Added some icons
28753         * FileDialog.cs:
28754           - Fixed bug #77477
28755           - Got rid of the panel. All controls are now directly added to
28756             the dialog form
28757           - Changed to mono coding style
28758           - On Linux "My Computer" and "My Network" will now show some
28759             more usefull information. A new class, MasterMount, gathers
28760             this information from /proc/mount. Updated MWFFileView to make
28761             use of this information
28762           - Fixed a bug that caused FileDialog to crash when
28763             ".recently_used" file had a zero size
28764           - FilterIndex does now what it should
28765           - Some Refactoring
28766         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
28767             FileDialog changes
28768
28769 2006-02-09  Jackson Harper  <jackson@ximian.com>
28770
28771         * ComboBox.cs: Don't touch if null.
28772
28773 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
28774
28775         * Cursor.cs: 64bit safeness fix
28776         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
28777
28778 2006-02-09  Jackson Harper  <jackson@ximian.com>
28779
28780         * Form.cs: If a form is made into an MDI form update the styles so
28781         all the props can get set correctly.
28782         - Kill the mdi_container when we dont need it anymore.
28783         * InternalWindowManager.cs: Add missing NOT
28784
28785 2006-02-08  Jackson Harper  <jackson@ximian.com>
28786
28787         * InternalWindowManager.cs: Respek clipping when drawing MDi
28788         decorations.
28789
28790 2006-02-08  Jackson Harper  <jackson@ximian.com>
28791
28792         * Hwnd.cs: Add bits to track non client expose events.
28793         * XplatUIX11.cs: Track non client expose events on the hwnd. This
28794         gives us a proper invalid rect and will allow for some nice
28795         optimizations with NC client drawing
28796         - MDI windows are children windows, so move their style handling
28797         into the child window block.
28798         * InternalWindowManager.cs: Remove a state reset that was
28799         getting invoked at the wrong time. Fixes managed windows getting
28800         into a 'stuck' captured state.
28801
28802 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
28803
28804         * TextControl.cs (Document.ctor): Now initializing 
28805           selection_anchor. Fixes #77493
28806
28807 2006-02-07  Jackson Harper  <jackson@ximian.com>
28808
28809         * TrackBar.cs: The increment/decrements were backwards.
28810
28811 2006-02-07  Mike Kestner  <mkestner@novell.com>
28812
28813         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
28814         to the instance itself.
28815
28816 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
28817
28818         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
28819           on ulongs and pointers, the size differs between 32bit and 64bit
28820           systems. 
28821
28822 2006-02-07  Mike Kestner  <mkestner@novell.com>
28823
28824         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
28825         for 64 bit platforms to work around a metacity bug. 
28826
28827 2006-02-07  Jackson Harper  <jackson@ximian.com>
28828
28829         * TrackBar.cs: Process the input keys we need, and hookup to
28830         KeyDown instead of using WndProc, so we get key messages.
28831
28832 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
28833
28834         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
28835           machine we're on. 
28836         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
28837           we need to translate the XdndVersion atoms array before sending it
28838
28839 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
28840
28841         * XplatUIX11.cs: 
28842           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
28843             number of bits for the property, not the number of bytes. The
28844             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
28845             but would not crash since it specified 8 bits instead of 4 bits)
28846           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
28847             defined as XID -> long in the C headers)
28848           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
28849             references since those are now IntPtr to begin with
28850           - Switched all Atom.XXX 'int' casts to IntPtr casts
28851           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
28852           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
28853           - Added XChangeActivePointerGrab DllImport (for X11DnD)
28854         * X11Structs.cs:
28855           - Changed 'int' type for Atoms in XEvent structures to IntPtr
28856           - Changed atom in HoverStruct to be IntPtr
28857         * X11DnD.cs:
28858           - Removed local DllImports, switched code to use those from XplatUIX11
28859           - Removed/fixed casts related to the switch of Atom to be a IntPtr
28860
28861 2006-02-06  Mike Kestner  <mkestner@novell.com>
28862
28863         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
28864         method signatures in the import region.  There may still be some
28865         lingering struct marshaling issues, as I didn't drill down into those.
28866         Yet.
28867
28868 2006-02-06  Jackson Harper  <jackson@ximian.com>
28869
28870         * ComboBox.cs: Dont manually set the top_item, this is computed
28871         when the scrollbar position is set.
28872
28873 2006-02-06  Mike Kestner  <mkestner@novell.com>
28874
28875         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
28876         startup crashes on amd64.  There's other fixes needed.  All pinvoke
28877         usage of Atom needs to be mapped to IntPtr for example.  And there are
28878         likely other int/long issues to be addressed.
28879
28880 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
28881
28882         * FileDialog.cs: One more...
28883
28884 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
28885
28886         * FileDialog.cs: Next try
28887
28888 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
28889
28890         * FileDialog.cs: First part of fix for #77464
28891
28892 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
28893
28894         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
28895           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
28896           AcceptButton border drawing.
28897
28898 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
28899
28900         * Form.cs: Moved positioning of form after auto scaling is applied,
28901           otherwise it would possibly use wrong form size.
28902
28903 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
28904
28905         * Control.cs (RecreateHandle): No need to re-create any child
28906           controls, the child windows will get destroyed automatically by
28907           the windowing system or driver, and re-created when the handle
28908           is being accessed the first time. Fixes #77456
28909         * Form.cs: No longer setting the form to closing if the handle is 
28910           being recreated. This seems like the right thing to do, don't
28911           have a bug or testcase for this, though.
28912
28913 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
28914
28915         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
28916           controls to avoid unwanted side effects
28917
28918 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
28919
28920         * Control.cs: 
28921           - ScaleCore needs to scale the bounds, not the ClientSize of the 
28922             control. Fixes #77416.
28923           - DefaultSize is 0,0 for control
28924         * TextBoxBase.cs: 
28925           - DefaultSize is 100, 20
28926           - SetBoundsCore: Now enforcing the height, no matter if the provided
28927             height is more or less than the preferred one, as long as AutoSize
28928             is on
28929         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
28930
28931 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
28932
28933         * Control.cs:
28934           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
28935             call unless both performLayout is true *and* we have a pending
28936             layout change
28937           - ResumeLayout: MS does not completely nest Suspend and Resume,
28938             they bottom out at 0, fixed our code to match that.
28939           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
28940             SetBoundsCore, we were updating even when we shouldn't. This fixes
28941             swf-anchors mis-anchoring when resizing the app fast and lots.
28942           - UpdateDistances: Now only setting the left and top distance if 
28943             we have a parent and are not suspended, this is based on
28944             a suggestion by Don Edvaldson in bug #77355.
28945           - OnVisibleChanged: Fixed logic when to create the control. We may
28946             not create the control if we have no parent or if it's not visible;
28947             switched to using Visible property instead of is_visible field 
28948             since the property also considers parent states. This fixes a bug
28949             when starting Paint.Net
28950
28951 2006-02-02  Jackson Harper  <jackson@ximian.com>
28952
28953         * Form.cs: If the forms handle hasn't been created yet don't call
28954         into xplatui to make it top most, just set the topmost flag on the
28955         form in CreateParams
28956         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
28957
28958 2006-02-01  Jackson Harper  <jackson@ximian.com>
28959
28960         * ScrollableControl.cs: Refactored the Recalculate method a
28961         little, this wasn't handling all the variants of bottom and right
28962         bars needed to be added and added/removed based on their
28963         counterparts being added/removed (which changes the drawable
28964         size). Also we special case client widths and heights of 0 and
28965         don't add the scrollbar for those.
28966
28967 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
28968
28969         * XplatUIX11.cs: 
28970           - Added method to get AbsoluteGeometry(); currently unused, but might
28971             be used in the future, if we try again to figure out toplevel
28972             coordinates with some more crappy window managers
28973           - Added FrameExtents() method to retrieve the WM set decoration size
28974           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
28975             to deal with at least KDE, FVWM and metacity (Fixes #77092)
28976         * Hwnd.cs: 
28977           - Added whacky_wm tracking var for metacity
28978           - Added logic to have default menu height if the actual menu height
28979             has not yet been calculated (part of fix for #77426)
28980         * Form.cs: Keep track whether client size has been set and re-set 
28981           it if a menu is added/removed afterwards (Fixes #77426)
28982
28983 2006-01-31  Jackson Harper  <jackson@ximian.com>
28984
28985         * Control.cs: When a new Site is set on the component attempt to
28986         pull the AmbientProperties from it.
28987
28988 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
28989
28990         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
28991           in the background of the owning form. Fixes #77332
28992
28993 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
28994
28995         * MimeIcon.cs: Fix for #77409
28996
28997 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
28998
28999         * XplatUIX11GTK.cs: Initial import
29000
29001 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
29002
29003         * FixedSizeTextBox: fixes class signature
29004
29005 2006-01-30  Jackson Harper  <jackson@ximian.com>
29006
29007         * FixedSizeTextBox.cs: New internal class that represents a
29008         textBox that will not be scaled.
29009         * TreeView.cs:
29010         * ComboBox.cs:
29011         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
29012         standard TextBox.
29013                 
29014 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
29015
29016         * XplatUIX11.cs: Retrieve default screen number instead of
29017           assuming 0. Attempted fix for #77318
29018
29019 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
29020
29021         * XplatUIWin32.cs: 
29022           - GetWindowPos: When a window is parented by FosterParent, use 
29023             the desktop instead of FosterParent as the base to get coordinates
29024           - CreateWindow: Don't make FosterParent the parent window for Popups
29025             if we don't want a taskbar entry, Popups automatically don't get one
29026         * Hwnd.cs: Need to call remove to actually remove the key from the
29027           hash table
29028
29029 2006-01-30  Mike Kestner  <mkestner@novell.com>
29030
29031         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
29032
29033 2006-01-30  Jackson Harper  <jackson@ximian.com>
29034
29035         * TreeView.cs:
29036         * TreeNode.cs: Raise events no matter how the treenode is
29037         checked. Patch by Don Edvalson.
29038
29039 2006-01-30  Jackson Harper  <jackson@ximian.com>
29040
29041         * TreeNode.cs: Signature fix.
29042
29043 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
29044
29045         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
29046
29047 2006-01-20  Mike Kestner  <mkestner@novell.com>
29048
29049         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
29050         event forwarding when menus are active.
29051         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
29052         Most of the patch is pdb's with a little rework.
29053
29054 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
29055
29056         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
29057           Removed GetMenuDC and ReleaseMenuDC methods; replaced
29058           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
29059         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
29060         * InternalWindowManager.cs: Added use of PaintEventStart/End to
29061           handling of WM_NCPAINT message, now passing the PaintEventArgs to
29062           the PaintWindowDecorations method
29063         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
29064         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
29065         * MenuAPI.cs: Made tracker window invisible
29066         * XplatUIWin32.cs:
29067           - Removed GetMenuDC and ReleaseMenuDC methods
29068           - Implemented the client=false path for PaintEventStart and
29069             PaintEventEnd
29070
29071 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
29072
29073         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
29074         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
29075           styles
29076         * Form.cs: 
29077           - MaximizeBox, MinimizeBox: Recreate the handle when setting
29078             the style
29079           - CreateParams: Reworked the styles to match MS look'n'feel,
29080             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
29081             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
29082
29083 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
29084
29085         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
29086           window is not mapped, since otherwise every form that's being 
29087           created is considered minimized, which is wrong.
29088         * Form.cs: Catching the exception and returning our internal value
29089           instead
29090
29091 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
29092
29093         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
29094           SetWindowMinMax() to have means to tell the driver about the minimum,
29095           maximum and maximized state window sizes. (Part of the fix for #76485)
29096         * Form.cs:
29097           - Implemented tracking of minimum and maximum window size, now calling
29098             new SetWindowMinMax() driver method to tell the driver (Part of the
29099             fix for #76485)
29100           - Finished handling of WM_GETMINMAXINFO method, now setting all values
29101             (Completes fix for #76485)
29102           - Calling new SetWindowMinMax driver method when the handle for a 
29103             form is created, to make sure the driver knows about it even if
29104             the values have been set before the window was created
29105           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
29106             to avoid messing up our anchoring calculations (partial fix
29107             for #77355)
29108         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
29109         * XplatUIX11.cs:
29110           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
29111           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
29112             (and presumably other freedesktop.org compliant WMs). Left the
29113             assumption unmapped=minimized, needed for SetVisible to work.
29114           - Now setting the window state when creating windows
29115           - Fixed SetVisible to consider/set the window state when mapping
29116             a Form. We cannot set the state before it's mapped, and we cannot
29117             use Form.WindowState once it's mapped (since it would ask the
29118             driver and get 'normal'. Therefore, we grab the state before
29119             mapping, map, and then set state.
29120           - Implmemented SetWindowMinMax method; Metacity does not seem to
29121             honor the ZoomHints, though.
29122         * XplatUIWin32.cs:
29123           - Removed MINMAXINFO (moved to XplatUIStructs)
29124           - Added SetWindowMinMax stub (on Win32 the only way to set that
29125             information is in response to the WM_GETMINMAXINFO message, which
29126             is handled in Form.cs)
29127           - Added logic to SetVisible to set the proper window state when a 
29128             form is made visible (fixes #75720)
29129
29130 2006-01-26  Jackson Harper  <jackson@ximian.com>
29131
29132         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
29133         same way we handle them with Invoke.
29134
29135 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
29136
29137         * Form.cs:
29138           - Added tracking of window state so CreateParams can return
29139             the appropriate style
29140           - Moved setting of WS_CAPTION style in CreateParams to allow
29141             styles without caption
29142         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
29143           control if the TextBox property is accessed. Fixes #77345
29144         * Control.cs:
29145           - get_Created: now uses is_disposed and is_created to determine
29146             return value (suggested by Jackson)
29147           - CreateHandle: No longer exits if the handle is being recreated
29148           - RecreateHandle: If the handle is not yet created call the 
29149             appropriate method to create either control or handle. If the
29150             control is already created CreateHandle will simply exit instead
29151             of just creating the handle
29152         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
29153           now SendMessage WM_DESTROY directly to the control when DestroyWindow
29154           is called.
29155         * XplatUIX11.cs: 
29156           - When DestroyWindow is called, instead of waiting for the 
29157             DestroyNotification from X11, we directly post it to the WndProc
29158             and immediately dispose the hwnd object.
29159             Same applies to DestroyChildWindows, and this obsoletes the
29160             expose_pending tracking. Contrary to Win32 behaviour we destroy our
29161             child windows before our own, to avoid X11 errors.
29162           - Removed the direct sending of WM_PAINT on UpdateWindow
29163         * XplatUIWin32.cs:
29164           - Reworked DoEvents and GetMessage to allow access to internal queue
29165             even when trying non-blocking access to the queue.  Fixes #77335. 
29166             Based on a patch suggestion by Don Edvalson. The new private
29167             GetMessage can now also be used as a backend for a PeekMessage
29168             frontend version.
29169         * XplatUI.cs: Improved debug output for CreateWindow
29170
29171 2006-01-25  Jackson Harper  <jackson@ximian.com>
29172
29173         * Help.cs: Allow param to be null. Patch by Don Edvalson.
29174
29175 2006-01-24  Jackson Harper  <jackson@ximian.com>
29176
29177         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
29178         when we have a MaxDropItems lower then the selected index.
29179
29180 2006-01-24  Jackson Harper  <jackson@ximian.com>
29181
29182         * Control.cs: Don't allow selection of non visible controls, allow
29183         selection of controls without parents.
29184
29185 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
29186
29187         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
29188         * DataGridDrawingLogic.cs: Add editing row only when is necessary
29189
29190 2006-01-23  Jackson Harper  <jackson@ximian.com>
29191
29192         * UpDownBase.cs: Make the textbox handle all the selection and
29193         tabbing. This fixes tabing to updown controls.
29194
29195 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
29196
29197         * TextBoxBase.cs: fixes exception thown the object was null
29198
29199 2006-01-23  Jackson Harper  <jackson@ximian.com>
29200
29201         * ButtonBase.cs: Just use the base CreateParams. They set
29202         visibility and enabled correctly.
29203         * ComboBox.cs:
29204         * TrackBar.cs:
29205         * MonthCalendar.cs: Lets let the base set as much of the
29206         createparams as possible so we don't have duplicate code all over
29207         the place.
29208
29209 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
29210
29211         * ThemeGtk.cs: Added TrackBar and some experimental code to
29212           get double buffering back
29213
29214 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
29215
29216         * DataGrid.cs: Allows row number set internally higher than the last
29217         when creating a new row. Restores the editing functionality.
29218
29219 2006-01-20  Mike Kestner  <mkestner@novell.com>
29220
29221         * MimeIcon.cs: delay Image creation until the icons are accessed
29222         instead of creating 190 scaled images on GnomeHandler startup.
29223
29224 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
29225
29226         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
29227           first call base before processing the event. Fixes #77279
29228
29229 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
29230
29231         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
29232           that the stride for the GDI bitmap would match the stride of
29233           a DIB or a Cursor.
29234
29235 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
29236
29237         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
29238
29239 2006-01-19  Jackson Harper  <jackson@ximian.com>
29240
29241         * ComboBox.cs: Hookup the text controls keydown event so we get
29242         those when the text control has the focus.
29243
29244 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
29245
29246         * Label.cs: Now using the base events instead of defining new ones;
29247           this allows us to just call the base properties without having to
29248           duplicate all base property logic 
29249
29250 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
29251
29252         * Label.cs: A label by default is not a tabstop (Fixes one of our
29253           failing nunit tests)
29254
29255 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
29256
29257         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
29258         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
29259
29260 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
29261
29262         * Cursor.cs: Reimplemented creating cursor bitmaps without using
29263           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
29264           This fixes #77218
29265         * XplatUIWin32.cs: 
29266           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
29267             constructor creates images that can't be saved. Part of the fix
29268             for #76103
29269           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
29270           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
29271             bug fix for handling window state in forms properly)
29272
29273 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29274
29275         * ThemeGtk.cs: Simplify ScrollBar drawing
29276
29277 2006-01-18  Jackson Harper  <jackson@ximian.com>
29278
29279         * Splitter.cs: Set the default dock style for the splitter control
29280         in the constructor.
29281
29282 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29283
29284         * ThemeGtk.cs: Corrected StateType and ShadowType for
29285           gtk_paint_box
29286
29287 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29288
29289         * Control.cs: Make use of Theme.DoubleBufferingSupported
29290         * ThemeGtk.cs:
29291           - Added drawing for flat style buttons
29292           - Added ScrollBar drawing
29293
29294 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29295
29296         * ThemeClearlooks.cs: Removed some unneeded code.
29297         * ThemeGtk.cs: First part of ThemeGtk enhancements.
29298
29299 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
29300
29301         * LinkLabel.cs: We need to update the hover drawing when
29302           leaving the control as well.
29303
29304 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
29305
29306         * DataGrid.cs: Clicking on non empty areas in the columns
29307            area was giving an exception
29308
29309 2006-01-17  Jackson Harper  <jackson@ximian.com>
29310
29311         * ThemeWin32Classic.cs:
29312         * ListView.cs: Do not draw/clip the headers when the header style
29313         is None.
29314
29315 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
29316
29317         * DataGrid.cs: Fixes 77260
29318         
29319 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
29320
29321         * DataGrid.cs: Clicking on a column on a empty grid was giving
29322           an exception
29323
29324 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
29325
29326         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
29327           or any keypress will crash the grid.
29328
29329 2006-01-17  Mike Kestner  <mkestner@novell.com>
29330
29331         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
29332         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
29333         invisible/previously-visible items.
29334         [Fixes #76909]
29335
29336 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
29337
29338         * ThemeClearlooks.cs:
29339         - Added CL_Draw_Button method; now other theme controls that are 
29340           not derived from button or do not have a button can draw buttons
29341           too
29342         - Updated ComboBox drawing
29343         - Beautified RadioButton drawing
29344         - Corrected drawing of bottom and left tabs
29345         - Beautified DateTimePicker and MonthCalendar
29346         - Added CPDrawButton and CPDrawRadioButton
29347
29348 2006-01-16  Jackson Harper  <jackson@ximian.com>
29349
29350         * ComboBox.cs: Set the initial value of the scrollbar to the
29351         current index. Reduce the numbers of refreshs and IndexOfs called.
29352
29353 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
29354
29355         * FileDialog.cs: When the file listview is focused hitting the
29356           backspace key moves the fileview to the parent directory
29357
29358 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
29359
29360         * Form.cs: 
29361           - Added RecreateHandle call when changing taskbar visibility to 
29362             trigger reparenting in Win32 driver (Fixes #75719)
29363           - If a window has minimize or maximize buttons, it cannot have
29364             a help button
29365         * XplatUIWin32.cs:
29366           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
29367             the toplevel form with FosterParent (A toolwindow not on the
29368             taskbar) (Fixes #75719)
29369           - Made FosterParent a toolwindow
29370
29371 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29372
29373         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
29374
29375 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29376
29377         * ToolTip.cs: If SetToolTip is called from a control and the mouse
29378           is currently over that control, make sure that tooltip_window.Text
29379           gets updated
29380
29381 2006-01-13  Mike Kestner  <mkestner@novell.com>
29382
29383         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
29384
29385 2006-01-13  Jackson Harper  <jackson@ximian.com>
29386
29387         * TreeView.cs: On MS GetNodeAt never actually factors in the X
29388         value passed.  Also redraw the selected node when we recieve
29389         focus, so tabbing between trees works correctly.
29390
29391 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29392
29393         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
29394           ~/.gconf/%gconf-tree.xml, so use
29395           .gconf/desktop/gnome/interface/%gconf.xml
29396
29397 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
29398
29399         * TextControl.cs: Draw text in gray if control is disabled
29400
29401 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
29402
29403         * TreeView.cs: Draw the focus rectangle outside the highlight, to
29404           make sure it's always visible. Fixes #76680.
29405
29406 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
29407
29408         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
29409
29410 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
29411
29412         * PageSetupDialog.cs: Added.
29413         * PrintDialog.cs: Attributes.
29414         * PrintPreviewControl.cs: Updates.
29415         * PrintPreviewDialog.cs: Updates.
29416         
29417 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29418
29419         * Control.cs: Undid my selection check fix, since it's not needed
29420         * TextBoxBase.cs:
29421           - Now considering the presence of hscroll/vscroll when sizing
29422             vscroll/hscroll respectively. Fixed bug #77077
29423           - Added Left/Up/Down/Right to IsInputKey list to prevent
29424             ContainerControl from stealing them. This fixes what I broke
29425             with my last checkin.
29426
29427 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
29428
29429         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
29430           I finally understand how the property can be set without a setter :-)
29431
29432 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29433
29434         * Application.cs:
29435           - Switched RunLoop to use static Message.Create to create a 
29436             Message object
29437           - Added PreProcessMessage call in runloop for keyboard events; this
29438             is part of the fix for #77219, I overlooked this originally in the
29439             MSDN doc for PreProcessMessage
29440         * Control.cs:
29441           - Removed call to PreProcessMessage from handling of keyboard 
29442             messages; it's supposed to be done in the message pump
29443           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
29444             per MSDN documentation.
29445           - IsInputChar: All chars are input chars by default; removed the 
29446             parent calling chain, MS does not document that
29447           - PreProcessMessage: If IsInputChar is true, we want to return false
29448             to allow dispatching of the message
29449           - When selecting the next control, now also check that we're not
29450             selecting ourselves again and therefore return a false positive.
29451         * TextBoxBase.cs:
29452           - Tried to match return values for IsInputKey and ProcessDialogKey
29453             to what MS returns; moved processing of our special keys outside
29454             ProcessDialogKey since MS does not seem to return true on those.
29455           - Moved code that previously was in ProcessDialogKey into new private
29456             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
29457           - Reworked handling of WM_CHAR to not have to duplicate code from
29458             Control.cs anymore, instead we simply call down to base.
29459            
29460 2006-01-12  Jackson Harper  <jackson@ximian.com>
29461
29462         * ComboBox.cs: We always need to refresh the text area when
29463         EndUpdate is called. Fixes the combobox in the file dialog.
29464         * Control.cs: Don't create the creator_thread until the controls
29465         handle is created.  Also in InvokeRequired we check if the
29466         creator_thread is null. This gives the effect of InvokeRequired
29467         returning true if the controls handle is not created yet, and
29468         matches MS.
29469
29470 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29471
29472         * XplatUI.cs:
29473           - Added StartLoop() driver method. This is used to allow drivers to
29474             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
29475             loop for a particular thread
29476           - Added EndLoop() driver method. This is called once the message
29477             pump for the thread is shut down
29478           - Added SupportsTransparency method to allow the driver to indicate
29479             opacity support for windows
29480         * Form.cs:
29481           - Removed TODO attribute, completed AllowTransparency property
29482           - Added documented logic to Opacity
29483         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
29484           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
29485           versions of CompatibleTextRendering
29486         * X11Structs.cs: Added opacity atom to our atom enumeration
29487         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
29488           of a form might be set before it's reparented by the WM, and we need
29489           the opacity value without calling up to Form)
29490         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
29491           SupportsTransparency() driver methods
29492         * Application.cs: Now calling StartLoop and EndLoop driver methods
29493         * XplatUIX11.cs:
29494           - Added opacity atom registration
29495           - Added StartLoop()/EndLoop() methods. They're empty right now but
29496             will need to get implemented when we switch to a per-thread queue
29497           - Implemented SupportsTransparency() method
29498           - Implemented SetWindowTransparency() method
29499           - Added support for setting the opacity value when a window is
29500             reparented (since the opacity needs to be set on the WM frame)
29501         * XplatUIOSX.cs, XplatUIWin32.cs:
29502           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
29503
29504 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
29505
29506         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
29507
29508 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
29509
29510         * FileDialog.cs: Added ToolTip for MWFFileView
29511         * MimeIcon.cs: Rewrote GnomeHandler.
29512           - Get currently used gnome icon theme from
29513             ($HOME)/.gconf/%gconf-tree.xml
29514           - Make use of inherited icon themes
29515           - Support SVG icon themes like Tango via librsvg
29516
29517 2006-01-12  Miguel de Icaza  <miguel@novell.com>
29518
29519         Revert's Jackson's revert which broke 2.0 builds.   Fix both
29520         builds. 
29521         
29522         * Application.cs: Move the use_compatible_text_rendering outside
29523         the NET_2_0 define.  If we ever need to use the
29524         use_compatible_text_rendering on the individual controls they will
29525         access the variable from the common shared code paths.
29526
29527 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29528
29529         * XplatUI.cs:
29530           - Added more granular debug options
29531           - Added method to print both window text and id
29532           - Switched debug output to use new Window() debug method
29533           - Added IsEnabled() driver method
29534           - Added EnableWindow() driver method
29535         * Form.cs:
29536           - Removed end_modal; no longer needed, new loop handles termination
29537             via 'closing' variable
29538           - If form is modal, setting DialogResult will now initiate loop
29539             termination via 'closing' variable
29540           - Added support for is_enabled/WS_DISABLED to CreateParams
29541           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
29542             does all the work
29543           - Removed code that's now in RunLoop from ShowDialog()
29544           - Added various documented sanity checks to ShowDialog()
29545           - Added handling of WM_DESTROY message; we set 'closing' on getting
29546             the message to indicate the message pump to terminate
29547           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
29548             send by the Application.ExitThread method. (We send the message
29549             to destroy the window after all other events have been
29550             processed through the queue, instead of destroying the handle 
29551             directly)
29552           - Moved code from Close() method to WM_CLOSE handler; added logic
29553             to only send close-related events if the form is not displayed
29554             modal
29555         * Splitter.cs (..ctor): Fixed typo in resource name
29556         * Control.cs:
29557           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
29558             brush now
29559           - set_Cursor: Now only setting calling into XplatUI if the handle for
29560             the control is already created; this avoids implict handle creation
29561             or crashes if it's not created
29562           - set_Enabled: Now setting the enabled state via the new driver method
29563             instead of just tracking it
29564           - CreateParams: Added logic to set WS_DISABLED based on enabled state
29565           - CreateControl: Reordered event firing and method calls to more
29566             closely fire events in the order MS does. Now setting the
29567             enabled state in the driver when creating the control.
29568           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
29569             match MS order
29570         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
29571           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
29572         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
29573         * Hwnd.cs:
29574           - Added tracking of window enabled state (get_Enabled/set_Enabled)
29575           - Added EnabledHwnd property to easily allow a driver to find the
29576             handle of the first enabled window in the parent chain (this is
29577             used by drivers to pass up input events of disabled windows)
29578         * XplatUIDriver.cs: Added IsEnabled() method
29579         * Application.cs:
29580           - Removed crude and obsolete exiting tracking variable
29581           - Removed internal ModalRun(); replaced by RunLoop()
29582           - Implemented private CloseForms() method to allow closing all 
29583             windows owned by a particular (or all) threads
29584           - Exit() now properly closes all windows without forcing the message
29585             pump to quit
29586           - Removed obsolete InternalExit() method
29587           - Changed Run() methods to use new RunLoop() message pump
29588           - Implemented new RunLoop() method for both modal and non-modal forms
29589         * CommonDialog.cs:
29590           - get_CreateParams: Added setting of WS_DISABLED
29591           - Simplified ShowDialog(); now all the work is done in RunLoop(),
29592             invoked via Form.ShowDialog()
29593         * NativeWindow.cs: We don't remove the window from the collection when
29594           the handle is destroyed; there might still be messages for it in the
29595           queue (mainly the resulting WM_DESTROY); instead it will be removed
29596           when Control calls InvalidateHandle in the WM_DESTROY handler
29597         * XplatUIX11.cs:
29598           - CreateWindow: Added logic to handle the WS_DISABLED window style
29599           - EnableWindow: Implemented based on Hwnd.Enabled
29600           - GetMessage: Reset PostQuitState so the method can be called again
29601           - Implemented support for disabled windows (passing messages to the
29602             first enabled parent) in handling all input messages
29603           - Added optimizations for handling Expose events
29604           - Implemeted new driver method IsEnabled()
29605           - Now always resetting paint pending tracking vars when we start paint
29606           - Re-implemented UpdateWindow via just sending a WM_PAINT message
29607         * XplatUIOSX.cs: Added IsEnabled method stub
29608         * XplatUIWin32.cs: Implemented new IsEnabled() method
29609
29610 2006-01-11  Jackson Harper  <jackson@ximian.com>
29611
29612         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29613         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
29614         variables a little.
29615         * ColorDialog.cs: Clear out the old form before adding the new
29616         panel.  
29617
29618 2006-01-11  Jackson Harper  <jackson@ximian.com>
29619
29620         * X11Dnd.cs: Make sure to add all the text formats when adding
29621         strings to the data object.
29622         * TreeNodeCollection.cs: When adding to a sorted tree we need to
29623         do some redrawing too.  Also change the UpdateNode to an
29624         UpdateBelow so the newly added node gets painted.
29625         
29626 2006-01-11  Miguel de Icaza  <miguel@novell.com>
29627
29628         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29629         LinkLabel.cs, PropertyGrid.cs: Implement the
29630         UseCompatibleTextRendering property for 2.x
29631
29632         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
29633
29634 2006-01-11  Jackson Harper  <jackson@ximian.com>
29635
29636         * TreeView.cs: Use the property for setting the selected node so
29637         the correct events get raised.
29638         * TreeNode.cs: Update the tree when the fore/back colours of a
29639         node are set.
29640
29641 2006-01-10  Jackson Harper  <jackson@ximian.com>
29642
29643         * TreeView.cs: Allow setting SelectedNode to null.
29644
29645 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29646
29647         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
29648
29649 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29650
29651         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
29652
29653 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29654
29655         * PrintDialog.cs: Added attributes and set default property values.
29656
29657 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29658
29659         * PrintControllerWithStatusDialog.cs: 
29660         Added PrintControllerWithStatusDialog.
29661
29662 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29663
29664         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
29665         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
29666
29667 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29668
29669         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
29670
29671 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
29672
29673         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
29674         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
29675
29676 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29677
29678         * MimeIcon.cs: Added internal class SVGUtil.
29679
29680 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29681
29682         * FileDialog.cs: Don't crash if there are two files with the
29683           same name but different locations.
29684
29685 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
29686
29687         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
29688         dates across multiple month grids. Used to not highlight entire 
29689         month, but does now.
29690         
29691 2006-01-06  Jackson Harper  <jackson@ximian.com>
29692
29693         * MonthCalendar.cs: Removed DoEvents call to prevent a running
29694         message loop. Change timer intervals to numbers that seem more
29695         natural.
29696
29697 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
29698
29699         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
29700           object for location info since screen object is now implemented.
29701
29702 2006-01-05  Jackson Harper  <jackson@ximian.com>
29703
29704         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
29705         * AsyncMethodResult.cs: We no longer use a WeakReference for the
29706         AsyncMethodResult, this is because we ALWAYS want the
29707         ManualResetEvent to get set.
29708         * Control.cs: When disposing use an async invoke to call shutdown
29709         code, so that thigns don't block on the finalizer thread.  Also
29710         check if we even have a message loop before trying to send
29711         messages, if we don't then don't bother sending messages.
29712         - No more weak references for async methods
29713         * XplatUIDriver.cs: No more weak references for async methods.
29714
29715 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29716
29717         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
29718           returns two FontFamily with the same name
29719
29720 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
29721
29722         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
29723           drawing disabled text. Instead using the ColorGrayText color
29724
29725 2006-01-04  Jackson Harper  <jackson@ximian.com>
29726
29727         * TreeNode.cs: redraw the node when its image index is changed.
29728
29729 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
29730
29731         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
29732           time I checked there are no others like it.
29733
29734 2006-01-04  Jackson Harper  <jackson@ximian.com>
29735
29736         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
29737         this gives the behavoir I was looking for.
29738         * Control.cs: Special case Invoking EventHandlers, this matches MS
29739         and fixes part of bug #76326.
29740
29741 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29742
29743         * ThemeClearlooks.cs, FileDialog.cs:
29744           - Reflect the latest Theme class changes
29745           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
29746             with DateTime
29747             
29748 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29749
29750         * Theme.cs: Cache UI resource images and resize them if needed
29751
29752 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
29753
29754         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
29755           is called. This fixes the crash in Nexxia when setting the font
29756           attributes in the chat. [However, RTF needs a look-over to make sure
29757           that all SelectionXXX methods handle the special case that selection
29758           is empty and therefore the change must be applied to all text starting
29759           at the cursor/selection start]
29760
29761 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
29762
29763         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29764           XplatUIOSX.cs: Added SendMessage and PostMessage methods
29765         * X11Keyboard.cs: Switched to new way of calling PostMessage
29766
29767 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
29768
29769         * Theme.cs: Added theme interface for images to allow the theme to
29770           control what images are used for things like FileDialog, MessageBox
29771           icons, etc.
29772         * MessageBox.cs: Now uses the new Theme icon/image interfaces
29773
29774 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
29775
29776         * FileDialog.cs:
29777           - Removed some dead code
29778           - Opening a recently used file does work now
29779           - Small UI enhancements
29780           - Refactoring
29781
29782 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
29783
29784         * FileDialog.cs: Forgot too add __MonoCS__
29785
29786 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
29787
29788         * FileDialog.cs: We are able to read recently used files now let's
29789           go on and write them.
29790
29791 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
29792
29793         * FileDialog.cs: Breathe some life into "last open"/"recently used"
29794           button
29795         * MimeIcon.cs: Do a check for the top level media type also
29796
29797 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
29798
29799         * ThemeClearlooks.cs:
29800           - Added CPDrawStringDisabled
29801           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
29802             some chars if the text doesn't fit into text_rect
29803           - DrawListViewItem: If View = View.LargeIcon center the image;
29804             rewrote the drawing of ListViewItem.Text if View = 
29805             View.LargeIcon
29806
29807 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
29808
29809         * MimeIcon.cs: Use default KDE icon theme if there is no
29810           "48x48" directory for the current icon theme, fixes #77114
29811         * Mime.cs: Disable not working and actually not used code. 
29812         * ThemeWin32Classic.cs:
29813           - Replace "new SolidBrush" in GetControlBackBrush and
29814             GetControlForeBrush with ResPool.GetSolidBrush
29815           - Changed DrawListViewItem from private to protected virtual
29816         * FileDialog.cs:
29817           - Added form.MaximizeBox = true
29818           - Don't throw an exception if there is a broken symbolic link
29819
29820 2005-12-23  Jackson Harper  <jackson@ximian.com>
29821
29822         * TabControl.cs: Give the panels focus, keyboard navigation is
29823         fixed so this works correctly now.
29824         - We need these key events also.
29825         * ToolBar.cs: Remove some of the poor mans double buffering.
29826         
29827 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
29828
29829         * ComboBox.cs: The internal TextBox now returns the focus.
29830
29831 2005-12-23  Jackson Harper  <jackson@ximian.com>
29832
29833         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
29834
29835 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
29836
29837         * Control.cs: Removed debug code
29838         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
29839           implicit children
29840
29841 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
29842
29843         * Control.cs: When creating the control, update the Z-order after
29844           all it's children are created, too. (Fixes nexxia not showing
29845           picturebox bug)
29846
29847 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
29848
29849         * Control.cs: Do not update the anchoring distances if layout is
29850           suspended, instead do it once layout is resumed
29851
29852 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
29853
29854         * Control.cs: 
29855           - After many hours of debugging, for both Jackson and
29856             myself, it turns out that it helps to set the parent of a control
29857             if you want to actually see it onscreen. In the spirit of that
29858             discovery, we're now setting the parent of the control and
29859             it's children when the control's handle is created. This fix
29860             will make Lutz Roeder's Reflector run happily. 
29861           - now just creating the handle instead of the whole control when
29862             getting a graphics context for the control.
29863
29864 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
29865
29866         * ScrollableControl.cs: When calculating the canvas, don't consider
29867           the scrollbar widths. Instead, predict if horizontal scrollbar
29868           will affect canvas when deciding on vertical display and vice versa.
29869
29870 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
29871
29872         * RichTextBox.cs: Set default RTF font for documents that don't
29873           have a font table (Fixes #77076)
29874
29875 2005-12-22  Jackson Harper  <jackson@ximian.com>
29876
29877         * TextBoxBase.cs: It's difficult to do, but you can have an empty
29878         clipboard. This prevents a NullRef in that case.
29879         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
29880         clipboard. PRIMARY is for the currently selected text only. (We
29881         should implement PRIMARY at some point.
29882
29883 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
29884
29885         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
29886           a Unicode function with a structure that was defined in Ansi way.
29887           This fixes #76942.
29888
29889 2005-12-21  Jackson Harper  <jackson@ximian.com>
29890
29891         * StatusBar.cs: Statusbar handles its fore/back colours on it's
29892         on. Because thats how it rolls. (and this avoids it using ambient
29893         colours).
29894         * ThemeWin32Classic.cs: Use the proper back color for filling.
29895         * Menu.cs: Use the system menu bar color for drawing menu
29896         bars. Using the window back color will bring ambient colours into
29897         the picture.
29898
29899 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
29900
29901         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
29902           Bitmaps were created and not disposed.
29903
29904 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
29905
29906         * Control.cs (CreateControl): Don't do anything if the control is
29907           already created, otherwise we'd fire the OnCreated event more than
29908           once
29909
29910 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
29911
29912         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
29913           will always match. Instead return -1. Fixes #76464.
29914
29915 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
29916
29917         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
29918           neither the beginning nor the end of the line (Fixes bug #76479)
29919
29920 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
29921
29922         * Control.cs:
29923           - ControlNativeWindow.ControlFromHandle(): Now handling situation
29924             where handle is invalid
29925           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
29926             instead of slower linear search
29927         * NativeWindow.cs: Don't remove the window from the hashtable until
29928           after the driver has destroyed it (since the driver might use
29929           Control.FromHandle to lookup the control object
29930         * Hwnd.cs: Added DestroyPending property to track if a window is 
29931           already destroyed as far as the driver is concerned and only hasn't
29932           yet notified the control
29933         * XplatUIX11.cs:
29934           - Activate(): Check if the window is still valid before using the 
29935             handle
29936           - Implemented DestroyChildWindow() method to mark child windows as
29937             destroyed when a window is destroyed. This prevents situations 
29938             where we might call an X method based on queued events for a
29939             window that already has been destroyed but we haven't yet pulled
29940             the destroy method from the queue.
29941           - Added a call to the new DestroyChildWindow() method to the drivers
29942             DestroyWindow code. Also now marking the destroyed window itself
29943             as pending
29944
29945 2005-12-20  Jackson Harper  <jackson@ximian.com>
29946
29947         * StatusBar.cs:
29948         * StatusBarPanel.cs: Don't calculate panel sizes on draw
29949         anymore. Just do them when needed, also track the rects of panels
29950         so that we can optimize refreshing more in the future.
29951
29952 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
29953
29954         * ColorDialog.cs: Fixed focus drawing in small color controls
29955
29956 2005-12-19  Jackson Harper  <jackson@ximian.com>
29957
29958         * InternalWindowManager.cs:
29959         * MdiWindowManager.cs: Cleanup some coordinate system changes so
29960         moving windows works properly.
29961
29962 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
29963
29964         * Control.cs: 
29965           - Removed call to InitLayout() from SetBoundsCore(); doc says
29966             it's only called when a control is added to a container
29967           - Split InitLayout logic, moved to separate UpdateDistances() method
29968             since we need to perform those calculations more often than just
29969             when adding the control to a container. (Needed to fix #77022)
29970           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
29971           - Reduced the OnBindingContextChanged events count, don't send them
29972             unless the control is created, we still aren't totally matching
29973             MS, but I can't quite figure out some of their rules
29974
29975 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
29976
29977         * ThemeClearlooks.cs: Corrected distance between ProgressBar
29978           stripes
29979
29980 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
29981
29982         * ThemeClearlooks.cs:
29983           - Updated ProgressBar drawing
29984           - Corrected drawing of ScrollBars and scroll buttons
29985           - Some temporary fixes for minor pixel artefacts
29986
29987 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
29988
29989         * Control.cs:
29990           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
29991             cause events to be sent in the same order as MS does.
29992           - Added ChangeParent() method to trigger various OnXXXChanged events
29993             that need to be fired when a parent changes (This is a reworking
29994             of the patch from r54254, with the X11 errors fixed)
29995           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
29996             since on MS we get OnLayoutChanged events when calling Clear()
29997           - Changed Enabled property to consider parent state as well, if a
29998             parent is not enabled, the control will not be either
29999           - Changed Parent property to simply call Controls.Add() since that
30000             now does all the work required, this way we avoid code duplication
30001           - Threw in a few OnBindingsContextChanged calls to try and match
30002             when MS sends them. We seem to send a few too many, though.
30003           - Added call to CreateControl when adding the control to a parent.
30004             We were never calling CreateControl. Still needs some work, in
30005             some places we treat HandleCreated and ControlCreated as equal, 
30006             which is wrong
30007           - Removed obsolete commented out code from UpdateZOrder()
30008
30009 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30010
30011         * ThemeClearlooks.cs: Updated TrackBar drawing.
30012
30013 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30014
30015         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
30016
30017 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30018
30019         * FileDialog.cs: Add the Help button and the open readonly
30020           checkbox only if needed
30021
30022 2005-12-16  Jackson Harper  <jackson@ximian.com>
30023
30024         * Control.cs: Make sure we have an active menu before trying to
30025         process commands on it. Prevents menu-less forms from crashing
30026         when Alt is pressed.
30027         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
30028         Dieter Bremes.
30029         * RichTextBox.cs: Expand statement to help out gmcs and fix the
30030         2.0 build.
30031
30032 2005-12-16  Jackson Harper  <jackson@ximian.com>
30033
30034         * InternalWindowManager.cs: Don't translate tool windows screen
30035         coordinates. This fixes windows 'bouncing' around when being moved.
30036
30037 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30038
30039         * TextBoxBase.cs:
30040           - MaxLength now treats 2^31-1 equal to unlimited length (this is
30041             not quite MS compatible, MS uses that number only for single line
30042             and 2^32-1 for multi-line, but I figure it won't hurt keeping
30043             the limit at 2GB)
30044           - Now enforcing the MaxLength limit when entering characters
30045           - Added argument to internal Paste() method to track if it's called
30046             from programatically or via keyboard, since keyboard driven pastes
30047             need to enforce max-length
30048           - Added logic to Paste to only paste as many chars as MaxLength 
30049             allows
30050         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
30051         * TextControl.cs:
30052           - Added Length property to return number of characters in document
30053           - Added private CharCount property which only tracks actual chars
30054             in the document (no linefeeds) and fires event when CharCount
30055             changes
30056           - Added tracking of character count to all methods that alter it
30057           - Added LengthChanged event to allow applications to subscribe
30058             to any changes to the document
30059
30060 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30061
30062         * TextBox.cs: 
30063           - Removed local password_char field (moved to TextBoxBase)
30064           - Now setting the document's password var when password is
30065             set
30066         * TextBoxBase.cs:
30067           - Added password_char field (needed here so MultiLine can
30068             access it)
30069           - Added logic to MultiLine property setter to set the document's
30070             variable when password display is allowed
30071           - Removed debug code and made some debug code conditional
30072         * TextControl.cs:
30073           - Added RecalculatePasswordLine() method to handle special password
30074             char only lines
30075           - Added PasswordChar property, also added related tracking vars
30076           - Draw() method now uses local text var for grabbing text to draw,
30077             this var is set to line.text unless we're doing password display,
30078             then it is set to the pre-generated all-password-chars line
30079           - Added calling RecalculatePasswordLine() method for password lines
30080
30081 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
30082
30083         * Hwnd.cs: 
30084           - Added Reparented property to allow tracking of Window Manager
30085             reparenting actions (which affect X/Y calculations of toplevel 
30086             windows)
30087           - Made ToString() print window handles in hex
30088         * XplatUIX11.cs:
30089           - AddConfigureNotify(): Now uses reparented state off Hwnd to
30090             determine if X/Y needs offsetting
30091           - AddConfigureNotify(): Fixed offset calculations
30092           - Now adds ReparentNotify messages into the queue
30093           - Now processes ReparentNotify messages and causes a 
30094             WM_WINDOWPOSCHANGED message to be sent upstream if a window
30095             is reparented (as most likely it's X/Y coordinates are changed
30096             due to that)
30097
30098 2005-12-14  Jackson Harper  <jackson@ximian.com>
30099
30100         * XplatUIX11.cs: Tool windows still need to respek focus.
30101
30102 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
30103
30104         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
30105           have a working release
30106
30107 2005-12-13  Jackson Harper  <jackson@ximian.com>
30108
30109         * Form.cs: Update styles after setting the border style regardless
30110         of whether or not the window is using a window manager.
30111
30112 2005-12-13  Jackson Harper  <jackson@ximian.com>
30113
30114         * Form.cs: We now hook into an internal window manager instead of just an
30115         MDI subsystem, this is so we can have properly behaving tool windows.
30116         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
30117         * InternalWindowManager.cs: New internal class that acts as a
30118         window manager for tool windows and as a base for mdi windows.
30119         * MdiWindowManager.cs: New class that acts as a window manager for
30120         mdi windows.
30121
30122 2005-12-12  Jackson Harper  <jackson@ximian.com>
30123
30124         * Control.cs: Updates so we match behavoir for for implicit
30125         controls. Fixes explosions in MDI.
30126
30127 2005-12-12  Jackson Harper  <jackson@ximian.com>
30128
30129         * Control.cs: Implement Invalidate (Region).
30130
30131 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
30132
30133         * Control.cs: 
30134           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
30135             the same events as MS does. MS fires events for each property 
30136             except, for unknown reasons, Cursor, when the control is reparented. 
30137             I can't seem to totally match add/remove since MS also fires some 
30138             VisibleChanged events, which makes no sense. Consolidated the
30139             parenting code into a separate method so it can be called from
30140             both Add and Remove. set_Parent no longer needs any special logic
30141             as it calls the parent's add method which implicitly fires
30142             all events
30143           - Removed some obsolete code and debug output
30144           - Enabled state is inherited from parents, if this is enabled
30145
30146 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
30147
30148         * Form.cs: Removed commented out code
30149
30150 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
30151
30152         * Control.cs:
30153           - Added internal version of Invoke, with additional argument 
30154             indicating if we're calling it from a Dispose() handler. That
30155             way we can avoid BeginInvoke throwing an exception if we're
30156             calling for an already destroyed window.
30157           - Added a dispose argument to BeginInvokeInternal, and made the
30158             check if a valid window handle chain exists conditional on
30159             it not being a dispose call
30160           - Removed code in DestroyHandle to destroy our children. Since we
30161             now handle the WM_DESTROY message we will catch all our children
30162             being destroyed.
30163           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
30164         * Form.cs:
30165           - Added a field to track the application context of the form.
30166           - No need to set closing variable as response to WM_CLOSE, instead
30167             we destroy the window. We also call PostQuitMessage if the form
30168             has an application context (which makes it the main app form,
30169             which, when closed terminates the app)
30170         * XplatUI.cs:
30171           - Dropped Exit() method, it's naming was confusing
30172           - Added PostQuitMessage() which causes GetMessage to return false
30173             once the message queue is empty
30174         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
30175           PostQuitMessage()
30176         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
30177           no longer a valid XplatUI method, but left it in since it's used
30178           internally. Added empty PostQuitMessage() method.
30179         * MenuAPI.cs: Replaced call to Exit() with call to
30180           PostQuitMessage, even though this is probably no longer needed.
30181         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
30182         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
30183         * Application.cs:
30184           - Replaced call to XplatUI.Exit() with PostQuitMessage()
30185           - Removed old debug code that would call XplatUI for exception
30186             display, enabled standard exception handling (Still not enabled
30187             though, until NativeWindow's ExternalExceptionHandler define
30188             is removed
30189         * NativeWindow.cs:
30190           - Added internal method to allow control to update NativeWindow
30191             after a window has been destroyed
30192           - Added handling of already destroyed windows when calling i
30193             DestroyWindow
30194           - Added removal of handle from list on ReleaseHandle
30195         * XplatUIX11.cs:
30196           - Dropped GetMessageResult var and related code
30197           - Added PostQuitState to field to track if PostQuitMessage has been
30198             called
30199           - Dropped Exit() method
30200           - Added PostQuitMessage() method
30201           - GetMessage now will return false if PostQuitState is set and no
30202             more messages are in the queue.
30203           - Expose handler will no longer generate WM_PAINT messages if we are
30204             in PostQuitState since it's very likely any windows have already
30205             been destroyed, and since Hwnd won't get updated until we have
30206             processed the DestroyNotify we'd be causing X errors.
30207         
30208 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30209
30210         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
30211           Thanks to Mike for pointing out the err of my ways.
30212
30213 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30214
30215         * Control.cs(PreProcessMessage): Moved menu handling back, but
30216           after all other key handling, to match MS (who handles Menu in
30217           DefWndProc)
30218         * Menu.cs (WndProc): Removed my brainfart
30219
30220 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30221
30222         * Control.cs(PreProcessMessage): Removed special menu handling 
30223         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
30224
30225 2005-12-07  Mike Kestner  <mkestner@novell.com>
30226
30227         * Control.cs : special case SYSKEYUP so that we can adjust keynav
30228         state according in tracker.
30229         * Menu.cs : promote tracker field to base class and provide a tracker
30230         lookup capability.  Add/Remove shortcuts dynamically if the top menu
30231         has a tracker. Unparent items that are removed from the collection.
30232         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
30233         * Theme*.cs: add always_show_hotkeys field to support configurability
30234         of mnemonic display.  win32 doesn't show mnemonics until Alt is
30235         pressed.
30236
30237 2005-12-07  Jackson Harper  <jackson@ximian.com>
30238
30239         * MdiChildContext.cs: Use Control.ResetCursor.
30240         * Control.cs: ResetCursor needs to set the property so that the
30241         correct XplatUI call gets made.
30242
30243 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30244
30245         * Control.cs: More fixes to make our key events match MS. We
30246           were not setting the modifier state on KeyData, and we were
30247           not generating any events when Alt was pressed with a key
30248           since handling of WM_SYSxxx was missing for the OnKey methods.
30249
30250 2005-12-07  Jackson Harper  <jackson@ximian.com>
30251
30252         * MdiChildContext.cs: reenable the sizing code.
30253         - When the mouse leaves a window reset its cursor.
30254
30255 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
30256
30257         * ThemeClearlooks.cs: Reflect latest Hwnd changes
30258
30259 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30260
30261         * Hwnd.cs: Now using the theme 3d bordersize to calculate
30262           widths of Fixed3D borders
30263
30264 2005-12-07  Jackson Harper  <jackson@ximian.com>
30265
30266         * MdiClient.cs: Fix warnings. Earn Mike's love.
30267
30268 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
30269
30270         * ThemeClearlooks.cs:
30271           - Adjusted mouse over button color
30272           - Added first parts of CheckBox drawing
30273           - Added correct color for selected text background
30274           - Fixed ComboBox drawing
30275           - Added CPDrawBorder3D and CPDrawBorder
30276
30277 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
30278
30279         * XplatUIX11.cs: Added call to XBell for AudibleAlert
30280
30281 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
30282
30283         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
30284           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
30285           alert users via sound. We could add an enum arg with different
30286           types of alerts in the future
30287
30288 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
30289
30290         * Control.cs: Fix behaviour problems pointed out by Mike
30291
30292 2005-12-05  Mike Kestner  <mkestner@novell.com>
30293
30294         * StatusBarPanel.cs: add Invalidate method and hook it into all the
30295         prop setters.  Calls parent.Refresh for now, but could be maybe be
30296         optimized with an internal method on StatusBar at some point.
30297         [Fixes #76513]
30298
30299 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
30300
30301         * RichTextBox.cs: Implemented get_SelectionColor
30302
30303 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
30304
30305         * ThemeClearlooks.cs:
30306           - Removed dead code
30307           - Draw black button border only if button is Form.AcceptButton
30308           - Draw correct button color for pressed RadioButton if the mouse 
30309             has entered the button
30310           - Updated ProgressBar drawing!
30311           - Updated CPDrawSizeGrip drawing
30312           - Updated StatusBarPanel drawing
30313
30314 2005-12-05  Mike Kestner  <mkestner@novell.com>
30315
30316         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
30317         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
30318
30319 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
30320
30321         * ThemeClearlooks.cs: Initial check-in, activate with
30322           export MONO_THEME=clearlooks
30323         * ThemeEngine.cs: Added ThemeClearlooks
30324
30325 2005-12-03  Mike Kestner  <mkestner@novell.com>
30326
30327         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
30328         [Fixes #76897]
30329
30330 2005-12-02  Jackson Harper  <jackson@ximian.com>
30331
30332         * Form.cs: If the child form has no menu the default main menu is
30333         used as the active menu.
30334
30335 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
30336
30337         * ListBox.cs: Check if any items exist before trying to resolve 
30338           coordinates into items
30339
30340 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
30341
30342         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
30343           as the second color for the background hatch
30344
30345 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
30346
30347         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
30348         * RichTextBox.cs: FormatText position arguments are 1-based, now making
30349           sure that what we pass to FormatText is always 1-based. Fixes #76885
30350
30351 2005-11-29  Miguel de Icaza  <miguel@novell.com>
30352
30353         * NumericUpDown.cs (EndInit): When we are done initializing,
30354         reflect any updates on the UI.
30355
30356 2005-12-02  Jackson Harper  <jackson@ximian.com>
30357
30358         * ImplicitHScrollBar.cs:
30359         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
30360         their container controls.
30361         * TreeView.cs: Use the new implicit scrollbars.
30362
30363 2005-12-02  Jackson Harper  <jackson@ximian.com>
30364
30365         * TreeView.cs: Make top_node internal so the TreeNodeCollections
30366         can play with it.
30367         * TreeNodeCollection.cs: If we remove the topnode we need to
30368         update topnode to the next node in line.
30369         - When clearing nodes go through the same process as removing
30370         them, so they get depareneted and checked if they are top node.
30371
30372 2005-12-01  Jackson Harper  <jackson@ximian.com>
30373
30374         * TreeView.cs: When imagelists are used the image area is
30375         selectable as well as the text.
30376         - If there are no selected nodes select the first one.
30377         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
30378         so don't do it more then we need to.
30379
30380 2005-12-01  Jackson Harper  <jackson@ximian.com>
30381
30382         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
30383         that arrows can be scaled.
30384
30385 2005-12-01  Jackson Harper  <jackson@ximian.com>
30386
30387         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
30388         fail. Patch by Dieter Bremes
30389
30390 2005-11-30  Jackson Harper  <jackson@ximian.com>
30391
30392         * Form.cs: Property is 2.0 only
30393         * PrintDialog.cs: Signature fix.
30394
30395 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
30396
30397         * TextControl.cs: 
30398           - No longer artificially moves text 2 pixels down (now that we have
30399             borders this is no longer needed)
30400           - Added calcs for left, hanging and right indent
30401
30402 2005-11-23  Mike Kestner  <mkestner@novell.com>
30403
30404         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
30405
30406 2005-11-30  Jackson Harper  <jackson@ximian.com>
30407
30408         * MdiChildContext.cs: Set the cloned menus forms, as these don't
30409         get cloned as part of CloneMenu ().
30410         * Menu.cs: Make sure the parent of the items get set correctly
30411         when they are added.  And the owners are notified of the changes.
30412         * Form.cs: Create an ActiveMenu property, so that when MDI is used
30413         we can change the menu being displayed/handled by the form without
30414         changing the menu assosciated with the form.
30415         - Don't let Mdi children draw/handle menus.
30416         
30417 2005-11-30  Jackson Harper  <jackson@ximian.com>
30418
30419         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
30420         a MenuChanged event. Just to make the API a little more
30421         consistent.
30422         * MainMenu.cs:
30423         * MenuItem.cs: Use the new OnMenuChanged
30424         * MdiChildContext.cs: Handle menu merging.
30425         * Form.cs: Implement MergedMenu.
30426         
30427 2005-11-30  Jackson Harper  <jackson@ximian.com>
30428
30429         * Menu.cs: We were misusing Add. Add goes behind the specified
30430         index according to the docs, and does not replace the specified
30431         index. So I added an Insert method.
30432
30433 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
30434
30435         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
30436           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
30437           is for Jackson
30438         * RichTextBox.cs: Added calls to base for DnD events
30439
30440 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
30441
30442         * TextControl.cs:
30443           - Fixed drag-selection related crash; style fixes
30444           - Implemented undo class
30445             o Implemented method to capture document state for specified
30446               range in document tree
30447             o Implemented method to restore captured document state
30448             o Implemented cursor tracking
30449             o Implemented basic undo stack
30450           - Added undo cursor tracking to methods altering cursor location
30451           - Added undo tracking to selection deletion (still missing
30452             other text-altering hookups)
30453         * RichTextBox.cs:
30454           - Added SelectionLength property
30455           - Implemented CanPaste()
30456           - Implemented Paste()
30457           - Added missing protected methods
30458           - Fixed RTF->Document conversion; now uses font index 0 and color 
30459             index 0 as the default font for the parsed text
30460           - Fixed RTF<->Document font size translation
30461           - Fixed RTF generation, now properly handles cross-tag boundaries
30462             for single line selection
30463           - No longer always appends blank line to generated RTF
30464           - Removed TODOs
30465           - Added missing attributes
30466           - Hooked up undo-related methods
30467         * TextBoxBase.cs:
30468           - Implemented Copy()
30469           - Implemented Paste()
30470           - Implemented Cut()
30471           - Fixed caret mis-behaviour on backspace across line-boundaries
30472
30473 2005-11-29  Jackson Harper  <jackson@ximian.com>
30474
30475         * MdiClient.cs: Add a method for activating mdi children. Very
30476         basic right now. I imagine someday it might need more girth.
30477         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
30478         children windows names are added to the menu item.
30479         * ThemeWin32Classic.cs: Draw the arrow if the item is an
30480         mdilist. This happens regardless of whether or not there are any
30481         mdi windows to see in the list, and according to my tests happens
30482         before the items are even added. Also happens if there isn't even
30483         an mdi client to get windows from.
30484
30485 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
30486
30487         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
30488         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
30489
30490 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
30491
30492         * DataGridTableStyle.cs:
30493           - Create always the styles for the missing columns even if they are
30494             provided by the user (not default table style)
30495         * DataGrid.cs:
30496           - Fixes bug 76770
30497           - Fixes SetDataBinding (always re-attach source)
30498           - Fixes SetNewDataSource (only clear styles if they are not for 
30499             this source)
30500          -  Expands OnTableStylesCollectionChanged to handle style refresh 
30501             and remove properly
30502
30503 2005-11-29  Jackson Harper  <jackson@ximian.com>
30504
30505         * FileDialog.cs: Implement missing bits, remove some dead
30506         code.
30507         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
30508         creation of the panel so that the options set on the dialog are
30509         seen when the panel is created.
30510         * TreeView.cs: raise a click when items are clicked.
30511         
30512 2005-11-29  Jackson Harper  <jackson@ximian.com>
30513
30514         * MdiClient.cs: Pass some signature methods through to base.
30515
30516 2005-11-28  Jackson Harper  <jackson@ximian.com>
30517
30518         * ListView.cs: Raise the click event when items are clicked.
30519
30520 2005-11-28  Jackson Harper  <jackson@ximian.com>
30521
30522         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
30523         a nullref.
30524
30525 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
30526
30527         * ThemeNice.cs: - Removed 1 pixel bitmaps
30528           - Use SmoothingMode.AntiAlias where it makes sense
30529             (ScrollButton arrow for example)
30530           - Enhanced Button focus drawing
30531           - Fixed ComboBox drawing (no artefacts anymore, focus
30532             rectangle is back again, reduced size of ComboButton, etc.)
30533           - Fixed RadioButton focus drawing for Appearence.Button
30534           - Slight ScrollButton redesign
30535           - Some LinearGradientBrush size fixes
30536           - GroupBoxes have now rounded edges
30537           - Fixed StatusBar drawing
30538
30539 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
30540
30541         * ThemeNice.cs: - Remove dead code
30542           - use correct background colors for menus, etc.
30543           - Fake pixel drawing with 1 pixel bitmaps
30544
30545 2005-11-24  Jackson Harper  <jackson@ximian.com>
30546
30547         * MdiClient.cs: Size the scrollbars when resizing the window.
30548         - Resize the maximized windows when the client is resized
30549         * Form.cs: Make the child context available
30550         
30551 2005-11-23  Jackson Harper  <jackson@ximian.com>
30552
30553         * MdiChildContext.cs: Don't size windows if they are maximized.
30554
30555 2005-11-23  Mike Kestner  <mkestner@novell.com>
30556
30557         * ContextMenu.cs: use MenuTracker.
30558         * Control.cs: remove menu handle usage.
30559         * Form.cs: remove menu handle usage.
30560         * Hwnd.cs: remove menu handle usage.
30561         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
30562         motion and clicks to the new Tracker handlers.
30563         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
30564         and handle usage.
30565         * MenuAPI.cs: refactored to combine popup and menubar event handling.
30566         Killed the MENU and MENUITEM data types and associated collections
30567         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
30568         MenuTracker class that exposes the leftovers from the old MenuAPI
30569         static methods. Restructured Capture handling so that only one grab is
30570         done for the entire menu hierarchy instead of handing off grabs to
30571         submenus. Tracker now has an invisible control to Capture when active.
30572         * MenuItem.cs: add sizing accessors, kill Create
30573         and handle usage.
30574         * Theme.cs: remove menu handle and MENU(ITEM) usage.
30575         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
30576         MENU(ITEM). remove menu handle usage, use Menu directly.
30577         * XplatUIDriver.cs: remove menu handle usage.
30578         * XplatUIOSX.cs: remove menu handle usage.
30579         * XplatUIWin32.cs: remove menu handle usage.
30580         * XplatUIX11.cs: remove menu handle usage.
30581
30582 2005-11-22  Jackson Harper  <jackson@ximian.com>
30583
30584         * Hwnd.cs: Don't compute the menu size for
30585         DefaultClientRectangle.
30586         - Reenable menu sizes being computed for GetClienRectangle.
30587         * Form.cs: Remove comment of trechery
30588         
30589 2005-11-22  Jackson Harper  <jackson@ximian.com>
30590
30591         * Hwnd.cs: The adjustments for the menu bar are made when it is
30592         attached to the form.
30593
30594 2005-11-19  Jackson Harper  <jackson@ximian.com>
30595
30596         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
30597         (just like on windows).
30598
30599 2005-11-19  Jackson Harper  <jackson@ximian.com>
30600
30601         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
30602         use real buttons anymore because they are in non client area. The
30603         one TODO here is that I need to somehow invalidate a section of
30604         the non client area.
30605
30606 2005-11-18  Jackson Harper  <jackson@ximian.com>
30607
30608         * Control.cs: Put the enum check back in now that MDI doesnt have
30609         to use this to set border styles.
30610         * Form.cs: Only set mdi child windows borders if the handle has
30611         been created.
30612         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
30613         this directly on to the driver.
30614         - Get the move start position before adjusting for the titlebar
30615         height, this fixes the windows "skipping" when they are first
30616         moved.
30617
30618 2005-11-18  Jackson Harper  <jackson@ximian.com>
30619
30620         * XplatUIX11.cs: Just compute the mdi borders separately as they
30621         don't totally match up with normal form borders.
30622
30623 2005-11-18  Jackson Harper  <jackson@ximian.com>
30624
30625         * Control.cs: Set WS_ styles for borders, so that the driver does
30626         not have to retrieve the control instance to figure out what kind
30627         of borders it should have.
30628         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
30629         driver can know its an mdi child easily.
30630         * XplatUIX11.cs: Get the border styles and whether the window is
30631         MDI from the Styles and ExStyles params instead of having to get a
30632         control. This prevents a chicken and egg problem.       
30633
30634 2005-11-18  Jackson Harper  <jackson@ximian.com>
30635
30636         * MdiClient.cs: Fix typo so scrollbars show up correctly.
30637
30638 2005-11-18  Jackson Harper  <jackson@ximian.com>
30639
30640         * MdiClient.cs: Calculate when to add and remove scrollbars
30641         correctly.
30642         * MdiChildContext.cs: Adjust the y position to take the titlebar
30643         into account.
30644         - No height for FormBorderStyle.None
30645
30646 2005-11-18  Jackson Harper  <jackson@ximian.com>
30647
30648         * Control.cs: Allow non enum values to be used for
30649         InternalBorderStyle.  MDI does this to set a special border style.
30650         - New utility methods for converting points to/from client coords
30651         - Add the newly created control to the Controls collection before
30652         updating its style. This way UpdateStyle can walk the control
30653         heirarchy to find the control if needed.
30654         so I don't need to create a new Point object all the time.
30655         * Form.cs: Let MDI windows handle their border styles.
30656         - Set styles on MDI windows so the correct title style is derived.
30657         * MdiChildContext.cs: Move all the painting and window handling
30658         into the non client area.
30659         - Use correct sizing and put correct buttons on frames based on
30660         the FormBorderStyle.
30661         - Notify the mdi client about scrolling
30662         - Need to handle the buttons ourselves now, because they are all
30663         in non client areas and we can't add controls there.
30664         * MdiClient.cs: Halfway to scrolling, this implementation is
30665         somewhat broken though, we need to check to make sure other
30666         windows aren't causing scrolling before removing the bars. Also
30667         the bars need to be drawn on top, maybe I can switch implicit
30668         controls to be on top.
30669         * Hwnd.cs: caption_height and tool_caption_height are now
30670         properties of an hwnd, this way they can be set by the driver
30671         based on the type of window they are.  In X11 the window manager
30672         handles the decorations so caption_height is zero unless its an
30673         MDI window.
30674         - Add 3 pixel borders for MDI windows (0xFFFF).
30675         - Get rid of some code duplication, have DefaultClientRectanle
30676         just call GetClientRectangle.
30677         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
30678         Hwnd now.
30679         - Set border styles differently for mdi windows.
30680         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
30681         Hwnd now.
30682         
30683 2005-11-15  Mike Kestner  <mkestner@novell.com>
30684
30685         * Menu.cs: when adding an item to the collection, if item is already 
30686         parented, remove it from the parent.
30687
30688 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
30689
30690         * X11DesktopColors.cs: Added KDE support
30691
30692 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
30693
30694         * XplatUIWin32.cs: 
30695           - Clipboard methods now can translate Rtf format
30696           - No longer removes clipboard contents whenever a new format is added
30697             to allow placing multiple formats on the clipboard
30698         * Clipboard.cs: Clipboard now supports getting a IDataObject and
30699           will place all formats contained in it onto the clipboard. Also
30700           now cleans the clipboard before placing a new object onto it
30701         * RichTextBox.cs:
30702           - Implemented set_Rtf
30703           - Implemented set_SelectedRtf
30704           - Created InsertRTFFromStream() method to allow single code base
30705             for all properties and methods that insert RTF into document
30706           - Removed debug output
30707         * TextControl.cs:
30708           - Fixed Delete(int) to fix up line numbers
30709           - Fixed ReplaceSelection to combine start and end line
30710           - Fixed serious DeleteChars bug that would leave the document tree
30711             broken
30712           - Improved DumpTree with several logic checks to detect broken
30713             document trees
30714           - Removed debug lines
30715           - Fixed Caret.WordForward/WordBack moving code, now always also 
30716             updates caret.tag (fixes crash when word-selecting across tag
30717             boundaries via keyboard)
30718           - Added Insert() method for inserting multiline text into documents
30719           - Fixed DeleteChars() calculation errors that would cause a broken
30720             tag chain with multiple tag lines
30721           - DeleteChars() no longer crashes on multi-tag lines if not all tags
30722           - Split() no longer moves caret if split is at caret location
30723           - ReplaceSelection() now updates the cursor and re-displays it
30724           - ReplaceSelection() now uses new Insert() method to avoid code
30725             duplication
30726           - FormatText() can now handle formatting partial lines
30727         * TextBoxBase.cs:
30728           - Append now uses new TextControl.Insert() method (this avoids 
30729             duplicate code)
30730           - Implemented Ctrl-X (Cut) (
30731           - Implemented Ctrl-C (Copy)
30732           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
30733             regeneration when pasting text; roundtripping Copy&Paste within
30734             edit control still fails due to some calculation bugs in GenerateRTF)
30735           - The Delete key will now remove the current selection if it is visible
30736         * TextBox.cs: Removed debug lines
30737         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
30738           driver to be initialized and can't therefore be done via a static ctor)
30739
30740 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
30741
30742         * TextControl.cs: Added backend code for finding char arrays and strings
30743         * TextBoxBase.cs:
30744           - Added mouse wheel scroll support
30745           - Added support for VScroll and HScroll events
30746         * RichTextBox.cs:
30747           - Implemented all seven Find() variants
30748           - Implemented GetCharFromPosition()
30749           - Implemented GetCharIndexFromPosition()
30750           - Implemented GetLineFromIndex()
30751           - Implemented GetPositionFromCharIndex();
30752           - Implemented SaveFile for PlainText and UnicodeText
30753           - Fixed set_Font, now setting a new font applies that font to
30754             the whole document
30755           - Implemented generic Document to RTF converter
30756           - Implemented SaveFile for RichText format (still missing unicode
30757             conversion for non-ansi chars)
30758           - Implemented get_Rtf
30759           - Implemented get_SelectedRtf
30760
30761 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
30762
30763         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
30764           to allow any captures to be released before triggering OnClick. This
30765           way a click handler may capture the mouse without interference.
30766         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
30767           This way we send them even though X may not allow a grab (if the window
30768           isn't visible, for example)
30769
30770 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
30771
30772         * DataGridViewRowEventArgs.cs: DataGridView implementation
30773         * DataGridViewElement.cs: DataGridView implementation
30774         * DataGridViewComboBoxCell.cs: DataGridView implementation
30775         * DataGridViewDataErrorContexts.cs: DataGridView implementation
30776         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
30777         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
30778         * ImageLayout.cs: DataGridView implementation
30779         * DataGridViewComboBoxColumn.cs: DataGridView implementation
30780         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
30781         * DataGridViewSelectionMode.cs: DataGridView implementation
30782         * IDataGridViewEditingControl.cs: DataGridView implementation
30783         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
30784         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
30785         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
30786         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
30787         * DataGridViewColumnSortMode.cs: DataGridView implementation
30788         * DataGridView.cs: DataGridView implementation
30789         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
30790         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
30791         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
30792         * Padding.cs: DataGridView implementation
30793         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
30794         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
30795         * DataGridViewRowEventHandler.cs: DataGridView implementation
30796         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
30797         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
30798         * DataGridViewButtonCell.cs: DataGridView implementation
30799         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
30800         * DataGridViewEditMode.cs: DataGridView implementation
30801         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
30802         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
30803         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
30804         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
30805         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
30806         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
30807         * DataGridViewCellEventHandler.cs: DataGridView implementation
30808         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
30809         * DataGridViewCellStyleConverter.cs: DataGridView implementation
30810         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
30811         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
30812         * DataGridViewColumnEventArgs.cs: DataGridView implementation
30813         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
30814         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
30815         * QuestionEventArgs.cs: DataGridView implementation
30816         * IDataGridViewEditingCell.cs: DataGridView implementation
30817         * DataGridViewTriState.cs: DataGridView implementation
30818         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
30819         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
30820         * DataGridViewColumnCollection.cs: DataGridView implementation
30821         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
30822         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
30823         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
30824         * DataGridViewColumn.cs: DataGridView implementation
30825         * DataGridViewCellBorderStyle.cs: DataGridView implementation
30826         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
30827         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
30828         * DataGridViewRow.cs: DataGridView implementation
30829         * DataGridViewImageCellLayout.cs: DataGridView implementation
30830         * DataGridViewImageCell.cs: DataGridView implementation
30831         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
30832         * DataGridViewCheckBoxCell.cs: DataGridView implementation
30833         * DataGridViewHeaderCell.cs: DataGridView implementation
30834         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
30835         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
30836         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
30837         * DataGridViewTextBoxColumn.cs: DataGridView implementation
30838         * QuestionEventHandler.cs: DataGridView implementation
30839         * DataGridViewCellStyleScopes.cs: DataGridView implementation
30840         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
30841         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
30842         * DataGridViewCell.cs: DataGridView implementation
30843         * DataGridViewCellEventArgs.cs: DataGridView implementation
30844         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
30845         * DataGridViewCellStyle.cs: DataGridView implementation
30846         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
30847         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
30848         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
30849         * TextFormatFlags.cs: DataGridView implementation
30850         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
30851         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
30852         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
30853         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
30854         * DataGridViewButtonColumn.cs: DataGridView implementation
30855         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
30856         * HandledMouseEventArgs.cs: DataGridView implementation
30857         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
30858         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
30859         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
30860         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
30861         * DataGridViewRowCollection.cs: DataGridView implementation
30862         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
30863         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
30864         * DataGridViewHitTestType.cs: DataGridView implementation
30865         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
30866         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
30867         * DataGridViewColumnEventHandler.cs: DataGridView implementation
30868         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
30869         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
30870         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
30871         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
30872         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
30873         * DataGridViewContentAlignment.cs: DataGridView implementation
30874         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
30875         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
30876         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
30877         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
30878         * DataGridViewPaintParts.cs: DataGridView implementation
30879         * DataGridViewCellCollection.cs: DataGridView implementation
30880         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
30881         * DataGridViewImageColumn.cs: DataGridView implementation
30882         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
30883         * DataGridViewElementStates.cs: DataGridView implementation
30884         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
30885         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
30886         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
30887         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
30888         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
30889         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
30890         * DataGridViewRowHeaderCell.cs: DataGridView implementation
30891         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
30892         * DataGridViewTextBoxCell.cs: DataGridView implementation
30893         * DataGridViewBand.cs: DataGridView implementation
30894         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
30895         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
30896         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
30897         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
30898         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
30899         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
30900         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
30901         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
30902         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
30903         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
30904         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
30905
30906 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
30907
30908         * ThemeWin32Classic.cs: 
30909           - Draw the outside focus rectangle around buttons
30910           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
30911             doesn't use end caps for every dash of a line anymore. This
30912             workaround ignores the forecolor.
30913
30914 2005-11-08  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
30915
30916         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
30917           endian safe.
30918
30919 2005-11-07  Jackson Harper  <jackson@ximian.com>
30920
30921         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
30922
30923 2005-11-07  Jackson Harper  <jackson@ximian.com>
30924
30925         * ScrollableControl.cs: Calculate the maximum and change vars
30926         (more) correctly so that scrollbars appear as a sensible size.
30927
30928 2005-11-04  Jackson Harper  <jackson@ximian.com>
30929
30930         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
30931         collection.
30932         * TreeView.cs: When the tree is sorted null out the top_node so
30933         that it is recalculated.
30934         - Use dotted lines instead of dashed lines to match MS better.
30935
30936 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
30937
30938         * ListView.cs: 
30939           - Implements key search for items. Useful when browsing files with FileDialog
30940           - When changing view mode or when clear the items reset scrollbar positions
30941
30942 2005-11-04  Jackson Harper  <jackson@ximian.com>
30943
30944         * CurrencyManager.cs: Implement the MetaDataChanged event, the
30945         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
30946         as to what the method may do as there is no real way of creating a
30947         derived CurrencyManager and calling the method. 
30948
30949 2005-11-03  Jackson Harper  <jackson@ximian.com>
30950
30951         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
30952         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
30953         method which seems to just be used internally to refresh the tabs.
30954
30955 2005-11-03  Jackson Harper  <jackson@ximian.com>
30956
30957         * TabControl.cs: Implement the remove method. Fix some broken
30958         comments.
30959
30960 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
30961
30962         * DateTimePicker.cs:
30963           - Added missing DateTimePickerAccessibleObject class
30964           - Added missing events
30965           - Added OnFontChanged method
30966         * Form.cs: Added missing attributes
30967         * TreeView.cs: Added missing attributes
30968
30969 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
30970
30971         * GridItemCollection.cs: Fix signatures
30972
30973 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
30974
30975         * XplatUI.cs: Updated build rev/date
30976         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
30977           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
30978         * Application.cs: Trigger context-specific ExitThread events
30979
30980 2005-11-03  Jackson Harper  <jackson@ximian.com>
30981
30982         * Menu.cs:
30983         * MainMenu.cs:
30984         * GridTableStylesCollection.cs:
30985         * Timer.cs:
30986         * TabPage.cs:
30987         * HelpProvider.cs:
30988         * StatusBar.cs:
30989         * MonthCalendar.cs: Signature fixes
30990
30991 2005-11-03  Jackson Harper  <jackson@ximian.com>
30992
30993         * TreeNodeCollection.cs: Remove should not be virtual.
30994         * TreeView.cs: Implement the last of the missing methods.
30995
30996 2005-11-03  Jackson Harper  <jackson@ximian.com>
30997
30998         * TreeNodeConverter.cs: Implement to get off my class-status back.
30999
31000 2005-11-03  Jackson Harper  <jackson@ximian.com>
31001
31002         * TreeView.cs: Hookup the bits for drag and drop.
31003         * TreeNode.cs: Don't cache the tree_view or index anymore, now
31004         that nodes can be moved from tree to tree easily this just causes
31005         all sorts of problems.
31006         * TreeNodeCollection: Don't need to give treenodes an index and
31007         treeview anymore when they are added, these are computed on the
31008         fly. Also make sure to remove a node before its added.
31009
31010 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31011
31012         * TextControl.cs:
31013           - Added CaretSelection enum
31014           - Added comparison methods to Marker struct, makes selection code
31015             more readable
31016           - Added SelectionStart and SelectionEnd as 'moveable' location for
31017             the CaretDirection enum and handler
31018           - Added selection_prev variable to track optimized invalidation for
31019             word and line selection
31020           - Added SelectionVisible property (returns true if there is a valid 
31021             selection)
31022           - Switched CaretHasFocus to only display the caret if there is no
31023             visible selection
31024           - Avoiding StringBuilder.ToString to retrieve a single char, instead
31025             using the direct character index; should be much faster
31026           - Added various conditional debug statements
31027           - Fixed invalidation calculation for selection ranges
31028           - Added ExpandSelection() method to support word and line selection
31029           - Switched SetSelectionToCaret to use new Marker compare overloads
31030           - Added central IsWordSeparator() method to determine word 
31031             separators/whitespace and FindWordSeparator() to streamline common
31032             usage of IsWordSeparator()
31033         * TextBoxBase.cs:
31034           - Removed unneeded grabbed variable, it was just mirroring
31035             Control.Capture
31036           - No longer firing OnTextChanged event when Text setter is called,
31037             since the base will fire the event for us
31038           - Added handling of Ctrl-Up/Down selection
31039           - Added handling of Shift-Cursorkey selection
31040           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
31041             words
31042           - Added handling of Shift and Ctrl-Shift-Home/End selection
31043           - Removed some debug output
31044           - Added handling for single/double/tripple-click to place caret/
31045             select word/select line respectively (Fixes bug #76031)
31046           - Added support for drag expansion of word/line selection
31047         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
31048           current selection
31049
31050 2005-11-02  Jackson Harper  <jackson@ximian.com>
31051
31052         * X11Dnd.cs: If the drag is going to and from a MWF window just
31053         copy the data instead of sending it out through the X Selection
31054         mechanism.
31055
31056 2005-11-02  Jackson Harper  <jackson@ximian.com>
31057
31058         * X11Dnd.cs:
31059         * XplatUIX11.cs: When in a drag we don't want motion notify
31060         messages to get passed on to the other controls. This prevents
31061         mouse move messages from showing up in the drag source.
31062
31063 2005-11-02  Jackson Harper  <jackson@ximian.com>
31064
31065         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
31066         the correct button is release to end a drag.
31067         * XplatUIX11.cs: Make the button state internal so the drag system
31068         can access it.  Dragging needs to know about all button releases,
31069         not just left button.
31070
31071 2005-11-02  Miguel de Icaza  <miguel@novell.com>
31072
31073         * Form.cs (Icon): If the icon is null, reset the icon to the
31074         default value. 
31075
31076         * Cursor.cs: When writing the AND-mask bitmap do not include the
31077         number of colors, but hardcode those to two (black and white),
31078         fixes the loading of color cursors (Paint Dot Net).
31079
31080         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
31081         turn off autoscaling.
31082
31083         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
31084
31085 2005-11-02  Jackson Harper  <jackson@ximian.com>
31086
31087         * X11Dnd.cs: Make sure to send a status message if the pointer
31088         enters a control that can not accept a drop, otherwise the cursor
31089         isn't updated correctly. Also tried to compress the lines of code
31090         a bit.
31091
31092 2005-11-02  Jackson Harper  <jackson@ximian.com>
31093
31094         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
31095         set actions correctly.  This isn't perfect as XDND and win32 have
31096         some differences on how you allow actions. I'll clear this up by
31097         adding a path for drag from MWF to MWF windows.
31098         * XplatUIX11.cs: Hook into the dnd system.
31099
31100 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
31101
31102         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
31103         previously shown but they are no longer need it. Very obvious when 
31104         browsing files with FileDialog.
31105
31106 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
31107
31108         * Control.cs: We always need to call OnPaintBackground. We pretty much
31109           ignore AllPaintingInWmPaint and always do the painting there, whether 
31110           it's set or not, since we always ignore the WM_ERASEBKGND message 
31111           (which we don't generate on X11). This fixes #76616.
31112         * Panel.cs: Removed unneeded background painting. This happens properly
31113           in Control.cs already
31114
31115 2005-10-31  Mike Kestner  <mkestner@novell.com>
31116
31117         * Menu.cs: Add items to collection before setting their index.
31118         * MenuItem.cs : add range checking with ArgumentException like MS.
31119         [Fixes #76510]
31120
31121 2005-10-31  Jackson Harper  <jackson@ximian.com>
31122
31123         * ListBox.cs: Invalidate if the area is visible at all not just
31124         contained in the visible rect. Fixes unselection of semi visible
31125         items.
31126
31127 2005-10-31  Jackson Harper  <jackson@ximian.com>
31128
31129         * Control.cs: Consistently name the dnd methods. Make them
31130         internal so we can override them to match some MS behavoir
31131         internally.
31132         * Win32DnD.cs: Use the new consistent names.
31133
31134 2005-10-31  Jackson Harper  <jackson@ximian.com>
31135
31136         * TreeView.cs: Don't draw the selected node when we lose focus.
31137
31138 2005-10-31  Jackson Harper  <jackson@ximian.com>
31139
31140         * X11Dnd.cs: We still need to reset the state even though a full
31141         reset isn't being done, otherwise status's still get sent all over
31142         the place.
31143
31144 2005-10-31  Jackson Harper  <jackson@ximian.com>
31145
31146         * Control.cs: Make the dnd_aware flag internal so the dnd
31147         subsystem can check it. Catch exceptions thrown in dnd handlers to
31148         match MS behavoir.
31149         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
31150         * X11Dnd.cs: Handle null data in the converters. Set the XDND
31151         version when sending a XdndEnter. Use the control/hwnd dnd_aware
31152         flags to reduce the number of dnd enters/status's sent.
31153
31154 2005-10-31  Jackson Harper  <jackson@ximian.com>
31155
31156         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
31157
31158 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
31159
31160         * PictureBox.cs: Fixes 76512
31161
31162 2005-10-28  Jackson Harper  <jackson@ximian.com>
31163
31164         * X11Dnd.cs: Early implementation to support winforms being a drag
31165         source for data on X11. Also restructured the converters so they
31166         can go both ways now.
31167         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
31168         
31169 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
31170
31171         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
31172           clipboard requests
31173
31174 2005-10-27  Jackson Harper  <jackson@ximian.com>
31175
31176         * TreeNode.cs: Implement serialization so my DnD examples will work.
31177
31178 2005-10-24  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
31179
31180         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
31181           TreeView.cs: Don't dispose objects that are not owned.
31182           
31183 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
31184
31185         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
31186           should retrieve the current cursor and report that, but XplatUI
31187           doesn't (yet) have an interface for that (and I'm not sure I even
31188           can, on X11)
31189         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
31190           until any message loop processing is done (and the WM_SETCURSOR
31191           replaces the cursor to the proper one)
31192         * XplatUIX11.cs: 
31193           - Fixed override behaviour, we can't set the cursor globally on X11, 
31194             just for our windows.
31195           - Invalidating the System.Drawing X11 display handle when we are
31196             shutting down
31197         * Control.cs: Fix to make csc happy
31198
31199 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
31200
31201         * TextBoxBase.cs: 
31202           - get_Text: Add last line (without trailing newline) to returned
31203             value (Fixes 76212)
31204           - get_TextLength: Count last line in returned length
31205           - ToString: Call Text property instead of duplicating code
31206
31207 2005-10-23  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
31208
31209         * ImageList.cs: Dispose ImageAttributes objects.
31210
31211 2005-10-22  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
31212
31213         * ImageList.cs: Use attribute constructors with less arguments where
31214           possible.
31215
31216 2005-10-22  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
31217
31218         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
31219           Use typeof instead of strings when assembly is referenced. Added
31220           some more comments.
31221
31222 2005-10-21  Jackson Harper  <jackson@ximian.com>
31223
31224         * ListView.cs: Raise a double click event. Also tried to somewhat
31225         fix when the selectedindexchanged event is raised. Its still
31226         broken though.
31227
31228 2005-10-21  Jackson Harper  <jackson@ximian.com>
31229
31230         * TreeView.cs: New method to invalidate the plus minus area of a
31231         node without invalidating the whole node (maybe this can be used
31232         in some more places).
31233         * TreeNodeCollection.cs: When adding to an empty node we need to
31234         invalidate its plus minus area so the little block shows up.
31235         
31236 2005-10-21  Jackson Harper  <jackson@ximian.com>
31237
31238         * TreeView.cs: Make sure that when we invalidate a node the bounds
31239         are big enough to cover the selected box and the focus
31240         rectangle. Use a different colour for the lines connecting nodes
31241         so they show up with all themes.
31242
31243 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
31244
31245         * NativeWindow.cs: Don't call anything that could call into the driver,
31246           we might be on a different thread.
31247
31248 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
31249
31250         * Control.cs(Dispose): Since Dispose might run on a different thread,
31251           make sure that we call methods that could call into the driver via
31252           invoke, to avoid thread issues
31253
31254 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
31255
31256         * XplatUI.cs: Removed finalizer
31257         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
31258           not allowing to be called on the finalizer thread.
31259
31260 2005-10-21  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
31261
31262         * ImageList.cs:
31263           - Reverted r51889 and r51891.
31264           - Added ImageListItem class that stores unmodified image items and image
31265             properties required to create list images until handle is created.
31266           - Added AddItem and moved image creation logic to AddItemInternal.
31267           - Added CreateHandle method that creates images based on unmodified items.
31268           - Added DestroyHandle that changes state to store unmodified items.
31269           - Add and AddStrip methods no more create handle.
31270           - ReduceColorDepth has no return value.
31271           - Dispose destroys handle.
31272           - Modified other methods to reflect the above changes.
31273           - Implemented key support.
31274           - Added profile 2.0 members and attributes.
31275           - Added private Reset and ShouldSerialize methods that provide the same
31276             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
31277             them as they are private.
31278           - Added some more comments about implementation details.
31279
31280 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31281
31282         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
31283
31284 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31285
31286         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
31287
31288 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31289
31290         * DataGridDrawingLogic.cs: Fixes column hit calcultation
31291         * DataGridColumnStyle.cs: Remove debug message
31292
31293 2005-10-20  Jackson Harper  <jackson@ximian.com>
31294
31295         * TreeView.cs: We can always get input keys regardless of whether
31296         or not editing is enabled. They are used for navigation.
31297
31298 2005-10-20  Jackson Harper  <jackson@ximian.com>
31299
31300         * TreeNode.cs: Use the viewport rect for determining if a node
31301         needs to be moved for visibility. Don't use Begin/End edit. This
31302         calls a full refresh when its done.
31303         * TreeView.cs: New SetBottom works correctly.  Make the viewport
31304         rect property internal so the treenodes can see it. When clicking
31305         on a node we need to ensure that its visible because it might just
31306         be partly visible when clicked.
31307
31308 2005-10-20  Jackson Harper  <jackson@ximian.com>
31309
31310         * TreeNodeCollection.cs: Remove debug code.
31311
31312 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
31313
31314         * Datagrid.cs: Implements column sorting in Datagrid
31315         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
31316
31317 2005-10-20  Jackson Harper  <jackson@ximian.com>
31318
31319         * TreeNodeCollection.cs: Remove items properly. Update the correct
31320         area after removing them.
31321
31322 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
31323
31324         * Datagrid.cs: Should not call base.OnPaintBackground
31325
31326 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
31327
31328         * XplatUIX11.cs (GetMessage):
31329           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
31330             window instead of client window
31331           - Now properly calculates NC_xBUTTONUP message coordinates
31332           - ScreenToMenu now properly calculates it's coordinates of whole 
31333             window, since menus are in the whole window, not in the client
31334             window
31335           - Added WholeToScreen coordinate translation method
31336
31337 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
31338
31339         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
31340           want to return a message, loop back to the beginning of the function
31341           and grab the next real message to process instead.
31342
31343 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
31344
31345         * Splitter.cs: Properly set limits if no filler control is used
31346
31347 2005-10-19  Jackson Harper  <jackson@ximian.com>
31348
31349         * ColorDialog.cs: Don't show the help button if it is not enabled
31350         instead of disabling it (this is what MS does). Don't create the
31351         panel until the dialog is run, otherwise the vars (such as
31352         ShowHelp) are not set yet.
31353
31354 2005-10-19  Jackson Harper  <jackson@ximian.com>
31355
31356         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
31357         are reduced when adding nodes.
31358         * TreeNode.cs:
31359         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
31360         tree.
31361         
31362 2005-10-19  Jackson Harper  <jackson@ximian.com>
31363
31364         * FolderBrowserDialog.cs: End editing our treeview so the window
31365         actually gets refreshed.
31366
31367 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
31368
31369         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
31370           Obsoleted handling of WM_ERASEBKGND, now always draws our background
31371           inside of WM_PAINT
31372
31373 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31374
31375         * MenuAPI.cs: Returns after Hidding window
31376         * XplatUIX11.cs: Added TODO found while debugging menu issues
31377
31378 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
31379
31380         * XplatUIX11.cs: Do not re-map the whole window when it's size
31381           becomes non-zero unless it's supposed to be actually visible
31382
31383 2005-10-18  Jackson Harper  <jackson@ximian.com>
31384
31385         * TreeView.cs: We don't need to keep a count anymore.
31386         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
31387         use the Grow method.
31388
31389 2005-10-18  Jackson Harper  <jackson@ximian.com>
31390
31391         * TreeNodeCollection.cs: Insert is not supported on arrays, so
31392         implement it manually here.
31393
31394 2005-10-18  Jackson Harper  <jackson@ximian.com>
31395
31396         * ImageList.cs: Dont kill the list when the colour depth is
31397         changed, just change the colour depth of all the images.
31398         - Same goes for setting the image size. Just resize them all
31399         instead of killing the list softly.
31400
31401 2005-10-18  Jackson Harper  <jackson@ximian.com>
31402
31403         * Control.cs: Don't invalidate empty rectangles.
31404
31405 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31406
31407         * ListViewItem.cs:
31408           - Adds checked item to the Checked/Item lists (where empty before)
31409           - Do not add items to the Selected lists if they are already present
31410         * ListView.cs:
31411           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
31412           - When deleting items make sure that we delete them for the Selected
31413           and Checked list also.
31414
31415 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31416
31417         * Label.cs: Dispose objects no longer used
31418         * ThemeWin32Classic.cs: Dispose objects no longer used
31419
31420 2005-10-18  Jackson Harper  <jackson@ximian.com>
31421
31422         * TabControl.cs: Don't refresh the whole control when the tabs are
31423         scrolled, we just need to refresh the tab area.
31424
31425 2005-10-17  Jackson Harper  <jackson@ximian.com>
31426
31427         * XplatUIX11.cs: Compress code a little bit. Only calculate the
31428         after handle when we need it.
31429
31430 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
31431
31432         * Control.cs: When the parent size changes, recalculate anchor 
31433           positions. Partial fix for #76462
31434
31435 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
31436
31437         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
31438           drawn. Fixes #76462
31439
31440 2005-10-17  Jackson Harper  <jackson@ximian.com>
31441
31442         * MonthCalendar.cs: Don't create the numeric up down until our
31443         handle is created. Otherwise our handle is created in the
31444         constructor and we don't know if we are a WS_CHILD or WS_POPUP
31445         yet.
31446
31447 2005-10-17  Jackson Harper  <jackson@ximian.com>
31448
31449         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
31450         correctly.
31451
31452 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
31453         * TreeNode.cs : small logical fix (was using local var instead of field)
31454         
31455 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
31456
31457         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
31458
31459 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
31460
31461         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
31462
31463 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
31464
31465         * Control.cs: 
31466           - Re-implemented anchoring code. My first version was really broken.
31467             This fixes bug #76033. Unlike the previous implementation we will
31468             no longer have round errors since all numbers are calculated from
31469             scratch every time. Removed various anchor-related obsolete vars.
31470           - InitLayout no longer causes layout event firing and layout to be 
31471             performed
31472
31473 2005-10-16  Jackson Harper  <jackson@ximian.com>
31474
31475         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
31476         which was broken).
31477
31478 2005-10-16  Jackson Harper  <jackson@ximian.com>
31479
31480         * TabControl.cs: Remove debug code.
31481
31482 2005-10-16  Jackson Harper  <jackson@ximian.com>
31483
31484         * XEventQueue.cs: Increase the default queue size (very simple
31485         apps needed to grow the queue).
31486         * Hwnd.cs: No finalizer so we don't need to suppress
31487         finalization. Compute the invalid area manually so a new rectangle
31488         does not newto be created.
31489         * ScrollableControl.cs: Don't set any params (otherwise visibility
31490         isn't set correctly).
31491         * MdiChildContext.cs: New constructor takes the mdi parent so it
31492         doesn't have to be computed and avoids a crash on windows. Draw
31493         the window icon properly, and allow the text to be seen.
31494         * Form.cs: Use new MdiChildContext constructor. Make sure the
31495         child context isn't null in wndproc.
31496         * TabControl.cs: Don't set focus, this is muddling keyboard
31497         behavoir. Expand the tab rows when a window size increase will
31498         allow extra tabs to be seen. Don't allow tabs smaller than the
31499         width of a window to be scrolled out of view.
31500         * TreeNode.cs:
31501         * TreeView.cs: Use measure string to calculate a nodes width, the
31502         width is cached and only updated when the text or the font is
31503         changed. Don't check for expand/collapse clicks on the first level
31504         nodes if root lines are disabled.
31505         
31506 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
31507
31508         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
31509
31510 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
31511
31512         * DataGridBoolColumn.cs: fixes warning
31513
31514 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
31515
31516         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
31517         to match more to match more precisely the MS Net behavior
31518
31519 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
31520
31521         * Hwnd.cs: Added field to track if window is mapped
31522         * XplatUIX11.cs: 
31523           - Unmap windows if they become 0-size, re-map when 
31524             they are >0 again; fixes #76035
31525           - Re-set our error handler after initializing X11Desktop
31526             to override any error handlers Gtk or whatever was called
31527             may have set.
31528
31529 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
31530
31531         * CheckedListBox.cs: Removed unused vars
31532         * ListView.cs: Fixed signatures
31533         * RichTextBox.cs: Removed unused vars
31534         * TextBoxBase.cs: Removed unused vars
31535         * XplatUIWin32.cs: Removed unused vars
31536         * XplatUIX11.cs: Removed unused vars
31537         * XplatUI.cs: Updated version and date to latest published
31538
31539 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
31540
31541         * Cursor.cs: Added private .ctor to work around a bug in
31542           resourceset (Thanks to Geoff Norton for the help on this)
31543         * SplitterEventArgs.cs: Made fields accessible so we don't
31544           waste boatloads of objects and can reuse the same one
31545           in Splitter
31546         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
31547           any captions and borders when generating screen coordinates
31548         * Splitter.cs: Reimplemented control, now fully complete, uses
31549           rubberband drawing, supports and obeys all properties, has
31550           proper cursors
31551
31552 2005-10-13  Miguel de Icaza  <miguel@novell.com>
31553
31554         * Form.cs (Form): Setup default values for autoscale and
31555         autoscale_base_size;  Make these instance variables, not static
31556         variables. 
31557
31558         (OnLoad): on the first load, adjust the size of the form.
31559
31560 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
31561
31562         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
31563           width argument to DrawReversibleRectangle()
31564         * XplatUIWin32.cs, XplatUIX11.cs: 
31565           - Implemented width for DrawReversibleRectangle()
31566           - Added logic to DrawReversibleRectangle that recognizes a zero
31567             width or height and only draws a line in that situation
31568         
31569 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
31570
31571         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
31572         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
31573         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
31574           method (it uses our FosterParent window to get a graphics context)
31575
31576 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
31577
31578         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
31579           and SetWindowBackground methods
31580         * Control.cs:
31581           - Setting proper ControlStyles
31582           - We no longer call XplatUI.SetWindowBackground and XplatUI.
31583             EraseWindowBackground, instead we draw the window background
31584             ourselves in PaintControlBackground. This behaviour is
31585             required to match MS, where, when OnPaintBackground is not
31586             called, the background is not drawn.
31587           - Removed unneeded Refresh() in set_Text
31588         * Hwnd.cs: Dropped the ErasePending support. No longer needed
31589         * XplatUIX11.cs:
31590           - Created DeriveStyles method to translate from CreateParams to
31591             FormBorderStyle and TitleStyle, also handles BorderStyle (which
31592             matches FormBorderStyle enum values)
31593           - Consolidated SetHwndStyles and CalculateWindowRect border/title
31594             style calculations into single DeriveStyles method
31595           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
31596             from redrawing the whole window on any resize or expose.
31597           - Fixed CreateWindow usage of SetWindowValuemask. Before not
31598             all styles were applied to our whole/client window appropriately
31599           - Removed EraseWindowBackground() and SetWindowBackground() methods
31600           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
31601             no longer clear/redraw the background through X
31602           - Removed handling of erase_pending bit, we have no use for it (or
31603             so it seems)
31604         * XplatUIOSX.cs:
31605           - Removed generation and handling of WM_ERASEBKGND message
31606           - Removed EraseWindowBackground() and SetWindowBackground() methods
31607           - Removed handling of hwnd.ErasePending flag
31608         * XplatUIWin32.cs:
31609           - Removed EraseWindowBackground() and SetWindowBackground() methods
31610           - We no longer call EraseWindowBackground on PaintEventStart, we 
31611             ignore the fErase flag, erasing is handled in Control in the
31612             background handler
31613         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
31614           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
31615           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
31616           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
31617           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
31618           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
31619           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
31620
31621 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
31622
31623         * PropertyGrids.cs: Get sub properties
31624         * PropertyGridView.cs: Fix drawing code
31625
31626 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31627
31628         * ListBox.cs: Fixes 76383
31629
31630 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31631
31632         * DataGridTextBoxColumn.cs: Sets location and size before attachment
31633         * ThemeWin32Classic.cs: Fixes border drawing and calculations
31634         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
31635
31636
31637 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31638
31639         * ComboBox.cs: Fixes border drawing
31640
31641 2005-10-10  Miguel de Icaza  <miguel@novell.com>
31642
31643         * MimeIcon.cs: Ignore errors if the file can not be read.
31644
31645 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31646
31647         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
31648          - Fixed border calculations
31649          - Fixed horizontal scrolling in single column listboxes
31650          - Fixed drawing issues
31651
31652 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
31653
31654         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
31655           FormBorderStyle enum
31656         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
31657           code to determine FormBorderStyles from CreateParams
31658         * Form.cs:
31659           - Fixed bug where we'd set the wrong window styles if we were
31660             not creating an MDI window
31661           - Added call to XplatUI.SetBorderStyle when form borders are set
31662         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
31663         * Hwnd.cs:
31664           - Removed obsolete edge style
31665           - Switched from BorderStyle to FormBorderStyle
31666         
31667 2005-10-10  Jackson Harper  <jackson@ximian.com>
31668
31669         * Form.cs: Use the property to get the window handle instead of
31670         accessing it directly. Prevents a null reference exception.
31671
31672 2005-10-10  Jackson Harper  <jackson@ximian.com>
31673
31674         * TreeView.cs: Don't adjust the rect given to DrawString now that
31675         our libgdiplus draws correctly.
31676
31677 2005-10-08  Jackson Harper  <jackson@ximian.com>
31678
31679         * TreeView.cs: Don't try to find the clicked on node if there are
31680         no nodes in the tree.
31681
31682 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31683
31684         * RichTextBox.cs:
31685
31686           restore
31687
31688 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31689
31690         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
31691           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
31692           ErrorProvider.cs:
31693           Use ResPool for brushes and dispose System.Drawing objects that
31694           are not used anymore.
31695
31696 2005-10-07  Jackson Harper  <jackson@ximian.com>
31697
31698         * MdiChildContext.cs: Use the new borders instead of drawing them
31699         ourselves.
31700
31701 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
31702
31703         * Calling UpdateBounds after changing the window's BorderStyle 
31704         since the style can change the ClientSize
31705
31706 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31707
31708         * Control.cs: Made PaintControlBackground virtual
31709         * Panel.cs: Overriding PaintControlBackground instead of using paint
31710           event; paint event method was interfering with 'real' users of the
31711           event.
31712
31713 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
31714
31715         * ThemeWin32Classic.cs: remove border drawing since it is handled
31716         by the base control class now and was causing double border drawing.
31717
31718 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31719
31720         * Panel.cs: Redraw our background on paint. Not a pretty solution,
31721           but it does seem to match MS behaviour. This fixes bug #75324
31722
31723 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31724
31725         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
31726           somewhat hackish looking
31727
31728 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31729
31730         * TextBoxBase.cs:
31731           - We now accept Enter even if AcceptEnter is false, if the containing
31732             form does not have an AcceptButton configured (fixes bug #76355)
31733           - Calculations are now fixed to no longer use Width/Height, but
31734             ClientSize.Width/Height, since we now support borders (this was
31735             a result of fixing borders and therefore bug #76166)
31736           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
31737             true (fixes bug #76354)
31738         
31739 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31740
31741         * Control.cs: 
31742           - Defaulting BorderStyle and setting it in XplatUI when our window 
31743             is created
31744           - Added enum check to InternalBorderStyle setter
31745         * XplatUIX11.cs: 
31746           - Added drawing of window borders
31747           - Now properly calculates WM decorations offset for toplevel 
31748             windows (fixes bug #74763)
31749         * XplatUIWin32.cs: 
31750           - Implemented BorderStyles for windows (we're letting win32 draw 
31751             the border for us)
31752           - Fixed the signature for SetWindowLong
31753         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
31754           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
31755           setting borders
31756         * UpDownBase.cs: Remove drawing of borders, this is handled by
31757           the driver, outside the client area
31758         * ListView.cs: Removed bogus border calculations. The control should
31759           be oblivious to borders, since those are not part of the client
31760           area. 
31761         * X11DesktopColors.cs: Commented out (currently) unneeded variables
31762         * ThemeWin32Classic.cs: Removed border calculations from ListView 
31763           drawing code
31764
31765 2005-10-06  Jackson Harper  <jackson@ximian.com>
31766
31767         * MdiChildContext.cs: Clear out the old virtual position remove
31768         all the unneeded calls to CreateGraphics.
31769
31770 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31771
31772         * TextControl.cs: Use proper color for highlighted text; fixes #76350
31773
31774 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31775
31776         * Form.cs: 
31777           - Added loading and setting of our new default icon
31778           - Only set icon if window is already created
31779
31780 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31781
31782         * Label.cs:
31783           - Do not explicitly set the foreground and background colors, to
31784             allow inheriting from parents (fixes #76302)
31785           - Use Control's InternalBorderStyle property to deal with borders
31786
31787 2005-10-06  Jackson Harper  <jackson@ximian.com>
31788
31789         * MdiChildContext.cs: Use the new xplatui function to draw a
31790         reversible rect.
31791
31792 2005-10-06  Jackson Harper  <jackson@ximian.com>
31793
31794         * Form.cs: Add the parent before creating the child context cause
31795         we need the parent when setting up the child.
31796
31797 2005-10-06  Jackson Harper  <jackson@ximian.com>
31798
31799         * FolderBrowserDialog.cs: redo the tree population code so a
31800         second thread isn't used. Should be a lot faster and more stable
31801         now.
31802
31803 2005-10-05  Jackson Harper  <jackson@ximian.com>
31804
31805         * TreeView.cs: There are no expand/collapse boxes if the node has
31806         no children.
31807
31808 2005-10-05  Jackson Harper  <jackson@ximian.com>
31809
31810         * X11DesktopColors.cs: Get menu colours for the gtk theme.
31811
31812 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
31813
31814         * FileDialog.cs: Fix InitialDirectory
31815
31816 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
31817
31818         * ComboBox.cs:
31819                 - Fixes changing between styles
31820                 - Fixes simple mode
31821                 - Fixes last item crashing when navigating with keyboard
31822
31823 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
31824
31825         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
31826
31827 2005-10-05  Jackson Harper  <jackson@ximian.com>
31828
31829         * TreeView.cs: If updating the root node do a full refresh.
31830         * TreeNode.cs: The root node should be expanded by default. Also
31831         added a utility prop to tell if we are the root node.
31832         * TreeNodeCollection.cs: Only refresh if the node we are being
31833         added to is expanded. Also added a comment on a potential
31834         optimization.
31835         
31836 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
31837
31838         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
31839           in dispose method. Fixes #76330
31840
31841 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
31842
31843         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
31844
31845                 - Implements vertical and horizontal scrolling using XplatUI
31846                 - Fixes keyboard navagation
31847                 - Fixes EnsureVisible
31848                 - Drawing fixes
31849                 - Handles and draws focus properly
31850
31851
31852 2005-10-04  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
31853
31854         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
31855           Create handle. NET_2_0: Destroy handle when value is null.
31856
31857 2005-10-03  Jackson Harper  <jackson@ximian.com>
31858
31859         * ScrollBar.cs: My last scrollbar patch was broken. This is a
31860         revert and a new patch to prevent the thumb from refreshing so
31861         much.
31862
31863 2005-10-02  Jackson Harper  <jackson@ximian.com>
31864
31865         * ScrollBar.cs: Don't update position if it hasn't actually
31866         changed. This occurs when you hold down the increment/decrement
31867         buttons and the thumb gets to the max/min.
31868
31869 2005-10-01  Jackson Harper  <jackson@ximian.com>
31870
31871         * Form.cs:
31872         * MdiChildContext.cs:
31873         * MdiClient.cs: Implement ActiveMdiChild in Form.
31874
31875 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
31876
31877         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
31878
31879 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
31880
31881         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
31882           be found
31883
31884 2005-09-30  Jackson Harper  <jackson@ximian.com>
31885
31886         * ListBox.cs: Don't do a full refresh unless some data has
31887         actually changed.
31888
31889 2005-09-30  Jackson Harper  <jackson@ximian.com>
31890
31891         * TreeView.cs: Make sure that the checkboxes size is factored in
31892         even when not visible.
31893
31894 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
31895
31896         * FileDialog.cs: Fix Jordi's build break
31897
31898 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
31899
31900         * FileDialog.cs: 
31901                 - Use standard the Windows colours for the combobox as espected
31902                 - Dispose objects that use resouces when no longer need them
31903
31904 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
31905
31906         * X11DesktopColors.cs: Initial incomplete implementation
31907         * XplatUIX11.cs: Added call to initialize X11DesktopColors
31908
31909 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
31910
31911         * Theme.cs: 
31912           - Switched Theme color names to match the names defined in 
31913             System.Drawing.KnownColors. Life's hard enough, no need to make 
31914             it harder.
31915           - Added setters to all theme color properties so themes can set
31916             their color schemes. The setters also propagate the color changes
31917             to System.Drawing.KnownColors via reflection
31918         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
31919           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
31920           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
31921           use the new, more logical theme color names
31922         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
31923           post-NT colors
31924         * ThemeWin32Classic.cs:
31925           - Removed code to set the old classic Windows colors. Instead it
31926             now relies on the colors returned by System.Drawing.KnownColors
31927             which will be either modern static colors (Unix) or colors
31928             read from the user's configuration (Win32)
31929           - Updated to use the new, more logical theme color names
31930           - Switched DataGrid drawing code to use only Theme colors instead of
31931             a mix of System.Drawing.KnownColors and Theme colors
31932           - DrawFrameControl(): Removed code that fills the button area, the
31933             fill would overwrite any previous fill done by a control. This
31934             fixes bug #75338 
31935           - Added DrawReversibleRectangle() stub
31936         * ScrollableControl.cs: Set visible state to false when scrollbars
31937           are removed (pdn fix)
31938         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
31939           DrawReversibleRectangle() method to allow drawing primitive 
31940           'rubber bands'
31941         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
31942
31943 2005-09-30  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
31944
31945         * ImageList.cs: Add(Icon): Create handle.
31946
31947 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
31948
31949         * ListView.cs:
31950         * ThemeWin32Classic.cs:
31951                 - Fixes detail mode
31952                 - Sets clippings
31953                 - Issues with drawing
31954
31955 2005-09-30  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
31956
31957         * ImageList.cs: Moved RecreateHandle back to ImageList as event
31958           source has to be the ImageList.
31959
31960 2005-09-30  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
31961
31962         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
31963
31964 2005-09-30  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
31965
31966         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
31967
31968 2005-09-30  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
31969
31970         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
31971
31972 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
31973         * GridItem.cs: Fixed TODOs
31974         * GridItemCollection.cs: Added ICollection interface
31975
31976 2005-09-30  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
31977
31978         * ImageList.cs: Resize icons when needed.
31979
31980 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
31981
31982         * ListViewItem.cs
31983                 - Fixes GetBounds and returns on screen rects
31984         * ListView.cs:
31985                 - Fixes vertical and horzintal scrolling of items
31986         * ThemeWin32Classic.cs:
31987                 - Fixes drawing
31988                 
31989 2005-09-29  Raja R Harinath  <harinath@gmail.com>
31990
31991         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
31992
31993 2005-09-29  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
31994
31995         * ImageList.cs: Added comments about handle creation. Moved Handle,
31996           HandleCreated and OnRecreateHandle implementations to ImageCollection.
31997           Handle is created in Add methods.
31998
31999 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
32000          
32001         * DataGridDrawingLogic.cs: 
32002                 - Takes rows into account on Colum calculations
32003                 - Returns the column when clickig
32004         * DataGrid.cs:
32005                 - Fixes default HitTestInfo values
32006                 - Fixes HitTestInfo.ToString
32007                 - Fixes ResetBackColor          
32008         
32009 2005-09-28  Jackson Harper  <jackson@ximian.com>
32010
32011         * MdiChildContext.cs: Obey rules for fixed sized windows (no
32012         sizing or cursor changes). Also added some temp code to draw the
32013         titlebars text (Makes dev a little easier).
32014
32015 2005-09-28  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
32016
32017         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
32018
32019 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
32020          
32021         * ListBox.cs: Fixes bug 76253
32022
32023 2005-09-28  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
32024
32025         * ImageList.cs: Added comments about the current implementation. Added
32026           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
32027           Format32bppArgb to preserve transparency and can use Graphics.FromImage
32028           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
32029           with Bitmap.LockBits for better performance. Revised the whole file to
32030           match MS.NET behaviour and provide better performance. Non-public
32031           interface members are calling public members even when they throw
32032           NotSupportedException for better maintainability. Moved ColorDepth,
32033           ImageSize, ImageStream and TransparentColor implementations to
32034           ImageCollection for better performance as these properties are not used
32035           by ImageList.
32036         * ImageListStreamer.cs: Added a new internal constructor that takes an
32037           ImageList.ImageCollection and serializes Images based on
32038           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
32039           match ImageList property name.
32040
32041 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
32042
32043         * ListBox.cs: Fixes IndexFromPoint for last item
32044
32045 2005-09-27  Jackson Harper  <jackson@ximian.com>
32046
32047         * Form.cs: Set the position of new mdi children correctly.
32048
32049 2005-09-27  Jackson Harper  <jackson@ximian.com>
32050
32051         * MdiClient.cs: New mdi children need to be added to the back of
32052         the controls collection so the zorder is set correctly. Also add a
32053         count of all the child windows that have been created.
32054
32055 2005-09-27  Jackson Harper  <jackson@ximian.com>
32056
32057         * Form.cs (CreateParams): Setup MDI forms correctly.
32058
32059 2005-09-27  Jackson Harper  <jackson@ximian.com>
32060
32061         * MdiChildContext.cs:
32062         * MonthCalendar.cs:
32063         * UpDownBase.cs:
32064         * ListBox.cs:
32065         * ListView.cs:
32066         * TextBoxBase.cs:
32067         * TreeView.cs:
32068         * ScrollableControl.cs:
32069         * ComboBox.cs: Add implicit controls using the new implict control
32070         functionality in ControlCollection. Also try to block multiple
32071         control add in a suspend/resume layout to save some cycles.
32072         
32073 2005-09-27  Jackson Harper  <jackson@ximian.com>
32074
32075         * Control.cs: Add functionality to the controls collection to add
32076         'implicit controls' these are controls that are created by the
32077         containing control but should not be exposed to the user. Such as
32078         scrollbars in the treeview.
32079         * Form.cs: The list var of the ControlsCollection is no longer
32080         available because of the potential of implicit controls getting
32081         ignored by someone accessing the list directly.
32082
32083 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
32084
32085         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
32086           loose it's parent. (Fixed bug introduced in r49103 when we added
32087           setting the child parent to null on Remove)
32088
32089 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
32090
32091         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
32092         * Splitter.cs: Added missing attributes for BorderStyle property.
32093         * TextBoxBase.cs: Marked Calculate* methods internal.
32094         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
32095         MS.NET.
32096
32097 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
32098          
32099         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
32100
32101 2005-09-25  Jackson Harper  <jackson@ximian.com>
32102
32103         * TreeView.cs: Update the node bounds correctly regardless of
32104         whether the node is visible.
32105
32106 2005-09-25  Jackson Harper  <jackson@ximian.com>
32107
32108         * ImageList.cs: Don't dispose the image after it is added to the
32109         image list. Only reformat images that need to be resized.
32110
32111 2005-09-25  Jackson Harper  <jackson@ximian.com>
32112
32113         * ImageList.cs: Don't set the format when changing the image.
32114
32115 2005-09-25  Jackson Harper  <jackson@ximian.com>
32116
32117         * TreeView.cs: We can't just assume the node has a font. Use the
32118         treeviews font if no node font is available.
32119
32120 2005-09-25  Jackson Harper  <jackson@ximian.com>
32121
32122         * TreeView.cs: Allow the scrollbars to be reset with negative
32123         values.
32124         - Don't add scrollbars to negative sized windows.
32125
32126 2005-09-23  Jackson Harper  <jackson@ximian.com>
32127
32128         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
32129         old Mono.Posix. Also remove some stray code that shouldn't have
32130         been committed.
32131
32132 2005-09-23  Jackson Harper  <jackson@ximian.com>
32133
32134         * TreeView.cs: Attempt at proper sizing of the horizontal
32135         scrollbar. Also don't resize the scrollbars unless they are
32136         visible.
32137
32138 2005-09-23  Jackson Harper  <jackson@ximian.com>
32139
32140         * TreeView.cs: We don't need to expand the invalid area when the
32141         selection changes, as this is all drawn in the node's bounding
32142         box. The area needs to be expanded (previous typo was contracting
32143         it) when the focus rect moves.
32144
32145 2005-09-23  Jackson Harper  <jackson@ximian.com>
32146
32147         * TreeView.cs: Display the selection box under the correct
32148         circumstances. We were rendering white text with no selection box
32149         before.
32150
32151 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
32152
32153         * TextControl.cs(Split): Now updates selection start/end if it points 
32154           into a line that's being split. Fixes a FIXME and bug #75258
32155
32156 2005-09-23  Jackson Harper  <jackson@ximian.com>
32157
32158         * Binding.cs:
32159         * ListControl.cs: Don't use the path when retrieving binding
32160         managers from the binding context. My bat sense tells me that the
32161         path is only used on insertion.
32162
32163 2005-09-22  Jackson Harper  <jackson@ximian.com>
32164
32165         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
32166
32167 2005-09-22  Jackson Harper  <jackson@ximian.com>
32168
32169         * Splitter.cs: There are special cursors used for splitting.
32170         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
32171
32172 2005-09-22  Jackson Harper  <jackson@ximian.com>
32173
32174         * Splitter.cs: Change the cursor appropriately when the splitter
32175         is moused over, so the user actually knows there is a splitter
32176         there.
32177
32178 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32179
32180        * Label.cs : Fix ToString method to give same output as MS.NET
32181
32182 2005-09-22  Jackson Harper  <jackson@ximian.com>
32183
32184         * TreeView.cs: Create the scrollbars when the handle is created
32185         and add them right away, just make them invisble. Also account for
32186         the window being shrunk vertically to the point that the vert
32187         scrollbar needs to be added.
32188         - Remove some 0.5 adjustments to get around anti aliasing issues.
32189         
32190 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
32191          
32192         * MainMenu.cs: Fixes default value
32193         * MenuItem.cs: Fixes default value
32194
32195 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
32196
32197         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
32198
32199 2005-09-21  Jackson Harper  <jackson@ximian.com>
32200
32201         * Control.cs: Don't try to set the border style on the window if
32202         it hasn't been created. When the window is created the border
32203         style will be used.
32204
32205 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
32206
32207         * Control.cs (Update): Don't call XplatUI if we don't have a
32208           window handle yet
32209
32210 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
32211
32212         * ContainerControl.cs: Instead of throwing an exception, print
32213           a one-time warning about Validate not being implemented
32214         * XplatUIWin32.cs: Removed debug output
32215
32216 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
32217
32218         * Control.cs: Only set XplatUI background if we expect the windowing
32219           system to handle the background. This stops controls that draw their
32220           own background from flickering
32221
32222         * XplatUIX11.cs: Support custom visuals and colormaps for window 
32223           creation. This allows, amongst other things, using MWF X11 windows 
32224           with OpenGL.
32225
32226 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
32227
32228         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
32229           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
32230           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
32231           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
32232           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
32233           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
32234           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
32235           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
32236           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
32237           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
32238           GridColumnStylesCollection.cs, 
32239           IDataGridColumnStyleEditingNotificationService.cs,
32240           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
32241           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
32242           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
32243           TreeNodeCollection.cs, AmbientProperties.cs, 
32244           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32245           DataObject.cs, ErrorProvider.cs, Splitter.cs,
32246           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
32247           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
32248           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
32249           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
32250           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
32251           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
32252           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
32253           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
32254           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
32255           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
32256           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
32257           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
32258           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
32259           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
32260           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
32261           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
32262           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
32263           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
32264           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
32265           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
32266           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
32267           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
32268           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
32269           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
32270           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
32271           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
32272           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
32273           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
32274           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
32275           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
32276           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
32277           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
32278           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
32279           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
32280           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
32281
32282 2005-09-21  Jackson Harper  <jackson@ximian.com>
32283
32284         * TreeNode.cs: Call Before/After Expand not Collapse when
32285         expanding.
32286
32287 2005-09-20  Jackson Harper  <jackson@ximian.com>
32288         
32289         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
32290
32291 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
32292          
32293         * ListViewItem.cs:
32294                 - Fixes bug 76120
32295                 - Fixes proper storing of subitems
32296                 - Fixes not updated items
32297
32298 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
32299
32300         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
32301           things if our window handle isn't created yet. Also disabled 
32302           debug for TextBoxBase
32303
32304 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
32305
32306         * MenuAPI.cs: Remove filtering of events to allow menu usage
32307
32308 2005-09-20  Miguel de Icaza  <miguel@novell.com>
32309
32310         * Cursor.cs: Allow null to be passed to Cursor.Current.
32311
32312 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
32313
32314         * ThemeWin32Classic.cs:
32315           - Change some private methods/fields to protected virtual so that 
32316             they can be accessed and overriden in derived classes
32317           - First refactoring of some methods. Derived themes now don't 
32318             need to duplicate the complete code from ThemeWin32Classic
32319         * ThemeNice.cs:
32320           - Added nice StatusBar
32321           - Derive from ThemeWin32Classic and not Theme
32322           - Removed duplicate ThemeWin32Classic code
32323
32324 2005-09-20  Miguel de Icaza  <miguel@novell.com>
32325
32326         * Control.cs (ControlCollection.Add): If the value null is passed
32327         the control is ignored. 
32328
32329         Optimize this loop.
32330
32331 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
32332
32333         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
32334           PostQuitMessage state.
32335         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
32336
32337 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
32338
32339         * Application.cs: Our constructor will never get called, move 
32340           initialization to fields; fixes bug #75933
32341
32342 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32343
32344         * FileDialog.cs :
32345                 - Allow files to be selected properly using file name
32346                 combo box.
32347                 - Add ability to change diretory (absolute / relative)
32348                 using file name combo box.
32349
32350 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
32351          
32352         * ListBox.cs: 
32353                 - Fixes Multicolumn listboxes item wrong calculations
32354                 - Allows to click when only one item is in the listbox
32355                 - Fixes crash when no items using keyboard navigation
32356
32357 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
32358
32359         * ComboBox.cs: Reverted almost everything from the latest patch which
32360           broke ComboBox
32361
32362 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
32363         
32364         * ToolTip.cs:
32365                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
32366         * ComboBox.cs:
32367                 - When DropDownStyle is Simple, it does not show scrollbar 
32368                 to the last item of the list.
32369                 - When DropDownStyle is Simple, it crashed when the list was 
32370                 scrolled down with the down cursor key.
32371                 - Fixed a bug that when DropDownStyle is DropDownList, the 
32372                 selected item was not shown.
32373                 - The position of the selected item was not preserved when 
32374                 the next dropdown happened.
32375         * ThemeWin32Classic.cs:
32376                 - Items were wrapped at the right end.
32377         * CheckedListBox.cs:
32378                 - Fixed Add method
32379         * ListBox.cs:
32380                 - Items should be fully shown.
32381                 - When resizing and vertical scrollbar disappeared, the item 
32382                 of index 0 should be on the top of the list.
32383                 - GetItemRectangle should consider the size of ver. scrollbar
32384         * StatusBar.cs:
32385                 - SizingGrip area should not be allocated when it is not 
32386                 displayed.
32387                 - Now it reflects MinWidth of the containing panel and 
32388                 fixed a crash that happens when its width becomes so small.
32389
32390 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
32391
32392         * CheckedListBox.cs: Fixes bug 76028
32393         * ListBox.cs: Fixes bug 76028
32394
32395 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
32396
32397         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
32398         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
32399
32400 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
32401
32402         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
32403
32404 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
32405
32406         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
32407
32408 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
32409
32410         * IRootGridEntry.cs: Added
32411         * PropertyGridCommands.cs: Added
32412         * PropertiesTab.cs: Added missing methods and property
32413         * PropertyGridView.cs: Made class internal
32414         * PropertyGridTextBox.cs: Made class internal
32415
32416 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32417
32418         * MimeIcon.cs: Try to check some other environment variables
32419           if "DESKTOP_SESSION" returns "default"
32420
32421 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32422
32423         * ThemeNice.cs: Corrected background colors (e.g. menus)
32424         * ColorDialog.cs: Use correct background colors for controls
32425
32426 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32427
32428         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
32429
32430 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
32431
32432         * RichTextBox.cs: Added initial implementation
32433         * lang.cs: Removed. Was accidentally checked in long time ago
32434         * TODO: Removed. Contents were obsolete
32435
32436 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
32437                                                                                 
32438         * PropertiesTab.cs : Added
32439
32440 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
32441                                                                                 
32442         * PropertyGrid.cs : Update
32443         * PropertyGridView.cs : Update
32444         * System.Windows.Forms.resx : Added images and strings
32445
32446 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
32447
32448         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
32449  
32450 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
32451
32452         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
32453           a busy loop right after the Ungrab the X11 display is otherwise 
32454           blocked
32455
32456 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
32457
32458         * ThemeWin32Classic.cs: Optimise the use of clipping
32459
32460 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
32461
32462         * DataGrid.cs: fixes recursion bug
32463
32464 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
32465
32466         * ThemeNice.cs: 
32467           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
32468           - Cleanup
32469
32470 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
32471
32472         * ThemeNice.cs: Draw nice ProgressBars
32473
32474 2005-09-01  Miguel de Icaza  <miguel@novell.com>
32475
32476         * VScrollBar.cs: Another buglet found by Aaron's tool. 
32477
32478         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
32479         bug finder.
32480
32481 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
32482
32483         * ThemeNice.cs:
32484           - Added nicer menu drawing
32485           - Updated DrawTab
32486           - some refactoring
32487
32488 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
32489
32490         * CreateParams.cs (ToString): Made output match MS
32491         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
32492             handle is already created (to avoid forcing window creation)
32493         * XplatUIX11.cs: Set window text to caption after creating window,
32494           in case Text was set before window was created
32495         * Form.cs: Use this.Text instead of a static string as caption
32496
32497 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
32498
32499         * NotifyIcon.cs: Don't set the window to visible; this screws
32500           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
32501           OnPaint without a bitmap)
32502         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
32503           happen very often anyway; we could add the check to the WM_PAINT 
32504           event generation code
32505
32506 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
32507
32508         * NotifyIcon.cs: Fill the icon area with a background color, to 
32509           avoid 'residue' when transparent icons are drawn
32510         * XplatUIX11.cs:
32511           - Handle whole_window == client_window when destroying windows
32512           - SystrayAdd(): Set client_window to whole_window value to
32513             get mouse and other events passed to NotifyIcon
32514
32515 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
32516
32517         * Form.cs: Set proper default for Opacity property
32518         * NotifyIcon.cs:
32519           - ShowSystray(): Don't bother creating telling the OS
32520             about the systray item if no icon is provided
32521           - Now handles WM_NCPAINT message to deal with whole/client window
32522             split
32523           - Create window as visible to not get caught by Expose optimization
32524         * Hwnd.cs: Removed debug message
32525         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
32526           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
32527             PaintEventStart/End to use new client argument
32528         * TextBoxBase.cs:
32529           - Commented out debug messages
32530           - Switched PaintEventStart/End to use new client argument
32531         * XplatUI.cs: Added client window bool to PaintEventStart()/
32532           PaintEventEnd() calls, to support drawing in non-client areas
32533         * XplatUIDriver.cs: 
32534           - Added client window bool to PaintEventStart()/PaintEventEnd() 
32535             calls, to support drawing in non-client areas
32536           - Added conditional compile to allow using MWF BeginInvoke 
32537             on MS runtime
32538         * XplatUIX11.cs:
32539           - Added some conditional debug output
32540           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
32541             whole/client window split
32542           - Implemented handling of client argument to PaintEventStart()/End()
32543         * Control.cs:
32544           - Throw exception if BeginInvoke() is called and the window handle
32545             or one of the window's parent handles is not created
32546           - Added conditional compile to allow using MWF BeginInvoke on
32547             MS runtime
32548           - get_Parent(): Only sets parent if handle is created. This avoids
32549             forcing window handle creation when parent is set.
32550           - Now fires Layout and Parent changed events in proper order
32551           - Switched to use Handle instead of window.Handle for Z-Order setting,
32552             the get_Parent() patch above causes us to possibly get null for 'window'
32553           - Implemented handling of client argument to PaintEventStart()/End()
32554           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
32555             default handling)
32556           - Now sends a Refresh() to all child windows when Refresh() is called
32557
32558 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
32559
32560         * Form.cs: Added (non-functional) Opacity property
32561         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
32562
32563 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
32564         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
32565           use export MONO_THEME=nice to activate it.
32566           Currently supported controls:
32567           - Button
32568           - ComboBox
32569           - ScrollBar
32570           - TabControl (TabAlignment.Top only, other will follow)
32571         * ThemeEngine.cs: Add theme nice
32572         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
32573           if enabled
32574
32575 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
32576
32577         * Splitter.cs: Resize docked control and its neighbor.
32578
32579 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32580         -- Making Windows with Menus layout correctly --
32581         * Form.cs : The first leg of the fix
32582                 Menu setter - adjust Client Size as needed to make space for the menu
32583                 SetClientSizeCore - doesn't call base version to be able to pass the 
32584                         menu handle to XplatUI.CalculateWindowRect
32585         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
32586         * XplatUIX11.cs: The critical second leg of the fix
32587                 GetWindowPos needs to use a recalculated client_rect
32588                 so that resizing the window doesn't break layout of child controls. 
32589                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
32590                 Lots of \t\n killed
32591
32592 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
32593
32594         * Label.cs: Now properly recalculates width and height on Font and Text
32595           changes if AutoSize is set
32596
32597 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32598         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
32599
32600 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
32601
32602         * ImageList.cs: Makes ToString method compatible with MS
32603
32604 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
32605
32606         * MenuAPI.cs: fixes bug 75716
32607
32608 2005-08-11 Umadevi S <sumadevi@novell.com>
32609         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
32610
32611 2005-08-11 Umadevi S <sumadevi@novell.com>
32612         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
32613
32614 2005-08-10  Umadevi S <sumadevi@novell.com>
32615         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
32616
32617 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
32618
32619         * Menu.cs: fixes bug 75700
32620         * MenuAPI.cs: fixes navigation issues
32621
32622 2005-08-09  Umadevi S <sumadevi@novell.com>
32623         * CheckedListBox.cs - simple fix for GetItemChecked.
32624
32625 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
32626
32627         * ComboBox.cs: Serveral fixes
32628         * ListBox.cs: Serveral fixes
32629
32630 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32631
32632         * ComboBox.cs: Fixes FindString methods and GetItemHeight
32633         * ListBox.cs: Fixes FindString methods
32634
32635 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32636
32637         * DataGrid.cs: fixes bugs exposed by new tests
32638
32639 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
32640
32641         * Mime.cs: Compile Mono assembly references only if compiling
32642           with Mono (Allows to build with VS.Net again)
32643
32644 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
32645
32646         * Control.cs (PaintControlBackground): Draw background image
32647         corrrectly.
32648         (CheckForIllegalCrossThreadCalls): Stubbed.
32649         
32650         * Form.cs (OnCreateControl): Center when should be centered.
32651         
32652         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
32653
32654 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
32655
32656         * Binding.cs: Binding to properties should be case unsensitive
32657
32658 2005-07-18 vlindos@nucleusys.com
32659
32660         * DataGrid.cs: fixes setmember order
32661
32662 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
32663
32664         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
32665         * FileDialog.cs: FileDialog is now resizable and uses the new
32666           MimeIconEngine
32667
32668 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
32669
32670         * DataGridTextBoxColumn.cs: default value
32671         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
32672         * GridTableStylesCollection.cs: fixes checking MappingName
32673         * DataGridDrawingLogic.cs: fixes drawing logic issues
32674         * DataSourceHelper.cs: rewritten to make compatible with more data sources
32675         * DataGrid.cs: fixes    
32676
32677 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
32678
32679         * MimeGenerated.cs: Use case sensitive comparer for
32680           NameValueCollections
32681
32682 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
32683
32684         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
32685         * ThemeWin32Classic.cs: bug fixes, code refactoring
32686         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
32687         * DataGrid.cs: bug fixes, code refactoring
32688         * DataGridTextBox.cs: bug fixes, code refactoring
32689         * DataGridColumnStyle.cs:  bug fixes, code refactoring
32690         * Theme.cs:  bug fixes, code refactoring
32691
32692 2005-07-01  Peter Bartok  <pbartok@novell.com> 
32693
32694         * TextControl.cs: Quick fix for the reported crash on ColorDialog
32695           and other text box usage
32696
32697 2005-07-01  Jackson Harper  <jackson@ximian.com>
32698
32699         * TabControl.cs: Make sure the bottom of the tab covers the pages
32700         border.
32701
32702 2005-06-30  Peter Bartok  <pbartok@novell.com> 
32703
32704         * Form.cs (ShowDialog): Assign owner of the dialog
32705         * TextBoxBase.cs: Always refresh caret size when deleting, caret
32706           might have been moved to a tag with different height
32707
32708 2005-06-30  Jackson Harper  <jackson@ximian.com>
32709
32710         * Form.cs: Don't create an infinite loop when setting focus
32711         * MenuItem.cs: Don't dirty the parents if we don't have any
32712
32713 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
32714
32715         * LibSupport.cs: Rename
32716
32717 2005-06-29  Peter Bartok  <pbartok@novell.com>
32718
32719         * TextBoxBase.cs: Re-align caret after deleting a character
32720         * TextControl.cs:
32721           - DeleteChars(): Ensure that tag covers the provided position
32722           - StreamLine(): Drop reference for dropped tag
32723
32724 2005-06-29  Peter Bartok  <pbartok@novell.com> 
32725
32726         * TextControl.cs: 
32727           - Selections now work properly, anchoring at the initial location
32728             and properly extending in either direction (SetSelectionToCaret(),
32729             SetSelectionStart() and SetSelectionEnd())
32730           - No longer redraws the whole control on selection change, now
32731             calculates delta between previous and new selection and only
32732             invalidates/redraws that area
32733           - Fixed FindPos() math off-by-one errors
32734           - Changed DeleteChars() to verify the provided tag covers the
32735             provided position, selections may have a tag that doesn't cover
32736             the position if the selection is at a tag border
32737           - Fixed off-by-one errors in DeleteChars()
32738           - Added missing streamlining check in DeleteChars() to remove
32739             zero-length tags
32740           - Implemented Invalidate() method, now properly calculates exposures
32741             between two given lines/positions
32742           - Implemented SetSelection()
32743           - Obsoleted and removed FixupSelection()
32744           - Improved RecalculateDocument() logic, removing code duplication
32745
32746 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32747
32748         * LibSupport.cs: changes to match different input/output arguments.
32749
32750 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32751
32752         * LibSupport.cs: added libsupport.so init routine.
32753
32754 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
32755         
32756         * ControlBindingsCollection.cs
32757                 - Throws an exception on null datasource when adding
32758                 - Checks for duplicated bindings when adding
32759
32760 2005-06-28  Jackson Harper  <jackson@ximian.com>
32761
32762         * TreeView.cs (OnKeyDown): Support left and right properly
32763         (navigates as well as expanding and collapsing.
32764         - Add support for Multiply, this expands all the selected nodes
32765         children.
32766         - Fix some tabbing.
32767
32768 2005-06-28  Jackson Harper  <jackson@ximian.com>
32769
32770         * TreeView.cs: Implement keyboard navigation, currently supports,
32771         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
32772         support for toggling checkboxes with the space bar.
32773
32774 2005-06-28  Jackson Harper  <jackson@ximian.com>
32775
32776         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
32777         tree.
32778
32779 2005-06-28  Jackson Harper  <jackson@ximian.com>
32780
32781         * TreeView.cs: Add missing event.
32782
32783 2005-06-27  Peter Bartok  <pbartok@novell.com> 
32784
32785         * TextControl.cs:
32786           - Made line ending size configurable (now allows for counting 
32787             lineendings as \n or \r\n)
32788           - Added margin to viewport to keep caret visible on right side
32789           - Fixed translation routines for line/pos to documentpos to consider
32790             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
32791           - Fixed some line-endings to be unix style
32792           - Fixed Document.FormatText to perform it's calculations 1-based
32793           - Added descriptions for a few methods that might otherwise get 
32794             used wrong
32795           - Added NOTE section with some basic conventions to remember at 
32796             the top of the file
32797           - Major fixup for RichTextBox selection drawing:
32798             * Fixed crashes when multiple tags on a single line were selected
32799             * fixed selection box drawing not overlaying text
32800             * fixed bogus offset calculation for tags not starting at index 1
32801             * Switched behaviour from using multiple Substrings of a 
32802               StringBuilder.ToString() to using multiple 
32803               StringBuilder.ToString(start, length) statements, hoping this is
32804               faster (kept original version commented out in the code, in case
32805               original version was faster)
32806         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
32807           alignment != Left
32808         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
32809           call it as well
32810
32811 2005-06-27  Jackson Harper  <jackson@ximian.com>
32812
32813         * TabControl.cs: Move to the left and right with the arrow
32814         keys. These keys don't cycle beyond first and last like
32815         tab. Refresh all the tabs when scrolling them to the left or
32816         right.
32817
32818 2005-06-27  Jackson Harper  <jackson@ximian.com>
32819
32820         * TabControl.cs:
32821           - ToString: Added method
32822           - CreateParams: Remove TODO and comment
32823           - OnKeyDown: Cycle through bounds properly.
32824           - SelectedIndex: Scroll to the right or left if we need to
32825           display the newly selected tab.
32826
32827 2005-06-23  Jackson Harper  <jackson@ximian.com>
32828
32829         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
32830         set.
32831
32832 2005-06-23  Jackson Harper  <jackson@ximian.com>
32833
32834         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
32835         CTRL-SHIFT-TAB, and HOME, END are there any others?
32836
32837 2005-06-23  Jackson Harper  <jackson@ximian.com>
32838
32839         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
32840
32841 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
32842         
32843         * DataGridTextBoxColumn.cs: fixes and enhancements
32844         * ThemeWin32Classic.cs: fixes and enhancements
32845         * DataGridBoolColumn.cs:  fixes and enhancements
32846         * DataGridDrawingLogic.cs:  fixes and enhancements
32847         * CurrencyManager.cs: fixes and enhancements
32848         * DataGrid.cs: fixes and enhancements
32849         * DataGridColumnStyle.cs:  fixes and enhancements
32850
32851 2005-06-22  Jackson Harper  <jackson@ximian.com>
32852
32853         * TabControl.cs: Add some missing methods that just call into the
32854         base. Make the TabPageCollection's IList interface behave in the
32855         same manner as the MS implementation.
32856
32857 2005-06-22  Peter Bartok  <pbartok@novell.com> 
32858
32859         * TextControl.cs: Added sanity check
32860         * TextBoxBase.cs: 
32861           - Fixed wrapping behaviour, don't set wrap on single line controls
32862             (this fixes the breakage of colordialog introduced in an earlier
32863              checkin)
32864           - Added rudimentary support for autoscrolling right-aligned controls
32865             (still needs fixing, also, center alignment scroll is missing)
32866
32867 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
32868         
32869         * ScrollBar.cs: Fixes thumbpos on Maximum values
32870
32871 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
32872         
32873         * PropertyGridView.cs: Pass context information to UITypeEditors 
32874
32875 2005-06-21  Peter Bartok  <pbartok@novell.com> 
32876
32877         * TextBoxBase.cs:
32878           - Now calling PositionCaret with absolute space coordinates
32879           - Enabled vertical scrolling
32880           - Better tracking of scrollbar changes, tied into WidthChange
32881             event
32882           - Improved cursor tracking
32883           - Removed debug output
32884         * TextControl.cs:
32885           - PositionCaret coordinates are now works in absolute space, not 
32886             the canvas
32887           - Improved tracking of document size
32888           - Added events for width and height changes
32889
32890 2005-06-21  Peter Bartok  <pbartok@novell.com>
32891
32892         * Form.cs: Set focus to active control when form is activated
32893         * TextControl.cs: 
32894           - Added word-wrap functionality to RecalculateLine() 
32895           - Added some short function descriptions for VS.Net to aid in
32896             writing dependent controls
32897           - Added Caret property, returning the current coords of the caret
32898           - Added ViewPortWidth and ViewPortHeight properties
32899           - Added Wrap property
32900           - Added CaretMoved event
32901           - Removed some old debug code
32902           - Split() can now create soft splits
32903           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
32904           - Added method to format existing text
32905           - Fixed size/alignment calculations to use viewport
32906           - RecalculateDocument now can handle changing line-numbers while
32907             calculating lines
32908
32909         * TextBox.cs:
32910           - Added some wrap logic, we don't wrap if alignment is not left
32911           - Added casts for scrollbar var, base class switched types to
32912             also support RichTextBoxA
32913           - Implemented handling of scrollbar visibility flags
32914
32915         * TextBoxBase.cs:
32916           - Switched scrollbars type to RichTextBoxScrollBars to support
32917             RichTextBox
32918           - Added tracking of canvas width/height
32919           - Switched scrollbars to be not selectable (to keep focus on text)
32920           - Added central CalculateDocument() method to handle all redraw
32921             requirements
32922           - Added ReadOnly support
32923           - Added WordWrap support
32924           - Fixed handling of Enter key (we now treat it as a DialogKey)
32925           - Fixed caret positioning when h or v scroll is not zero
32926           - Fixed placing/generation of vertical scrollbar
32927           - Added CalculateScrollBars() method to allow updating scrollbar
32928             limits and visibility
32929           - Fixed handling of horizontal scroll
32930           - Added handling of vertical scroll
32931           - Implemented auto-'jump' when caret moves to close to a left or
32932             right border and there is text to be scrolled into view (currently
32933             there's the potential for a stack overflow, until a bug in
32934             scrollbar is fixed)
32935
32936 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
32937         
32938         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
32939
32940 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
32941
32942         * Mime.cs:
32943         - added inodes.
32944         - return application/x-zerosize for files with size zero
32945           (if no extension pattern matches).
32946         - check matches collection for strings too.
32947         - return only the first mime type if the name value
32948           collection has more than one mime type.
32949
32950 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
32951         
32952         * PropertyGrid.cs: Cleaned up some TODOs
32953         * PropertyGridView.cs: Added support for UITypeEditors
32954
32955 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
32956         
32957         * DataGrid.cs: clears cached value
32958
32959 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
32960
32961         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
32962         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
32963         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
32964         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
32965         
32966 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
32967
32968         * ThemeWin32Classic.cs: fixes colour
32969
32970 2005-06-15  Peter Bartok  <pbartok@novell.com>
32971
32972         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
32973         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
32974         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
32975         * Control.cs: Added some MWFCategory and MWFDescription attributes
32976         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
32977
32978 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
32979
32980         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
32981         usage
32982
32983 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
32984
32985         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
32986         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
32987         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
32988         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
32989         * DataGrid.cs: default datagrid settings for Default Styles, fixes
32990         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
32991
32992 2005-06-13  Jackson Harper  <jackson@ximian.com>
32993
32994         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
32995         isn't printed when the user enables dropping. (X11 does accept
32996         drops).
32997         
32998 2005-06-13  Jackson Harper  <jackson@ximian.com>
32999
33000         * TreeView.cs: Remove some TODOS.
33001
33002 2005-06-13  Jackson Harper  <jackson@ximian.com>
33003
33004         * Form.cs: Hook into the mdi framework.
33005         * MdiClient.cs: Use the base control collections add method so
33006         parents get setup correctly. Set the default back colour and dock
33007         style.
33008         * MdiChildContext.cs: New class, this bad actor handles an
33009         instance of an MDI window. Right now there is only basic
33010         support. You can drag, close, and resize windows. Minimize and
33011         Maximize are partially implemented.
33012
33013 2005-06-13  Jackson Harper  <jackson@ximian.com>
33014
33015         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
33016         freaky when both vals are negative. NOTE: There are probably other
33017         places in XplatUIX11 that this needs to be done.
33018
33019 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
33020
33021         * DataGrid.cs: implement missing methods, move KeyboardNavigation
33022         * DataGridColumnStyle.cs: fixes signature
33023
33024 2005-06-12  Jackson Harper  <jackson@ximian.com>
33025
33026         * XplatUIX11.cs: Use sizing cursors similar to the ones on
33027         windows.
33028
33029 2005-06-11  Jackson Harper  <jackson@ximian.com>
33030
33031         * StatusBarPanel.cs: Signature cleanups. Implement
33032         BeginInit/EndInit.
33033
33034 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
33035
33036         * DataGridTextBoxColumn.cs: Honors aligment
33037         * GridColumnStylesCollection.cs: Contains is case unsensitive
33038         * GridTableStylesCollection.cs: several fixes
33039         * DataGridTableStyle.cs: default column creation
33040         * DataGridDrawingLogic.cs: fixes
33041         * CurrencyManager.cs: ListName property
33042         * DataGrid.cs: multiple styles support
33043         * DataGridColumnStyle.cs: fixes
33044         
33045
33046 2005-06-10  Peter Bartok  <pbartok@novell.com>
33047
33048         * Control.cs(Select): Moved SetFocus call to avoid potential
33049           loops if controls change the active control when getting focus
33050         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
33051           the up/down buttons
33052
33053 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
33054
33055         * ImageListConverter.cs: Implemented
33056
33057 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33058
33059         * MonthCalendar.cs: Wired in NumericUpDown control for year
33060
33061 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33062
33063         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
33064           DoubleClick events, since they are not meant to be fired.
33065
33066 2005-06-09  Peter Bartok  <pbartok@novell.com>
33067
33068         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
33069           Jonathan's standalone controls into MWF, implemented missing
33070           events, attributes and methods; added xxxAccessible classes
33071         * AccessibleObject.cs: Made fields internal so other classes
33072           can change them if needed
33073
33074 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
33075
33076         * UpDownBase.cs: Complete implementation
33077         * NumericUpDown.cs: Complete implementation
33078         * DomainUpDown.cs: Complete implementation
33079
33080 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
33081
33082         * DataGridTextBoxColumn.cs: drawing fixes
33083         * DataGridCell.cs: fixes ToString method to match MSNet
33084         * DataGridTableStyle.cs: fixes
33085         * DataGridBoolColumn.cs: fixes, drawing
33086         * DataGridDrawingLogic.cs: fixes, new methods
33087         * DataGridTextBox.cs: Keyboard and fixes
33088         * DataGrid.cs:
33089                 - Keyboard navigation
33090                 - Scrolling fixes
33091                 - Row selection (single, multiple, deletion, etc)
33092                 - Lots of fixes
33093         
33094 2005-06-07  Jackson Harper  <jackson@ximian.com>
33095
33096         * ThemeWin32Classic.cs: Clear the background area when drawing
33097         buttons.
33098
33099 2005-06-06  Peter Bartok  <pbartok@novell.com>
33100
33101         * ImageListStreamer.cs: Fixed signature for GetData
33102         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
33103         * ComboBox.cs:
33104           - Added missing ChildAccessibleObject class
33105           - Added missing OnXXXFocus overrides, switched to using those
33106             instead of the event handler
33107         * Control.cs:
33108           - Added Parent property for ControlAccessibleObject
33109           - Fixed signatures
33110           - Fixed attributes
33111           - Added ResetBindings()
33112         * ListBindingConverter.cs: Implemented some methods
33113         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
33114         * ImageList.cs: Implemented basic handle scheme, removed TODOs
33115         * ContainerControl.cs: Fixed signature, now subscribing to the
33116           ControlRemoved event instead of overriding the handler, LAMESPEC
33117         * CurrencyManager.cs: Added missing attribute
33118         * MonthCalendar.cs: Added missing properties
33119
33120 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
33121
33122         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
33123         
33124 2005-06-06  Gaurav Vaish and Ankit Jain
33125
33126         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
33127         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
33128         
33129 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
33130
33131         * Control.cs: fixes CreateParams Width / Height.
33132
33133 2005-06-05  Peter Bartok  <pbartok@novell.com>
33134
33135         * Win32DnD.cs: Removed compilation warnings
33136
33137 2005-06-05  Peter Bartok  <pbartok@novell.com>
33138
33139         * Control.cs (CreateParams): Since we don't know if one of the
33140           properties we use is overridden, lets make sure if we fail accessing
33141           we continue with a backup plan
33142
33143 2005-06-05  Peter Bartok  <pbartok@novell.com>
33144
33145         * Win32DnD.cs:
33146           - Removed debug output
33147           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
33148             struct
33149           - Plugged resource leak
33150         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
33151           MS size
33152
33153 2005-06-05  Peter Bartok  <pbartok@novell.com>
33154
33155         * XplatUIWin32.cs: Removed DnD code
33156         * Win32DnD.cs: Implemented drop source and drop target functionality
33157
33158 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33159
33160         * UpDownBase.cs: remove duplicate addition of event, enable some code
33161         that was commented out.
33162         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
33163         Validate input when a key is pressed. It works fine now for every
33164         combination of Hexadecimal. Only missing some drawing love when sharing
33165         space with other controls.
33166
33167 2005-06-04  Peter Bartok  <pbartok@novell.com>
33168
33169         * Control.cs:
33170           - We need to pass a window for DragDrop, so enable callback events
33171           - Added DnD callback events when being a DragSource
33172         * XplatUI.cs (StartDrag): Added window handle argument
33173         * XplatUIDriver.cs (StartDrag): Added window handle argument
33174         * QueryContinueDragEventArgs: Made fields internally accessible so
33175           drivers can set them
33176         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
33177           can set them
33178
33179 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
33180
33181         * DataGridTextBoxColumn.cs: column text editing
33182         * DataGridTableStyle.cs: Respect columns styles created by the user
33183         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
33184         * DataGridBoolColumn.cs: bool column editing
33185         * DataGrid.cs: fixes to scrolling, properties, etc
33186         * DataGridTextBox.cs: handle keyboard
33187         * DataGridColumnStyle.cs: fixes
33188
33189 2005-06-02  Jackson Harper  <jackson@ximian.com>
33190
33191         * ImageListStreamer.cs: Somewhat broken implementation of
33192         GetObjectData. The RLE needs some work to match MS properly.
33193
33194 2005-06-02  Jackson Harper  <jackson@ximian.com>
33195
33196         * X11Dnd.cs: Attempting to keep at least one file in MWF
33197         monostyled.
33198
33199 2005-06-02  Peter Bartok  <pbartok@novell.com>
33200
33201         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
33202           that way
33203
33204 2005-06-02  Peter Bartok  <pbartok@novell.com>
33205
33206         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
33207         * XplatUI.cs: Added DoDragDrop() method
33208         * XplatUIDriver.cs: Added DoDragDrop() method
33209
33210 2005-06-02  Jackson Harper  <jackson@ximian.com>
33211
33212         * Splitter.cs: Implement BorderStyle.
33213
33214 2005-06-02  Jackson Harper  <jackson@ximian.com>
33215
33216         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
33217         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
33218         X11 using XDND.
33219
33220 2005-06-02  Peter Bartok  <pbartok@novell.com>
33221
33222         * DataObject.cs:
33223           - Added Data setter
33224           - Fixed broken insertion code for SetData, now also
33225             overwrites any existing entry of the same format name
33226         * Hwnd.cs: Added list of pointers that automatically gets
33227           freed when the window is disposed
33228         * XplatUI.cs: Call driver initialization method when loading
33229           a driver
33230         * Control.cs:
33231           - OnDragLeave takes EventArgs, not DragEventArgs
33232           - Added setting of WS_EX_ACCEPTFILES style when dropping is
33233             supported
33234           - Forces style update when drop state changes
33235         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
33236           not perfect since we cannot (yet) call the IDataObject.GetData()
33237           method, we keep getting 0x80004005 error, dunno why)
33238
33239 2005-06-02  Peter Bartok  <pbartok@novell.com>
33240
33241         * DragEventArgs.cs: Make fields internal so we can cache the
33242           object and re-set the fields from XplatUI
33243
33244 2005-06-02  Jackson Harper  <jackson@ximian.com>
33245
33246         * Control.cs: Add some internal methods so the DnD subsystem can
33247         raise DnD events. Also call into the driver when AllowDrop is set.
33248         * XplatUI.cs:
33249         * XplatUIDriver.cs: New method for setting whether or not a window
33250         is allowed to accept drag and drop messages.
33251                 
33252 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
33253         
33254         * ScrollBar.cs: Make sure that values sent in Scroll events
33255         are always between Maximum and Minimum.
33256
33257 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
33258
33259         * Menu.cs: Call MenuChanged when menuitem visibility has been
33260         changed.
33261         * MenuItem.cs: Rebuild menu when item is (not) visible.
33262         * MainMenu.cs: MainMenu has special MenuChanged.
33263         * Theme.cs: Caption and FrameBorderSize are not fixed.
33264         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
33265         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
33266         * XplatUIX11.cs,
33267         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
33268         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
33269
33270 2005-05-30  Jackson Harper  <jackson@ximian.com>
33271
33272         * DataFormat.cs: We can't statically initialize this stuff because
33273         it calls into the xplatui and could create a loop. So we lazy init
33274         it.
33275
33276 2005-05-28  Jackson Harper  <jackson@ximian.com>
33277
33278         * Control.cs: Proper implementation of Product(Name/Version).
33279
33280 2005-05-27  Jackson Harper  <jackson@ximian.com>
33281
33282         * DataObject.cs: Dont crash if no data is found.
33283
33284 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
33285         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
33286                 as per status page, guessing it should be set to true
33287
33288 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
33289
33290         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
33291         * DataGridTableStyle.cs: set proper formatting text, def header text
33292         * ThemeWin32Classic.cs: new themable paramaters
33293         * DataGridBoolColumn.cs: paint check box, get data, fixes
33294         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
33295         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
33296         * DataGridColumnStyle.cs: fixes
33297         * Theme.cs: new themable paramaters
33298                 
33299 2005-05-26  Peter Bartok  <pbartok@novell.com>
33300
33301         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
33302
33303 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33304         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
33305
33306 2005-05-24  Peter Bartok  <pbartok@novell.com>
33307
33308         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
33309           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
33310           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
33311           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
33312           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
33313           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
33314           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
33315           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
33316           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
33317           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
33318           missing attributes, etc
33319         * DataGridPreferredColumnWidthTypeConverter.cs: Added
33320
33321 2005-05-24  Peter Bartok  <pbartok@novell.com>
33322
33323         * Help.cs: Added, implemented trivial functions, throws up MessageBox
33324           when user tries to get help
33325         * DataObject.cs, DataFormats.cs, LinkArea.cs,
33326           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
33327           to suppress warnings
33328         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
33329           avoid unreachable code warning
33330
33331 2005-05-20  Peter Bartok  <pbartok@novell.com>
33332
33333         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
33334
33335 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33336
33337         * DataGridTextBoxColumn.cs: Basic painting methods
33338         * DataGridTableStyle.cs: Set table style in the column
33339         * ThemeWin32Classic.cs: Use Theme for colors
33340         * DataGridDrawingLogic.cs: Implement more drawing
33341         * DataGrid.cs: drawing, theming, enhacements, fixes
33342         * DataGridColumnStyle.cs: fixes, drawing
33343         * Theme.cs: theming for Datagrid
33344
33345 2005-05-20  Peter Bartok  <pbartok@novell.com>
33346
33347         * Cursor.cs: Implemented GetObjectData() method
33348
33349 2005-05-20  Peter Bartok  <pbartok@novell.com>
33350
33351         * Cursors.cs: Added setting of cursor name
33352         * Cursor.cs:
33353           - Implemented constructors
33354           - Implemented Draw and DrawStretched
33355           - Implemented Current property
33356           - Implemented == and != operators
33357           - Implemented Dispose()
33358           - Implemented ToString
33359           - Added missing attributes
33360         * XplatUIX11.cs:
33361           - Added missing reset for OverrideCursor when DoEvents is called
33362           - Fixed creation of cursor, logic was wrong
33363         * XplatUIWin32.cs:
33364           - Added missing reset for OverrideCursor when DoEvents is called
33365           - Fixed creation of cursor, bit arrays were swapped
33366         * Clipboard.cs: Removed obsolete MonoTODO attribute
33367
33368 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33369
33370         * ComboBox.cs: fixes OnSelectedItemChanged
33371         * ControlBindingsCollection.cs: fixes item range check
33372
33373 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33374
33375         * UpDownBase.cs:
33376                 - Calc preferred height properly
33377                 - Implement missing properties
33378                 
33379         * NumericUpDown.cs: Implement missing events
33380
33381 2005-05-19  Jackson Harper  <jackson@ximian.com>
33382
33383         * TabControl.cs: New method that resizes the tab pages before
33384         redrawing them. This as needed as the control is double buffered
33385         and sizing will not be recalculated unless ResizeTabPages is
33386         called.
33387         * TabPage.cs: Set base.Text instead of Text in the constructor so
33388         that UpdateOwner does not get called. Use the new Redraw method of
33389         TabControl instead of Refresh so the sizing is recalculated.
33390         * ThemeWin32Classic.cs: Draw the text for button tabs.
33391
33392 2005-05-19  Jackson Harper  <jackson@ximian.com>
33393
33394         * Control.cs: Paint control background images. Fix typo where
33395         PaintControlBackground was not getting called correctly.
33396
33397 2005-05-19  Peter Bartok  <pbartok@novell.com>
33398
33399         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
33400           I can investigate, apparently I broke FileDialog
33401
33402 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
33403
33404         * AxHost.cs: Some simple properties.
33405         * Control.cs: window must be accessible after ctor.
33406         * Form.cs: Added TransparencyKey property.
33407         * TextBoxBase.cs: Implemented Clear. Text property can be null.
33408         * XplatUIWin32.cs: SetBorderStyle implemented.
33409
33410 2005-05-18  Peter Bartok  <pbartok@novell.com>
33411
33412         * DataObject.cs: Entries are not global but particular to the
33413           DataObject, now it behaves that way
33414         * XplatUIWin32.cs: Implemented Clipboard methods
33415         * Clipboard.cs: Implemented
33416         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
33417         * XplatUIOSX.cs: Updated to final clipboard prototypes
33418         * XplatUIX11.cs: Implemented Clipboard methods
33419         * XplatUIDriver.cs: Updated to final clipboard prototypes
33420         * XplatUIStructs.cs:
33421           - Added BITMAPINFOHEADER struct
33422           - Added ClipboardFormats enum
33423         * X11Structs.cs:
33424           - Added ClipboardStruct
33425           - Added Atom enum items for clipboard types
33426           - Fixed atom types for Selection event structures
33427         * DataFormats.cs:
33428           - Added internal properties and methods for drivers to enumerate
33429             all known formats
33430           - Switched initialization method to allow drivers to assign their
33431             own IDs even for the MS predefined clipboard IDs
33432         * XplatUI.cs: Updated to final clipboard interface
33433
33434 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33435         * PropertyGridView.cs: Fixed compiler warnings.
33436
33437 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33438         * PropertyGrid.cs: Added some event calls
33439         * PropertyGridView.cs: Change drawing code to use double buffering
33440         * PropertyGridTextBox.cs: Changed Text property name
33441         * GridItem.cs: Added Bounds property.
33442         * GridEntry.cs: Added Bounds property.
33443
33444 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
33445
33446         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
33447         since GetType() may not return the correct type if the object is
33448         a remoting proxy.
33449
33450 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
33451
33452         * TreeNodeCollection.cs: fixes get/set item ranges
33453         
33454 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
33455
33456         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
33457                 
33458 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
33459
33460         * ComboBox.cs: Fix item range comparation
33461         * ListView.cs: Fix item range comparation
33462
33463 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33464
33465         * FontDialog.cs:
33466           - Clear example panel when OnPaint is called
33467           - Better solution for displaying the example panel text
33468           - Select default indexes in the ListBoxes
33469
33470 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
33471
33472         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
33473
33474 2005-05-11  Peter Bartok  <pbartok@novell.com>
33475
33476         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
33477         * SelectionRangeConverter.cs: Implemented
33478         * PropertyGrid.cs: Fixed attribute value
33479         * Control.cs:
33480           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
33481           - Added Sebastien Pouliot's CAS Stack Propagation fixes
33482         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
33483           that's common to all drivers. First methods to go there are
33484           Sebastien Pouliot's CAS Stack Propagation helper methods
33485         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
33486           Sebastien Pouliot for CAS Stack Propagation
33487
33488 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
33489
33490         * OSXStructs.cs:
33491           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
33492
33493 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
33494
33495         * DataGridTextBoxColumn.cs: fixed some members
33496         * GridColumnStylesCollection.cs: indexed column is case insensitive
33497         * DataGridTableStyle.cs: fixes
33498         * ThemeWin32Classic.cs: add new theme parameter
33499         * Theme.cs: add new theme parameter
33500         * DataGridDrawingLogic.cs: Datagrid's drawing logic
33501         * DataGrid.cs: fixes, new internal properties, etc.
33502         * DataGridColumnStyle.cs: allows to set grid value
33503         *
33504
33505 2005-05-10  Peter Bartok  <pbartok@novell.com>
33506
33507         * AccessibleObject.cs:
33508           - Removed MonoTODO attribute on help, method is correct
33509           - Fixed Bounds property
33510         * AxHost.cs: Moved MonoTODO
33511         * ButtonBase.cs: Now setting AccessibleObject properties
33512         * RadioButton.cs: Setting proper AccessibleObject role
33513         * CheckBox.cs: Setting proper AccessibleObject role
33514         * ControlBindingsCollection.cs: Added properties, methods and attributes
33515         * DataFormats.cs: Fixed awkward internal API, and changed to enable
33516           userdefined DataFormats.Format items as well
33517         * ListControl.cs: Removed data_member from the public eye
33518         * OpenFileDialog.cs:
33519           - Made class sealed
33520           - Added missing attributes
33521         * SaveFileDialog.cs: Added missing attributes
33522         * ImageListStreamer.cs: Fixed code that caused warnings
33523         * LinkLabel.cs: Removed unreachable code
33524         * TreeView.cs: Fixed code that caused warnings
33525         * PropertyGridView.cs: Fixed code that caused warnings
33526         * GridColumnStylesCollection.cs: Added missing attributes
33527         * GridTableStylesCollection: Added missing attribute
33528         * PropertyManager: Added .ctor
33529         * SecurityIDType: Added
33530         * DataObject.cs: Implemented class
33531         * LinkArea.cs: Added missing attribute
33532
33533 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
33534
33535         * RadioButton.cs: call base method to allow to fire OnClick event
33536         * UpDownBase.cs: OnMouseUp call base method
33537         * CheckedListBox.cs: call base method before returning
33538         * TrackBar.cs: call base method before returning
33539         
33540
33541 2005-05-10  Peter Bartok  <pbartok@novell.com>
33542
33543         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
33544           for messages
33545
33546 2005-05-10  Peter Bartok  <pbartok@novell.com>
33547
33548         * DataFormats.cs: Implemented
33549         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
33550           XplatUIX11.cs: Added Clipboard APIs
33551         * XplatUIWin32.cs: Implemented Clipboard APIs
33552         * FolderBrowserDialog.cs: Added missing event, attributes
33553
33554 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
33555
33556         * CheckBox.cs: call base method to allow to fire OnClick event
33557
33558 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
33559
33560         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
33561
33562 2005-05-06  Peter Bartok  <pbartok@novell.com>
33563
33564         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
33565         * Screen.cs: Implemented
33566         * HelpNavigator.cs: Added
33567         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
33568           property
33569         * HelpProvider.cs: Implemented all we can do until we have a CHM
33570           help library (which means that "What's This" does work now)
33571
33572 2005-05-06  Jackson Harper  <jackson@ximian.com>
33573
33574         * XplatUIX11.cs: Fix waking up the main loop.
33575                 
33576 2005-05-05  Peter Bartok  <pbartok@novell.com>
33577
33578         * XplatUI.cs: Updated revision
33579         * Form.cs: Removed enless loop
33580         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
33581         * Label.cs (OnPaint): Added call to base.OnPaint()
33582         * ToolTip.cs: Made ToolTipWindow reusable for other controls
33583         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
33584         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
33585         * AxHost.cs: Added
33586         * ButtonBase.cs: Moved base.OnPaint() call to end of method
33587         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
33588           to ToolTip.ToolTipWindow for drawing and size methods; this allows
33589           reuse of ToolTipWindow by other controls
33590         * SizeGrip.cs: Moved base.OnPaint() call to end of method
33591         * XplatUIX11.cs: Now clipping drawing area (experimental)
33592         * PictureBox.cs: Moved base.OnPaint() call to end of method
33593         * Theme.cs: Fixed ToolTip abstracts to match new format
33594         * ErrorProvider.cs: Implemented
33595
33596 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
33597
33598         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
33599         * LinkLabel.cs:
33600                 - Adds cursors
33601                 - Handles focus
33602                 - Implements LinkBehavior
33603                 - Fixes many issues
33604
33605 2005-05-03  Jackson Harper  <jackson@ximian.com>
33606
33607         * ListView.cs: Calculate the scrollbar positioning on resize and
33608         paint, so they get put in the correct place.
33609
33610 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33611
33612         * ColorDialogs.cs: The small color panels are now handled by
33613           SmallColorControl. This fixes drawing of the focus rectangle
33614           and adds a 3D border.
33615
33616 2005-05-03  Peter Bartok  <pbartok@novell.com>
33617
33618         * Control.cs: Modified version of Jonathan Chamber's fix for
33619           double-buffering
33620
33621 2005-05-03  Jackson Harper  <jackson@ximian.com>
33622
33623         * ListView.cs: Remove redraw variable. Control now handles whether
33624         or not a redraw needs to be done, and will only raise the paint
33625         event if redrawing is needed.
33626
33627 2005-05-03  Jackson Harper  <jackson@ximian.com>
33628
33629         * Splitter.cs: No decorations for the splitter form. Cache the
33630         hatch brush.
33631
33632 2005-05-03  Jackson Harper  <jackson@ximian.com>
33633
33634         * TreeView.cs: Use dashed lines to connect nodes. Use the
33635         ControlPaint method for drawing the focus rect instead of doing
33636         that in treeview.
33637
33638 2005-05-02  Peter Bartok  <pbartok@novell.com>
33639
33640         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
33641
33642 2005-04-29  Jackson Harper  <jackson@ximian.com>
33643
33644         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
33645         entire image buffer. Just clear the clipping rectangle.
33646
33647 2005-04-29  Jackson Harper  <jackson@ximian.com>
33648
33649         * ThemeWin32Classic.cs: Don't draw list view items that are
33650         outside the clipping rectangle.
33651
33652 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
33653
33654         * ListBox.cs: added horizontal item scroll
33655
33656 2005-04-29  Jackson Harper  <jackson@ximian.com>
33657
33658         * ThemeWin32Classic.cs: Remove some old debug code that was
33659         causing flicker with the new double buffering code.
33660
33661 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
33662
33663         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
33664         behave like combobox and comboboxlist (still not sure if this is
33665         correct though).
33666
33667 2005-04-28  Jackson Harper  <jackson@ximian.com>
33668
33669         * ThemeWin32Classic.cs: Don't fill the middle of progress
33670         bars. This fills areas outside of the clip bounds that don't need
33671         to be filled.
33672
33673 2005-04-28  Jackson Harper  <jackson@ximian.com>
33674
33675         * Control.cs: Don't expose functionality to touch the image buffers.
33676         * ProgressBar.cs:
33677         * ListView.cs: We do not need to (and no longer can) manipulate
33678         the image buffers directly. All of this is handled by Control.
33679
33680 2005-04-28  Peter Bartok  <pbartok@novell.com>
33681
33682         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
33683           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
33684           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
33685
33686 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33687
33688         * Combobox:
33689                 - Adjust control's height for non-simple comboboxes (bug fix)
33690                 - Remove dead code
33691         * MenuAPI.cs: remove unused var
33692         * ScrollBar.cs: remove unsed var
33693                  
33694         * ListBox.cs: unselect items when clearing
33695
33696 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33697
33698         * ListControl.cs: honors OnPositionChanged and default Selected Item
33699         * ListBox.cs: unselect items when clearing
33700
33701 2005-04-27  Jackson Harper  <jackson@ximian.com>
33702
33703         * X11Keyboard.cs: Initialize a default keyboard and give a warning
33704         if a "correct" keyboard is not found. This will make us not crash,
33705         but might give some users bad keyboard layouts...seems to be the
33706         same thing rewind does.
33707
33708 2005-04-27  Jackson Harper  <jackson@ximian.com>
33709
33710         * BindingManagerBase.cs: Attach the current/position changed
33711         handlers to their respective events.
33712
33713 2005-04-27  Jackson Harper  <jackson@ximian.com>
33714
33715         * Control.cs: Make sure that the first WM_PAINT does a full draw,
33716         not just a blit.
33717         * ThemeWin32Classic.cs: Don't fill the background for picture
33718         boxes. This could overright user drawing.
33719         * ComboBox.cs: Just fill the clipping rect not the entire client
33720         rect when drawing the background. This prevents pieces of the
33721         image buffer from getting overwritten and is theoretically faster.
33722
33723 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
33724
33725         * ComboBox.cs: Databinding support fixes, fire missing events
33726         * ListControl.cs: implement missing methods and properties, fixes
33727         * ThemeWin32Classic.cs: Databiding support on Drawing
33728         * CheckedListBox.cs: Databinding support fixes, fire missing events
33729         * ListBox.cs: Databinding support fixes, fire missing events
33730         
33731 2005-04-25  Peter Bartok  <pbartok@novell.com>
33732
33733         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
33734
33735 2005-04-25  Jackson Harper  <jackson@ximian.com>
33736
33737         * TreeView.cs: Use the horizontal scrollbars height not width when
33738         determining how much of the client area is available.
33739
33740 2005-04-25  Jackson Harper  <jackson@ximian.com>
33741
33742         * Control.cs: Double buffering is handled differently now. As per
33743         the spec, the extra buffer is created in the WM_PAINT message and
33744         passed down to the control's drawing code.
33745         * GroupBox.cs:
33746         * Label.cs:
33747         * CheckBox.cs:
33748         * ProgressBar.cs:
33749         * RadioButton.cs:
33750         * ColorDialog.cs:
33751         * ComboBox.cs:
33752         * PropertyGridView.cs:
33753         * UpDownBase.cs:
33754         * MessageBox.cs:
33755         * MenuAPI.cs:
33756         * ListView.cs:
33757         * ButtonBase.cs:
33758         * SizeGrip.cs:
33759         * ScrollBar.cs:
33760         * ListBox.cs:
33761         * TrackBar.cs:
33762         * ToolBar.cs:
33763         * PictureBox.cs:
33764         * DateTimePicker.cs:
33765         * StatusBar.cs:
33766         * TreeView.cs: Update to new double buffering system.
33767         * MonthCalendar.cs: Uncomment block, as Capture is now
33768         working. Update to new double buffering
33769         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
33770         * PaintEventArgs.cs: New internal method allows us to set the
33771         graphics object. This is used for double buffering.
33772         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
33773         rectangle. The internal paint_area var has been removed from
33774         StatusBar. The clipping rect should be used instead.
33775         * Theme.cs: Give the PictureBox drawing method a clipping rect.
33776         * TabPage.cs: The RefreshTabs method was removed, so just call the
33777         tab controls Refresh method now.
33778         * TabControl.cs: Update to new double buffering. Make sure the
33779         handle is created before sizing the tab pages, otherwise we will
33780         get stuck in a loop.
33781
33782 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
33783
33784         * LinkLabel.cs: Fix typo, bug #74719; patch
33785           from Borja Sanchez Zamorano
33786
33787 2005-04-22  Jackson Harper  <jackson@ximian.com>
33788
33789         * TreeNode.cs: Implement Handle stuff.
33790         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
33791
33792 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
33793
33794         * DataGridTextBoxColumn.cs: call base constructors, fixes
33795         * GridColumnStylesCollection.cs: missing events, methods, and functionality
33796         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
33797         * DataGridTableStyle.cs: implements create default column styles
33798         * DataGridBoolColumn.cs: which types can handle
33799         * DataGrid.cs: missing methods, fixes, new functionality
33800         * DataGridColumnStyle.cs: fixes
33801
33802 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
33803         * FolderBrowserDialog.cs:
33804         - Use a thread to fill the TreeView
33805         - Adjusted some sizes
33806
33807 2005-04-19  Peter Bartok  <pbartok@novell.com>
33808
33809         * LinkLabel.cs: (Re-)create the pieces when setting the Text
33810           property. Fixes #74360.
33811
33812 2005-04-19  Jackson Harper  <jackson@ximian.com>
33813
33814         * XEventQueue.cs: Lock when getting the lockqueue size.
33815         * PictureBox.cs: Call base OnPaint
33816         
33817 2005-04-19  Peter Bartok  <pbartok@novell.com>
33818
33819         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
33820           messages were no longer being processed (this broke BeginInvoke)
33821
33822           
33823 2005-04-18  Jackson Harper  <jackson@ximian.com>
33824
33825         * TreeView.cs: buglet that caused node images to get drawn
33826         regardless of whether or not they were in the clipping rectangle.
33827
33828 2005-04-18  Jackson Harper  <jackson@ximian.com>
33829
33830         * CurrencyManager.cs: There are four rules for GetItemProperties:
33831         - If the type is an array use the element type of the array
33832         - If the type is a typed list, use the type
33833         - If the list contains an Item property that is not an object, use
33834         that property
33835         - use the first element of the list if there are any elements in
33836         the list.
33837         
33838 2005-04-17  Jackson Harper  <jackson@ximian.oom>
33839
33840         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
33841         click. This handles offsets for scrolling properly and reduces
33842         memory. Also fixed GetNode to not offset now that TopNode works
33843         properly.
33844         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
33845         
33846 2005-04-17  Jackson Harper  <jackson@ximian.com>
33847
33848         * CursorConverter.cs: Initial implementation.
33849
33850 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
33851
33852         * ListControl.cs: work towards complex data binding support on ListControl
33853         * CurrencyManager.cs: work towards complex data binding support on ListControl
33854         * ListBox.cs: work towards complex data binding support on ListControl
33855
33856
33857 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
33858
33859         * GridTableStylesCollection.cs: fixes name and constructor
33860         * DataGridTableStyle.cs: fixes
33861         * DataGridBoolColumn.cs: fixes names and constructors
33862         * DataGrid.cs: define methods and properties. Some init implementations
33863         * DataGridCell.cs: define methods and properties. Some init implementations
33864         * GridTablesFactory.cs: Define methods and properties
33865
33866 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
33867
33868         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
33869         graphics port changes.  We still want the coordinates in global screen
33870         coordinates.
33871
33872 2005-04-14  Jackson Harper  <jackson@ximian.com>
33873
33874         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
33875         check plus minus or checkbox clicks unless those features are enabled.
33876
33877 2005-04-14  Jackson Harper  <jackson@ximian.com>
33878
33879         * TreeView.cs: Add methods for setting the top and bottom visible
33880         nodes. TreeNode::EnsureVisible uses these methods.
33881         * TreeNode.cs: Implement EnsureVisible
33882
33883 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
33884
33885         * Form.cs: Pospone menu assignation if the window has not been created yet
33886         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
33887         size and position
33888
33889 2005-04-12  Jackson Harper  <jackson@ximian.com>
33890
33891         * TreeView.cs: Set the TopNode properly when scrolling
33892         occurs. This has the added benifit of reducing the amount of
33893         walking that needs to be done when drawing. Also removed an old
33894         misleading TODO.
33895         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
33896         
33897 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
33898
33899         * Timer.cs: fixes interval setting when the timer is already enabled
33900         
33901 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
33902
33903         * FolderBrowserDialog.cs: First approach
33904
33905 2005-04-09  Peter Bartok  <pbartok@novell.com>
33906
33907         * FolderBrowserDialog: Added
33908
33909 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
33910
33911         * LinkLabel.cs: move drawing code into the theme
33912         * ThemeWin32Classic.cs: drawing code and painting background bugfix
33913         * Theme.cs: define DrawLinkLabel method
33914
33915 2005-04-05  Jackson Harper  <jackson@ximian.com>
33916
33917         * BindingContext.cs: Use weak references so these bad actors don't
33918         stay alive longer then they need to.
33919
33920 2005-04-05  Jackson Harper  <jackson@ximian.com>
33921
33922         * ListControl.cs: Basic implementation of complex databinding.
33923         * ComboBox.cs:
33924         * ListBox.cs: Add calls to ListControl databinding methods.
33925
33926 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
33927
33928         * FileDialog.cs:
33929           - Don't change PopupButtonState to Normal when the
33930             PopupButton gets pressed several times.
33931           - Renamed ButtonPanel to PopupButtonPanel
33932
33933 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
33934
33935         * ColorDialog.cs: Use cached objects instead of creating them
33936         * LinkLabel.cs: Use cached objects instead of creating them
33937         * Splitter.cs: Use cached objects instead of creating them
33938         * FontDialog.cs: Use cached objects instead of creating them
33939         * PropertyGridView.cs: Use cached objects instead of creating them
33940         * MessageBox.cs: Use cached objects instead of creating them
33941         * FileDialog.cs: Use cached objects instead of creating them
33942         * ThemeWin32Classic.cs: Use cached objects instead of creating them
33943         * TreeView.cs: Use cached objects instead of creating them
33944         
33945 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
33946
33947         * Control.cs: use Equals to compare the font since no == op
33948         * ScrollBar.cs: use Equals to compare the font since no == op
33949
33950 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
33951
33952         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
33953
33954 2005-04-01  Jackson Harper  <jackson@ximian.com>
33955
33956         * Binding.cs: Implement IsBinding.
33957         * BindingManagerBase.cs:
33958         * PropertyManager.cs:
33959         * CurrencyManager.cs: Add IsSuspended property.
33960
33961 2005-04-01  Jackson Harper  <jackson@ximian.com>
33962
33963         * Binding.cs: Had some IsAssignableFrom calls backwards.
33964
33965 2005-04-01  Jackson Harper  <jackson@ximian.com>
33966
33967         * Binding.cs: Handle null data members when pulling data.
33968         * PropertyManager.cs: Handle the data member being a property that
33969         does not exist.
33970
33971 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
33972
33973         * DataGridTextBoxColumn.cs: fixes signature
33974         * DataGrid.cs: calls right constructor
33975
33976 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
33977
33978         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
33979         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
33980         * GridTableStylesCollection.cs: implements GridTableStylesCollection
33981         * DataGridTableStyle.cs: implements DataGridTableStyle
33982         * DataGridBoolColumn.cs: implements DataGridBoolColumn
33983         * DataGridTextBox.cs: implements DataGridTextBox
33984         * DataGridColumnStyle.cs: implements DataGridColumnStyle
33985
33986 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
33987
33988         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
33989
33990 2005-03-29  Peter Bartok  <pbartok@novell.com>
33991
33992         * Application.cs:
33993           - Properly implemented CompanyName property
33994           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
33995             returns a path that includes CompanyName, ProductName and
33996             Version (fixes bug #70330)
33997
33998 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
33999
34000         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
34001           fixes bug #72588.
34002
34003 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
34004
34005         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
34006         
34007           - Added ReadOnly CheckBox
34008           - Further refactoring: moved some code from Open-/SaveFileDialog
34009             to FileDialog
34010
34011 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
34012
34013         * OpenFileDialog.cs: Fixed CheckFileExists
34014         * FileDialog.cs:
34015           Moved FileView and DirComboBox outside FileDialog class.
34016           They can now be used outside FileDialog
34017
34018 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34019
34020         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
34021         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
34022
34023 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34024
34025         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34026           - Added missing CreatePrompt property in SaveDialog
34027           - Overall SaveDialog handling should be better now
34028           - Added non standard ShowHiddenFiles property
34029           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
34030           - Added InitialDirectory and RestoreDirectory support
34031
34032 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
34033
34034         * FileDialog.cs: Made dirComboBox usable
34035
34036 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
34037
34038         * FileDialog.cs: Added Filter support (case sensitiv)
34039
34040 2005-03-24  Jackson Harper  <jackson@ximian.com>
34041
34042         * TabControl.cs: Need a couple more pixels for the lines.
34043
34044 2005-03-23  Jackson Harper  <jackson@ximian.com>
34045
34046         * TabControl.cs: Give the tab page focus when it is selected.
34047
34048 2005-03-23  Jackson Harper  <jackson@ximian.com>
34049
34050         * TabControl.cs: Account for the drawing of tabs borders when
34051         invalidating. If the slider was clicked dont do click detection on
34052         the tabs.
34053
34054 2005-03-23  Jackson Harper  <jackson@ximian.com>
34055
34056         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
34057
34058 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
34059
34060         * CategoryGridEntry.cs: Added
34061         * GridItem.cs: Added helper properties
34062         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
34063         * GridEntry.cs: Updated code for collection
34064         * PropertyGrid.cs: Cleaned up some formatting
34065         * PropertyGridView.cs: Added drop down functionality for enums.
34066         * GridItemCollection.cs: Added enumerator logic
34067         * PropertyGridEntry.cs: Added
34068
34069 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34070
34071         * FileDialog.cs:
34072           - Removed unnecessary commented code
34073           - Fixed handling for entering the filename manually in the combobox
34074
34075 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34076
34077         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
34078
34079 2005-03-18  Peter Bartok  <pbartok@novell.com>
34080
34081         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
34082           them being touching the border
34083
34084 2005-03-18  Peter Bartok  <pbartok@novell.com>
34085
34086         * TextControl.cs: Quick hack to center text better
34087
34088 2005-03-18  Peter Bartok  <pbartok@novell.com>
34089
34090         * ControlPaint.cs:
34091           - Don't throw NotImplemented exceptions, just print a notice once
34092             instead (requested by Miguel). This makes running existing SWF
34093             apps a bit easier
34094         * Control.cs:
34095           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
34096           - Added context menu trigger on right click
34097         * Panel.cs: Trigger invalidate on resize
34098         * StatusBar.cs:
34099           - Removed old double-buffer drawing
34100           - Added ResizeRedraw style to force proper update of statusbar
34101         * ListView.cs:
34102           - Removed debug output
34103         * ThemeWin32Classic.cs:
34104           - Fixed drawing of status bar, now draws Text property if there
34105             are no defined panels
34106
34107 2005-03-18  Jackson Harper  <jackson@ximian.com>
34108
34109         * ImageList.cs: When the image stream is set pull all the images
34110         from it.
34111         * ImageListStreamer.cs: Implement reading image list streams.
34112
34113 2005-03-18  Peter Bartok  <pbartok@novell.com>
34114
34115         * ThemeWin32Classic.cs (DrawPictureBox):
34116           - Fixed calculations for centered drawing
34117           - Fixed drawing for normal mode, not scaling the image on normal
34118
34119 2005-03-18  Peter Bartok  <pbartok@novell.com>
34120
34121         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
34122           textbox
34123         * FileDialog.cs:
34124           - Made Open/Save button the accept button for FileDialog
34125           - Tied the cancel button to the IButtonControl cancel button
34126           - Save/Open now properly builds the pathname
34127           - Now handles user-entered text
34128           - Preventing crash on right-click if no item is selected
34129           - Fixed Text property, now uses contents of textbox
34130           - Fixed SelectedText property, now just returns the text part that
34131             is selected in the text box
34132
34133 2005-03-18  Jackson Harper  <jackson@ximian.com>
34134
34135         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
34136         rect, make sure to de-adjust the interior rect after drawing the
34137         tab text.
34138
34139 2005-03-18  Peter Bartok  <pbartok@novell.com>
34140
34141         * MenuAPI.cs: Remove menu *before* executing selected action to
34142           prevent the menu from 'hanging around'
34143           
34144 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
34145
34146         * XplatUIOSX.cs: Implemented WorkingArea property
34147
34148 2005-03-17  Peter Bartok  <pbartok@novell.com>
34149
34150         * XplatUIX11.cs: Fixed menu coord calculations
34151         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
34152           for calculating offsets
34153
34154 2005-03-17  Peter Bartok  <pbartok@novell.com>
34155
34156         * Hwnd.cs: Do not consider menu presence for default client
34157           rectangle location/size
34158         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
34159           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
34160           translation functions
34161         * FileDialog.cs: Fixed (what I presume is a) typo
34162
34163 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
34164
34165         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
34166           X access (avoids X-Async errors)
34167
34168 2005-03-16  Jackson Harper  <jackson@ximian.com>
34169
34170         * TabControl.cs: Raise the SelectedIndexChanged event.
34171
34172 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
34173
34174         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34175           - Removed vertical ToolBar and replaced it with a custom panel
34176             (desktop and home button already work)
34177           - Added Help button (some controls get resized or relocated then)
34178           - Draw correct text depending on Open or Save.
34179           - Fixed some typos...
34180
34181 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
34182
34183         * ScrollBar.cs:
34184           - Only change Maximum and Minimum when need it (bug fix)
34185
34186 2005-03-15  Peter Bartok  <pbartok@novell.com>
34187
34188         * Form.cs: Use Handle for icon, to trigger creation if
34189           the window does not yet exist
34190         * Control.cs:
34191           - CanSelect: Slight performance improvement
34192           - Focus(): Preventing possible recursion
34193           - Invalidate(): Removed ControlStyle based clear flag setting
34194           - WM_PAINT: fixed logic for calling OnPaintBackground
34195           - WM_ERASEBKGND: Fixed logic, added call to new driver method
34196             EraseWindowBackground if the control doesn't paint background
34197         * XplatUIWin32.cs:
34198           - Moved EraseWindowBackground() method to internal methods
34199           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
34200             is sent via SendMessage on BeginPaint call on Win32
34201         * XplatUIX11.cs:
34202           - Added EraseWindowBackground() method
34203           - No longer sends WM_ERASEBKGND on .Expose, but on call to
34204             PaintEventStart, which more closely matches Win32 behaviour
34205           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
34206           - Fixed SetFocus() to properly deal with client and whole windows
34207         * Hwnd.cs: Added ErasePending property
34208         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
34209         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
34210
34211 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
34212
34213         * XplatUIOSX.cs:
34214           - Fix hard loop when timers exist.
34215           - Fix bugs with middle and right click for 3 button mice.
34216
34217 2005-03-11  Peter Bartok  <pbartok@novell.com>
34218
34219         * XplatUIX11.cs:
34220           - get_WorkingArea: Need to call X directly, GetWindowPos only
34221             returns cached data now
34222           - Added sanity check to GetWindowPos hwnd usage
34223
34224 2005-03-11  Jackson Harper  <jackson@ximian.com>
34225
34226         * BindingManagerBase.cs: This method isn't used anymore as
34227         PullData now updates the data in the control.
34228
34229 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
34230
34231         * Form.cs: fixes menu drawing on X11
34232         * MenuAPI.cs:  fixes menu drawing on X11
34233
34234 2005-03-11  Peter Bartok  <pbartok@novell.com>
34235
34236         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
34237           from Jonathan Gilbert; should fix bug #73606
34238         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
34239           in Screen coordinates. Thanks, Jordi.
34240         * Form.cs: Added missing attribute
34241
34242 2005-03-11  Peter Bartok  <pbartok@novell.com>
34243
34244         * Form.cs:
34245           - Rudimentary Mdi support
34246           - Removed outdated FormParent code
34247           - Implemented lots of missing properties and methods, still missing
34248             transparency support
34249           - Added missing attributes
34250           - Implemented support for MaximumBounds
34251           - Added firing of various events
34252         * XplatUI.cs: Added SetIcon() method
34253         * XplatUIDriver.cs: Added SetIcon() abstract
34254         * XplatUIOSX.cs: Stubbed out SetIcon() method
34255         * XplatUIX11.cs:
34256           - Implemented SetIcon() support
34257           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
34258           - Switched to unix line endings
34259         * XplatUIWin32.cs:
34260           - Made POINT internal so for can access it as part of MINMAX
34261           - Implemented SetIcon() support
34262           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
34263             native Mdi support again, might have to go managed)
34264         * Control.cs: Now fires the StyleChanged event
34265         * MdiClient.cs: Added; still mostly empty
34266
34267 2005-03-10  Peter Bartok  <pbartok@novell.com>
34268
34269         * SaveFileDialog.cs: Added emtpy file
34270
34271 2005-03-08  Peter Bartok  <pbartok@novell.com>
34272
34273         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
34274           in turn triggers OnCreateContro) when creating a handle for the
34275           first time.
34276         * TextControl.cs: Fixed endless loop in certain cases when
34277           replacing the current selection
34278
34279 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
34280
34281         * ScrollBar.cs:
34282           - Honors NewValue changes in Scroll events allowing apps to change it
34283           - Adds First and Last Scroll events
34284           - Fixes Thumb events
34285
34286 2005-03-07  Peter Bartok  <pbartok@novell.com>
34287
34288         * Hwnd.cs: Added DefaultClientRectangle property
34289         * XplatUI.cs: Now using the X11 driver Where() method, which provides
34290           more detailed debug information
34291         * XplatUIX11.cs:
34292           - Fixed size-change feedback loop, where we would pull an old size
34293             off the queue and mistakenly change our window's size to an
34294             earlier value
34295           - Now compressing ConfigureNotify events, to reduce looping and
34296             redraw issues
34297         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
34298           is called
34299
34300 2005-03-07  Jackson Harper  <jackson@ximian.com>
34301
34302         * Binding.cs: Push data pushes from data -> property. Check if the
34303         property is readonly when attempting to set it.
34304
34305 2005-03-07  Jackson Harper  <jackson@ximian.com>
34306
34307         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
34308         instead of IsSubclassOf. Pulling data now sets the value on the
34309         control.
34310         * PropertyManager.cs:
34311         * CurrencyManager.cs: Just need to pull data when updating now,
34312         because PullData will set the value on the control.
34313
34314 2005-03-04  Jackson Harper  <jackson@ximian.com>
34315
34316         * Binding.cs: Implement data type parsing and converting on pulled
34317         data. TODO: Are there more ways the data can be converted?
34318
34319 2005-03-04  Jackson Harper  <jackson@ximian.com>
34320
34321         * Binding.cs: Support <Property>IsNull checks. Also bind to the
34322         controls Validating method so we can repull the data when the
34323         control loses focus.
34324
34325 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
34326
34327         * ColumnHeader.cs:
34328           - Fixes null string format
34329           
34330         * ListView.cs:
34331           - Adds enum type checks
34332           - Fixes redrawing and recalc need after changing some properties
34333           - Fixes on focus_item set after the event
34334           - Fixes adding columns after the control has been created
34335           
34336         * ThemeWin32Classic.cs:
34337           - Fixes CheckBox focus rectangle
34338           - Fixes ColumnHeader drawing
34339
34340
34341 2005-03-03  Jackson Harper  <jackson@ximian.com>
34342
34343         * Binding.cs: Bind to <Property>Changed events so we can detect
34344         when properties are changed and update the data.
34345
34346 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
34347
34348         * ImageList.cs:
34349           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
34350           - Fixes ImageList constructor with ImageList container
34351           - Fixes image scaling (wrong parameters at DrawImage)
34352
34353 2005-02-02  Jackson Harper  <jackson@ximian.com>
34354
34355         * Binding.cs: Make property searches case-insensitive. Eliminate
34356         some duplicated code.
34357
34358 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
34359
34360         * ComboBox.cs:
34361                 - Handle focus event
34362                 - Fix scrollbar events
34363                 - Discard highlighted item if remove it
34364                 - Fixes SelectedItem with strings
34365
34366 2005-03-01  Peter Bartok  <pbartok@novell.com>
34367
34368         * Control.cs:
34369           - Fixed Visible property, now follows (once again) parent chain
34370             to return false if any control in the chain is visible=false
34371           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
34372           - Fixed several places where is_visible instead of Visible was used
34373           - Implemented FIXME related to focus selection when setting focused
34374             control to be invisible
34375
34376         * XplatUIWin32.cs: Now using proper method to find out if window is
34377           visible. Thanks to Jordi for pointing it out
34378
34379 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
34380
34381         * ComboBox.cs: show/hide scrollbar instead of creating it
34382
34383 2005-02-27  Jackson Harper  <jackson@ximian.com>
34384
34385         * CurrencyManager.cs: Add PositionChanged stuff.
34386
34387 2005-02-27  Peter Bartok  <pbartok@novell.com>
34388
34389         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
34390         * XplatUIOSX.cs: Added GetMenuOrigin() stub
34391         * XplatUIWin32.cs: Implemented GetMenuOrigin()
34392         * XplatUIX11.cs:
34393           - Implemented GetMenuDC()
34394           - Implemented GetMenuOrigin()
34395           - Implemented ReleaseMenuDC()
34396           - Implemented generation of WM_NCPAINT message
34397           - Implemented generation and handling of WM_NCCALCSIZE message
34398         * Form.cs: Added debug helper message for Jordi's menu work
34399         * Hwnd.cs:
34400           - Modified ClientRect property; added setter, fixed getter to handle
34401             setting of ClientRect
34402           - Added MenuOrigin property
34403
34404 2005-02-26  Peter Bartok  <pbartok@novell.com>
34405
34406         * XplatUIX11.cs:
34407           - Destroys the caret if a window that's being destroyed contains it
34408           - Ignores expose events coming from the X11 queue for windows that
34409             already are destroyed
34410           - Now uses the proper variable for handling DestroyNotify, before we
34411             marked the wrong window as destroyed
34412           - Improved/added some debug output
34413
34414 2005-02-26  Peter Bartok  <pbartok@novell.com>
34415
34416         * X11Keyboard.cs: Fixes to work on 64bit systems
34417
34418 2005-02-26  Peter Bartok  <pbartok@novell.com>
34419
34420         * Control.cs:
34421           - Now calling OnHandleDestroyed from DestroyHandle()
34422             instead of Dispose()
34423           - Removed bogus call to controls.Remove() from DestroyHandle()
34424
34425 2005-02-26  Peter Bartok  <pbartok@novell.com>
34426
34427         * Control.cs: Properly destroy child windows when our handle is
34428           destroyed
34429
34430 2005-02-25  Peter Bartok  <pbartok@novell.com>
34431
34432         * XplatUI.cs:
34433           - Added 'DriverDebug' define to allow tracing XplatUI API calls
34434           - Alphabetized Static Methods and Subclasses
34435
34436         * XplatUIX11.cs:
34437           - Added XException class to allow custom handling of X11 exceptions
34438           - Created custom X11 error handler, tied into XException class
34439           - Added support for MONO_XEXCEPTIONS env var to allow the user
34440             to either throw an exception on X errors or continue running
34441             after displaying the error
34442           - Added handling of DestroyNotify message
34443           - Added handler for CreateNotify message (still disabled)
34444           - Improved (tried to at least) Where method to provide file and lineno
34445         * X11Structs.cs:
34446           - Added XErrorHandler delegate
34447           - Added XRequest enumeration (to suppor translation of errors)
34448
34449 2005-02-25  Jackson Harper  <jackson@ximian.com>
34450
34451         * PropertyManager.cs: Implement editing features
34452         * CurrencyManager.cs:
34453         * Binding.cs: First attempt at UpdateIsBinding
34454         * BindingManagerBase.cs: Call UpdateIsBinding before
34455         pushing/pulling data.
34456
34457 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
34458
34459         * MenuAPI.cs: Respect disabled items
34460         * ThemeWin32Classic.cs
34461                 - Caches ImageAttributes creation for DrawImageDisabled
34462                 - Fixes vertical menu line drawing
34463                 - Draws disabled arrows in disable menu items
34464
34465 2005-02-24  Peter Bartok  <pbartok@novell.com>
34466
34467         * Hwnd.cs:
34468           - Added UserData property to allow associating arbitrary objects
34469             with the handle
34470           - Fixed leak; now removing Hwnd references from static windows array
34471         * XplatUIWin32.cs:
34472           - Fixed Graphics leak in PaintEventEnd
34473           - Removed usage of HandleData, switched over to Hwnd class
34474         * HandleData.cs: Removed, obsoleted by Hwnd.cs
34475
34476 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
34477
34478         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
34479         * ScrollBar.cs: Fixes bug
34480         * TrackBar.cs: removes death code, clipping, mimize refreshes,
34481          keyboard navigation enhancements
34482
34483 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
34484
34485         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
34486         * GroupBox.cs: Add control styles
34487         * Label.cs: Add control styles
34488         * UpDownBase.cs: Add control styles
34489         * ListBox.cs: Add control styles
34490         * XplatUIWin32.cs: Fixes wrong parameter order
34491
34492
34493 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
34494
34495         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
34496
34497 2005-02-23  Jackson Harper  <jackson@ximian.com>
34498
34499         * PropertyManager.cs: Implement property binding. This doesn't
34500         seem to work yet though as (I think) there are some bugs in
34501         System.ComponentModel.PropertyDescriptor.
34502         * BindingContext.cs: Use new PropertyManager constructor.
34503
34504 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
34505
34506         * ProgressBar.cs: use clip region in ProgressBar
34507         * ThemeWin32Classic.cs: use clip region in ProgressBar
34508
34509 2004-02-22  Jackson Harper  <jackson@ximian.com>
34510
34511         * BindingsCollection.cs: Remove some debug code.
34512
34513 2005-02-22  Jackson Harper  <jackson@ximian.com>
34514
34515         * BindingContext.cs:
34516         * ControlBindingsCollection.cs:
34517         * CurrencyManager.cs:
34518         * Binding.cs:
34519         * BindingManagerBase.cs: Initial implementation
34520         * BindingsCollection.cs: Add an internal contains method that the
34521         BindingManagerBase uses to ensure bindings aren't added twice to
34522         the collection.
34523         * PropertyManager.cs: Stubbed out.
34524         * Control.cs:
34525         * ContainerControl.cs: Hook up databinding
34526         
34527 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
34528
34529         * XplatUIOSX.cs:
34530           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
34531           Fixed Invalidate/Update chain.
34532           Fixed tons of other minor bugs (this is almost a complete rewrite).
34533
34534 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
34535
34536         * ComboBox.cs: do subcontrol creation when the control is created
34537
34538 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34539
34540         * Label.cs: fixes image drawing (image and imagelist)
34541         * ThemeWin32Classic.cs: cache brushes
34542         
34543 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34544
34545         * Form.cs: Move menu drawing code to Theme class
34546         * ComboBox.cs: Move ComboBox drawing code to Theme class
34547         * MenuItem.cs: Move menu drawing code to Theme class
34548         * MenuAPI.cs: Move menu drawing code to Theme class
34549         * ThemeWin32Classic.cs: New methods
34550         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
34551         * ListBox.cs: Move Listbox drawing code to Theme class
34552         * Theme.cs: New methods
34553
34554 2005-02-20  Peter Bartok  <pbartok@novell.com>
34555
34556         * Control.cs:
34557           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
34558             only process mnemonics on those)
34559           - Fixed event sequence for key handling; first calling
34560             ProcessKeyEventArgs now
34561         * TextBoxBase.cs:
34562           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
34563             for processing non-character keys
34564           - Fixed WM_CHAR to generate proper event sequence before processing
34565         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
34566           generation
34567
34568 2005-02-19  Peter Bartok  <pbartok@novell.com>
34569
34570         * UserControl.cs: Added TextChanged event; added attributes
34571         * SizeGrip.cs: Implemented resizing and optional display of grip
34572         * Form.cs: Fixed attribute
34573         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
34574           Changed meaning of ScrollWindow bool argument; instead of the
34575           clear attribute (which will be true usually anyway), it gives the
34576           option of moving child controls as well.
34577         * XplatUIX11.cs:
34578           - Changed to match new ScrollWindow argument
34579           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
34580             now handles the implicit parent window a WM puts around us
34581         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
34582           to work)
34583         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
34584         * TreeView.cs: Adjusted to new ScrollWindow arguments
34585
34586 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34587
34588         * Form.cs: Menu integration with non-client area
34589         * MenuItem.cs: Menu integration with non-client area
34590         * MenuAPI.cs: Menu integration with non-client area
34591
34592 2005-02-18  Peter Bartok  <pbartok@novell.com>
34593
34594         * MethodInvoker.cs: Added
34595         * MdiLayout.cs: Added
34596         * SendKeys.cs: Started implementation
34597         * ErrorIconAlignment.cs: Added
34598
34599 2005-02-18  Peter Bartok  <pbartok@novell.com>
34600
34601         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
34602         * Form.cs: Added handling for Menu-related Non-client messages
34603
34604 2005-02-17  Peter Bartok  <pbartok@novell.com>
34605
34606         * UpDownBase.cs: Fixed typo, compilation errors
34607         * DomainUpDown.cs: Fixed attribute value
34608
34609 2005-02-16  Miguel de Icaza  <miguel@novell.com>
34610
34611         * UpDownBase.cs: Attach entry events.
34612         Propagate events.
34613         Add ForeColor property, Focused, InterceptArrowKeys (interception
34614         does not work yet).
34615
34616 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
34617
34618         * Form.cs:
34619                 - Redraw non client are on Setmenu
34620                 - Calc proper menu starting point
34621
34622 2005-02-17  Peter Bartok  <pbartok@novell.com>
34623
34624         * Application.cs: Fixed message_filter check
34625
34626 2005-02-17  Peter Bartok  <pbartok@novell.com>
34627
34628         * Application.cs: Now calls registered message filters
34629         * DockStyle.cs: Fixed attribute
34630         * Form.cs: Fixed attribute
34631         * Menu.cs: Fixed attribute
34632         * ToolTip.cs: Fixed attribute
34633         * TreeNode.cs: Added missing attributes and arranged in regions
34634         * PropertyGrid.cs: Fixed signatures
34635         * TreeNodeCollection.cs: Added attributes
34636         * Splitter.cs: Added missing attributes; arranged into regions
34637         * TabPage.cs: Added missing attributes; arranged into regions
34638         * TextBoxBase.cs: Added missing attributes
34639         * TextBox.cs: Added missing attributes
34640         * ArrangeDirection.cs: Added missing attributes
34641         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
34642         * ToolBarButton.cs: Fixed attributes
34643         * AnchorStyles.cs: Fixed attribute
34644         * TrackBar.cs: Fixed attributes
34645         * TabControl.cs: Added missing attributes and arranged into regions
34646         * ToolBar.cs: Fixed attribute
34647         * StatusBar.cs: Fixed signature, organized into regions and added
34648           attributes
34649         * StatusBarPanel.cs: Fixed attributes
34650         * ContentsResizedEventArgs.cs: Implemented
34651         * ContentsResizedEventHandler.cs: Implemented
34652         * DateBoldEventArgs.cs: Implemented
34653         * DateBoldEventHandler.cs: Implemented
34654         * UpDownEventArgs.cs: Implemented
34655         * UpDownEventHandler.cs: Implemented
34656         
34657 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
34658
34659         * Form.cs: first Menu NC refactoring
34660         * MenuAPI.cs: first Menu NC refactoring
34661         
34662 2005-02-16  Peter Bartok  <pbartok@novell.com>
34663
34664         * ImeMode.cs: Added missing attributes
34665         * Menu.cs: Fixed attribute
34666         * GroupBox.cs: Fixed attribute
34667         * Label.cs: Fixed attribute
34668         * ColorDialog.cs (RunDialog): Removed TODO attribute
34669         * ComboBox.cs: Fixed attributes
34670         * ListControl.cs: Added missing attributes
34671         * PropertyGrid.cs: Fixed attributes
34672         * Control.cs: Fixed attributes
34673         * ListViewItem.cs: Added TypeConverter attribute
34674         * NotifyIcon.cs: Fixed attributes
34675         * ListView.cs: Fixed attributes
34676         * ButtonBase.cs: Fixed attribute
34677         * ImageList.cs: Added missing attributes
34678         * ContainerControl.cs: Fixed signature
34679         * CheckedListBox.cs: Fixed attribute; added missing attributes
34680         * Panel.cs: Fixed attributes
34681         * PropertyTabChangedEventArgs.cs: Added missing attribute
34682         * PropertyValueChangedEventArgs.cs: Added missing attribute
34683         * Binding.cs: Fixed attribute
34684         * ListViewItemConverter: Implemented ListViewSubItemConverter class
34685         * ListBox.cs: Fixed attribute; added missing attributes;
34686         * ScrollableControl.cs: Added missing attributes
34687         * PictureBox.cs: Added missing attributes; implemented missing property
34688         * DateTimePicker.cs: Added missing attributes
34689         * Theme.cs (ToolWindowCaptionHeight): Fixed type
34690         * MonthCalendar.cs: Fixed attributes
34691         * StatusBarPanel.cs: Added missing attributes
34692         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
34693
34694 2005-02-16  Peter Bartok  <pbartok@novell.com>
34695
34696         * TextBoxBase.cs: The previous method to enforce height yet remember
34697           the requested high was less than ideal, this is an attempt to do
34698           it better.
34699         * Control.cs: Added comment about possible problem
34700         * Copyright: Updated format
34701         * GridItemType.cs: Fixed swapped values
34702
34703 2005-02-15  Jackson Harper  <jackson@ximian.com>
34704
34705         * BaseCollection.cs: Use property so we never access an
34706         uninitialized list. Also initialize the list in the property.
34707
34708 2005-02-15  Peter Bartok  <pbartok@novell.com>
34709
34710         * GroupBox.cs (ProcessMnemonic): Implemented
34711         * Label.cs (ProcessMnemonic): Implemented
34712         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
34713           hotkeys
34714
34715 2005-02-15  Peter Bartok  <pbartok@novell.com>
34716
34717         * RadioButton.cs (ProcessMnemonic): Implemented
34718         * CheckBox.cs (ProcessMnemonic): Implemented
34719         * Control.cs:
34720           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
34721             handling
34722           - Added internal method to allow calling ProcessMnemonic from other
34723             controls
34724         * ContainerControl.cs:
34725           - Started support for handling validation chain handling
34726           - Implemented ProcessMnemonic support
34727           - Added Select() call to Active, to make sure the active control
34728             receives focus
34729         * Form.cs: Setting toplevel flag for Forms (this was lost in the
34730           FormParent rewrite)
34731         * ThemeWin32Classic.cs:
34732           - DrawCheckBox(): Fixed stringformat to show hotkeys
34733           - DrawRadioButton(): Fixed stringformat to show hotkeys
34734         * CommonDialog.cs: Removed WndProc override, not needed
34735
34736 2005-02-14  Peter Bartok  <pbartok@novell.com>
34737
34738         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
34739           missed those in the rewrite
34740
34741 2005-02-14  Miguel de Icaza  <miguel@novell.com>
34742
34743         * NumericUpDown.cs (Increment, ToString): Add.
34744         (DecimalPlaces): implement.
34745         
34746         Add attributes.
34747         
34748         * UpDownBase.cs: Add the designer attributes.
34749
34750 2005-02-13  Peter Bartok  <pbartok@novell.com>
34751
34752         * Panel.cs: Removed border_style, now in Control
34753         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
34754           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
34755
34756 2005-02-13  Peter Bartok  <pbartok@novell.com>
34757
34758         * MouseButtons.cs: Added missing attributes
34759         * XplatUIStructs.cs: Added enumeration for title styles
34760         * LeftRightAlignment.cs: Added missing attributes
34761         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
34762           it compatible with Graphics.FromHwnd()
34763         * SelectedGridItemChangedEventArgs.cs: Fixed property type
34764         * Keys.cs: Added missing attributes
34765         * SelectionRange.cs: Added missing attributes
34766         * SelectionRangeConverter.cs: Added
34767         * XplatUI.cs:
34768           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
34769             ReleaseMenuDC methods
34770           - Renamed ReleaseWindow to UngrabWindow
34771           - Added proper startup notice to allow version identification
34772         * Form.cs:
34773           - Added missing attributes
34774           - Removed FormParent concept
34775         * Label.cs: Removed border_style field, now in Control
34776         * RadioButton.cs: Now properly selects RadioButton when focus is
34777           received
34778         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
34779         * Control.cs:
34780           - Added missing attributes
34781           - Added borderstyle handling
34782           - Removed FormParent concept support
34783           - Fixed calls to XplatUI to match changed APIs
34784           - Fixed bug that would case us to use disposed Graphics objects
34785           - Removed unneeded internal methods
34786           - PerformLayout(): Fixed to handle DockStyle.Fill properly
34787           - SelectNextControl(): Fixed to properly check common parents
34788         * TextBoxBase.cs: Removed border_style field (now in Control)
34789         * MessageBox.cs:
34790           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
34791             fixed calculations for form size
34792           - Added support for localized strings and icons
34793           - Improved form size calculations, added border
34794         * ListView.cs: Removed border_style field (now in Control)
34795         * X11Structs.cs: Moved several structs from X11 driver here
34796         * X11Keyboard.cs: Changed debug message
34797         * Application.cs: Removed FormParent concept support
34798         * CommonDialog.cs:
34799           - Resetting end_modal flag
34800           - Removed FormParent concept support
34801         * NativeWindow.cs: Removed FormParent concept support
34802         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
34803           Client area and Non-Client whole window to allow support for WM_NC
34804           messages
34805         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
34806           prevent using it until it supports Hwnd as per Geoff Norton's request
34807         * ToolBar.cs: Fixed drawing, was not doing proper drawing
34808         * PictureBox.cs: Removed border_style field, now in Control
34809         * XplatUIWin32.cs: Added new driver methods
34810
34811 2005-02-12  Peter Bartok  <pbartok@novell.com>
34812
34813         * OpacityConverter.cs: Implemented
34814         * Hwnd.cs: Internal class to support drivers that need to emulate
34815           client area/non-client area window behaviour
34816
34817 2005-02-11  Peter Bartok  <pbartok@novell.com>
34818
34819         * KeysConverter.cs: Implemented
34820
34821 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
34822
34823         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
34824         * LinkLabel: Added missing attributes
34825         * MainMenu.cs: fixes ToString
34826         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
34827         * ListBox.cs: fixes event position
34828         * TrackBar.cs: adds missing attributes and events
34829         
34830 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
34831
34832         * MenuItem.cs: Use SystemInformation and bug fixes
34833         * MenuAPI.cs: Use SystemInformation and bug fixes
34834
34835 2005-02-09  Jackson Harper  <jackson@ximian.com>
34836
34837         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
34838         their keystate otherwise things like VK_MENU get stuck "on".
34839
34840 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
34841
34842         * ListBox.cs: Fixes AddRange bug
34843         
34844 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
34845
34846         * ProgressBar.cs
34847                 - Add missing attributes
34848                 - Add missing method
34849                 
34850         * CheckedListBox.cs: Added missing attributes
34851                 - Add missing attributes
34852                 - Remove extra method
34853         
34854         * ComboBox.cs: Added missing attributes
34855         * VScrollBar.cs: Added missing attributes
34856         * ScrollBar.cs:  Added missing attributes
34857         * ListBox.cs: Fixes signature, add missing consts
34858         * LinkArea.cs:   Added missing attributes
34859         
34860
34861 2005-02-08  Peter Bartok  <pbartok@novell.com>
34862
34863         * Menu.cs: Added missing attributes
34864         * MainMenu.cs: Added missing attributes
34865         * GroupBox.cs: Added missing attributes
34866         * Label.cs: Added missing attributes
34867         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
34868         * ColorDialog.cs:
34869           - Added Instance and Options properties
34870           - Added missing attributes
34871         * Cursor.cs: Made Serializable
34872         * NotifyIcon: Added missing attributes
34873         * MenuItem.cs: Added missing attributes
34874         * TextBoxBase.cs: Implemented AppendText() and Select() methods
34875         * Panel.cs: Added Missing attributes
34876         * MonthCalendar.cs: Fixed CreateParams
34877
34878 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
34879         
34880         * LinkLabel.cs:
34881                 - Fixes signature
34882                 - Fixes issues with links
34883                 - Adds the class attributes
34884
34885 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
34886         
34887         * ComboBox.cs:
34888                 - Fixes button when no items available in dropdown
34889                 - Fixes repainting problems
34890                 - Adds the class attributes
34891                 
34892 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
34893
34894         * XplatUIOSX.cs: Detect the menu bar and title bar height from
34895         the current theme.  Cache these on startup.
34896
34897 2005-02-07  Jackson Harper  <jackson@ximian.com>
34898
34899         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
34900         the scrollbar buttons when they are depressed.
34901
34902 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
34903
34904         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
34905         Get the display size from the main displayid.  We currently dont
34906         support multiple display configurations.
34907
34908 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
34909
34910         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
34911
34912 2005-02-07  Miguel de Icaza  <miguel@novell.com>
34913
34914         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
34915
34916 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
34917
34918         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
34919
34920 2005-02-04  Jackson Harper  <jackson@ximian.com>
34921
34922         * ThemeWin32Classic.cs: Respect the clipping rect when
34923         drawing. Only fill the intersection of clips and rects so there
34924         isn't a lot of large fills.
34925         * ScrollBar.cs: Pass the correct clipping rect to the theme
34926         engine. Remove some debug code.
34927
34928 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
34929         
34930         * DateTimePicker.cs:
34931                 - Fixed crash on DateTime.Parse, use Constructor instead
34932
34933 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
34934         
34935         * MenuItem.cs:
34936         * MenuAPI.cs:
34937                 - Owner draw support (MeasureItem and DrawItem)
34938
34939 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
34940         
34941         *  Menu.cs:
34942                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
34943                 - Fixes MenuItems.Add range
34944         * MenuItem.cs:
34945                 - MergeMenu and Clone and CloneMenu functions
34946
34947 2005-02-03  Jackson Harper  <jackson@ximian.com>
34948
34949         * ScrollBar.cs: Make abstract
34950         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
34951         is abstract.
34952
34953 2005-02-03  Jackson Harper  <jackson@ximian.com>
34954
34955         * ScrollBar.cs: First part of my scrollbar fixups. This removes
34956         all the unneeded refreshes and uses invalidates with properly
34957         computed rects.
34958
34959 2005-02-03  Peter Bartok  <pbartok@novell.com>
34960
34961         * ComponentModel.cs: Added
34962         * IDataGridEditingService.cs: Added
34963         * Timer.cs: Added missing attributes
34964         * ToolTip.cs: Added missing attributes
34965
34966 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
34967
34968         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
34969
34970 2005-02-03  Peter Bartok  <pbartok@novell.com>
34971
34972         * ListBox.cs: Added missing attributes
34973
34974 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
34975         
34976         * ListBox.cs:
34977                 - Fixes font height after font change
34978                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
34979                 
34980 2005-02-02  Peter Bartok  <pbartok@novell.com>
34981
34982         * HandleData.cs: Introduced static methods to allow class
34983           to be more self-contained and track it's own HandleData objects
34984         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
34985           HandleData to use new static methods
34986
34987 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
34988
34989         * Combobox.cs:
34990                 - Fixes default size and PreferredHeight
34991                 - Missing events
34992                 - ObjectCollection.Insert implementation
34993                 
34994         * ListControl.cs
34995                 - Fixes signature
34996         * ListBox.cs:
34997                 - Several fixes
34998                 - ObjectCollection.Insert implementation
34999                 - No selection after clean
35000                 - Small fixes
35001
35002 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
35003
35004         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
35005
35006 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
35007
35008         * Combobox.cs:
35009                 - Caches ItemHeight calculation for OwnerDrawVariable
35010                 - Handles dropdown properly
35011                 - Fixes several minor bugs
35012
35013 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35014
35015         * ListBox.cs:
35016                 - Fixes 71946 and 71950
35017                 - Fixes changing Multicolumn on the fly
35018                 - Fixes keyboard navigation on Multicolumn listboxes
35019
35020 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35021         
35022         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
35023         crash reporter log.
35024
35025 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35026
35027         * XplatUIOSX.cs: Allow applications to actually exit.
35028
35029 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35030
35031         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
35032         their parent at creation time rather than lazily later.  Fixes a major
35033         regression we were experiencing.
35034
35035 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
35036
35037         * ThemeWin32Classic.cs: more date time picker painting fixes
35038         * DateTimePicker.cs: more monthcalendar drop down fixes
35039         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
35040
35041 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35042
35043         * ScrollBar.cs:
35044                 - When moving the thumb going outside the control should stop the moving
35045                 - Adds the firing of missing events
35046                 - Fixes no button show if Size is not specified
35047                 - End / Home keys for keyboard navigation
35048
35049 2005-01-30  Peter Bartok  <pbartok@novell.com>
35050
35051         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
35052           sanity check to prevent theoretical loop
35053         * XplatUIWin32.cs (SetVisible): Removed debug output
35054         * XplatUIX11.cs (SystrayChange): Added sanity check
35055         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
35056         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
35057           behaviour, valid until the X11 client window rewrite is done
35058         * TextBox.cs (ctor): Setting proper default foreground and background
35059           colors
35060
35061 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
35062
35063         * Theme: Added DrawDateTimePicker to interface
35064         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
35065         * DateTimePicker.cs: Created (still needs keys and painting code)
35066         * DateTimePickerFormat.cs: added
35067         * MonthCalendar.cs: fixed CreateParams for popup window mode
35068           
35069 2005-01-29  Peter Bartok  <pbartok@novell.com>
35070
35071         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
35072           this should also the calculations for ligher/darker
35073         * Theme.cs: Fixed defaults for ScrollBar widths/heights
35074
35075 2005-01-29  Peter Bartok  <pbartok@novell.com>
35076
35077         * ArrangeDirection.cs: Added
35078         * ArrangeStartingPositon.cs: Added
35079         * SystemInformation.cs: Implemented
35080         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35081           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
35082           used by SystemInformation class
35083         * X11Strucs.cs: Added XSizeHints structure
35084         * MenuAPI.cs:
35085           - Fixed CreateParams to make sure the menu window is always visible
35086           - TrackPopupMenu: Added check to make sure we don't draw the
35087             menu offscreen
35088
35089 2005-01-29  Peter Bartok  <pbartok@novell.com>
35090
35091         * HandleData.cs: Added method for altering invalid area
35092         * TextBoxBase.cs: Implemented TextLength
35093
35094 2005-01-28  Peter Bartok  <pbartok@novell.com>
35095
35096         * XplatUIX11.cs: Improvement over last patch, not sending
35097           the WM_PAINT directly anymore, instead we scroll any pending
35098           exposed areas and let the system pick out the WM_PAINT later
35099
35100 2005-01-28  Peter Bartok  <pbartok@novell.com>
35101
35102         * SWF.csproj: Deleted, no longer used. Instead,
35103           Managed.Windows.Forms/SWF.csproj should be used
35104         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
35105           directly, to avoid a potential race condition with the next
35106           scroll
35107
35108 2005-01-28  Peter Bartok  <pbartok@novell.com>
35109
35110         * XplatUI.cs: Made class internal
35111
35112 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
35113
35114         * CheckedListBox.cs:
35115                 - Draw focus
35116                 - Fixed Drawing
35117                 - Missing methods and events
35118
35119 2005-01-27  Peter Bartok  <pbartok@novell.com>
35120
35121         * Application.cs (Run): Don't use form if we don't have one
35122
35123 2005-01-27  Peter Bartok  <pbartok@novell.com>
35124
35125         * TextBoxBase.cs (get_Lines): Fixed index off by one error
35126
35127 2005-01-27  Peter Bartok  <pbartok@novell.com>
35128
35129         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
35130         * GridItem.cs: Added; Patch by Jonathan S. Chambers
35131         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
35132         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
35133         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
35134         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
35135         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35136         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35137         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35138         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35139         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35140         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35141
35142 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
35143
35144         * Combobox.cs:
35145                 - Draw focus on Simple Combobox
35146                 - Fixes drawing issues
35147                 - fixes 71834
35148
35149 2005-01-27  Peter Bartok  <pbartok@novell.com>
35150
35151         * Form.cs:
35152           - Place window in default location, instead of hardcoded 0/0
35153           - Send initial LocationChanged event
35154         * Control.cs:
35155           - UpdateBounds after creation to find out where the WM placed us
35156           - Make sure that if the ParentForm changes location the Form
35157             is notified
35158         * XplatUIX11.cs: XGetGeometry will not return the coords relative
35159             to the root, but to whatever the WM placed around us.
35160             Translate to root coordinates before returning toplevel
35161             coordinates
35162         * XplatUIWin32.cs: Removed debug output
35163         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
35164           flag to GetWindowPos, to allow translation of coordinates on X11
35165
35166 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
35167
35168         * ListBox.cs: connect LostFocus Event
35169
35170 2005-01-27  Peter Bartok  <pbartok@novell.com>
35171
35172         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35173           XplatUIX11.cs: Extended the Systray API
35174         * Form.cs: Removed debug output
35175         * Application.cs: Fixed focus assignment, always need to call
35176           XplatUI.Activate() since Form.Activate() has rules that may
35177           prevent activation
35178         * NotifyIcon.cs: Should be complete now
35179         * ToolTip.cs: Worked around possible timer bug
35180
35181 2005-01-27  Jackson Harper  <jackson@ximian.com>
35182
35183         * TabControl.cs:
35184         - Only invalidate the effected tabs when the
35185         selected index changes. This reduces drawing and gets rid of some
35186         flicker.
35187         - Only refresh if the tabs need to be shifted, otherwise only
35188         invalidate the slider button.
35189         - On windows the tabs are not filled to right if the slider is
35190         visible.
35191         
35192 2005-01-27  Jackson Harper  <jackson@ximian.com>
35193
35194         * TabControl.cs: Only refresh on mouseup if we are showing the
35195         slider. Also only invalidate the button whose state has changed.
35196
35197 2005-01-26  Peter Bartok  <pbartok@novell.com>
35198
35199         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
35200         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
35201           and SystrayRemove() methods
35202         * XplatUIOSX.cs: Stubbed Systray methods
35203         * XplatUIX11.cs:
35204           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
35205             methods
35206           - Fixed broken XChangeProperty calls (marshalling messed up things)
35207         * X11Structs.cs: Added enums and structs required for Size hinting
35208         * NotifyIcon.cs: Added & implemented
35209
35210 2005-01-26  Jackson Harper  <jackson@ximian.com>
35211
35212         * TabControl.cs: Space vertically layed out tabs properly.
35213
35214 2005-01-26  Peter Bartok  <pbartok@novell.com>
35215
35216         * Form.cs (CreateClientParams): Always set the location to 0,0
35217           since we're a child window.
35218
35219         * Control.cs (SetVisibleCore): Always explicitly setting the location
35220           of a toplevel window, apparently X11 doesn't like to move windows
35221           while they're not mapped.
35222
35223 2005-01-26  Jackson Harper  <jackson@ximian.com>
35224
35225         * TabControl.cs: Implement FillToRight size mode with vertically
35226         rendered tabs.
35227
35228 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
35229
35230         * ControlPaint.cs, ThemeWin32Classic.cs
35231                 - Fixes DrawFocusRectangle
35232
35233 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
35234
35235         * MenuAPI.cs:
35236                 - MenuBar tracking only starts when item is first clicked
35237                 - Fixes menu hidding for multiple subitems
35238                 - Unselect item in MenuBar when item Executed
35239                 - Fixes bug 71495
35240
35241 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
35242
35243         * ListControl.cs:
35244                 - IsInputKey for ListBox
35245         * ListBox.cs:
35246                 - Focus item
35247                 - Shift and Control item selection
35248                 - Implement SelectionMode.MultiExtended
35249                 - Fixes RightToLeft
35250         * ComboBox.cs:
35251                 - IsInputKey implemented
35252                 - Do not generate OnTextChangedEdit on internal txt changes
35253                 
35254 2005-01-23  Peter Bartok  <pbartok@novell.com>
35255
35256         * AccessibleObject.cs: Partially implemented Select()
35257         * MonthCalendar.cs: Added missing attributes and events
35258         * Form.cs: Fixed CreateParams behaviour, now controls derived from
35259           form can properly override CreateParams.
35260         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35261           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
35262           Control performs Invalidate & Update
35263         * NativeWindow (CreateHandle): Added special handling for Form
35264           and Form.FormParent classes to allow overriding of From.CreateParams
35265         * Control.cs:
35266           - ControlNativeWindow: Renamed 'control' variable to more intuitive
35267             name 'owner'
35268           - ControlNativeWindow: Added Owner property
35269           - Removed usage of Refresh() on property changes, changed into
35270             Invalidate(), we need to wait until the queue is processed for
35271             updates, direct calls might cause problems if not all vars for
35272             Paint are initialized
35273           - Added call to UpdateStyles() when creating the window, to set any
35274             styles that CreateWindow might have ignored.
35275           - Added support for Form CreateParent overrides to UpdateStyles()
35276         * MessageBox.cs: Removed no longer needed FormParent override stuff,
35277           CreateParams are now properly overridable
35278         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
35279           CreateParams are now properly overridable
35280
35281 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
35282
35283         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
35284         OnTextBoxChanged.
35285
35286         Capture LostFocus and OnTextBoxChanged.  The later introduces a
35287         recursive invocation that I have not figured out yet.
35288
35289         Reset the timer when not using (it was accumulating).
35290
35291
35292         (OnTextBoxChanged): Set UserEdit to true here to track whether the
35293         user has made changes that require validation.
35294
35295         Reset changing to avoid loops.
35296
35297 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
35298
35299         * NumericUpDown.cs: Display value at startup.
35300
35301         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
35302         ValidateEditText.
35303
35304         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
35305         filled in.  Added some basic parsing of text.
35306
35307         Still missing the OnXXX method overrides, and figuring out the
35308         events that must be emitted.
35309
35310         * UpDownBase.cs: Handle UserEdit on the Text property.
35311         
35312 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
35313
35314         * ComboBox.cs:
35315           - Fixes IntegralHeight
35316           - ToString method
35317
35318 2005-01-21  Jackson Harper  <jackson@ximian.com>
35319
35320         * TabControl.cs: Set the SelectedIndex property when SelectedTab
35321         is set so that the page visibility is updated and the tabs are
35322         sized correctly.
35323
35324 2005-01-21  Jackson Harper  <jackson@ximian.com>
35325
35326         * TabControl.cs: Use cliping rectangle for blitting. Give the
35327         theme the clipping rect so we can do clipping while
35328         drawing. Remove some debug code.
35329
35330 2005-01-21  Jackson Harper  <jackson@ximian.com>
35331
35332         * TabPage.cs: Add a new method so tab pages can force the tab
35333         control to recalculate the tab page sizes.
35334         * TabControl.cs: UpdateOwner needs to make the tab control recalc
35335         sizes.
35336
35337 2005-01-20  Jackson Harper  <jackson@ximian.com>
35338
35339         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
35340
35341 2005-01-20  Jackson Harper  <jackson@ximian.com>
35342
35343         * TreeView.cs: Set the bounds for nodes properly. They were
35344         getting screwed up when checkboxes were not enabled, but images
35345         were.
35346
35347 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
35348
35349         * ListBox.cs:
35350                 - Owner draw support
35351                 - Fixes
35352                 
35353 2005-01-20  Jackson Harper  <jackson@ximian.com>
35354
35355         * XplatUIStructs.cs: More misc keys
35356         * X11Keyboard.cs: Ignore some control keys.
35357
35358 2005-01-20  Jackson Harper  <jackson@ximian.com>
35359
35360         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
35361         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
35362
35363 2005-01-19  Peter Bartok  <pbartok@novell.com>
35364
35365         * Control.cs: Un-selecting the control when it is loosing focus
35366
35367 2005-01-19  Jackson Harper  <jackson@ximian.com>
35368
35369         * TreeView.cs: Hook up to the text controls leave event so we can
35370         end editing when the users clicks outside the text box.
35371         
35372 2005-01-19  Jackson Harper  <jackson@ximian.com>
35373
35374         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
35375         get set in the conversion array.
35376
35377 2005-01-19  Peter Bartok  <pbartok@novell.com>
35378
35379         * Application.cs (ModalRun): Added a call to CreateControl to ensure
35380           focus is properly set
35381         * Button.cs:
35382           - Added missing attributes
35383           - removed styles, those are already set in the base class
35384         * ButtonBase.cs:
35385           - Added missing attributes
35386           - Added clip window styles
35387         * CheckBox.cs: Added missing attributes
35388         * CommonDialog.cs:
35389           - FormParentWindow.CreateParams: Added required clip styles
35390         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
35391           also filters modifier keys
35392         * MessageBox.cs:
35393           - Added assignment of Accept and Cancel button to enable Enter
35394             and Esc keys in MessageBox dialogs
35395           - FormParentWindow.CreateParams: Added required clip styles
35396         * RadioButton.cs: Added missing attributes
35397         * TextControl.cs: No longer draws selection if control does not
35398           have focus
35399         * TextBoxBase.cs:
35400           - Now draws simple rectangle around test area to make it obvious
35401             there's a control. This is a hack until we properly support borders
35402           - A few simple fixes to support selections better, now erases selected
35403             text when typing, and resets selection when using movement keys
35404
35405 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
35406
35407         * UpDownBase.cs: Added some new properties.
35408
35409         * DomainUpDown.cs: Implement a lot to get my test working.
35410
35411 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35412
35413         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
35414
35415 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35416
35417         * OSXStructs (WindowAttributes): Fixed csc complaints
35418
35419 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35420
35421         * XplayUIOSX.cs:
35422           OSXStructs.cs: Initial refactor to move enums and consts into
35423           OSXStructs and use them in the driver for greater readability.
35424
35425 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35426
35427         * XplatUIOSX.cs: Initial support for Standard Cursors.
35428         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
35429
35430 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
35431
35432         * ComboBox.cs: ability to change style when the ctrl is already
35433         created, missing methods and events, bug fixes, signature fixes
35434
35435 2005-01-19  Peter Bartok  <pbartok@novell.com>
35436
35437         * Cursors.cs (ctor): Added ctor to fix signature
35438
35439 2005-01-18  Peter Bartok  <pbartok@novell.com>
35440
35441         * Button.cs: Implemented DoubleClick event
35442         * ButtonBase.cs:
35443           - Fixed keyboard handling to behave like MS, where the press of
35444             Spacebar is equivalent to a mousedown, and the key release is
35445             equivalent to mouseup. Now a spacebar push will give the same
35446             visual feedback like a mouse click.
35447           - Added missing attributes
35448           - Added ImeModeChanged event
35449           - Added support for generating DoubleClick event for derived classes
35450         * CheckBox.cs:
35451           - Implemented DoubleClick event
35452           - Added missing attributes
35453         * CommonDialog.cs: Added missing attribute
35454         * ContextMenu.cs: Added missing attributes
35455         * RadioButton.cs:
35456           - AutoChecked buttons do not allow to be unselected when clicked
35457             (otherwise we might end up with no selected buttons in a group)
35458           - Added missing attributes
35459           - Implemented DoubleClickEvent
35460         * ThreadExceptionDialog.cs: Enabled TextBox code
35461
35462 2005-01-18  Peter Bartok  <pbartok@novell.com>
35463
35464         * Form.cs: Removed debug output
35465         * Button.cs: Added support for DoubleClick method
35466
35467 2005-01-18  Peter Bartok  <pbartok@novell.com>
35468
35469         * Form.cs:
35470           - Added method to parent window that allows triggering size
35471             calculations when a menu is added/removed
35472           - set_Menu: Cleaned up mess from early days of Form and Control,
35473             now properly triggers a recalc when a menu is added/removed
35474           - Added case to select form itself as focused form if no child
35475             controls exist
35476           - Added PerformLayout call when showing dialog, to ensure properly
35477             placed controls
35478         * Control.cs:
35479           - Select(): Made internal so Form can access it
35480           - Focus(): Only call Xplat layer if required (avoids loop), and sets
35481             status
35482         * Application.cs (Run): Removed hack and calls PerformLayout instead
35483           to trigger calculation when Form becomes visible
35484
35485 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
35486
35487         * ComboBox.cs: fixes for ownerdraw
35488
35489 2005-01-18  Peter Bartok  <pbartok@novell.com>
35490
35491         * TextControl.cs:
35492           - Sentinel is no longer static, each Document gets it's own, this
35493             avoids locking or alternatively overwrite problems when more
35494             than one text control is used simultaneously.
35495           - Switched to use Hilight and HilightText brushes for text selection
35496
35497         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
35498
35499 2005-01-18  Peter Bartok  <pbartok@novell.com>
35500
35501         * Control.cs:
35502           - Hooked up the following events:
35503                 o ControlAdded
35504                 o ControlRemoved
35505                 o HandleDestroyed
35506                 o ImeModeChanged
35507                 o ParentChanged
35508                 o TabStopChanged
35509                 o Invalidated
35510                 o SystemColorsChanged
35511                 o ParentFontChanged
35512                 o Move
35513           - Removed debug output
35514           - Added a call to the current theme's ResetDefaults when a color change
35515             is detected
35516         * Form.cs: Now setting the proper ImeMode
35517         * Theme.cs: Defined a method to force recreation of cached resources
35518           and rereading of system defaults (ResetDefaults())
35519         * ThemeWin32Classic.cs: Added ResetDefaults() stub
35520
35521 2005-01-17  Peter Bartok  <pbartok@novell.com>
35522
35523         * Control.cs: Added missing attributes
35524
35525 2005-01-17  Jackson Harper  <jackson@ximian.com>
35526
35527         * TreeNode.cs: Implement editing. Add missing properties selected
35528         and visible.
35529         * TreeView.cs: Implement node editing. Also some fixes to use
35530         Invalidate (invalid area) instead of Refresh when selecting.
35531
35532 2005-01-17  Peter Bartok  <pbartok@novell.com>
35533
35534         * Control.cs:
35535           - Implemented InvokeGotFocus() method
35536           - Implemented InvokeLostFocus() method
35537           - Implemented InvokePaint() method
35538           - Implemented InvokePaintBackground() method
35539           - Implemented InvokeClick() method
35540           - Implemented FindForm() method
35541           - Implemented RectangleToClient() method
35542           - Implemented ClientToRectangle() method
35543           - Implemented ResetBackColor() method
35544           - Implemented ResetCursor() method
35545           - Implemented ResetFont() method
35546           - Implemented ResteForeColor() method
35547           - Implemented ResetImeMode() method
35548           - Implemented ResetLeftToRight() method
35549           - Implemented ResetText() method
35550           - Implemented Scale() methods
35551           - Implemented ScaleCore() method
35552           - Implemented Update() method
35553           - Removed unused variables
35554           - Stubbed AccessibilityNotifyClients and
35555             ControlAccessibleObject.NotifyClients() methods (dunno what to do
35556             with those yet)
35557           - Now setting proper default for RightToLeft property
35558           - Fixed bug in SetClientSizeCore that would cause windows to get
35559             really big
35560           - Now sending Click/DoubleClick events
35561           - Now selecting controls when left mouse button is clicked on
35562             selectable control
35563         * AccessibleEvents.cs: Added
35564         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
35565         * XplatUIOSX.cs: Stubbed UpdateWindow() method
35566         * XplatUIWin32.cs: Implemented UpdateWindow() method
35567         * XplatUIX11.cs: Implemented UpdateWindow() method
35568         * Form.cs: Removed stray semicolon causing CS0162 warning
35569         * ThemeWin32Classic.cs: Fixed unused variable warnings
35570         * ScrollableControl.cs: Now calls base method for ScaleCore
35571         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
35572           style to avoid interference with internal click handler (which is
35573           different than standard Control click handling)
35574         * RadioButton.cs:
35575           - Now unchecks all sibling radio buttons when control is
35576             selected (Fixes #68756)
35577           - Removed internal tabstop variable, using the one inherited from
35578             Control
35579
35580 2005-01-17  Jackson Harper  <jackson@ximian.com>
35581
35582         * NavigateEventArgs.cs: Fix base type.
35583         * LinkLabel.cs: Sig fix
35584         
35585 2005-01-17  Jackson Harper  <jackson@ximian.com>
35586
35587         * TreeView.cs: Only invalidate the effected nodes bounds when
35588         selecting nodes.
35589
35590 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35591
35592         * XplatUIWin32.cs: fixes Win32 marshaling
35593         * XplatUIX11.cs: fixes method signature
35594
35595 2005-01-17  Peter Bartok  <pbartok@novell.com>
35596
35597         * XplatUIX11.cs: Clean up resources when we no longer need them
35598
35599 2005-01-17  Peter Bartok  <pbartok@novell.com>
35600
35601         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
35602           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
35603           and DestroyCursor() methods.
35604         * Cursor.cs: Partially implemented, now supports standard cursors;
35605           still contains some debug code
35606         * Cursors.cs: Implemented class
35607         * Control.cs:
35608           - WndProc(): Added handling of WM_SETCURSOR message, setting the
35609             appropriate cursor
35610           - Implemented Cursor property
35611           - Replaced break; with return; more straightforwar and possibly
35612             faster
35613           - Now properly setting the result for WM_HELP
35614         * X11Structs.cs: Added CursorFontShape enum
35615         * XplatUIStructs.cs:
35616           - Added StdCursor enum (to support DefineStdCursor() method)
35617           - Added HitTest enum (to support sending WM_SETCURSOR message)
35618         * XplatUIX11.cs:
35619           - Now sends the WM_SETCURSOR message
35620           - Implemented new cursor methods
35621         * XplatUIOSX.cs: Stubbed new cursor methods
35622         * XplatUIWin32.cs:
35623           - Implemented new cursor methods
35624           - Added GetSystemMetrics function and associated enumeration
35625
35626 2005-01-15  Peter Bartok  <pbartok@novell.com>
35627
35628         * Control.cs:
35629           - WndProc(): Now handles EnableNotifyMessage
35630           - SelectNextControl(): Fixed bug where if no child or sibling
35631             controls exist we looped endlessly
35632
35633 2005-01-14  Jackson Harper  <jackson@ximian.com>
35634
35635         * TreeView.cs: Recalculate the tab pages when a new one is added
35636         so that the proper bounding rects are created.
35637
35638 2005-01-14  Jackson Harper  <jackson@ximian.com>
35639
35640         * TreeView.cs: Draw a gray box instead of a grip in the lower
35641         right hand corner when there are both horizontal and vertical
35642         scroll bars.
35643
35644 2005-01-14  Jackson Harper  <jackson@ximian.com>
35645
35646         * Control.cs: When erasing backgrounds use FromHwnd instead of
35647         FromHdc when there is a NULL wparam. This occurs on the X driver.
35648         * XplatUIX11.cs: Set the wparam to NULL.
35649
35650 2005-01-13  Jackson Harper  <jackson@ximian.com>
35651
35652         * PictureBox.cs: Implement missing methods (except ToString, need
35653         to test that on windows) and events. When visibility is changed we
35654         need to redraw the image because the buffers are killed. When size
35655         is changed refresh if the sizemode needs it.
35656
35657 2005-01-13  Peter Bartok  <pbartok@novell.com>
35658
35659         * Control.cs (SelectNextControl): Was using wrong method to select
35660           a control
35661
35662 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35663
35664         * ComboBox.cs: fixes dropstyle
35665
35666 2005-01-13  Peter Bartok  <pbartok@novell.com>
35667
35668         * Form.cs:
35669           - Implemented Select() override
35670           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
35671           - Now sets keyboard focus on startup
35672         * Control.cs (SelectNextControl): Now properly handles directed=true
35673         * TextBoxBase.cs:
35674           - WndProc: Now passes tab key on to base if AcceptTabChar=false
35675           - Added (really bad) focus rectangle (mostly for testing)
35676         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
35677           to enforce redraw on focus changes
35678         * ContainerControl.cs:
35679           - Fixed detection of Shift-Tab key presses
35680           - Fixed traversal with arrow keys
35681         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
35682           gonna keep this or if it's complete yet
35683         
35684 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35685
35686         * ComboBox.cs: missing properties, fixes
35687
35688 2005-01-13  Peter Bartok  <pbartok@novell.com>
35689
35690         * Panel.cs (ctor): Setting Selectable window style to off
35691         * Splitter.cs (ctor): Setting Selectable window style to off
35692         * GroupBox.cs (ctor): Setting Selectable window style to off
35693         * Label.cs (ctor): Setting Selectable window style to off
35694
35695 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
35696
35697         * UpDownBase.cs (InitTimer): If the timer has been already
35698         created, enable it.
35699
35700         Use a TextBox instead of a Label.
35701
35702 2005-01-12  Jackson Harper  <jackson@ximian.com>
35703
35704         * TreeView.cs: Refresh the tree after sorting the nodes. Always
35705         draw the connecting node lines (when ShowLines is true).
35706         * TreeNode.cs: The nodes index can now be updated. This is used
35707         when a node collection is sorted.
35708         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
35709         insert or an existing unsorted node collection can be sorted.
35710         
35711 2005-01-12  Peter Bartok  <pbartok@novell.com>
35712
35713         * ContainerControl.cs: Implemented ProcessDialogKeys()
35714
35715 2005-01-12  Peter Bartok  <pbartok@novell.com>
35716
35717         * Control.cs:
35718           - Implemented SelectNextControl() method
35719           - Several focus related bug fixes
35720           - Fixed Docking calculations to match MS documentation and
35721             behaviour
35722
35723 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
35724
35725         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
35726         bug fixes
35727
35728 2005-01-12  Peter Bartok  <pbartok@novell.com>
35729
35730         * Control.cs:
35731           - Fixed broken Contains() method
35732           - Implemented GetNextControl() method. Finally. This is the pre-
35733             requisite for focus handling.
35734
35735 2005-01-12  Peter Bartok  <pbartok@novell.com>
35736
35737         * OSXStrucs.cs: Added
35738
35739 2005-01-12  Peter Bartok  <pbartok@novell.com>
35740
35741         * XplatUIWin32.cs:
35742           - Removed PeekMessageFlags
35743           - Implemented SetWindowStyle() method
35744         * XplatUIStructs.cs: Added PeekMessageFlags
35745         * X11Structs: Added missing border_width field to XWindowChanges struct
35746         * XplatUIX11.cs:
35747           - PeekMessage: Now throws exception if flags which are not yet
35748             supported are passed
35749           - Implemented SetWindowStyle() method
35750           - Fixed SetZOrder to handle AfterHwnd properly
35751         * XplatUI.cs: Added SetWindowStyle() method
35752         * XplatUIDriver.cs: Added SetWindowStyle() abstract
35753         * Control.cs:
35754           - Implemented UpdateStyles() method
35755           - Implemented UpdateZOrder() method
35756         * XplatUIOSX.cs: Added SetWindowStyle() stub
35757
35758 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
35759
35760         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
35761         button mouse).
35762
35763
35764 2005-01-11  Jackson Harper  <jackson@ximian.com>
35765
35766         * TreeView.cs: Still need to draw lines to siblings even if out of
35767         the current node is out of the clip.
35768
35769 2005-01-11  Jackson Harper  <jackson@ximian.com>
35770
35771         * TreeView.cs: When setting the hbar/vbar/grip position use
35772         SetBounds so that perform layout is only called once. Also suspend
35773         and resume layout so layout is only done once for all controls.
35774         - Removed some debug fluff
35775         * SizeGrip.cs: Call base implmentation in overriding methods.
35776         - When visibility is changed the drawing buffers are killed so we
35777         need to redraw.
35778
35779 2005-01-11  Jackson Harper  <jackson@ximian.com>
35780
35781         * TreeView.cs: Calculate the open node count while drawing. This
35782         saves us an entire tree traversal for every paint operation. Use
35783         a member var for the open node count so less vars are passed around.
35784
35785 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
35786
35787         * MonthCalendar.cs:
35788         - fixed selection to use mousemove, not mouse polling on timer
35789         * ThemeWin32Classic.cs
35790         - removed redundant unused variable "no_more_content"
35791         
35792 2005-01-11  Peter Bartok  <pbartok@novell.com>
35793
35794         * XplatUIX11.cs (DoEvents): Needs to return when no more events
35795           are pending, so it now calls PeekMessage instead of GetMessage;
35796           implemented a incomplete version of PeekMessage
35797         
35798 2005-01-11  Peter Bartok  <pbartok@novell.com>
35799
35800         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
35801           I18n issues
35802         * TextBoxBase.cs: Added sending of TextChanged event
35803
35804 2005-01-10  Jackson Harper  <jackson@ximian.com>
35805
35806         * TreeView.cs: Try not to draw outside the clipping rectangle on
35807         each node element.
35808
35809 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
35810
35811         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
35812
35813 2005-01-10  Jackson Harper  <jackson@ximian.com>
35814
35815         * TreeView.cs:
35816         - Implement fast scrolling. Now only the newly
35817         exposed nodes are drawn and the old image is moved using the
35818         XplatUI::ScrollWindow method.
35819         - Factor in height of nodes when calculating whether or not the
35820         node is in the clipping rect.
35821
35822 2005-01-10  Jackson Harper  <jackson@ximian.com>
35823
35824         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
35825
35826 2005-01-10  Peter Bartok  <pbartok@novell.com>
35827
35828         * Application.cs: Added temporary hack to resolve all our resize
35829           required issues on startup. This will get fixed properly at
35830           some point in the future
35831
35832 2005-01-10  Jackson Harper  <jackson@ximian.com>
35833
35834         * SizeGrip.cs: New internal class that is used as a sizing
35835         grip control...hence the name.
35836
35837 2005-01-10  Peter Bartok  <pbartok@novell.com>
35838
35839         * Control.cs: Implemented proper TabIndex handling, now assigning
35840           a tabindex when a control is added to a container
35841         * GroupBox.cs (ctor): Now sets the Container style bit, required
35842           for Control.GetNextControl()
35843
35844 2005-01-09  Jackson Harper  <jackson@ximian.com>
35845
35846         * TextBoxBase.cs: Clear window when scrolling (fixes build).
35847
35848 2005-01-09  Peter Bartok <pbartok@novell.com>
35849
35850         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35851           XplatUIX11.cs: Added ability to control ScrollWindow expose and
35852           an overload for ScrollWindow to allow only scrolling a rectangle
35853
35854 2005-01-09  Peter Bartok <pbartok@novell.com>
35855
35856         * Form.cs:
35857           - Implemented SetDesktopBounds method
35858           - Implemented SetDesktopLocation method
35859
35860 2005-01-08  Jackson Harper  <jackson@ximian.com>
35861
35862         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
35863         the node count has changed, this removes to VScroll::Refresh calls
35864         when drawing.
35865
35866 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
35867
35868         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
35869
35870 2005-01-07  Jackson Harper  <jackson@ximian.com>
35871
35872         * TreeNode.cs: Just update the single node when it is
35873         checked. Don't refresh after toggling, the Expand/Collapse already
35874         handles this.
35875         * TreeView.cs: Respect clipping a little more when drawing. Try
35876         not to redraw things that don't need to be redrawn. Just hide the
35877         scrollbars when they are no longer needed instead of removing
35878         them, so they don't have to be created again and again.
35879         
35880 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
35881
35882         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
35883         coordinates to window space to place the caret properly, FIXED.
35884         Implement GetWindowState & SetWindowState
35885
35886 2005-01-06  Peter Bartok <pbartok@novell.com>
35887
35888         * Form.cs:
35889           - Implemented ClientSize property
35890           - Implemented DesktopBounds property
35891           - Implemented DesktopLocation property
35892           - Implemented IsRestrictedWindow property
35893           - Implemented Size property
35894           - Implemented TopLevel property
35895           - Implemented FormWindowState property
35896         * Control.cs:
35897           - Implemented GetTopLevel() method
35898           - Implemented SetTopLevel() method
35899         * X11Structs.cs (Atom):
35900           - Added AnyPropertyType definition
35901           - Added MapState definiton and updated XWindowAttribute struct
35902         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
35903         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
35904         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
35905         * XplatUIWin32.cs:
35906           - Implemented GetWindowState() and SetWindowState() methods
35907           - Fixed Win32GetWindowLong return type
35908         * XplatUIX11.cs:
35909           - Introduced central function for sending NET_WM messages
35910           - Implemented GetWindowState() and SetWindowState() methods
35911         * TextBoxBase.cs (set_Lines):
35912           - Now uses Foreground color for text added via Text property (Duh!)
35913           - Added code to remember programmatically requested size (fixes
35914             behaviour when Multiline is set after Size)
35915           - Added AutoSize logic
35916
35917 2005-01-06  Jackson Harper  <jackson@ximian.com>
35918
35919         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
35920
35921 2005-01-06  Jackson Harper  <jackson@ximian.com>
35922
35923         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
35924         set to less then 0.
35925
35926 2005-01-06  Jackson Harper  <jackson@ximian.com>
35927
35928         * ScrollableControl.cs: Lazy init the scrollbars.
35929         
35930 2005-01-06  Jackson Harper  <jackson@ximian.com>
35931
35932         * Theme.cs: Speed up getting pens and solid brushes, by using
35933         their ARGB as a hash instead of tostring and not calling Contains.
35934
35935 2005-01-06  Peter Bartok <pbartok@novell.com>
35936
35937         * Form.cs:
35938           - Implemented OnActivated and OnDeactivate event trigger
35939           - Implemented Activate() method
35940           - Fixed ShowDialog() to activate the form that was active before
35941             the dialog was shown
35942         * XplatUIX11.cs:
35943           - Added global active_window var that tracks the currently active
35944             X11 window
35945           - Now always grabs Property changes from the root window to always
35946             catch changes on the active window property
35947           - Added code to PropertyNotify handler to send Active/Inactive
35948             messages when state changes. This puts X11 and Win32 en par on
35949             WM_ACTIVATE notifications (except for double notifications when
35950             the user clicks away from our modal window to another one of our
35951             windows)
35952
35953 2005-01-05  Jackson Harper  <jackson@ximian.com>
35954
35955         * ImageList.cs: Implment ctor
35956
35957 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
35958
35959         * XplatUIOSX.cs: Implement Activate/SetTopmost
35960
35961 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
35962
35963         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
35964
35965 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
35966
35967         * XplatUIOSX.cs: Implement GetActive/SetFocus.
35968
35969 2005-01-05  Peter Bartok <pbartok@novell.com>
35970
35971         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
35972           XplatUIOSX.cs: Added GetActive method to return the currently
35973           active window for the application (or null, if none is active)
35974         * Form.cs:
35975           - Implemented ActiveForm
35976           - Commented out owner assignment for modal dialogs (causes problems
35977             on Win32, since the owner will be disabled)
35978           - Reworked some Active/Focus handling (still incomplete)
35979         * CommonDialog.cs: Commented out owner assignment for modal dialogs
35980           (causes problems on Win32, since the owner will be disabled)
35981         * IWin32Window: Added ComVisible attribute
35982
35983 2005-01-05  Peter Bartok <pbartok@novell.com>
35984
35985         * ToolTip.cs (WndProc): Enable setting focus now that we have the
35986           required XplatUI functions.
35987
35988 2005-01-05  Peter Bartok <pbartok@novell.com>
35989
35990         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
35991           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
35992           to implement focus and activation handling; still incomplete and
35993           with debug output
35994
35995 2005-01-04  Peter Bartok <pbartok@novell.com>
35996
35997         * TextBoxBase.cs: Changed access level for Document property to
35998           match switch to internal for TextControl
35999
36000 2005-01-04  Peter Bartok <pbartok@novell.com>
36001
36002         * AccessibleObject: Added ComVisible attribute
36003
36004 2005-01-04  Jackson Harper  <jackson@ximian.com>
36005
36006         * X11Keyboard.cs: Remove unneeded var.
36007
36008 2005-01-04  Jackson Harper  <jackson@ximian.com>
36009
36010         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
36011         but PAINT.
36012         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
36013         ClientMessage. This makes apps exit cleanly (more often).
36014         
36015 2005-01-04  Jackson Harper  <jackson@ximian.com>
36016
36017         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
36018         handling focus, return correct colors and fonts,
36019         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
36020         handle selection, horizontal scrolling, and mouse interaction.
36021
36022 2005-01-04  Peter Bartok <pbartok@novell.com>
36023
36024         * ICommandExecutor.cs: Added
36025         * IDataGridColumnStyleEditingNotificationService.cs: Added
36026         * IFeatureSupport.cs: Added
36027         * IFileReaderService.cs: Added
36028         * IDataObject.cs: Added ComVisible attribute
36029         * AmbientProperties.cs: Added
36030         * BaseCollection.cs: Added missing attributes
36031         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
36032         * BaseCollection.cs: Added missing attributes
36033         * Binding.cs: Added TypeConverter attribute
36034         * BindingContext.cs: Added DefaultEvent attribute
36035         * BindingsCollection.cs: Added DefaultEvent attribute
36036         * Button.cs: Added DefaultValue attribute
36037         * DragEventArgs.cs: Added ComVisible attribute
36038         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
36039         * KeyEventArgs.cs: Added ComVisible attribute
36040         * KeyPressEventArgs.cs: Added ComVisible attribute
36041         * MouseEventArgs.cs: Added ComVisible attribute
36042         * NavigateEventArgs.cs: Added
36043         * NavigateEventHandler.cs: Added
36044         * FeatureSupport.cs: Added
36045         * OSFeature.cs: Added
36046         * Theme.cs: Added abstract Version property to support OSFeature
36047         * ThemeWin32Classic.cs: Added Version property to
36048           support OSFeature.Themes
36049         * ProgressBar.cs: Removed OnPaintBackground override, not required since
36050           the proper styles to avoid background drawing are set, also doesn't
36051           match MS signature
36052         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
36053         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
36054         * ScrollEventArgs.cs: Added ComVisible attribute
36055         * SplitterEventArgs.cs: Added ComVisible attribute
36056         * AccessibleSelection.cs: Added Flags attribute
36057         * Appearance.cs: Added ComVisible attribute
36058         * Border3DSide.cs: Added ComVisible attribute
36059         * Border3DStyle.cs: Added ComVisible attribute
36060         * BorderStyle.cs: Added ComVisible attribute
36061         * DragAction.cs: Added ComVisible attribute
36062         * ErrorBlinkStyle.cs: Added
36063         * ScrollEventType.cs: Added ComVisible attribute
36064         * AnchorStyles.cs: Added Editor attribute
36065         * DockStyle.cs: Added Editor attribute
36066         * HorizontalAlignment.cs: Added ComVisible attribute
36067         * HelpEventArgs.cs: Added ComVisible attribute
36068         * PaintEventArgs.cs: Added IDisposable
36069
36070 2005-01-04  Peter Bartok <pbartok@novell.com>
36071
36072         * TextControl.cs: Switched Line, LineTag and Document classes to
36073           internal
36074
36075 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
36076
36077         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
36078         Simple mode, fixes, IntegralHeight, etc.
36079
36080 2005-01-04  Peter Bartok <pbartok@novell.com>
36081
36082         * TextBoxBase.cs: Using proper font variable now
36083
36084 2005-01-04  Peter Bartok <pbartok@novell.com>
36085
36086         * Form.cs (ShowDialog): Set parent to owner, if provided
36087         * GroupBox.cs: Removed unused vars
36088         * TextControl.cs:
36089           - Added GetHashCode() for Document and LineTag classes
36090           - Removed unused variables
36091           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
36092             to allow translation between continuous char position and line/pos
36093         * CheckBox.cs: Removed vars that are provided by base class
36094         * RadioButton.cs: Removed vars that are provided by base class, added
36095           new keyword where required
36096         * LinkLabel.cs: Added new keyword where required
36097         * Control.cs (WndProc): Removed unused variable
36098         * TextBoxBase.cs:
36099           - Finished SelectionLength property
36100           - Implemented SelectionStart property
36101           - Implemented Text property
36102           - Removed unused vars
36103         * MessageBox.cs: Added new keyword where required
36104         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
36105           WndProc signature
36106         * MenuAPI.cs: Added new keyword where required
36107         * ButtonBase.cs: Removed vars that are provided by base class, added
36108           new keyword where required
36109         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
36110           argument to double, to allow compiling with csc 2.0 (Atsushi ran
36111           into this)
36112         * Application.cs (Run): Now triggers the ThreadExit event
36113         * CommonDialog.cs: Added new keyword where required; now properly sets
36114           parent (owner) for dialog
36115         * XplatUIX11.cs: Commented out unused vars
36116         * StatusBar.cs: Fixed signature for Text property
36117         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
36118
36119 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
36120
36121         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
36122         TrackBar.cs, MonthCalendar.cs: remove unused vars
36123
36124 2005-01-03  Jackson Harper  <jackson@ximian.com>
36125
36126         * ThemeWin32Classic.cs:
36127         * X11Keyboard.cs: Remove unused vars.
36128
36129 2005-01-03  Peter Bartok  <pbartok@novell.com>
36130
36131         * TextBox.cs:
36132           - set_Text: Tied into TextControl
36133           - set_TextAlignment: Tied into TextControl
36134         * TextControl.cs:
36135           - Added alignment properties and implemented alignment handling
36136             and drawing (still has a bug, not generating proper expose events)
36137           - Added new Line() constructor to allow passing the line alignment
36138           - Fixed selection setting, properly handling end<start now
36139           - Added aligment considerations to RecalculateDocument()
36140         * TextBoxBase.cs:
36141           - Now properly enforces control height for single line controls
36142           - Added support for CharacterCasing
36143           - Added IsInputKey override
36144           - Fixed Keys.Enter logic
36145           - Added SetBoundsCore override
36146           - Fixed mouse selection handling
36147
36148 2005-01-03  Jackson Harper  <jackson@ximian.com>
36149
36150         * TreeView.cs:
36151           - Collapse and uncheck all nodes when CheckBoxes is disabled.
36152           - Checkboxes are always aligned to the bottom of the node,
36153           regardless of item height.
36154           - Use the node bounds to draw the text so we can center it when
36155           the item height is greater then the font height.
36156           - Node::Bounds are only the text part of the node.
36157         * TreeNode.cs: New method to combine collapsing and unchecking all
36158           nodes recursively.
36159
36160 2005-01-02  Jackson Harper  <jackson@ximian.com>
36161
36162         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
36163         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
36164         tree when a check is changed. TODO: Only refresh the checked node.
36165
36166 2004-12-30  Jackson Harper  <jackson@ximian.com>
36167
36168         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
36169         * TreeNode.cs: When collapsing make sure to never collapse the
36170         root node.
36171
36172 2004-12-29  Jackson Harper  <jackson@ximian.com>
36173
36174         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
36175         
36176 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
36177
36178         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
36179
36180 2004-12-28  Peter Bartok  <pbartok@novell.com>
36181
36182         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
36183           not yet assigned
36184
36185 2004-12-28  Peter Bartok  <pbartok@novell.com>
36186
36187         * Control.cs (WndProc): Added WM_HELP handler, now generates
36188           HelpRequested event
36189         * Form.cs: Added HelpButton property and required support code
36190         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
36191
36192 2004-12-28  Peter Bartok  <pbartok@novell.com>
36193
36194         * CommonDialog.cs:
36195           - Made DialogForm.owner variable internal
36196           - Added check to ensure owner form is set before setting
36197             owner properties in CreateParams
36198
36199 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
36200
36201         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
36202           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
36203           GetCursorPos.  Fix major visibility issues.  Rework the windowing
36204           system to support borderless/titleless windows (implements menus).
36205           Fix GetWindowPos.  Implement initial background color support for
36206           views.
36207
36208 2004-12-28  Peter Bartok  <pbartok@novell.com>
36209
36210         * Form.cs (get_CreateParams): Make sure we have an owner before using
36211           the owner variable. Implement proper default if no owner exists
36212
36213 2004-12-28  Peter Bartok  <pbartok@novell.com>
36214
36215         * In preparation for making Managed.Windows.Forms the default build target
36216           for System.Windows.Forms, the following stubbed files were added.
36217           Dialogs are currently being implemented by contributors and are only
36218           short-term place holders.
36219         * ColorDialog.cs: Initial check-in (minmal stub)
36220         * DataGrid.cs: Initial check-in (minimal stub)
36221         * DataGridLineStyle.cs: Initial check-in (minimal stub)
36222         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
36223         * DataGridTableStyle.cs: Initial check-in (minimal stub)
36224         * FontDialog.cs: Initial check-in (minimal stub)
36225         * FileDialog.cs: Initial check-in (minimal stub)
36226         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
36227         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
36228         * OpenFileDialog: Initial check-in (minimal stub)
36229         * IComponentEditorPageSite.cs: Initial check-in
36230         * Splitter.cs: Initial check-in (for Jackson)
36231         * SplitterEventArgs.cs: Initial check-in (for Jackson)
36232         * SplitterEventHandler.cs: Initial check-in (for Jackson)
36233         * TextBox.cs: Initial check-in; still needs some wiring to
36234           TextControl backend
36235         * Form.cs: Implemented ControlBox property
36236         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
36237         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
36238         * TextControl.cs: Added selection functionality; added todo header
36239         * TextBoxBase.cs:
36240           - Implemented Lines property
36241           - Implemented TextHeight property
36242           - Implemented SelectedText property
36243           - Implemented SelectionLength property
36244           - Implemented SelectAll method
36245           - Implemented ToString method
36246           - Removed and cleaned up some debug code
36247           - Implemented (still buggy) mouse text selection
36248
36249 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
36250
36251         * ComboBox.cs: Complete DropDownList implementation, fixes.
36252
36253 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
36254
36255         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
36256         * ComboBoxStyle.cs: ComboBoxStyle enum
36257         * ComboBox.cs: Initial work on ComboBox control
36258
36259 2004-12-21  Peter Bartok  <pbartok@novell.com>
36260
36261         * Control.cs (ctor, CreateParams): Moved setting of is_visible
36262           forward so that anything that creates a window gets the default,
36263           also no longer uses Visible property in CreateParams to avoid
36264           walking up the parent chain and possibly get the wrong visible
36265           status. Fixed IsVisible to no longer walk up to the parent.
36266
36267 2004-12-21  Peter Bartok  <pbartok@novell.com>
36268
36269         * Form.cs (ShowDialog): Unset modality for the proper window
36270  
36271 2004-12-20  Peter Bartok  <pbartok@novell.com>
36272
36273         * CommonDialog.cs: Initial check-in
36274
36275 2004-12-20  Peter Bartok  <pbartok@novell.com>
36276
36277         * Control.cs (Visible): Now uses the parent window instead of the
36278           client area window for the property
36279
36280         * Form.cs
36281           - ShowDialog(): Now uses the proper window for modality
36282           - The default visibility state for the form parent is now false. This
36283             will prevent the user from seeing all the changes to the form and
36284             its controls before the application hits Application.Run()
36285           - Removed some stale commented out code
36286
36287         * NativeWindow.cs:
36288           - Added FindWindow() method to have a method to check for existence
36289             of a window handle
36290           - Added ability to override default exception handling (for example
36291             when debugging with VS.Net; to do this the ExternalExceptionHandler
36292             define must be set
36293           - Removed some useless debug output
36294
36295         * XplatUIX11.cs:
36296           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
36297             not working as expected
36298           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
36299             property to allow switching back to the modal window if focus is
36300             given to another one of our windows (Application Modal)
36301           - Now only sets override_redirect if we create a window
36302             without WS_CAPTION
36303           - Moved EventMask selection before mapping of newly created window
36304             so we can catch the map event as well
36305           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
36306           - Added various Atom related DllImports
36307           - Implemented Exit() method
36308           - .ctor() : No longer shows window if WS_VISIBLE is not defined
36309             in the CreateParams
36310
36311         * MessageBox.cs: Now properly deals with the FormParent window by
36312           providing an override the FormParent CreateParams property to
36313           set as POPUP instead of OVERLAPPED window.
36314
36315 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
36316
36317         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
36318         Minor code cleanup.
36319
36320 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
36321         
36322         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
36323
36324 2004-12-18  Peter Bartok  <pbartok@novell.com>
36325
36326         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
36327           implementing SetModal() method
36328
36329 2004-12-18  Peter Bartok  <pbartok@novell.com>
36330
36331         * X11Structs.cs (XGCValues): Fixed type of function element
36332         * XplatUI.cs: Added ScrollWindow() method
36333         * XplatUIDriver.cs: Added ScrollWindow() abstract
36334         * XplatUIWin32.cs: Implemented ScrollWindow() method
36335         * XplatUIX11.cs: Implemented ScrollWindow() method
36336         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
36337
36338 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36339
36340         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
36341         Some more keyboard support (INCOMPLETE)
36342
36343 2004-12-17  Peter Bartok  <pbartok@novell.com>
36344
36345         * TextControl.cs:
36346         - Added color attribute to line tags.
36347         - Added color argument to all functions dealing with tags
36348         - Added color argument support to various functions
36349         - Fixed miss-calculation of baseline/shift in certain circumstances
36350
36351         * TextBoxBase.cs: Added new color option to test code
36352
36353 2004-12-17  Jackson Harper  <jackson@ximian.com>
36354
36355         * TreeNode.cs:
36356         * MonthCalendar.cs: Signature fixes
36357
36358 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36359
36360         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
36361         keyboard event moved it.  Create a new graphics context for each paint resolves this
36362
36363 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36364
36365         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
36366         Make caret exist and go blink blink.  Initial keyboard support.
36367         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
36368         works.
36369
36370 2004-12-17  Jackson Harper  <jackson@ximian.com>
36371
36372         * XplatUIStructs.cs: Updated set of virtual keycodes.
36373         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
36374
36375 2004-12-17  Jackson Harper  <jackson@ximian.com>
36376
36377         * XplatUIX11.cs: Prune old keyboard code.
36378
36379 2004-12-17  Jackson Harper  <jackson@ximian.com>
36380
36381         * XplatUIX11.cs: When generating mouse wparams get the modifier
36382         keys from the ModifierKeys property.
36383
36384 2004-12-17  Jackson Harper  <jackson@ximian.com>
36385
36386         * X11Keyboard.cs: Send up/down input when generating
36387         messages. Remove some unused vars.
36388
36389 2004-12-17  Jackson Harper  <jackson@ximian.com>
36390
36391         * TabControl.cs:
36392         * TreeView.cs: get rid of warnings.
36393
36394 2004-12-17  Jackson Harper  <jackson@ximian.com>
36395
36396         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
36397
36398 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
36399
36400         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
36401           CheckedListBox.cs: Implementation
36402
36403 2004-12-17  Peter Bartok  <pbartok@novell.com>
36404
36405         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
36406
36407 2004-12-16  Peter Bartok  <pbartok@novell.com>
36408
36409         * TextControl.cs:
36410           - InsertCharAtCaret(): Fixed start pos fixup
36411           - CaretLine_get: No longer derives the line from the tag, the tag
36412             could be stale if lines in the document have been added or deleted
36413           - RebalanceAfterDelete(): Fixed bug in balancing code
36414           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
36415           - Line.Streamline(): Now can also elminate leading empty tags
36416           - DumpTree(): Added a few more tests and prevented exception on
36417             uninitialized data
36418           - Added Debug section for Combining lines
36419           - Delete(): Now copies all remaining properties of a line
36420           
36421         * TextBoxBase.cs:
36422           - Left mousebutton now sets the caret (and middle button still acts
36423             as formatting tester, which must go away soon)
36424           - Added Debug section for Deleting/Combining lines
36425           - Fixed calculations for UpdateView after Combining lines
36426
36427 2004-12-16  Peter Bartok  <pbartok@novell.com>
36428
36429         * TextControl.cs: Now properly aligns text on a baseline, using the
36430           new XplatUI.GetFontMetrics() method. Simplified several calculations
36431         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
36432           defined
36433
36434 2004-12-16  Peter Bartok  <pbartok@novell.com>
36435
36436         * XplatUI.cs: Added GetFontMetrics() method
36437         * XplatUIDriver.cs: Added GetFontMetrics() abstract
36438         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
36439           into libgdiplus, our private GetFontMetrics function
36440         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
36441         * XplatUIWin32.cs: Implemented GetFontMetrics() method
36442
36443 2004-12-16  Jackson Harper  <jackson@ximain.com>
36444
36445         * XplatUIStruct.cs: Add enum for dead keys
36446         * X11Keyboard.cs: Map and unmap dead keys.
36447
36448 2004-12-16  Jackson Harper  <jackson@ximian.com>
36449
36450         * X11Keyboard.cs: Detect and use the num lock mask.
36451
36452 2004-12-16  Peter Bartok  <pbartok@novell.com>
36453
36454         * Control.cs (CreateGraphics): Added check to make sure the
36455           handle of the window exists before calling Graphics.FromHwnd()
36456
36457 2004-12-16  Peter Bartok  <pbartok@novell.com>
36458
36459         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
36460           contains a lot of code that's not supposed to be there for the
36461           real thing, but required for developing/testing the textbox
36462           backend.
36463
36464 2004-12-16  Peter Bartok  <pbartok@novell.com>
36465
36466         * TextControl.cs:
36467         - Fixed Streamline method
36468         - Added FindTag method to Line
36469         - Added DumpTree method for debugging
36470         - Added DecrementLines() method for deleting lines
36471         - Fixed UpdateView to update the cursor to end-of-line on single-line
36472           updates
36473         - Added PositionCaret() method
36474         - Fixed MoveCaret(LineDown) to move into the last line, too
36475         - Added InsertChar overload
36476         - Fixed InsertChar tag offset calculations
36477         - Added DeleteChar() method
36478         - Added Combine() method for folding lines
36479         - Fixed Delete() method, no longer allocates wasted Line object and
36480           now copies all properties when swapping nodes
36481         - Delete() method now updates document line counter
36482
36483 2004-12-15  Jackson Harper  <jackson@ximian.com>
36484
36485         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
36486         * X11Keyboard.cs: Expose the currently selected modifier keys
36487         through a property.
36488
36489 2004-12-15  Peter Bartok  <pbartok@novell.com>
36490
36491         * TextControl.cs: Initial check-in. Still incomplete
36492
36493 2004-12-15  Jackson Harper  <jackson@ximian.com>
36494
36495         * TreeNode.cs:
36496         * TreeView.cs: Fix build on csc (second time today ;-))
36497
36498 2004-12-15  Jackson Harper  <jackson@ximian.com>
36499
36500         * TreeView.cs: Store the treenodes plus/minus box bounds when it
36501         is calculated and use this for click testing.
36502         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
36503
36504 2004-12-15  Jackson Harper  <jackson@ximian.com>
36505
36506         * TreeView.cs: Pass the nodes image index to the image list when
36507         drawing that image.
36508
36509 2004-12-15  Jackson Harper  <jackson@ximian.com>
36510
36511         * X11Keyboard.cs: Set messages hwnd.
36512         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
36513         post_message calls.
36514
36515 2004-12-15  Jackson Harper  <jackson@ximian.com>
36516
36517         * X11Keyboard.cs: Fix to compile with csc.
36518         
36519 2004-12-15  Jackson Harper  <jackson@ximian.com>
36520
36521         * X11Structs.cs: Add key mask values
36522         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
36523         * X11Keyboard.cs: New file - Extrapolates and interpolates key
36524         down/up foo into WM_CHAR foo
36525         * KeyboardLayouts.cs: Common keyboard layouts
36526         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
36527         post messages into the main queue.
36528
36529 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
36530
36531         * Button.cs: implement ProcessMnemonic
36532         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
36533           brushes everytime
36534         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
36535         * ButtonBase.cs: Show HotkeyPrefix (not the &)
36536
36537 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
36538         
36539         * MonthCalendar.cs: Implemented click-hold for next/previous month
36540           and date selection
36541           
36542 2004-12-11  Peter Bartok  <pbartok@novell.com>
36543
36544         * X11Structs.cs:
36545           - Added XKeyboardState (moved from XplatUIX11.cs)
36546           - Added XCreateGC related enums and structures
36547           - Added GXFunction for XSetFunction
36548
36549         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
36550
36551         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
36552           CaretVisible() calls
36553
36554         * ToolTip.cs: Added code to prevent stealing focus from app windows
36555
36556         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
36557           DestroyCaret, SetCaretPos and CaretVisible)
36558
36559         * XplatUIX11.cs:
36560           - Added implementation for caret functions
36561           - Moved hover variables into a struct, to make it a bit easier
36562             on the eyes and to debug
36563           - Removed XKeyboardState (moved to XplatUIX11.cs)
36564           - Moved Keyboard properties into the properties region
36565
36566         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
36567           call to get a graphics context for our control
36568
36569         * XplatUIOSX.cs: Added empty overrides for the new caret functions
36570
36571         * TreeView.cs: Fixed bug. No matter what color was set it would always
36572           return SystemColors.Window
36573
36574         * XplatUIWin32.cs: Implemented caret overrides
36575
36576 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
36577
36578         * ListBox.cs: fire events, implement missing methods and properties,
36579         sorting.
36580
36581 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
36582
36583         * MonthCalendar.cs: invalidation bug fixing
36584         * ThemeWin32Classic.cs: paint fixing
36585
36586 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
36587
36588         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
36589         prepare the CGContextRef there now.
36590
36591 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
36592
36593         * MonthCalendar.cs:
36594           - optimisationL only invalidate areas that have changed
36595         * ThemeWin32Classic.cs:
36596           - only paint parts that intersect with clip_area
36597
36598 2004-12-09  Peter Bartok  <pbartok@novell.com>
36599
36600         * Application.cs: Undid changes from r37004 which cause problems
36601         on X11
36602
36603 2004-12-09  Ravindra  <rkumar@novell.com>
36604
36605         * ToolBar.cs: Added support for displaying ContextMenu
36606         attached to a button on ToolBar.
36607         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
36608         property.
36609
36610 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36611
36612         * Label.cs: autosize works in text change and removes unnecessary
36613         invalidate
36614
36615 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36616
36617         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
36618         remove warnings
36619
36620 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
36621
36622         * XplatUIOSX.cs: Added mouse move/click/grab support
36623         Remove some debugging WriteLines not needed anymore.
36624         Add window resizing/positioning.
36625         Fix visibility on reparenting.
36626
36627 2004-12-08  Peter Bartok  <pbartok@novell.com>
36628
36629         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
36630
36631 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
36632
36633         * XplatUIOSX.cs: Initial checkin
36634         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
36635
36636 2004-12-03  Ravindra <rkumar@novell.com>
36637
36638         * ListView.cs: Added some keybindings and fixed scrolling.
36639         ScrollBars listen to ValueChanged event instead of Scroll
36640         Event. This would let us take care of all changes being
36641         done in the scrollbars' values programmatically or manually.
36642         * ListView.cs (CanMultiselect): Added a check for shift key.
36643         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
36644         * ListViewItem.cs (Clone): Fixed. We need to make a copy
36645         of ListViewSubItemCollection as well.
36646
36647 2004-12-06  Peter Bartok <pbartok@novell.com>
36648
36649         * Control.cs (Parent): Added check and exception to prevent
36650         circular parenting
36651
36652 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
36653
36654         * ListBox.cs: implemented clipping, selection single and multiple,
36655         bug fixing
36656
36657 2004-12-03  Ravindra <rkumar@novell.com>
36658
36659         * ListView.cs (ListView_KeyDown):
36660         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
36661         when CTRL key is pressed.
36662         * ListViewItem.cs (Selected): Fixed setting the property.
36663
36664 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36665
36666         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
36667
36668         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
36669         MinimizeBox, ShowInTaskbar, TopMost properties.
36670
36671         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
36672         will be implemented).
36673
36674 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36675
36676         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
36677
36678         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
36679         tests.
36680         
36681         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
36682         
36683         * TreeView.cs: BackColor is Colors.Window.
36684
36685 2004-12-01  Jackson Harper  <jackson@ximian.com>
36686
36687         * TreeView.cs: When resizing the tree if the user is making it
36688         smaller we don't get expose events, so we need to handle adding
36689         the horizontal scrollbar in the size changed handler as well as
36690         the expose handler.
36691
36692 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
36693
36694         * DrawItemState.cs: fixes wrong enum values
36695
36696 2004-12-01  Jackson Harper  <jackson@ximian.com>
36697
36698         * TreeView.cs: Resize the hbar as well as the vbar on resize.
36699
36700 2004-12-01  Jackson Harper  <jackson@ximian.com>
36701
36702         * NodeLabelEditEventArgs.cs:
36703         * NodeLabelEditEventHandler.cs:
36704         * OpenTreeNodeEnumerator.cs:
36705         * TreeNode.cs:
36706         * TreeNodeCollection.cs:
36707         * TreeView.cs:
36708         * TreeViewAction.cs:
36709         * TreeViewCancelEventArgs.cs:
36710         * TreeViewCancelEventHandler.cs:
36711         * TreeViewEventArgs.cs:
36712         * TreeViewEventHandler.cs: Initial implementation.
36713
36714 2004-12-01  Ravindra <rkumar@novell.com>
36715
36716         * ListView.cs (CalculateListView): Fixed scrolling related
36717         calculations. Also, removed some debug statements from other
36718         places.
36719         * ListViewItem.cs: Changed access to 'selected' instance variable
36720         from private to internal.
36721         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
36722
36723 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
36724
36725         * ThemeWin32Classic.cs: remove cache of brush and pens for
36726         specific controls and use the global system, fixes scrollbutton
36727         bugs (for small sizes, disabled, etc)
36728         
36729         * ScrollBar.cs: does not show the thumb for very small controls
36730         (as MS) and allow smaller buttons that the regular size
36731
36732 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
36733
36734         * UpDownBase.cs: Add abstract methods for the interface.
36735         Add new virtual methods (need to be hooked up to TextEntry when it
36736         exists).
36737         Add override methods for most features.
36738         Computes the size, forces the height of the text entry.
36739
36740         * NumericUpDown.cs: Put here the current testing code.
36741
36742         * Set eol-style property on all files that do not have mixed line
36743         endings, to minimize the future problems.  There are still a few
36744         files with mixed endings, and someone should choose whether they
36745         want to move it or not.
36746
36747 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
36748
36749         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
36750         System.Colors
36751         
36752 2004-11-30  Ravindra <rkumar@novell.com>
36753
36754         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
36755         drawing and replaced use of SystemColors by theme colors.
36756         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
36757         * ListView.cs (ListViewItemCollection.Add): Throw exception when
36758         same ListViewItem is being added more than once.
36759
36760 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
36761
36762         * MonthCalendar.cs:
36763           - ControlStyles love to make the control not flicker
36764           
36765 2004-11-30  Peter Bartok  <pbartok@novell.com>
36766
36767         * CharacterCasing.cs: Added
36768
36769 2004-11-29  Peter Bartok  <pbartok@novell.com>
36770
36771         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36772           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
36773           I am removing these files as they conflict with already completed
36774           work. While it is fantastic to get contributions to MWF, I
36775           respectfully ask that everyone please coordinate their contributions
36776           through mono-winforms-list or #mono-winforms at this time. We're
36777           explicitly avoiding stubbing and don't want controls that don't have
36778           their basic functionality implemented in svn. Please also see
36779           http://www.mono-project.com/contributing/winforms.html
36780
36781
36782 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
36783
36784         * Application.cs (ModalRun): Don't hang after exit.
36785
36786         * Theme.cs: New TreeViewDefaultSize property.
36787
36788         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
36789         with less hardcoded SystemColors constant.
36790         Implemented TreeViewDefaultSize.
36791
36792         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36793         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
36794
36795
36796 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
36797
36798         * MonthCalendar.cs:
36799           - Fix NextMonthDate and PrevMonthDate click moving calendar
36800
36801 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
36802
36803         * MonthCalendar.cs:
36804           - Fix usage of ScrollChange Property when scrolling months
36805
36806 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
36807
36808         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
36809          - Fixes menu destroying
36810          - Support adding and removing items on already created menus
36811
36812 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
36813
36814         * MonthCalendar.cs:
36815           - Re-worked all bolded dates handling to match win32
36816         * ThemeWin32Classic.cs:
36817           - Fixed rendering with bolded dates
36818
36819 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
36820
36821         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
36822         - Horizontal scroolbar
36823         - Multicolumn
36824         - Fixes
36825
36826
36827 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
36828
36829         * MonthCalendar.cs:
36830           - Fix Usage of MaxSelectionCount from SelectionRange
36831           - Fixed Shift + Cursor Selection
36832           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
36833           - Fixed normal cursor selection to be compat with win32
36834           - Fixed Shift + Mouse Click selection
36835
36836 2004-11-24  Peter Bartok <pbartok@novell.com>
36837
36838         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
36839         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
36840         * XplatUIX11.cs:
36841           - CreatedKeyBoardMsg now updates keystate with Alt key
36842           - Added workaround for timer crash to CheckTimers, Jackson will
36843             develop a proper fix and check in later
36844           - Implemented DispatchMessage
36845           - Removed calling the native window proc from GetMessage (call
36846             now moved to DispatchMessage)
36847
36848         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
36849           the keydata (Fixes bug #69831)
36850
36851         * XplatUIWin32.cs:
36852           - (DispatchMessage): Switched to return IntPtr
36853           - Added DllImport for SetFocus
36854
36855 2004-11-24  Ravindra <rkumar@novell.com>
36856
36857         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
36858         background drawing.
36859         * ListViewItem.cs: Fixed various properties, calculations
36860         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
36861         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
36862         and some internal properties. Fixed MouseDown handler and Paint
36863         method.
36864
36865 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
36866
36867         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
36868
36869 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
36870
36871         * ContainerControl.cs: correct accidental check in of local changes
36872
36873 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
36874
36875         * ThemeWin32Classic.cs:
36876                 - Fixed Drawing Last month in grid (sometimes not showing)
36877         * MonthCalendar.cs:
36878                 - Fixed title width calculation bug (makeing title small)
36879
36880 2004-11-23  Peter Bartok <pbartok@novell.com>
36881
36882         * XplatUIX11.cs:
36883           - Added generation of WM_MOUSEHOVER event
36884           - Added missing assignment of async_method atom
36885           - Fixed WM_ERASEBKGND; now only redraws the exposed area
36886
36887 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
36888
36889         * ThemeWin32Classic.cs:
36890                 - Fixed Drawing of today circle when showtodaycircle not set
36891                 - fixed drawing of first and last month in the grid (gay dates)
36892         * MonthCalendar.cs:
36893                 - Fixed Drawing of today circle
36894                 - Fixed drawing of grady dates
36895                 - Fixed HitTest for today link when ShowToday set to false
36896                 - Fixed DefaultSize to obey ShowToday
36897
36898 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
36899
36900         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
36901         * System.Windows.Forms/Theme.cs
36902         * MonthCalendar.cs: added for MonthCalendar
36903         * SelectionRange.cs: added for MonthCalendar
36904         * Day.cs: added for MonthCalendar: added for MonthCalendar
36905         * DateRangeEventArgs.cs: added for MonthCalendar
36906         * DateRangeEventHandler.cs: added for MonthCalendar
36907
36908 2004-11-22  Ravindra <rkumar@novell.com>
36909
36910         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
36911         property.
36912
36913 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
36914
36915         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
36916         event handler.
36917         
36918         * NumericUpDown.cs: Added new implementation.
36919         * UpDownBase.cs: Added new implementation.
36920
36921         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
36922         implementations.
36923         
36924         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
36925         implementations.
36926
36927         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
36928         methods.
36929
36930 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
36931
36932         * Timer.cs  (Dispose): Should call the base dispose when
36933         overriding.
36934
36935 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
36936
36937         * ScrollBar.cs: updates thumb position when max, min or increment
36938         is changed
36939
36940 2004-11-21  Ravindra <rkumar@novell.com>
36941
36942         * ListView.cs: Implemented item selection, activation and
36943         column header style. Fixed properties to do a redraw, if
36944         required. Added support for MouseHover, DoubleClick, KeyDown
36945         and KeyUp event handling and some minor fixes.
36946         * ListViewItem.cs: Fixed constructor.
36947         * ThemeWin32Classic.cs: Improved drawing for ListView.
36948
36949 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
36950
36951         * ThemeWin32Classic.cs: initial listbox drawing code
36952         * DrawMode.cs: new enumerator
36953         * ListControl.cs: stubbed class
36954         * ListBox.cs: initial implementation
36955         * Theme.cs: new methods definitions
36956         * SelectionMode.cs: new enumerator
36957
36958 2004-11-17  Peter Bartok  <pbartok@novell.com>
36959
36960         * XplatUIWin32.cs: Added double-click events to the class style
36961         * Control.cs (WndProc):
36962           - Added handling of click-count to MouseDown/ MouseUp events.
36963           - Added handling of middle and right mouse buttons
36964           - Removed old debug code
36965
36966 2004-11-17  Jackson Harper  <jackson@ximian.com>
36967
36968         * XplatUIX11.cs: Use the new Mono.Unix namespace.
36969
36970 2004-11-17  Ravindra <rkumar@novell.com>
36971
36972         * ListView.cs: Added event handling for MouseMove/Up/Down.
36973         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
36974         * ThemeWin32Classic.cs: We need to clear the graphics context and
36975         draw column header in a proper state.
36976
36977
36978 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
36979
36980         *  Menu.cs: fixes signature
36981
36982 2004-11-16  Peter Bartok  <pbartok@novell.com>
36983
36984         * XplatUIX11.cs (GetMessage): Implemented generation of
36985           double click mouse messages
36986
36987 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
36988
36989         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
36990         not by menu
36991
36992 2004-11-11  Peter Bartok  <pbartok@novell.com>
36993
36994         * HandleData.cs: Added Visible property
36995         * XplatUIX11.cs (IsVisible): Now uses Visible property from
36996           HandleData
36997         * XplatUIX11.cs: Removed old debug leftovers
36998         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
36999         * Control.cs (WndProc): Removed old debug leftovers,
37000           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
37001           needed WM_SIZE handling
37002
37003 2004-11-11  Jackson Harper  <jackson@ximian.com>
37004
37005         * OwnerDrawPropertyBag.cs:
37006         * TreeViewImageIndexConverter.cs: Initial implementation
37007
37008 2004-11-10  Jackson Harper  <jackson@ximian.com>
37009
37010         * ThemeWin32Classic.cs:
37011         * TabControl.cs: instead of moving tabs by the slider pos just
37012         start drawing at the tab that is offset by the slider. This way
37013         scrolling always moves by exactly one tab.
37014
37015 2004-11-10  Jackson Harper  <jackson@ximian.com>
37016
37017         * TabControl.cs: You can only scroll left when the slider has
37018         already ben moved right.
37019         
37020 2004-11-10  Jackson Harper  <jackson@ximian.com>
37021
37022         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
37023         the clip area.
37024         
37025 2004-11-10  Jackson Harper  <jackson@ximian.com>
37026
37027         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
37028         clip area.
37029         
37030 2004-11-09  Jackson Harper  <jackson@ximian.com>
37031
37032         * TabControl.cs (CalcXPos): New helper method so we can determine
37033         the proper place to start drawing vertical tabs.
37034         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
37035         
37036 2004-11-09  Jackson Harper  <jackson@ximian.com>
37037
37038         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
37039         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
37040         and Bottom, left and right are illegal values for this and
37041         multiline is enabled when the alignment is set to left or right.
37042         (DrawTab): Each alignment block should draw the text itself now
37043         because Left requires special love. Also add rendering for Left
37044         aligned tabs.
37045         
37046 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
37047
37048         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
37049         does not destroy the windows, removes debugging messages
37050
37051 2004-11-09  jba  <jba-mono@optusnet.com.au>
37052
37053         * ThemeWin32Classic.cs
37054         (DrawButtonBase): Fix verticle text rect clipping in windows
37055         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37056         rendering and incorrect text rect clipping
37057         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37058         rendering and incorrect text rect clipping
37059         
37060 2004-11-08  Jackson Harper  <jackson@ximian.com>
37061
37062         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
37063         bottom when they are bottom aligned so the bottoms of the tabs get
37064         displayed.
37065         * TabControl.cs (DropRow): Move rows up instead of down when the
37066         tab control is bottom aligned.
37067
37068 2004-11-08 13:59  pbartok
37069
37070         * XplatUIX11.cs:
37071           - Added handling for various window styles
37072           - Added handling for popup windows
37073           - Added SetTopmost handling
37074
37075 2004-11-08 13:55  pbartok
37076
37077         * XplatUIWin32.cs:
37078           - Added argument to SetTopmost method
37079           - Fixed broken ClientToScreen function
37080
37081 2004-11-08 13:53  pbartok
37082
37083         * XplatUIStructs.cs:
37084           - Added missing WS_EX styles
37085
37086 2004-11-08 13:53  pbartok
37087
37088         * XplatUI.cs, XplatUIDriver.cs:
37089           - Added argument to SetTopmost
37090
37091 2004-11-08 13:52  pbartok
37092
37093         * X11Structs.cs:
37094           - Added XSetWindowAttributes structure
37095           - Improved XWindowAttributes structure
37096           - Added SetWindowValuemask enum
37097           - Added window creation arguments enum
37098           - Added gravity enum
37099           - Added Motif hints structure
37100           - Added various Motif flags and enums
37101           - Added PropertyMode enum for property functions
37102
37103 2004-11-08 13:50  pbartok
37104
37105         * Form.cs:
37106           - Fixed arguments for updated SetTopmost method
37107
37108 2004-11-08 13:49  pbartok
37109
37110         * ToolTip.cs:
37111           - Fixed arguments for updated SetTopmost function
37112           - Fixed usage of PointToClient
37113
37114 2004-11-08 13:44  pbartok
37115
37116         * MenuAPI.cs:
37117           - Added Clipping of children and siblings
37118
37119 2004-11-08 13:41  pbartok
37120
37121         * MainMenu.cs:
37122           - Removed SetMenuBarWindow call. We do this in Form.cs
37123
37124 2004-11-08 13:40  jackson
37125
37126         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
37127           scrolling jimmi in the correct location with bottom aligned tabs
37128
37129 2004-11-08 13:36  pbartok
37130
37131         * ContainerControl.cs:
37132           - Implemented BindingContext
37133           - Implemented ParentForm
37134
37135 2004-11-08 12:46  jackson
37136
37137         * TabControl.cs: Put bottom rendered tabs in the right location
37138
37139 2004-11-08 07:15  jordi
37140
37141         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
37142           removes dead code
37143
37144 2004-11-05 17:30  jackson
37145
37146         * TabControl.cs: When selected tabs are expanded make sure they
37147           don't go beyond the edges of the tab control
37148
37149 2004-11-05 14:57  jackson
37150
37151         * TabControl.cs: Reset show_slider so if the control is resized to
37152           a size where it is no longer needed it's not displayed anymore
37153
37154 2004-11-05 13:16  jackson
37155
37156         * TabControl.cs: Make tab pages non visible when added to the
37157           control
37158
37159 2004-11-05 12:42  jackson
37160
37161         * TabControl.cs: Implement SizeMode.FillToRight
37162
37163 2004-11-05 12:16  jackson
37164
37165         * Control.cs: Do not call CreateHandle if the handle is already
37166           created
37167
37168 2004-11-05 11:46  jackson
37169
37170         * TabControl.cs: Remove superflous call to CalcTabRows
37171
37172 2004-11-05 09:07  jackson
37173
37174         * XplatUIX11.cs: Update for Mono.Posix changes
37175
37176 2004-11-05 07:00  ravindra
37177
37178         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
37179           scrolling.
37180
37181 2004-11-04 22:47  jba
37182
37183         * ThemeWin32Classic.cs:
37184           - Fix Button rendering for FlatStyle = Flat or Popup
37185           - Fix RadioButton and CheckBox rendering when Appearance = Button
37186             (normal and flatstyle).
37187           - Correct outer rectangle color when drawing focus rectangle
37188           - Adjust button bounds to be 1 px smaller when focused
37189           - Make button not draw sunken 3d border when pushed (windows compat)
37190           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
37191           - Offset the text in RadioButton and Checkbox when being rendered as
37192           a button.
37193           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
37194           radiobuttons
37195           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
37196           - Fixed disabled text rendering for normally rendered radiobuttons
37197
37198 2004-11-04 10:26  jackson
37199
37200         * TabControl.cs: Recalculate tab rows when resizing
37201
37202 2004-11-04 07:47  jordi
37203
37204         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
37205           collection completion, drawing issues, missing features
37206
37207 2004-11-04 05:03  ravindra
37208
37209         * ScrollBar.cs:
37210                 - We need to recalculate the Thumb area when
37211                 LargeChange/maximum/minimum values are changed.
37212           - We set the 'pos' in UpdatePos() method to minimum, if it's less
37213                 than minimum. This is required to handle the case if large_change is
37214                 more than max, and use LargeChange property instead of large_change
37215                 variable.
37216           - We return max+1 when large_change is more than max, like MS does.
37217
37218 2004-11-04 04:29  ravindra
37219
37220         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
37221                 - Changed default value signatures (prefixed all with ListView).
37222                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
37223                 ListView.
37224           - Fixed calculations for ListViewItem and implemented Clone()
37225           method.
37226
37227 2004-11-04 04:26  ravindra
37228
37229         * Theme.cs, ThemeWin32Classic.cs:
37230                 - Changed default ListView values signatures (prefixed all with
37231                 ListView).
37232           - Fixed default size values for VScrollBar and HScrollBar.
37233                 - Fixed DrawListViewItem method.
37234
37235 2004-11-04 04:05  ravindra
37236
37237         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
37238
37239 2004-11-04 04:04  ravindra
37240
37241         * ImageList.cs: Implemented the missing overload for Draw method.
37242
37243 2004-11-03 19:29  jackson
37244
37245         * TabControl.cs: Handle dropping rows on selection properly
37246
37247 2004-11-03 11:59  jackson
37248
37249         * TabControl.cs: remove debug code
37250
37251 2004-11-03 11:52  jackson
37252
37253         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
37254           the scrolly widgerywoo
37255
37256 2004-11-02 13:52  jackson
37257
37258         * TabControl.cs: Resize the tab pages and tabs when the tab control
37259           is resized
37260
37261 2004-11-02 13:40  jackson
37262
37263         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
37264           selected tab to the bottom
37265
37266 2004-11-02 13:39  jackson
37267
37268         * TabPage.cs: Store the tab pages row
37269
37270 2004-11-02 12:33  jordi
37271
37272         * MenuItem.cs: fixes handle creation
37273
37274 2004-11-02 11:42  jackson
37275
37276         * TabControl.cs: signature fix
37277
37278 2004-11-02 08:56  jackson
37279
37280         * TabControl.cs: Calculate whether the tab is on an edge properly.
37281           Remove top secret debugging code
37282
37283 2004-11-01 19:57  jackson
37284
37285         * TabControl.cs: Add click handling, and proper sizing
37286
37287 2004-11-01 19:47  jackson
37288
37289         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
37290           tab controls
37291
37292 2004-11-01 19:39  jackson
37293
37294         * TabPage.cs: add internal property to store the bounds of a tab
37295           page
37296
37297 2004-10-30 04:23  ravindra
37298
37299         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
37300           values.
37301
37302 2004-10-30 04:21  ravindra
37303
37304         * ListView.cs, ListViewItem.cs: Added support for scrolling and
37305           fixed calculations.
37306
37307 2004-10-30 03:06  pbartok
37308
37309         * XplatUIX11.cs:
37310           - Removed extension of DllImported libs
37311
37312 2004-10-29 09:55  jordi
37313
37314         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
37315           navigation, itemcollection completion, menu fixes
37316
37317 2004-10-27 22:58  pbartok
37318
37319         * XplatUIX11.cs:
37320           - Now throws a nice error message when no X display could be opened
37321
37322 2004-10-26 13:51  jordi
37323
37324         * ListView.cs: removes warning
37325
37326 2004-10-26 03:55  ravindra
37327
37328         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
37329           ThemeWin32Classic.cs: Some formatting for my last checkins.
37330
37331 2004-10-26 03:36  ravindra
37332
37333         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
37334           control and default values.
37335
37336 2004-10-26 03:35  ravindra
37337
37338         * Theme.cs: Added some default values for ListView control.
37339
37340 2004-10-26 03:33  ravindra
37341
37342         * ToolBar.cs: ToolBar should use the user specified button size, if
37343           there is any. Added a size_specified flag for the same.
37344
37345 2004-10-26 03:33  ravindra
37346
37347         * ColumnHeader.cs: Added some internal members and calculations for
37348           ColumnHeader.
37349
37350 2004-10-26 03:32  ravindra
37351
37352         * ListViewItem.cs: Calculations for ListViewItem.
37353
37354 2004-10-26 03:31  ravindra
37355
37356         * ListView.cs: Added some internal members and calculations for
37357           ListView.
37358
37359 2004-10-22 13:31  jordi
37360
37361         * MenuAPI.cs: speedup menus drawing
37362
37363 2004-10-22 13:16  jackson
37364
37365         * XplatUIX11.cs: Make sure to update exposed regions when adding an
37366           expose event
37367
37368 2004-10-22 11:49  jackson
37369
37370         * Control.cs: oops
37371
37372 2004-10-22 11:41  jackson
37373
37374         * Control.cs: Check to see if the window should have its background
37375           repainted by X when drawing.
37376
37377 2004-10-22 11:31  jackson
37378
37379         * XplatUIX11.cs: When invalidating areas only use XClearArea if
37380           clear is true, this way we do not get flicker from X repainting the
37381           background
37382
37383 2004-10-22 11:28  jackson
37384
37385         * XEventQueue.cs: Queue properly
37386
37387 2004-10-21 09:38  jackson
37388
37389         * XEventQueue.cs: Fix access modifier
37390
37391 2004-10-21 09:36  jackson
37392
37393         * XEventQueue.cs: Don't loose messages
37394
37395 2004-10-21 09:22  jackson
37396
37397         * XEventQueue.cs: Don't loose messages
37398
37399 2004-10-20 04:15  jordi
37400
37401         * BootMode.cs: enum need it by SystemInfo
37402
37403 2004-10-19 21:58  pbartok
37404
37405         * XplatUIWin32.cs:
37406           - Small sanity check
37407
37408 2004-10-19 21:56  pbartok
37409
37410         * Form.cs:
37411           - Added private FormParentWindow class which acts as the container
37412             for our form and as the non-client area where menus are drawn
37413           - Added/Moved required tie-ins to Jordi's menus
37414           - Fixed/Implemented the FormStartPosition functionality
37415
37416 2004-10-19 21:52  pbartok
37417
37418         * Control.cs:
37419           - Removed unneeded locals
37420           - Added code to all size and location properties to understand and
37421             deal with the parent container of Form
37422
37423 2004-10-19 21:33  pbartok
37424
37425         * Application.cs:
37426           - Fixed to deal with new Form subclasses for menus
37427
37428 2004-10-19 17:48  jackson
37429
37430         * XEventQueue.cs: commit correct version of file
37431
37432 2004-10-19 16:50  jackson
37433
37434         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
37435
37436 2004-10-19 16:15  jordi
37437
37438         * MenuAPI.cs: MenuBarCalcSize returns the height
37439
37440 2004-10-19 08:31  pbartok
37441
37442         * Control.cs:
37443           - Added missing call to PreProcessMessage before calling OnXXXKey
37444           methods
37445
37446 2004-10-19 00:04  ravindra
37447
37448         * ToolTip.cs: Fixed constructor.
37449
37450 2004-10-18 09:31  jordi
37451
37452         * MenuAPI.cs: menuitems in menubars do not have shortcuts
37453
37454 2004-10-18 09:26  jordi
37455
37456         * MenuItem.cs: fixes MenuItem class signature
37457
37458 2004-10-18 08:56  jordi
37459
37460         * MenuAPI.cs: prevents windows from showing in the taskbar
37461
37462 2004-10-18 00:28  ravindra
37463
37464         * ToolTip.cs: Suppressed a warning message.
37465
37466 2004-10-18 00:27  ravindra
37467
37468         * Control.cs: Default value of visible property must be true.
37469
37470 2004-10-17 23:19  pbartok
37471
37472         * ToolTip.cs:
37473           - Complete implementation
37474
37475 2004-10-17 23:19  pbartok
37476
37477         * XplatUIX11.cs:
37478           - Added EnableWindow method
37479           - Added SetModal stub
37480           - Added generation of WM_ACTIVATE message (still needs testing)
37481           - Added SetTopMost stub
37482           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
37483
37484 2004-10-17 23:17  pbartok
37485
37486         * XplatUIWin32.cs:
37487           - Removed VirtualKeys to XplatUIStructs
37488           - Implemented SetTopMost method
37489           - Implemented EnableWindow method
37490           - Bugfix in ScreenToClient()
37491           - Bugfixes in ClientToScreen()
37492
37493 2004-10-17 22:51  pbartok
37494
37495         * XplatUIStructs.cs:
37496           - Added WS_EX styles to WindowStyles enumeration
37497
37498 2004-10-17 22:50  pbartok
37499
37500         * XplatUI.cs, XplatUIDriver.cs:
37501           - Added method for enabling/disabling windows
37502           - Added method for setting window modality
37503           - Added method for setting topmost window
37504
37505 2004-10-17 22:49  pbartok
37506
37507         * ThemeWin32Classic.cs:
37508           - Added ToolTip drawing code
37509
37510 2004-10-17 22:49  pbartok
37511
37512         * Theme.cs:
37513           - Added ToolTip abstracts
37514
37515 2004-10-17 22:47  pbartok
37516
37517         * Form.cs:
37518           - Fixed Form.ControlCollection to handle owner relations
37519           - Added Owner/OwnedForms handling
37520           - Implemented Z-Ordering for owned forms
37521           - Removed unneeded private overload of ShowDialog
37522           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
37523             so I hope)
37524           - Fixed Close(), had wrong default
37525           - Added firing of OnLoad event
37526           - Added some commented out debug code for Ownership handling
37527
37528 2004-10-17 22:16  pbartok
37529
37530         * Control.cs:
37531           - Fixed/implemented flat list of controls
37532
37533 2004-10-17 22:14  pbartok
37534
37535         * Application.cs:
37536           - Added code to simulate modal dialogs on Win32
37537
37538 2004-10-17 16:11  jordi
37539
37540         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
37541           mouse event
37542
37543 2004-10-17 13:39  jordi
37544
37545         * MenuAPI.cs: menu drawing fixes
37546
37547 2004-10-15 09:10  ravindra
37548
37549         * StructFormat.cs: General Enum.
37550
37551 2004-10-15 09:09  ravindra
37552
37553         * SizeGripStyle.cs: Enum for Form.
37554
37555 2004-10-15 09:08  ravindra
37556
37557         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
37558           in Theme for ListView.
37559
37560 2004-10-15 09:06  ravindra
37561
37562         * ColumnHeader.cs: Flushing some formatting changes.
37563
37564 2004-10-15 09:05  ravindra
37565
37566         * ListViewItem.cs: Implemented GetBounds method and fixed coding
37567           style.
37568
37569 2004-10-15 09:03  ravindra
37570
37571         * ListView.cs: Implemented Paint method and fixed coding style.
37572
37573 2004-10-15 07:34  jordi
37574
37575         * MenuAPI.cs: fix for X11
37576
37577 2004-10-15 07:32  ravindra
37578
37579         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
37580                 - Renamed Paint() method to Draw() for clarity. Also, moved
37581                 DrawImage() to OnPaint().
37582
37583 2004-10-15 07:25  ravindra
37584
37585         * CheckBox.cs, RadioButton.cs:
37586                 - Removed Redraw (), we get it from ButtonBase.
37587                 - Implemented Paint (), to do class specific painting.
37588
37589 2004-10-15 07:16  ravindra
37590
37591         * ButtonBase.cs:
37592                 - Redraw () is not virtual now.
37593                 - Added an internal virtual method Paint (), so that
37594                 derived classes can do their painting on their own.
37595                 - Modified OnPaint () to call Paint ().
37596
37597 2004-10-15 06:43  jordi
37598
37599         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
37600           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
37601
37602 2004-10-15 00:30  ravindra
37603
37604         * MessageBox.cs:
37605                 - MessageBox on windows does not have min/max buttons.
37606                 This change in CreateParams fixes this on Windows. We
37607                 still need to implement this windowstyle behavior in
37608                 our X11 driver.
37609
37610 2004-10-14 05:14  ravindra
37611
37612         * ToolBar.cs:
37613                 - Changed Redraw () to do a Refresh () always.
37614                 - Fixed the MouseMove event handling when mouse is pressed,
37615                 ie drag event handling.
37616                 - Replaced the usage of ToolBarButton.Pressed property to
37617                 ToolBarButton.pressed internal variable.
37618
37619 2004-10-14 05:10  ravindra
37620
37621         * ToolBarButton.cs:
37622                 - Added an internal member 'inside' to handle mouse move
37623                 with mouse pressed ie mouse drag event.
37624                 - Changed 'Pressed' property to return true only when
37625                 'inside' and 'pressed' are both true.
37626                 - Some coding style love.
37627
37628 2004-10-14 00:17  ravindra
37629
37630         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
37631           public method.
37632
37633 2004-10-14 00:15  ravindra
37634
37635         * ButtonBase.cs: Redraw () related improvements.
37636
37637 2004-10-14 00:14  ravindra
37638
37639         * MessageBox.cs: Moved InitFormSize () out of Paint method and
37640           removed unnecessary calls to Button.Show () method.
37641
37642 2004-10-13 17:50  pbartok
37643
37644         * XplatUIX11.cs:
37645           - Formatting fix
37646           - Removed destroying of window until we solve the problem of X
37647             destroying the window before us on shutdown
37648
37649 2004-10-13 16:32  pbartok
37650
37651         * ButtonBase.cs:
37652           - Now Redraws on MouseUp for FlatStyle Flat and Popup
37653
37654 2004-10-13 14:18  pbartok
37655
37656         * XplatUIX11.cs:
37657           - Added code to destroy the X window
37658
37659 2004-10-13 14:18  pbartok
37660
37661         * XplatUIWin32.cs:
37662           - Added code to destroy a window
37663
37664 2004-10-13 14:12  pbartok
37665
37666         * ButtonBase.cs:
37667           - Added the Redraw on Resize that got dropped in the last rev
37668
37669 2004-10-13 09:06  pbartok
37670
37671         * ThemeWin32Classic.cs:
37672           - Path from John BouAntoun:
37673             * Fix check rendering (centre correctly for normal style, offset
37674               correctly for FlatStyle).
37675             * Fix border color usage (use backcolor) for FlatStyle.Popup
37676             * Use checkbox.Capture instead of checkbox.is_pressed when
37677               rendering flatstyle states.
37678
37679 2004-10-12 21:48  pbartok
37680
37681         * ThemeWin32Classic.cs:
37682           - Removed all occurences of SystemColors and replaced them with the
37683             matching theme color
37684
37685 2004-10-12 21:41  pbartok
37686
37687         * ThemeWin32Classic.cs:
37688           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
37689             him using the function for flatstyle drawing
37690           - Changed functions to use the new version of CPDrawBorder3D
37691
37692 2004-10-12 21:15  pbartok
37693
37694         * ControlPaint.cs:
37695           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
37696             match MS documentation. They need to return defined colors if the
37697             passed color matches the configured control color. Thanks to John
37698             BouAntoun for pointing this out.
37699
37700 2004-10-12 20:57  pbartok
37701
37702         * Control.cs:
37703           - Fix from John BouAntoun: Raise ForeColorChanged event when text
37704             color is changed
37705
37706 2004-10-12 20:46  pbartok
37707
37708         * CheckBox.cs:
37709           - Fix from John BouAntoun: Now properly sets the Appearance property
37710
37711 2004-10-12 20:45  pbartok
37712
37713         * ThemeWin32Classic.cs:
37714           - Fixes from John BouAntoun: now handles forecolors and backcolors
37715             for flatstyle rendered controls much better; It also fixes normal
37716             checkbox rendering when pushed or disabled.
37717
37718 2004-10-08 02:50  jordi
37719
37720         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
37721           work
37722
37723 2004-10-07 08:56  jordi
37724
37725         * ThemeWin32Classic.cs: Removes deletion of cached brushes
37726
37727 2004-10-06 03:59  jordi
37728
37729         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
37730           XplatUIWin32.cs: removes warnings from compilation
37731
37732 2004-10-05 12:23  jackson
37733
37734         * RadioButton.cs: Fix ctor
37735
37736 2004-10-05 11:10  pbartok
37737
37738         * MessageBox.cs:
37739           - Partial implementation by Benjamin Dasnois
37740
37741 2004-10-05 10:15  jackson
37742
37743         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
37744           by John BouAntoun
37745
37746 2004-10-05 03:07  ravindra
37747
37748         * ToolBar.cs:
37749                 - Removed a private method, Draw ().
37750                 - Fixed the ButtonDropDown event handling.
37751                 - Fixed MouseMove event handling.
37752
37753 2004-10-05 03:04  ravindra
37754
37755         * ThemeWin32Classic.cs:
37756                 - Added DrawListView method and ListViewDefaultSize property.
37757                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
37758                 - Changed DOS style CRLF to Unix format (dos2unix).
37759
37760 2004-10-05 03:03  ravindra
37761
37762         * Theme.cs:
37763                 - Added DrawListView method and ListViewDefaultSize property.
37764
37765 2004-10-05 02:42  ravindra
37766
37767         * ToolBarButton.cs: Added an internal member dd_pressed to handle
37768           clicks on DropDown arrow.
37769
37770 2004-10-04 22:56  jackson
37771
37772         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
37773           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
37774           Control handle the buffers, derived classes should not have to
37775           CreateBuffers themselves.
37776
37777 2004-10-04 21:20  jackson
37778
37779         * StatusBar.cs: The control handles resizing the buffers now.
37780
37781 2004-10-04 21:18  jackson
37782
37783         * Control.cs: When resizing the buffers should be invalidated. This
37784           should be handled in Control not in derived classes.
37785
37786 2004-10-04 14:45  jackson
37787
37788         * TabPage.cs: oops
37789
37790 2004-10-04 02:14  pbartok
37791
37792         * LeftRightAlignment.cs:
37793           - Initial check-in
37794
37795 2004-10-04 01:09  jordi
37796
37797         * ThemeWin32Classic.cs: fixes right button position causing right
37798           button not showing on horizontal scrollbars
37799
37800 2004-10-02 13:12  pbartok
37801
37802         * XplatUIX11.cs:
37803           - Simplified the Invalidate method by using an X call instead of
37804             generating the expose ourselves
37805           - Added an expose when the window background is changed
37806           - Implemented ClientToScreen method
37807
37808 2004-10-02 13:08  pbartok
37809
37810         * XplatUIWin32.cs:
37811           - Added Win32EnableWindow method (test for implementing modal
37812           dialogs)
37813           - Added ClientToScreen method and imports
37814
37815 2004-10-02 13:07  pbartok
37816
37817         * XplatUI.cs, XplatUIDriver.cs:
37818           - Added ClientToScreen coordinate translation method
37819
37820 2004-10-02 13:06  pbartok
37821
37822         * KeyPressEventArgs.cs:
37823           - Fixed access level for constructor
37824
37825 2004-10-02 13:06  pbartok
37826
37827         * NativeWindow.cs:
37828           - Changed access level for the window_collection hash table
37829
37830 2004-10-02 13:05  pbartok
37831
37832         * Form.cs:
37833           - Added KeyPreview property
37834           - Added Menu property (still incomplete, pending Jordi's menu work)
37835           - Implemented ProcessCmdKey
37836           - Implemented ProcessDialogKey
37837           - Implemented ProcessKeyPreview
37838
37839 2004-10-02 13:02  pbartok
37840
37841         * Control.cs:
37842           - Added private method to get the Control object from the window
37843           handle
37844           - Implemented ContextMenu property
37845           - Implemented PointToScreen
37846           - Implemented PreProcessMessage
37847           - Implemented IsInputChar
37848           - Implemented IsInputKey
37849           - Implemented ProcessCmdKey
37850           - Completed ProcessKeyEventArgs
37851           - Fixed message loop to call the proper chain of functions on key
37852           events
37853           - Implemented ProcessDialogChar
37854           - Implemented ProcessDialogKey
37855           - Implemented ProcessKeyMessage
37856           - Implemented ProcessKeyPreview
37857           - Added RaiseDragEvent stub (MS internal method)
37858           - Added RaiseKeyEvent stub (MS internal method)
37859           - Added RaiseMouseEvent stub (MS Internal method)
37860           - Added RaisePaintEvent stub (MS Internal method)
37861           - Added ResetMouseEventArgs stub (MS Internal method)
37862           - Implemented RtlTranslateAlignment
37863           - Implemented RtlTranslateContent
37864           - Implemented RtlTranslateHorizontal
37865           - Implemented RtlTranslateLeftRight
37866           - Added generation of KeyPress event
37867
37868 2004-10-02 05:57  ravindra
37869
37870         * ListViewItem.cs: Added attributes.
37871
37872 2004-10-02 05:32  ravindra
37873
37874         * ListView.cs: Added attributes.
37875
37876 2004-10-01 11:53  jackson
37877
37878         * Form.cs: Implement the Close method so work on MessageBox can
37879           continue.
37880
37881 2004-09-30 14:06  pbartok
37882
37883         * XplatUIX11.cs:
37884           - Bug fixes
37885
37886 2004-09-30 11:34  jackson
37887
37888         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
37889
37890 2004-09-30 07:26  ravindra
37891
37892         * ListViewItemConverter.cs: Converter for ListViewItem.
37893
37894 2004-09-30 07:26  ravindra
37895
37896         * SortOrder.cs: Enum for ListView control.
37897
37898 2004-09-30 07:25  ravindra
37899
37900         * ColumnHeader.cs: Supporting class for ListView control.
37901
37902 2004-09-30 07:24  ravindra
37903
37904         * ListView.cs, ListViewItem.cs: Initial implementation.
37905
37906 2004-09-30 07:20  ravindra
37907
37908         * ItemActivation.cs: Enum for ListView Control.
37909
37910 2004-09-29 20:29  pbartok
37911
37912         * XplatUIX11.cs:
37913           - Added lookup of pixel value for background color; tries to get a
37914             color 'close' to the requested color, it avoids having to create a
37915             colormap.  Depending on the display this could mean the used color
37916             is slightly off the desired color. Might have to change it to a more
37917             resource intensive colormap approach, but it will work as a
37918           workaround to avoid red screens.
37919
37920 2004-09-29 14:27  jackson
37921
37922         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
37923
37924 2004-09-28 12:44  pbartok
37925
37926         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
37927           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
37928           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
37929           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
37930           TrackBar.cs, VScrollBar.cs:
37931           - Streamlined Theme interfaces:
37932             * Each DrawXXX method for a control now is passed the object for
37933               the control to be drawn in order to allow accessing any state the
37934               theme might require
37935
37936             * ControlPaint methods for the theme now have a CP prefix to avoid
37937               name clashes with the Draw methods for controls
37938
37939             * Every control now retrieves it's DefaultSize from the current
37940             theme
37941
37942 2004-09-28 12:17  jackson
37943
37944         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
37945           drawing
37946
37947 2004-09-24 14:57  jackson
37948
37949         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
37950           Gives us a nice little performance boost.
37951
37952 2004-09-24 12:02  jackson
37953
37954         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
37955           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
37956           Control and supporting classes. Initial checkin
37957
37958 2004-09-23 13:08  jackson
37959
37960         * Form.cs: Temp build fixage
37961
37962 2004-09-23 01:39  ravindra
37963
37964         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
37965           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
37966           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
37967           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
37968           EventHandlers needed by ListView Control.
37969
37970 2004-09-22 14:12  pbartok
37971
37972         * ScrollableControl.cs:
37973           - Implemented DockPadding property
37974           - Implemented AutoScroll property
37975           - Implemented AutoScrollMargin property
37976           - Implemented AutoScrollMinSize property
37977           - Implemented AutoScrollPosition property
37978           - Implemented DisplayRectangle property (still incomplete)
37979           - Implemented CreateParams property
37980           - Implemented HScroll property
37981           - Implemented VScroll property
37982           - Implemented OnVisibleChanged property
37983
37984 2004-09-22 14:09  pbartok
37985
37986         * Form.cs:
37987           - Added Form.ControllCollection class
37988           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
37989             RemoveOwnedForm (still incomplete, missing on-top and common
37990             minimize/maximize behaviour)
37991           - Added StartPosition property (still incomplete, does not use when
37992             creating the form)
37993           - Added ShowDialog() methods (still incomplete, missing forcing the
37994             dialog modal)
37995
37996 2004-09-22 14:05  pbartok
37997
37998         * Application.cs:
37999           - Added message loop for modal dialogs
38000
38001 2004-09-22 14:02  pbartok
38002
38003         * GroupBox.cs:
38004           - Fixed wrong types for events
38005
38006 2004-09-22 14:00  pbartok
38007
38008         * Shortcut.cs, FormWindowState.cs:
38009           - Fixed wrong values
38010
38011 2004-09-22 12:01  jackson
38012
38013         * Control.cs: Text is never null
38014
38015 2004-09-20 22:14  pbartok
38016
38017         * XplatUIWin32.cs:
38018           - Fixed accessibility level for Idle handler
38019
38020 2004-09-20 18:54  jackson
38021
38022         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38023           XplatUIX11.cs: New message loop that uses poll so we don't get a
38024           busy loop
38025
38026 2004-09-17 10:43  pbartok
38027
38028         * ScrollBar.cs:
38029           - Fixed behaviour of arrow buttons. Now properly behaves like
38030             Buttons (and like Microsoft's scrollbar arrow buttons)
38031
38032 2004-09-17 10:14  pbartok
38033
38034         * ScrollBar.cs:
38035           - Added missing release of keyboard/mouse capture
38036
38037 2004-09-17 06:18  jordi
38038
38039         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
38040           Theme.cs: Very early menu support
38041
38042 2004-09-16 17:45  pbartok
38043
38044         * XplatUIWin32.cs:
38045           - Fixed sending a window to the front
38046           - Added overload for SetWindowPos to avoid casting
38047
38048 2004-09-16 17:44  pbartok
38049
38050         * Control.cs:
38051           - Added SendToBack and BringToFront methods
38052
38053 2004-09-16 07:00  ravindra
38054
38055         * Copyright: Added Novell URL.
38056
38057 2004-09-16 07:00  ravindra
38058
38059         * ToolBar.cs: Invalidate should be done before redrawing.
38060
38061 2004-09-15 21:19  ravindra
38062
38063         * ColumnHeaderStyle.cs: Enum for ListView Control.
38064
38065 2004-09-15 21:18  ravindra
38066
38067         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
38068           ListView Control.
38069
38070 2004-09-13 18:26  jackson
38071
38072         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
38073           properly
38074
38075 2004-09-13 18:13  jackson
38076
38077         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
38078           a second thread and post messages into the main threads message
38079           queue. This makes timing much more consistent. Both win2K and XP
38080           have a minimum timer value of 15 milliseconds, so we now do this
38081           too.
38082
38083 2004-09-13 15:18  pbartok
38084
38085         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38086           XplatUIX11.cs:
38087           - Added Z-Ordering methods
38088
38089 2004-09-13 10:56  pbartok
38090
38091         * Form.cs:
38092           - Fixed #region names
38093           - Moved properties and methods into their proper #regions
38094
38095 2004-09-13 10:51  pbartok
38096
38097         * Form.cs:
38098           - Added Accept and CancelButton properties
38099           - Added ProcessDialogKey() method
38100
38101 2004-09-13 08:18  pbartok
38102
38103         * IWindowTarget.cs:
38104           - Initial check-in
38105
38106 2004-09-10 21:50  pbartok
38107
38108         * Control.cs:
38109           - Added DoDragDrop() [incomplete]
38110           - Properly implemented 'Visible' handling
38111           - Added SetVisibleCore()
38112           - Implemented FindChildAtPoint()
38113           - Implemented GetContainerControl()
38114           - Implemented Hide()
38115
38116 2004-09-10 19:28  pbartok
38117
38118         * Control.cs:
38119           - Moved methods into their appropriate #regions
38120           - Reordered methods within regions alphabetically
38121
38122 2004-09-10 18:57  pbartok
38123
38124         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38125           - Added method to retrieve text from window
38126
38127 2004-09-10 18:56  pbartok
38128
38129         * Control.cs:
38130           - Moved some internal functions into the internal region
38131           - Implemented FontHeight
38132           - Implemented RenderRightToLeft
38133           - Implemented ResizeRedraw
38134           - Implemented ShowFocusCues
38135           - Implemented ShowKeyboardCues
38136           - Implemented FromChildHandle
38137           - Implemented FromHandle
38138           - Implemented IsMnemonic
38139           - Implemented ReflectMessage
38140           - All public and protected Static Methods are now complete
38141
38142 2004-09-10 16:54  pbartok
38143
38144         * Control.cs:
38145           - Implemented remaining missing public instance properties
38146           - Alphabetized some out of order properties
38147
38148 2004-09-10 05:51  ravindra
38149
38150         * PictureBox.cs: Added a check for null image.
38151
38152 2004-09-10 00:59  jordi
38153
38154         * GroupBox.cs: remove cvs tag
38155
38156 2004-09-09 05:25  ravindra
38157
38158         * ToolBar.cs: Make redraw accessible from ToolBarButton.
38159
38160 2004-09-09 05:23  ravindra
38161
38162         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
38163           parent redraw.
38164
38165 2004-09-09 02:28  pbartok
38166
38167         * ThemeWin32Classic.cs:
38168           - Improve disabled string look
38169
38170 2004-09-09 01:15  jordi
38171
38172         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
38173           args and handler
38174
38175 2004-09-08 23:56  ravindra
38176
38177         * ItemBoundsPortion.cs: It's enum, not a class!
38178
38179 2004-09-08 23:47  ravindra
38180
38181         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
38182           Enums for Form.
38183
38184 2004-09-08 21:13  ravindra
38185
38186         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
38187           ListView control.
38188
38189 2004-09-08 21:03  ravindra
38190
38191         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
38192           avoid crash.
38193
38194 2004-09-08 21:01  ravindra
38195
38196         * ScrollableControl.cs: Removed unreachable code.
38197
38198 2004-09-08 06:45  jordi
38199
38200         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
38201
38202 2004-09-08 01:00  jackson
38203
38204         * XplatUIX11.cs: Only run the timers when updating the message
38205           queue. This effectively gives X messages a higher priority then
38206           timer messages. Timers still need love though
38207
38208 2004-09-07 14:01  jackson
38209
38210         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
38211           this for us and the handle is no longer valid.
38212
38213 2004-09-07 13:59  jackson
38214
38215         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
38216           loop that manages to not crash. TODO: Add poll and cleanup timers
38217
38218 2004-09-07 11:12  jordi
38219
38220         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
38221
38222 2004-09-07 03:40  jordi
38223
38224         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
38225           fixes, methods, multiple links
38226
38227 2004-09-06 06:55  jordi
38228
38229         * Control.cs: Caches ClientRectangle rectangle value
38230
38231 2004-09-05 02:03  jordi
38232
38233         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
38234           certain situations
38235
38236 2004-09-04 11:10  jordi
38237
38238         * Label.cs: Refresh when font changed
38239
38240 2004-09-02 16:24  pbartok
38241
38242         * Control.cs:
38243           - Added sanity check to creation of double buffer bitmap
38244
38245 2004-09-02 16:24  pbartok
38246
38247         * ButtonBase.cs:
38248           - Fixed selection of text color
38249           - Fixed handling of resize event; now properly recreates double
38250             buffering bitmap
38251           - Added missing assignment of TextAlignment
38252           - Added proper default for TextAlignment
38253
38254 2004-09-02 14:26  pbartok
38255
38256         * RadioButton.cs:
38257           - Added missing RadioButton.RadioButtonAccessibleObject class
38258
38259 2004-09-02 14:26  pbartok
38260
38261         * Control.cs:
38262           - Added missing Control.ControlAccessibleObject class
38263           - Started to implement Select()ion mechanisms, still very incomplete
38264
38265 2004-09-02 14:25  pbartok
38266
38267         * AccessibleObject.cs:
38268           - Added missing methods
38269
38270 2004-09-02 14:23  pbartok
38271
38272         * AccessibleNavigation.cs, AccessibleSelection.cs:
38273           - Initial check-in
38274
38275 2004-09-02 10:32  jordi
38276
38277         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
38278           pool for pens, brushes, and hatchbruses
38279
38280 2004-09-01 15:30  jackson
38281
38282         * StatusBar.cs: Fix typo
38283
38284 2004-09-01 14:44  pbartok
38285
38286         * RadioButton.cs:
38287           - Fixed state
38288
38289 2004-09-01 14:39  pbartok
38290
38291         * Button.cs, RadioButton.cs:
38292           - Functional initial check-in
38293
38294 2004-09-01 14:01  pbartok
38295
38296         * CheckBox.cs:
38297           - Added missing default
38298           - Added missing region mark
38299
38300 2004-09-01 09:10  jordi
38301
38302         * Label.cs: fixes method signatures, new methods, events, fixes
38303           autosize
38304
38305 2004-09-01 07:19  jordi
38306
38307         * Control.cs: Init string variables with an empty object
38308
38309 2004-09-01 04:20  jordi
38310
38311         * Control.cs: fires OnFontChanged event
38312
38313 2004-08-31 20:07  pbartok
38314
38315         * ButtonBase.cs:
38316           - Enabled display of strings
38317
38318 2004-08-31 20:05  pbartok
38319
38320         * Form.cs:
38321           - Added (partial) implementation of DialogResult; rest needs to be
38322             implemented when the modal loop code is done
38323
38324 2004-08-31 19:55  pbartok
38325
38326         * CheckBox.cs:
38327           - Fixed to match the removal of the needs_redraw concept
38328
38329 2004-08-31 19:55  pbartok
38330
38331         * ButtonBase.cs:
38332           - Removed the rather odd split between 'needs redraw' and redrawing
38333           - Now handles the events that require regeneration (ambient
38334             properties and size)
38335
38336 2004-08-31 19:41  pbartok
38337
38338         * Control.cs:
38339           - Added firing of BackColorChanged event
38340           - Added TopLevelControl property
38341           - Fixed handling of WM_ERASEBKGRND message
38342
38343 2004-08-31 12:49  pbartok
38344
38345         * ButtonBase.cs:
38346           - Removed debug
38347           - Minor fixes
38348
38349 2004-08-31 12:48  pbartok
38350
38351         * CheckBox.cs:
38352           - Finished (famous last words)
38353
38354 2004-08-31 04:35  jordi
38355
38356         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
38357           scrolling bugs, adds new methods
38358
38359 2004-08-30 14:42  pbartok
38360
38361         * CheckBox.cs:
38362           - Implemented CheckBox drawing code
38363
38364 2004-08-30 14:42  pbartok
38365
38366         * ButtonBase.cs:
38367           - Made Redraw() and CheckRedraw() virtual
38368           - Improved mouse up/down/move logic to properly track buttons
38369
38370 2004-08-30 09:44  pbartok
38371
38372         * CheckBox.cs:
38373           - Updated to fix broken build. Not complete yet.
38374
38375 2004-08-30 09:28  pbartok
38376
38377         * CheckState.cs:
38378           - Initial checkin
38379
38380 2004-08-30 09:17  pbartok
38381
38382         * Appearance.cs:
38383           - Initial check-in
38384
38385 2004-08-27 16:12  ravindra
38386
38387         * ToolBarButton.cs: Added TypeConverter attribute.
38388
38389 2004-08-27 16:07  ravindra
38390
38391         * ImageIndexConverter.cs: Implemented.
38392
38393 2004-08-27 14:17  pbartok
38394
38395         * Control.cs:
38396           - Removed unneeded stack vars
38397           - First attempt to fix sizing issues when layout is suspended
38398
38399 2004-08-25 15:35  jordi
38400
38401         * ScrollBar.cs: more fixes to scrollbar
38402
38403 2004-08-25 14:04  ravindra
38404
38405         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
38406           Added the missing divider code and grip for ToolBar Control.
38407
38408 2004-08-25 13:20  pbartok
38409
38410         * Control.cs:
38411           - Control now properly passes the ambient background color to child
38412             controls
38413
38414 2004-08-25 13:20  jordi
38415
38416         * ScrollBar.cs: small bug fix regarding bar position
38417
38418 2004-08-25 12:33  pbartok
38419
38420         * Timer.cs:
38421           - Now only calls SetTimer or KillTimer if the enabled state has
38422           changed
38423
38424 2004-08-25 12:33  pbartok
38425
38426         * XplatUIWin32.cs:
38427           - Fixed timer handling, now seems to work
38428           - Improved error message for window creation
38429
38430 2004-08-25 12:32  pbartok
38431
38432         * Control.cs:
38433           - Fixed generation of MouseUp message
38434
38435 2004-08-25 12:29  jordi
38436
38437         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
38438           and fixes for progressbar
38439
38440 2004-08-24 18:43  ravindra
38441
38442         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
38443           in ToolBar control.
38444
38445 2004-08-24 17:15  pbartok
38446
38447         * Panel.cs:
38448           - Added #region
38449           - Added missing events
38450           - Alphabetized
38451
38452 2004-08-24 17:14  pbartok
38453
38454         * StatusBar.cs, PictureBox.cs:
38455           - Now uses Control's CreateParams
38456
38457 2004-08-24 16:36  pbartok
38458
38459         * XplatUIX11.cs:
38460           - Fixed background color handling
38461           - Fixed sending of enter/leave events on a grab
38462
38463 2004-08-24 16:35  pbartok
38464
38465         * X11Structs.cs:
38466           - Refined definitions for CrossingEvent
38467
38468 2004-08-24 12:37  jordi
38469
38470         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
38471           formmating, methods signature, and adds missing events
38472
38473 2004-08-24 12:24  jordi
38474
38475         * Control.cs: fire OnEnabledChanged event
38476
38477 2004-08-24 11:17  pbartok
38478
38479         * XplatUIWin32.cs:
38480           - Implemented SetTimer() and KillTimer()
38481
38482 2004-08-24 11:16  pbartok
38483
38484         * XplatUIX11.cs:
38485           - Now uses Remove instead of Add to kill the timer
38486
38487 2004-08-24 10:16  jackson
38488
38489         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
38490           picture boxes in the theme now. Draw picture box borders and obey
38491           sizing modes
38492
38493 2004-08-24 05:49  jackson
38494
38495         * Timer.cs: Remove top secret debugging code
38496
38497 2004-08-24 05:34  jackson
38498
38499         * PictureBox.cs: Temp hack to make picture boxes draw their full
38500           image
38501
38502 2004-08-24 05:29  jackson
38503
38504         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38505           XplatUIX11.cs: Move timers to the driver level. On X they are
38506           queued by the driver and checked on idle.
38507
38508 2004-08-24 01:07  jackson
38509
38510         * XplatUIX11.cs: Use a queue for async messages instead of passing
38511           them as ClientMessages since that was totally broken. Also simply
38512           check for events and return an idle message if none are found. This
38513           gives us an idle handler, and prevents deadlocking when no messages
38514           are in the queue.
38515
38516 2004-08-23 18:19  ravindra
38517
38518         * XplatUIWin32.cs: Removed the unwanted destructor.
38519
38520 2004-08-23 17:27  pbartok
38521
38522         * ButtonBase.cs:
38523           - Finishing touches. Works now, just needs some optimizations.
38524
38525 2004-08-23 16:53  jordi
38526
38527         * ScrollBar.cs: small fix
38528
38529 2004-08-23 16:45  pbartok
38530
38531         * Application.cs:
38532           - Removed debug output
38533           - Simplifications
38534
38535 2004-08-23 16:43  jordi
38536
38537         * ScrollBar.cs: [no log message]
38538
38539 2004-08-23 16:10  pbartok
38540
38541         * Form.cs:
38542           - Fixed handling of WM_CLOSE message
38543           - Removed debug output
38544
38545 2004-08-23 16:09  pbartok
38546
38547         * Application.cs:
38548           - Added handling of Idle event
38549           - Added handling of form closing
38550           - Fixed reporting of MessageLoop property
38551           - Removed some unneeded code, should provide a bit of a speedup
38552
38553 2004-08-23 15:22  pbartok
38554
38555         * Control.cs:
38556           - Added InitLayout() method
38557           - Added code to properly perform layout when Anchor or Dock property
38558             is changed
38559           - Changed 'interpretation' of ResumeLayout. MS seems to have a
38560             LAMESPEC, tried to do it in a way that makes sense
38561
38562 2004-08-23 14:10  jordi
38563
38564         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
38565           properties and methods
38566
38567 2004-08-23 13:55  pbartok
38568
38569         * Control.cs:
38570           - Properly fixed Jordi's last fix
38571           - Now uses Cursor's Position property instead of calling XplatUI
38572           directly
38573
38574 2004-08-23 13:44  jordi
38575
38576         * PaintEventHandler.cs: Adding missing attribute
38577
38578 2004-08-23 13:39  pbartok
38579
38580         * Cursor.cs:
38581           - Implemented Position property
38582
38583 2004-08-23 13:39  pbartok
38584
38585         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38586           - Added method to move mouse cursor
38587
38588 2004-08-23 13:39  pbartok
38589
38590         * XplatUIX11.cs:
38591           - Fixed setting of background color
38592           - Added method to move mouse cursor
38593
38594 2004-08-23 13:16  jordi
38595
38596         * Control.cs: avoids null exception
38597
38598 2004-08-22 17:46  jackson
38599
38600         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
38601           PictureBox
38602
38603 2004-08-22 17:40  jackson
38604
38605         * XplatUIX11.cs: Add some missing locks
38606
38607 2004-08-22 15:10  pbartok
38608
38609         * Control.cs, Form.cs:
38610           - Removed OverlappedWindow style from Control, instead it's default
38611             now is child
38612           - Made form windows OverlappedWindow by default
38613
38614 2004-08-22 13:34  jackson
38615
38616         * ScrollBar.cs: Update the position through the Value property so
38617           the OnValueChanged event is raised.
38618
38619 2004-08-22 12:04  pbartok
38620
38621         * SWF.csproj:
38622           - Added Cursor.cs and UserControl.cs
38623
38624 2004-08-22 12:03  pbartok
38625
38626         * Cursor.cs:
38627           - Started implementation, not usable yet
38628
38629 2004-08-22 12:00  pbartok
38630
38631         * UserControl.cs:
38632           - Implemented UserControl (complete)
38633
38634 2004-08-21 19:20  ravindra
38635
38636         * ToolBar.cs: Correcting the formatting mess of VS.NET.
38637
38638 2004-08-21 18:49  ravindra
38639
38640         * ToolBar.cs: Probably this completes the missing attributes in
38641           toolbar control.
38642
38643 2004-08-21 18:03  ravindra
38644
38645         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
38646           Fixed toolbar control signatures.
38647
38648 2004-08-21 16:32  pbartok
38649
38650         * LinkLabel.cs:
38651           - Signature Fixes
38652
38653 2004-08-21 16:30  pbartok
38654
38655         * Label.cs:
38656           - Signature fixes
38657
38658 2004-08-21 16:19  pbartok
38659
38660         * Control.cs, Label.cs:
38661           - Signature fixes
38662
38663 2004-08-21 15:57  pbartok
38664
38665         * ButtonBase.cs:
38666           - Added loads of debug output for development
38667           - Fixed typo in method name
38668
38669 2004-08-21 15:52  pbartok
38670
38671         * ToolBarButtonClickEventArgs.cs:
38672           - Added missing base class
38673
38674 2004-08-21 14:53  pbartok
38675
38676         * Control.cs:
38677           - Updated to match new GrabWindow signature
38678
38679 2004-08-21 14:51  pbartok
38680
38681         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38682           - Added method to get default display size
38683
38684 2004-08-21 14:23  pbartok
38685
38686         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38687           - Added method to query current grab state
38688           - Added argument to allow confining a grab to a window
38689
38690 2004-08-21 14:22  pbartok
38691
38692         * Keys.cs:
38693           - Added [Flags] attribute so that modifiers can be used in bitwise
38694           ops
38695
38696 2004-08-21 14:21  pbartok
38697
38698         * TrackBar.cs, ScrollBar.cs:
38699           - Replaced direct XplatUI calls with their Control counterpart
38700
38701 2004-08-21 13:32  pbartok
38702
38703         * Control.cs:
38704           - Implemented Created property
38705
38706 2004-08-21 13:28  pbartok
38707
38708         * Control.cs:
38709           - Implemented ContainsFocus
38710
38711 2004-08-21 13:26  pbartok
38712
38713         * Control.cs:
38714           - Implemented CausesValidation
38715
38716 2004-08-21 13:21  pbartok
38717
38718         * Control.cs:
38719           - Implemented CanFocus
38720           - Implemented CanSelect
38721           - Implemented Capture
38722
38723 2004-08-21 12:35  pbartok
38724
38725         * XplatUIWin32.cs:
38726           - Fixed bug with Async message handling
38727           - Implemented getting the ModifierKeys
38728
38729 2004-08-21 12:32  jackson
38730
38731         * AsyncMethodResult.cs: Make sure we have the mutex before we
38732           release it. Fixes BeginInvoke on windows
38733
38734 2004-08-21 11:31  pbartok
38735
38736         * XplatUIWin32.cs, XplatUIX11.cs:
38737           - Drivers now return proper mouse state
38738
38739 2004-08-21 10:54  jackson
38740
38741         * Control.cs: Implement EndInvoke
38742
38743 2004-08-21 10:48  jackson
38744
38745         * Timer.cs: Remove unneeded finalizer
38746
38747 2004-08-20 19:52  ravindra
38748
38749         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
38750           in mouse event handling in the ToolBar control.
38751
38752 2004-08-20 19:50  ravindra
38753
38754         * ImageList.cs: Changed draw method to use the arguments passed in
38755           to draw the image.
38756
38757 2004-08-20 18:58  pbartok
38758
38759         * XplatUIStructs.cs:
38760           - Added private message for async communication
38761
38762 2004-08-20 17:38  ravindra
38763
38764         * Control.cs: Made RightToLeft property virtual and removed a
38765           Console.WriteLine.
38766
38767 2004-08-20 14:39  jordi
38768
38769         * ThemeGtk.cs: use style_attach
38770
38771 2004-08-20 14:39  pbartok
38772
38773         * XplatUIWin32.cs:
38774           - Added jackson's Async code from X11 to Win32
38775
38776 2004-08-20 14:09  pbartok
38777
38778         * SWF.csproj:
38779           - Added all new files
38780
38781 2004-08-20 14:09  pbartok
38782
38783         * Control.cs:
38784           - Added call to set window background color
38785
38786 2004-08-20 14:03  pbartok
38787
38788         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38789           - Added method for setting the window background
38790
38791 2004-08-20 14:02  pbartok
38792
38793         * XplatUIWin32.cs:
38794           - Added method for setting the background color
38795           - Added handling for erasing the window background
38796
38797 2004-08-20 13:45  jordi
38798
38799         * TrackBar.cs: fixes timer, new properties and methods
38800
38801 2004-08-20 13:34  jackson
38802
38803         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
38804           correct thread
38805
38806 2004-08-20 13:22  jackson
38807
38808         * Timer.cs: Timer Tick events are now handed through Controls Async
38809           mechanism so the callbacks are executed in the same thread as X
38810
38811 2004-08-20 13:19  jackson
38812
38813         * XplatUIDriver.cs: Expose functionality to send async messages
38814           through the driver
38815
38816 2004-08-20 13:18  jackson
38817
38818         * Control.cs: Implement Begininvoke
38819
38820 2004-08-20 13:14  jackson
38821
38822         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
38823           messages through the driver
38824
38825 2004-08-20 13:12  jackson
38826
38827         * XplatUIX11.cs: Lock before all X operations. Also added Async
38828           method functionality through XSendEvent
38829
38830 2004-08-20 13:11  jackson
38831
38832         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
38833           This will screw up on 64 bit systems)
38834
38835 2004-08-20 13:10  jackson
38836
38837         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
38838           Async messages through X/Win32
38839
38840 2004-08-19 19:39  pbartok
38841
38842         * XplatUIX11.cs:
38843           - Updated code to match new HandleData.DeviceContext type
38844
38845 2004-08-19 19:38  pbartok
38846
38847         * HandleData.cs:
38848           - Made DeviceContext a generic object to allow usage from various
38849           drivers
38850           - Added support for queueing Windows messages
38851
38852 2004-08-19 19:37  pbartok
38853
38854         * XplatUIWin32.cs:
38855           - Added generation of MouseEnter, MouseLeave and MouseHover events
38856           - Added cleanup on EndPaint
38857
38858 2004-08-19 19:17  pbartok
38859
38860         * Control.cs:
38861           - Added handling of WM_MOUSEHOVER
38862           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
38863           code
38864
38865 2004-08-19 18:55  jordi
38866
38867         * ThemeGtk.cs: fixes button order
38868
38869 2004-08-19 18:12  jordi
38870
38871         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
38872
38873 2004-08-19 17:09  pbartok
38874
38875         * Control.cs:
38876           - Added Right property
38877           - Added RightToLeft property
38878
38879 2004-08-19 16:27  jordi
38880
38881         * ThemeGtk.cs: experimental GTK theme support
38882
38883 2004-08-19 16:26  jordi
38884
38885         * ITheme.cs, Theme.cs: move themes from an interface to a class
38886
38887 2004-08-19 16:25  jordi
38888
38889         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
38890           theme enhancaments
38891
38892 2004-08-19 16:04  pbartok
38893
38894         * XplatUIX11.cs:
38895           - Added colormap basics
38896           - Added a way to re-initialize with a different display handle
38897           - Fixed setting of the window background color
38898           - Added various X11 imports related to colors and colormaps
38899
38900 2004-08-19 15:51  pbartok
38901
38902         * X11Structs.cs:
38903           - Removed packing hints (Paolo suggested this a while back)
38904           - fixed colormap type
38905           - Added default Atom types
38906           - Added Screen and color structs and enums
38907
38908 2004-08-19 15:39  pbartok
38909
38910         * ImageList.cs:
38911           - Added missing Draw() method
38912           - Added missing RecreateHandle event
38913
38914 2004-08-19 15:30  pbartok
38915
38916         * Form.cs:
38917           - Added handling of WM_CLOSE
38918
38919 2004-08-18 13:16  jordi
38920
38921         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
38922           a table
38923
38924 2004-08-18 09:56  jordi
38925
38926         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
38927
38928 2004-08-17 15:31  ravindra
38929
38930         * SWF.csproj: Updated project.
38931
38932 2004-08-17 15:25  pbartok
38933
38934         * Control.cs:
38935           - Drawing improvement; don't call UpdateBounds if we are not visible
38936             (or have been minimized)
38937
38938 2004-08-17 15:24  pbartok
38939
38940         * XplatUIWin32.cs:
38941           - Finished IsVisible
38942           - Added Win32GetWindowPlacement
38943
38944 2004-08-17 15:08  jackson
38945
38946         * Panel.cs: Initial checkin of the Panel
38947
38948 2004-08-17 14:25  pbartok
38949
38950         * Control.cs:
38951           - Fixed broken handling of default window sizes
38952
38953 2004-08-17 13:29  jackson
38954
38955         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
38956           has a large startup time.
38957
38958 2004-08-17 10:25  jackson
38959
38960         * HandleData.cs: union areas properly
38961
38962 2004-08-17 10:12  jackson
38963
38964         * HandleData.cs: union areas properly
38965
38966 2004-08-16 20:00  ravindra
38967
38968         * ToolBar.cs, ToolBarButton.cs: Added attributes.
38969
38970 2004-08-16 18:48  ravindra
38971
38972         * ToolBar.cs: Added attributes.
38973
38974 2004-08-16 17:17  ravindra
38975
38976         * SWF.csproj: Updated project.
38977
38978 2004-08-16 17:16  jackson
38979
38980         * XplatUIX11.cs: Check for more expose events before sending a
38981           WM_PAINT so they can all be grouped together. This makes dragging a
38982           window across another window redraw in a sane way.
38983
38984 2004-08-16 15:47  pbartok
38985
38986         * Control.cs:
38987           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
38988             support OnMouseEnter/Leave()
38989           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
38990             exposure handling
38991
38992 2004-08-16 15:46  pbartok
38993
38994         * XplatUIStructs.cs, XplatUIX11.cs:
38995           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
38996           OnMouseEnter/Leave()
38997
38998 2004-08-16 15:34  jackson
38999
39000         * XplatUIX11.cs: Group multiple expose events in HandleData, make
39001           sure messages get the message field set to WM_NULL if they are not
39002           handled.
39003
39004 2004-08-16 15:24  jackson
39005
39006         * HandleData.cs: HandleData is used for storing message information
39007           for window handles
39008
39009 2004-08-15 17:23  ravindra
39010
39011         * ColorDepth.cs: Added attribute.
39012
39013 2004-08-15 17:23  ravindra
39014
39015         * SWF.csproj: Updated project for ToolBar Control.
39016
39017 2004-08-15 17:20  ravindra
39018
39019         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
39020           control and also dos2unix format.
39021
39022 2004-08-15 17:13  ravindra
39023
39024         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
39025           ToolBarButtonClickEventArgs.cs,
39026           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
39027           ToolBarTextAlign.cs: First Implementation of ToolBar control.
39028
39029 2004-08-15 15:31  pbartok
39030
39031         * ButtonBase.cs:
39032           - First (mostly) working version
39033
39034 2004-08-13 16:15  pbartok
39035
39036         * Control.cs:
39037           - Fixed Anchor default
39038
39039 2004-08-13 15:43  pbartok
39040
39041         * Control.cs:
39042           - Changed GetCursorPos signature
39043
39044 2004-08-13 15:42  pbartok
39045
39046         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39047           - Changed signature for GetCursorPos
39048
39049 2004-08-13 15:25  pbartok
39050
39051         * XplatUIX11.cs:
39052           - Cleanup
39053           - Fixed resizing/exposure handling
39054
39055 2004-08-13 15:22  jordi
39056
39057         * ThemeWin32Classic.cs: removes redundant code and fixes issues
39058           with tickposition
39059
39060 2004-08-13 14:55  jordi
39061
39062         * TrackBar.cs: change from wndproc to events
39063
39064 2004-08-13 13:00  jordi
39065
39066         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39067           XplatUIX11.cs: implements PointToClient (ScreenToClient)
39068
39069 2004-08-13 12:53  pbartok
39070
39071         * XplatUIWin32.cs:
39072           - Changed GetWindowPos to also provide client area size
39073           - Fixed broken prototypes for several win32 functions
39074
39075 2004-08-13 12:53  pbartok
39076
39077         * XplatUI.cs, XplatUIDriver.cs:
39078           - Changed GetWindowPos to also provide client area size
39079
39080 2004-08-13 12:52  pbartok
39081
39082         * XplatUIX11.cs:
39083           - Added generation of WM_POSCHANGED
39084           - Changed GetWindowPos to also provide client area size
39085
39086 2004-08-13 12:52  pbartok
39087
39088         * Control.cs:
39089           - Added Dispose() and destructor
39090           - Fixed resizing and bounds calculation
39091           - Fixed Layout
39092           - Added memory savings for invisible windows
39093
39094 2004-08-13 12:46  jordi
39095
39096         * TrackBar.cs: adds timer and grap window
39097
39098 2004-08-13 10:25  jackson
39099
39100         * Timer.cs: SWF Timer
39101
39102 2004-08-12 16:59  pbartok
39103
39104         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39105           - Implemented method to get current mouse position
39106
39107 2004-08-12 14:29  jordi
39108
39109         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
39110           enhancement, fix mouse problems, highli thumb, etc
39111
39112 2004-08-12 13:31  pbartok
39113
39114         * Control.cs:
39115           - Fixed Anchoring bugs
39116
39117 2004-08-12 13:01  jackson
39118
39119         * StatusBar.cs: Don't forget things
39120
39121 2004-08-12 12:54  jackson
39122
39123         * ThemeWin32Classic.cs: Handle owner draw status bars
39124
39125 2004-08-12 12:54  jackson
39126
39127         * StatusBar.cs: Implement missing properties, events, and methods.
39128           Handle mouse clicking
39129
39130 2004-08-12 10:19  jackson
39131
39132         * StatusBarPanelClickEventArgs.cs,
39133           StatusBarPanelClickEventHandler.cs: Classes for handling status
39134           bar panel click events
39135
39136 2004-08-12 10:10  jackson
39137
39138         * Control.cs: Add missing properties
39139
39140 2004-08-12 09:46  pbartok
39141
39142         * BindingsManagerBase.cs:
39143           - Name changed to BindingManagerBase.cs
39144
39145 2004-08-12 09:25  jordi
39146
39147         * ScrollableControl.cs: calls ctrlbase instead of exeception
39148
39149 2004-08-11 16:28  pbartok
39150
39151         * InputLanguageChangingEventArgs.cs:
39152           - Never check in before compiling. Fixes the last check-in
39153
39154 2004-08-11 16:26  pbartok
39155
39156         * InputLanguageChangingEventArgs.cs:
39157           - More signature fixes
39158
39159 2004-08-11 16:20  pbartok
39160
39161         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
39162           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
39163           ImageListStreamer.cs, InputLanguage.cs,
39164           InputLanguageChangedEventArgs.cs,
39165           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
39166           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
39167           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
39168           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39169           - Signature fixes
39170
39171 2004-08-11 16:16  pbartok
39172
39173         * Application.cs:
39174           - Fixed Signature
39175           - Added .Net 1.1 method
39176
39177 2004-08-11 15:25  pbartok
39178
39179         * SWF.csproj:
39180           - Fixed BindingManagerBase.cs filename
39181
39182 2004-08-11 15:22  pbartok
39183
39184         * BindingManagerBase.cs:
39185           - Was checked in with wrong filename
39186
39187 2004-08-11 14:50  pbartok
39188
39189         * SWF.csproj:
39190           - Updated
39191
39192 2004-08-11 13:41  jordi
39193
39194         * XplatUIWin32.cs: Fixes ClientRect
39195
39196 2004-08-11 13:19  pbartok
39197
39198         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39199           XplatUIX11.cs:
39200           - We had SetWindowPos and MoveWindow to set window positions and
39201             size, removed MoveWindow. We have GetWindowPos, so it made sense to
39202             keep SetWindowPos as matching counterpart
39203           - Added some X11 sanity checking
39204
39205 2004-08-11 12:59  pbartok
39206
39207         * Control.cs:
39208           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
39209             (It seems that SetBounds is just a front for SetBoundsCore and
39210              SetBoundsCore updates the underlying window system and
39211              UpdateBounds is responsible for updating the variables associated
39212              with the Control and sending the events)
39213           - Major cleanup of Size handling; we now have two sizes, client_size
39214             and bounds. Bounds defines the window with decorations, client_size
39215             without them.
39216
39217 2004-08-11 12:55  pbartok
39218
39219         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39220           - Added method to calculate difference between decorated window and
39221             raw client area
39222
39223 2004-08-11 12:54  pbartok
39224
39225         * Label.cs:
39226           - Forcing redraw on resize
39227
39228 2004-08-11 11:43  pbartok
39229
39230         * ImageList.cs:
39231           - Removed disposing of the actual images when the list is disposed
39232
39233 2004-08-11 09:13  pbartok
39234
39235         * Control.cs:
39236           - Now properly reparents windows
39237
39238 2004-08-11 08:37  pbartok
39239
39240         * Control.cs:
39241           - Duh!
39242
39243 2004-08-11 07:47  pbartok
39244
39245         * Control.cs:
39246           - Rewrote the collection stuff. Might not be as fast now, not
39247             keeping the number of children around and accessible directly, but
39248             it's more straightforward
39249
39250 2004-08-11 07:44  pbartok
39251
39252         * AccessibleObject.cs:
39253           - Fixed to match ControlCollection rewrite
39254
39255 2004-08-11 07:43  pbartok
39256
39257         * ImageList.cs:
39258           - Added missing creation of the collection list
39259
39260 2004-08-10 20:08  jackson
39261
39262         * StatusBar.cs: Get the paint message from WndProc
39263
39264 2004-08-10 19:31  jackson
39265
39266         * ThemeWin32Classic.cs: Create Brushes as little as possible
39267
39268 2004-08-10 19:20  jackson
39269
39270         * UICues.cs: Add Flags attribute
39271
39272 2004-08-10 19:19  jackson
39273
39274         * StatusBarPanel.cs: Signature cleanup
39275
39276 2004-08-10 19:10  jackson
39277
39278         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
39279           Initial implementation of status bar item drawing
39280
39281 2004-08-10 17:27  jordi
39282
39283         * TrackBar.cs: add missing methods, properties, and restructure to
39284           hide extra ones
39285
39286 2004-08-10 16:24  jackson
39287
39288         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
39289           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
39290           attribute
39291
39292 2004-08-10 13:21  jordi
39293
39294         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
39295           enhancements and standarize on win colors defaults
39296
39297 2004-08-10 12:52  jackson
39298
39299         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
39300           ThemeWin32Classic.cs: Implement DrawItem functionality
39301
39302 2004-08-10 12:47  jordi
39303
39304         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
39305
39306 2004-08-10 12:32  jordi
39307
39308         * Control.cs: throw ontextchange event
39309
39310 2004-08-10 11:43  pbartok
39311
39312         * Control.cs:
39313           - Added more to the still unfinished Dock/Anchor layout code
39314
39315 2004-08-10 11:39  pbartok
39316
39317         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
39318           - Added GetWindowPos method
39319
39320 2004-08-10 11:36  pbartok
39321
39322         * XplatUIWin32.cs:
39323           - Implemented several methods
39324
39325 2004-08-10 09:47  jackson
39326
39327         * TrackBar.cs: Allow control to handle buffering
39328
39329 2004-08-10 09:41  jackson
39330
39331         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
39332
39333 2004-08-10 09:24  jackson
39334
39335         * Label.cs, LinkLabel.cs: Let Control handle buffering.
39336
39337 2004-08-10 09:09  jackson
39338
39339         * StatusBar.cs: Let Control handle all the buffering.
39340
39341 2004-08-10 09:08  jackson
39342
39343         * Control.cs: Control will now handle the buffering code, so each
39344           control does not have to implement this.
39345
39346 2004-08-10 08:34  jackson
39347
39348         * XplatUIDriver.cs: Use default colors from the theme
39349
39350 2004-08-09 17:12  pbartok
39351
39352         * ImageList.cs:
39353           - Fixed several bugs Ravindra pointed out
39354
39355 2004-08-09 16:11  pbartok
39356
39357         * Control.cs:
39358           - Added incomplete dock layout code
39359           - Added support for mouse wheel
39360
39361 2004-08-09 16:09  pbartok
39362
39363         * XplatUIX11.cs:
39364           - Added handling for middle and right mousebutton
39365           - Added handling for mouse wheel
39366           - Added handling for key state and mouse state and position
39367           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
39368           messages
39369
39370 2004-08-09 15:40  jackson
39371
39372         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
39373           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
39374           checkin
39375
39376 2004-08-09 15:37  jackson
39377
39378         * StatusBar.cs: Initial implementation of StatusBar
39379
39380 2004-08-09 15:36  jackson
39381
39382         * ITheme.cs: Add support for drawing status bar and getting status
39383           bar item sizes
39384
39385 2004-08-09 15:35  pbartok
39386
39387         * MouseButtons.cs:
39388           - Fixed values
39389
39390 2004-08-09 15:34  jackson
39391
39392         * ThemeWin32Classic.cs: Add support for drawing status bar and get
39393           status bar item sizes
39394
39395 2004-08-09 15:21  jackson
39396
39397         * ThemeWin32Classic.cs: Use known colors for default control
39398           colours
39399
39400 2004-08-09 15:12  jackson
39401
39402         * ThemeWin32Classic.cs: Make the default font static, it is static
39403           in control so this doesn't change functionality and creating fonts
39404           is sloooooow.
39405
39406 2004-08-09 14:56  pbartok
39407
39408         * X11Structs.cs:
39409           - Added GrabMode enum
39410
39411 2004-08-09 14:55  pbartok
39412
39413         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39414           - Removed Run method, was only required for initial development
39415
39416 2004-08-09 14:51  pbartok
39417
39418         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39419           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
39420           capture
39421
39422 2004-08-09 13:48  pbartok
39423
39424         * XplatUIX11.cs:
39425           - Fixed default sizing for child windows
39426
39427 2004-08-09 12:56  pbartok
39428
39429         * XplatUIX11.cs:
39430           - Added generation of WM_DESTROY message
39431           - Added handling of window manager induced shutdown
39432
39433 2004-08-09 11:31  jackson
39434
39435         * ThemeWin32Classic.cs: New names for control properties
39436
39437 2004-08-09 11:25  jackson
39438
39439         * Control.cs: Use new color names
39440
39441 2004-08-09 11:02  jackson
39442
39443         * XplatUI.cs: Get default window properties from the theme
39444
39445 2004-08-09 11:01  jackson
39446
39447         * ITheme.cs: The theme engine now controls default window
39448           properties
39449
39450 2004-08-09 11:00  jackson
39451
39452         * ThemeWin32Classic.cs: Add default window color properties
39453
39454 2004-08-09 10:17  jackson
39455
39456         * ThemeWin32Classic.cs: Use correct default back color
39457
39458 2004-08-09 10:05  jackson
39459
39460         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
39461           the theme now.
39462
39463 2004-08-09 09:56  jackson
39464
39465         * XplatUI.cs: Remove defaults, these are handled by the theme now.
39466
39467 2004-08-09 09:54  jackson
39468
39469         * Control.cs: Get default properties from the theme.
39470
39471 2004-08-09 09:53  jackson
39472
39473         * ITheme.cs: Themes now handle default control properties
39474
39475 2004-08-09 09:53  jackson
39476
39477         * ThemeWin32Classic.cs: Themes now handle default control
39478           properties so coloring will be consistent
39479
39480 2004-08-08 16:54  jordi
39481
39482         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
39483
39484 2004-08-08 15:08  jordi
39485
39486         * XplatUIX11.cs: fixes keyboard crash
39487
39488 2004-08-08 13:47  jordi
39489
39490         * Label.cs: add cvs header info
39491
39492 2004-08-08 12:09  jackson
39493
39494         * ThemeWin32Classic.cs: Add pen_buttonface
39495
39496 2004-08-08 11:52  jordi
39497
39498         * Label.cs, LinkLabel.cs: [no log message]
39499
39500 2004-08-08 11:34  jordi
39501
39502         * ThemeWin32Classic.cs: Use Windows Standard Colours
39503
39504 2004-08-07 17:32  jordi
39505
39506         * TrackBar.cs: throw exceptions of invalid enums values
39507
39508 2004-08-07 17:31  jordi
39509
39510         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
39511           draw method name
39512
39513 2004-08-07 16:56  jackson
39514
39515         * HorizontalAlignment.cs: Initial checkin
39516
39517 2004-08-07 13:16  jordi
39518
39519         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
39520           methods
39521
39522 2004-08-07 13:05  jordi
39523
39524         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
39525           GetSysColor defines
39526
39527 2004-08-06 18:01  pbartok
39528
39529         * ThemeWin32Classic.cs:
39530           - Fixed some rounding issues with float/int
39531
39532 2004-08-06 18:00  jackson
39533
39534         * DockStyle.cs, AnchorStyles.cs:
39535
39536                   Add flags and serializable attributes.
39537
39538 2004-08-06 17:46  pbartok
39539
39540         * XplatUIX11.cs:
39541           - Implemented GetParent
39542
39543 2004-08-06 17:18  pbartok
39544
39545         * TrackBar.cs:
39546           - Fixed some rounding issues with float/int
39547
39548 2004-08-06 17:17  pbartok
39549
39550         * X11Structs.cs, XplatUIX11.cs:
39551           - Fixed Refresh and Invalidate
39552
39553 2004-08-06 15:30  pbartok
39554
39555         * Control.cs, X11Structs.cs, XplatUIX11.cs:
39556           - Fixed recursive loop when resizing
39557           - Improved/fixed redrawing on expose messages
39558
39559 2004-08-06 09:53  jordi
39560
39561         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
39562           keyboard navigation
39563
39564 2004-08-06 08:02  pbartok
39565
39566         * X11Structs.cs, XplatUIX11.cs:
39567           - Fixed reparenting
39568           - Fixed window border creation
39569
39570 2004-08-05 15:38  pbartok
39571
39572         * XplatUIX11.cs:
39573           - Attempted fix for reparenting problems
39574
39575 2004-08-04 15:14  pbartok
39576
39577         * Control.cs:
39578           - Fixed Invalidation bug (calculated wrong client area)
39579           - Added ClientSize setter
39580
39581 2004-08-04 15:13  pbartok
39582
39583         * Form.cs:
39584           - Added AutoScale properties
39585
39586 2004-08-04 15:13  pbartok
39587
39588         * SWF.csproj:
39589           - Added latest files
39590
39591 2004-08-04 14:11  pbartok
39592
39593         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39594           XplatUIX11.cs:
39595           - Added Invalidate handling
39596
39597 2004-08-03 17:09  jordi
39598
39599         * XplatUIDriver.cs: fixes spelling mistake
39600
39601 2004-07-27 09:53  jordi
39602
39603         * TrackBar.cs: fixes trackbar events, def classname, methods
39604           signature
39605
39606 2004-07-27 09:29  jordi
39607
39608         * ScrollBar.cs: fixes scrollbar events
39609
39610 2004-07-27 04:38  jordi
39611
39612         * Control.cs: changes to be able to run winforms samples
39613
39614 2004-07-26 11:42  jordi
39615
39616         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
39617           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
39618
39619 2004-07-26 05:41  jordi
39620
39621         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
39622           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
39623           implementation
39624
39625 2004-07-22 09:22  jordi
39626
39627         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
39628           check link overlapping, implement events, and fixes
39629
39630 2004-07-21 10:28  jordi
39631
39632         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
39633
39634 2004-07-21 10:19  jordi
39635
39636         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
39637           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
39638           LinkLabelLinkClickedEventArgs.cs,
39639           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
39640           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
39641           implementation
39642
39643 2004-07-19 13:09  jordi
39644
39645         * Control.cs, Label.cs: label control re-written: added missing
39646           functionlity, events, and properties
39647
39648 2004-07-19 10:49  jordi
39649
39650         * Control.cs: fixes SetBounds logic
39651
39652 2004-07-19 01:29  jordi
39653
39654         * Control.cs: Call RefreshWindow only if the window has created
39655
39656 2004-07-15 14:05  pbartok
39657
39658         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
39659           - Implemented ImageList and ImageList.ImageCollection classes
39660           - Added ColorDepth enumeration
39661           - Updated SWF VS.Net project
39662
39663 2004-07-15 11:06  jordi
39664
39665         * XplatUIStructs.cs: added MsgButons enum
39666
39667 2004-07-15 11:03  jordi
39668
39669         * Control.cs: added basic mouse handeling events
39670
39671 2004-07-15 03:38  jordi
39672
39673         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
39674           Vertical TrackBar control implementation
39675
39676 2004-07-13 09:33  jordi
39677
39678         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
39679
39680 2004-07-13 09:31  jordi
39681
39682         * Control.cs, Form.cs: commit: new properties and fixes form size
39683           problems
39684
39685 2004-07-09 14:13  miguel
39686
39687         * ProgressBar.cs: Spelling
39688
39689 2004-07-09 11:25  pbartok
39690
39691         * ProgressBar.cs:
39692           - Removed usage of Rectangle for drawing. Miguel pointed out it's
39693           faster
39694
39695 2004-07-09 11:17  miguel
39696
39697         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
39698
39699                 * ProgressBar.cs: Fixed spelling for `block'
39700
39701                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
39702                 style guidelines.
39703
39704                 Avoid using the += on rect.X, that exposed a bug in the compiler.
39705
39706 2004-07-08 23:21  pbartok
39707
39708         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
39709           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
39710           BaseCollection.cs, Binding.cs, BindingContext.cs,
39711           BindingMemberInfo.cs, BindingsCollection.cs,
39712           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
39713           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
39714           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
39715           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
39716           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
39717           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
39718           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
39719           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
39720           FrameStyle.cs, GiveFeedbackEventArgs.cs,
39721           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
39722           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
39723           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
39724           InputLanguageChangedEventArgs.cs,
39725           InputLanguageChangedEventHandler.cs,
39726           InputLanguageChangingEventArgs.cs,
39727           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
39728           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
39729           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
39730           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
39731           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
39732           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
39733           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
39734           QueryAccessibilityHelpEventArgs.cs,
39735           QueryAccessibilityHelpEventHandler.cs,
39736           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
39737           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
39738           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
39739           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
39740           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
39741           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
39742           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
39743           XplatUIX11.cs, lang.cs:
39744           - Initial check-in
39745
39746